This commit is contained in:
Martin Diehl 2020-03-20 06:42:13 +01:00
parent 0f45559271
commit 509f8cfcc9
2 changed files with 3 additions and 5 deletions

@ -1 +1 @@
Subproject commit 1b08e028a6177d03a0d4202e5feed2ec29f91c19
Subproject commit c8bf5cf4b4700cb9b9cd3db67a9148298598ba3f

View File

@ -59,8 +59,7 @@ class myThread (threading.Thread):
myBestSeedsVFile.close()
myBestSeedsVFile = StringIO()
i=0
for line in bestSeedsVFile:
myBestSeedsVFile.write(line)
myBestSeedsVFile.writelines(bestSeedsVFile.readlines())
s.release()
if randReset: # new direction because current one led to worse fit
@ -155,8 +154,7 @@ class myThread (threading.Thread):
perturbedSeedsVFile.seek(0)
bestSeedsVFile.close()
bestSeedsVFile = StringIO()
for line in perturbedSeedsVFile:
bestSeedsVFile.write(line)
bestSeedsVFile.writelines(perturbedSeedsVFile.readlines())
for j in range(nMicrostructures):
target[j]['error'] = currentError[j]
randReset = True