Skip to content

Commit

Permalink
Merge pull request #193 from jonwright/master
Browse files Browse the repository at this point in the history
Bugfix assemble_label.py
  • Loading branch information
jonwright authored Dec 11, 2023
2 parents 2524a63 + 4af88b8 commit f0bf376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ImageD11/sinograms/assemble_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def harvest_masterfile( dset, outname,
hout.attrs["h5input"] = dset.masterfile
print("Harvesting",dset.masterfile,end=": ")
with h5py.File(dset.masterfile, "r") as hin:
done = set()
done = []
for scan in dset.scans:
if scan.find("::"):
scan = scan.split("::")[0]
Expand Down Expand Up @@ -92,7 +92,7 @@ def harvest_masterfile( dset, outname,
g.attrs["shape0"] = frms.shape[1]
g.attrs["shape1"] = frms.shape[2]
print(scan, end=', ')
done.add(scan)
done.append(scan)
print()

# Finished with master file. Now harvest the segmented files.
Expand Down Expand Up @@ -131,4 +131,4 @@ def main( dsname, outname ):

if __name__=="__main__":
import sys
main( sys.argv[1], sys.argv[2] )
main( sys.argv[1], sys.argv[2] )

0 comments on commit f0bf376

Please sign in to comment.