Skip to content

Commit

Permalink
fix: ruff UP031
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Nov 27, 2024
1 parent d4fefb0 commit 447f312
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mrinufft/io/cfl.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def _writecfl(array, cfl_file, hdr_file=None):

with open(hdr_file, "w") as h:
h.write("# Dimensions\n")
for i in array.shape:
h.write("%d " % i)
h.write("".join(f"{i} " for i in array.shape))
h.write("\n")

size = np.prod(array.shape) * np.dtype(np.complex64).itemsize
Expand Down

0 comments on commit 447f312

Please sign in to comment.