diff --git a/PRIVATE b/PRIVATE index 1b08e028a..c8bf5cf4b 160000 --- a/PRIVATE +++ b/PRIVATE @@ -1 +1 @@ -Subproject commit 1b08e028a6177d03a0d4202e5feed2ec29f91c19 +Subproject commit c8bf5cf4b4700cb9b9cd3db67a9148298598ba3f diff --git a/processing/pre/seeds_fromDistribution.py b/processing/pre/seeds_fromDistribution.py index 2045d68bf..d00016865 100755 --- a/processing/pre/seeds_fromDistribution.py +++ b/processing/pre/seeds_fromDistribution.py @@ -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