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 1e14998 commit e6d8876
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nibabel/tests/test_volumeutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,7 @@ def test_a2f_nanpos():

def test_a2f_bad_scaling():
# Test that pathological scalers raise an error
NUMERICAL_TYPES = [
x
for sublist in (sctypes[key] for key in ('int', 'uint', 'float', 'complex'))
for x in sublist
]
NUMERICAL_TYPES = [tp for kind in ('int', 'uint', 'float', 'complex') for tp in sctypes[kind]]
for in_type, out_type, slope, inter in itertools.product(
NUMERICAL_TYPES,
NUMERICAL_TYPES,
Expand Down

0 comments on commit e6d8876

Please sign in to comment.