Skip to content

Commit b5a0993

Browse files
committed
BF: Use deprecate_with_doc as decorator
1 parent cc52223 commit b5a0993

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)