cleaning
This commit is contained in:
parent
0f45559271
commit
509f8cfcc9
2
PRIVATE
2
PRIVATE
|
@ -1 +1 @@
|
|||
Subproject commit 1b08e028a6177d03a0d4202e5feed2ec29f91c19
|
||||
Subproject commit c8bf5cf4b4700cb9b9cd3db67a9148298598ba3f
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue