Skip to content

Commit

Permalink
tidied formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin-J-Miller committed Jun 28, 2024
1 parent dd237ec commit ac8dba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enspara/mpi/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def load_h5_as_striped(filename, stride=1):
root=0)

#This is hacky way to get proper lengths with stride > 1, better way?
if stride!=1:
if stride != 1:
global_lengths = [1+np.floor(s[0]/stride).astype('int') for s in all_shapes]
else:
global_lengths = [s[0] for s in all_shapes]
Expand Down

0 comments on commit ac8dba0

Please sign in to comment.