1
1
''' Classes to wrap DICOM objects and files
2
2
3
- The wrappers encapsulate the capcbilities of the different DICOM
3
+ The wrappers encapsulate the capabilities of the different DICOM
4
4
formats.
5
5
6
- They also allow dictionary-like access to named fiields .
6
+ They also allow dictionary-like access to named fields .
7
7
8
8
For calculated attributes, we return None where needed data is missing.
9
9
It seemed strange to raise an error during attribute processing, other
10
10
than an AttributeError - breaking the 'properties manifesto'. So, any
11
- procesing that needs to raise an error, should be in a method, rather
11
+ processing that needs to raise an error, should be in a method, rather
12
12
than in a property, or property-like thing.
13
13
'''
14
14
@@ -217,7 +217,7 @@ def slice_indicator(self):
217
217
218
218
@one_time
219
219
def instance_number (self ):
220
- ''' Just becase we use this a lot for sorting '''
220
+ ''' Just because we use this a lot for sorting '''
221
221
return self .get ('InstanceNumber' )
222
222
223
223
@one_time
@@ -486,7 +486,7 @@ class MosaicWrapper(SiemensWrapper):
486
486
in a mosaic similar to a light-box print.
487
487
488
488
We need to allow for this when getting the data and (because of an
489
- idiosyncracy in the way Siemens stores the images) calculating the
489
+ idiosyncrasy in the way Siemens stores the images) calculating the
490
490
position of the first voxel.
491
491
492
492
Adds attributes:
@@ -514,7 +514,7 @@ def __init__(self, dcm_data=None, csa_header=None, n_mosaic=None):
514
514
mapping giving values for Siemens CSA image sub-header.
515
515
n_mosaic : None or int, optional
516
516
number of images in mosaic. If None, try to get this number
517
- fron `csa_header`. If this fails, raise an error
517
+ from `csa_header`. If this fails, raise an error
518
518
'''
519
519
SiemensWrapper .__init__ (self , dcm_data , csa_header )
520
520
if n_mosaic is None :
@@ -525,7 +525,7 @@ def __init__(self, dcm_data=None, csa_header=None, n_mosaic=None):
525
525
if n_mosaic is None or n_mosaic == 0 :
526
526
raise WrapperError ('No valid mosaic number in CSA '
527
527
'header; is this really '
528
- 'Siemans mosiac data?' )
528
+ 'Siemens mosiac data?' )
529
529
self .n_mosaic = n_mosaic
530
530
self .mosaic_size = np .ceil (np .sqrt (n_mosaic ))
531
531
@@ -546,7 +546,7 @@ def image_shape(self):
546
546
def image_position (self ):
547
547
''' Return position of first voxel in data block
548
548
549
- Adjusts Siemans mosaic position vector for bug in mosaic format
549
+ Adjusts Siemens mosaic position vector for bug in mosaic format
550
550
position. See ``dicom_mosaic`` in doc/theory for details.
551
551
552
552
Parameters
0 commit comments