Skip to content

Commit

Permalink
fix for unsorted inserts on linux; version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
heikowestermann committed May 12, 2019
1 parent 14219ce commit 97161bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SL1_to_Photon.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def extract_images(self, dirpath):
sl1.extract_images(tmpdirname)
if args.verbose:
print('DONE')
for i, filepath in enumerate(glob.glob(os.path.join(tmpdirname, '*.png'))):
for i, filepath in enumerate(sorted(glob.glob(os.path.join(tmpdirname, '*.png')))):
if args.verbose:
print('converting layer {} / {} '.format(i+1, sl1.n_layers), end='')
Image.open(filepath).rotate(180).save(filepath)
Expand Down
2 changes: 1 addition & 1 deletion SL1_to_Photon_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def convert(self):
self.progressBar.setTextVisible(True)
with tempfile.TemporaryDirectory() as tmpdirname:
sl1.extract_images(tmpdirname)
for i, filepath in enumerate(glob.glob(os.path.join(tmpdirname, '*.png'))):
for i, filepath in enumerate(sorted(glob.glob(os.path.join(tmpdirname, '*.png')))):
Image.open(filepath).rotate(180).save(filepath)
photon.append_layer(filepath)
self.progressBar.setValue(i+1)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
long_description = fh.read()

setup(name='SL1oPhoton',
version='0.1.1',
version='0.1.2',
# packages=['pyphotonfile'],
author="Heiko Westermann",
author_email="heiko+sl1tophoton@orgizm.net",
Expand Down

0 comments on commit 97161bf

Please sign in to comment.