@@ -205,7 +205,7 @@ def test_image_collision():
205
205
'dcmstack' ,
206
206
'2D_16Echo_qT2' ,
207
207
'TE_20_SlcPos_-33.707626341697.dcm' )
208
- dcm = pydicom .read_file (dcm_path )
208
+ dcm = pydicom .dcmread (dcm_path )
209
209
stack = dcmstack .DicomStack ('EchoTime' )
210
210
stack .add_dcm (dcm )
211
211
with pytest .raises (dcmstack .ImageCollisionError ):
@@ -259,7 +259,7 @@ def setup_method(self, method):
259
259
'data' ,
260
260
'dcmstack' ,
261
261
'2D_16Echo_qT2' )
262
- self .inputs = [pydicom .read_file (path .join (data_dir , fn ))
262
+ self .inputs = [pydicom .dcmread (path .join (data_dir , fn ))
263
263
for fn in ('TE_20_SlcPos_-33.707626341697.dcm' ,
264
264
'TE_20_SlcPos_-23.207628249046.dcm' ,
265
265
'TE_40_SlcPos_-33.707626341697.dcm' ,
@@ -310,7 +310,7 @@ def setup_method(self, method):
310
310
'data' ,
311
311
'dcmstack' ,
312
312
'2D_16Echo_qT2' )
313
- self .inputs = [pydicom .read_file (path .join (data_dir , fn ))
313
+ self .inputs = [pydicom .dcmread (path .join (data_dir , fn ))
314
314
for fn in ('TE_40_SlcPos_-33.707626341697.dcm' ,
315
315
'TE_40_SlcPos_-23.207628249046.dcm' ,
316
316
'TE_60_SlcPos_-33.707626341697.dcm' ,
@@ -355,7 +355,7 @@ def setup_method(self, method):
355
355
'data' ,
356
356
'dcmstack' ,
357
357
'2D_16Echo_qT2' )
358
- self .inputs = [pydicom .read_file (path .join (data_dir , fn ))
358
+ self .inputs = [pydicom .dcmread (path .join (data_dir , fn ))
359
359
for fn in ('TE_40_SlcPos_-33.707626341697.dcm' ,
360
360
'TE_40_SlcPos_-23.207628249046.dcm' ,
361
361
'TE_60_SlcPos_-33.707626341697.dcm' ,
@@ -408,7 +408,7 @@ def setup_method(self, method):
408
408
'data' ,
409
409
'dcmstack' ,
410
410
'2D_16Echo_qT2' )
411
- self .inputs = [pydicom .read_file (path .join (data_dir , fn ))
411
+ self .inputs = [pydicom .dcmread (path .join (data_dir , fn ))
412
412
for fn in ('TE_40_SlcPos_-33.707626341697.dcm' ,
413
413
'TE_40_SlcPos_-23.207628249046.dcm' ,
414
414
'TE_60_SlcPos_-33.707626341697.dcm' ,
@@ -477,7 +477,7 @@ def setup_method(self, method):
477
477
'data' ,
478
478
'dcmstack' ,
479
479
'2D_16Echo_qT2' )
480
- self .inputs = [pydicom .read_file (path .join (self .data_dir , fn ))
480
+ self .inputs = [pydicom .dcmread (path .join (self .data_dir , fn ))
481
481
for fn in ('TE_20_SlcPos_-33.707626341697.dcm' ,
482
482
'TE_20_SlcPos_-23.207628249046.dcm'
483
483
)
@@ -544,7 +544,7 @@ def setup_method(self, method):
544
544
'data' ,
545
545
'dcmstack' ,
546
546
'2D_16Echo_qT2' )
547
- self .inputs = [pydicom .read_file (path .join (self .data_dir , fn ))
547
+ self .inputs = [pydicom .dcmread (path .join (self .data_dir , fn ))
548
548
for fn in ('TE_20_SlcPos_-33.707626341697.dcm' ,
549
549
'TE_20_SlcPos_-23.207628249046.dcm' ,
550
550
'TE_40_SlcPos_-33.707626341697.dcm' ,
@@ -646,7 +646,7 @@ def setup_method(self, method):
646
646
def test_default (self ):
647
647
res = dcmstack .parse_and_group (self .in_paths )
648
648
assert len (res ) == 1
649
- ds = pydicom .read_file (self .in_paths [0 ])
649
+ ds = pydicom .dcmread (self .in_paths [0 ])
650
650
group_key = list (res .keys ())[0 ]
651
651
for attr_idx , attr in enumerate (dcmstack .DEFAULT_GROUP_KEYS ):
652
652
if attr in dcmstack .DEFAULT_CLOSE_KEYS :
@@ -672,7 +672,7 @@ def setup_method(self, method):
672
672
def test_default (self ):
673
673
res = dcmstack .parse_and_stack (self .in_paths )
674
674
assert len (res ) == 1
675
- ds = pydicom .read_file (self .in_paths [0 ])
675
+ ds = pydicom .dcmread (self .in_paths [0 ])
676
676
group_key = list (res .keys ())[0 ]
677
677
for attr_idx , attr in enumerate (dcmstack .DEFAULT_GROUP_KEYS ):
678
678
if attr in dcmstack .DEFAULT_CLOSE_KEYS :
0 commit comments