Skip to content

Commit b7e70e8

Browse files
Apply ruff/flake8-simplify rule SIM910
SIM910 Use `get(...)` instead of `get(..., None)`
1 parent 6800acf commit b7e70e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipy/io/nifti_ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def nifti2nipy(ni_img):
580580
if ndim == 3:
581581
return Image(data, cmap3, {'header': hdr})
582582
space_units, time_like_units = hdr.get_xyzt_units()
583-
units_info = TIME_LIKE_UNITS.get(time_like_units, None)
583+
units_info = TIME_LIKE_UNITS.get(time_like_units)
584584
n_ns = ndim - 3
585585
ns_zooms = list(hdr.get_zooms()[3:])
586586
ns_trans = [0] * n_ns

0 commit comments

Comments
 (0)