Skip to content

Commit

Permalink
STY: Further simplification
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
DimitriPapadopoulos and effigies authored Oct 9, 2024
1 parent 23cb5c7 commit 1e14998
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nibabel/tests/test_nifti1.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,7 @@ def test_slice_times(self):
hdr.set_slice_duration(0.1)
# We need a function to print out the Nones and floating point
# values in a predictable way, for the tests below.
_stringer = lambda val: (val is not None and f'{val:2.1f}') or None
_print_me = lambda s: list(map(_stringer, s))
_print_me = lambda s: [val if val is None else f'{val:2.1f}' for val in s]
# The following examples are from the nifti1.h documentation.
hdr['slice_code'] = slice_order_codes['sequential increasing']
assert _print_me(hdr.get_slice_times()) == [
Expand Down

0 comments on commit 1e14998

Please sign in to comment.