Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NikoOinonen committed Jan 30, 2024
1 parent 7d78902 commit 9cde4d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlspm/data_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _rotate_and_stack(src: Iterable[dict], reverse: bool = False) -> Generator[d
for key in sample.keys():
if key[-3:] in ["jpg", "png"]:
num = key[:-4]
if '.' in key:
if '.' in num:
iz, channel = [int(n) for n in num.split('.')]
else:
iz, channel = int(num), 0
Expand Down

0 comments on commit 9cde4d8

Please sign in to comment.