Skip to content

Commit debb3a7

Browse files
committed
Merge pull request #318 from effigies/patch-1
BF: Use deprecate_with_doc as decorator The deprecation warning did not get emitted because it was not used as decorator before.
2 parents cc52223 + b5a0993 commit debb3a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/loadsave.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ def save(img, filename):
129129
converted.to_filename(filename)
130130

131131

132-
np.deprecate_with_doc('Please use ``img.dataobj.get_unscaled()`` '
133-
'instead')
132+
@np.deprecate_with_doc('Please use ``img.dataobj.get_unscaled()`` '
133+
'instead')
134134
def read_img_data(img, prefer='scaled'):
135135
""" Read data from image associated with files
136136

0 commit comments

Comments
 (0)