Skip to content

Commit 4815ee5

Browse files
author
Mathieu Scheltienne
committed
fix blue
1 parent 9fc2d34 commit 4815ee5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

nibabel/casting.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class CastingError(Exception):
6262
}
6363
# fmt: on
6464

65+
6566
def float_to_int(arr, int_type, nan2zero=True, infmax=False):
6667
"""Convert floating point array `arr` to type `int_type`
6768

nibabel/tests/test_analyze.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@
5151
def add_duplicate_types(supported_np_types):
5252
# Update supported numpy types with named scalar types that map to the same set of dtypes
5353
dtypes = {np.dtype(t) for t in supported_np_types}
54-
supported_np_types.update(
55-
scalar for scalar in sctypes_aliases if np.dtype(scalar) in dtypes
56-
)
54+
supported_np_types.update(scalar for scalar in sctypes_aliases if np.dtype(scalar) in dtypes)
5755

5856

5957
class TestAnalyzeHeader(tws._TestLabeledWrapStruct):

0 commit comments

Comments
 (0)