We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bddde1 commit 6800acfCopy full SHA for 6800acf
nipy/io/tests/test_nibcompat.py
@@ -42,7 +42,7 @@ def test_unscaled_data(in_tmp_path):
42
header = get_header(img_back)
43
dao = get_dataobj(img_back)
44
slope = header['scl_slope']
45
- inter = (0. if 'scl_inter' not in header else header['scl_inter'])
+ inter = (header.get('scl_inter', 0.0))
46
if np.isnan(slope):
47
slope, inter = dao.slope, dao.inter
48
data_back = np.array(dao)
0 commit comments