Skip to content

Commit

Permalink
Merge pull request #222 from pokynmr/patch-3
Browse files Browse the repository at this point in the history
Non-zero entries in a shape tuple are enforced.
  • Loading branch information
kaustubhmote authored Oct 26, 2024
2 parents e5007e7 + 0cf110a commit ac748f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmrglue/fileio/sparky.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def calc_tshape(shape, kbyte_max=128):
i = i + 1
if i == len(s):
i = 0
return tuple(s)
return tuple(map(lambda x: max(1, x), s))


# global read/write functions
Expand Down

0 comments on commit ac748f3

Please sign in to comment.