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