Skip to content

Commit

Permalink
fix blue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Scheltienne committed Oct 18, 2023
1 parent 9fc2d34 commit 4815ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions nibabel/casting.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class CastingError(Exception):
}
# fmt: on


def float_to_int(arr, int_type, nan2zero=True, infmax=False):
"""Convert floating point array `arr` to type `int_type`
Expand Down
4 changes: 1 addition & 3 deletions nibabel/tests/test_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@
def add_duplicate_types(supported_np_types):
# Update supported numpy types with named scalar types that map to the same set of dtypes
dtypes = {np.dtype(t) for t in supported_np_types}
supported_np_types.update(
scalar for scalar in sctypes_aliases if np.dtype(scalar) in dtypes
)
supported_np_types.update(scalar for scalar in sctypes_aliases if np.dtype(scalar) in dtypes)


class TestAnalyzeHeader(tws._TestLabeledWrapStruct):
Expand Down

0 comments on commit 4815ee5

Please sign in to comment.