Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/nipyPublic

Commit21c58c8

Browse files
Apply ruff/flake8-simplify rule SIM910
SIM910 Use `get(...)` instead of `get(..., None)`
1 parentd6946b6 commit21c58c8

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
ifndim==3:
581581
returnImage(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)

[8]ページ先頭

©2009-2025 Movatter.jp