Skip to content

Commit dc36a28

Browse files
committed
RF: Drop calls to deprecated get_affine()
1 parent 470995d commit dc36a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nibabel/nicom/dicomreaders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def mosaic_to_nii(dcm_data):
3232
if not dcm_w.is_mosaic:
3333
raise DicomReadError('data does not appear to be in mosaic format')
3434
data = dcm_w.get_data()
35-
aff = np.dot(DPCS_TO_TAL, dcm_w.get_affine())
35+
aff = np.dot(DPCS_TO_TAL, dcm_w.affine)
3636
return Nifti1Image(data, aff)
3737

3838

@@ -106,7 +106,7 @@ def read_mosaic_dir(dicom_path,
106106
g = dcm_w.b_vector
107107
b_values.append(b)
108108
gradients.append(g)
109-
affine = np.dot(DPCS_TO_TAL, dcm_w.get_affine())
109+
affine = np.dot(DPCS_TO_TAL, dcm_w.affine)
110110
return (np.concatenate(arrays, -1),
111111
affine,
112112
np.array(b_values),

0 commit comments

Comments
 (0)