Skip to content

Commit 034f2e4

Browse files
committed
DOC - minor spellings I ran into
1 parent 4f062e8 commit 034f2e4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

nibabel/dicom/dicomwrappers.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
''' Classes to wrap DICOM objects and files
22
3-
The wrappers encapsulate the capcbilities of the different DICOM
3+
The wrappers encapsulate the capabilities of the different DICOM
44
formats.
55
6-
They also allow dictionary-like access to named fiields.
6+
They also allow dictionary-like access to named fields.
77
88
For calculated attributes, we return None where needed data is missing.
99
It seemed strange to raise an error during attribute processing, other
1010
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
1212
than in a property, or property-like thing.
1313
'''
1414

@@ -217,7 +217,7 @@ def slice_indicator(self):
217217

218218
@one_time
219219
def instance_number(self):
220-
''' Just becase we use this a lot for sorting '''
220+
''' Just because we use this a lot for sorting '''
221221
return self.get('InstanceNumber')
222222

223223
@one_time
@@ -486,7 +486,7 @@ class MosaicWrapper(SiemensWrapper):
486486
in a mosaic similar to a light-box print.
487487
488488
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
490490
position of the first voxel.
491491
492492
Adds attributes:
@@ -514,7 +514,7 @@ def __init__(self, dcm_data=None, csa_header=None, n_mosaic=None):
514514
mapping giving values for Siemens CSA image sub-header.
515515
n_mosaic : None or int, optional
516516
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
518518
'''
519519
SiemensWrapper.__init__(self, dcm_data, csa_header)
520520
if n_mosaic is None:
@@ -525,7 +525,7 @@ def __init__(self, dcm_data=None, csa_header=None, n_mosaic=None):
525525
if n_mosaic is None or n_mosaic == 0:
526526
raise WrapperError('No valid mosaic number in CSA '
527527
'header; is this really '
528-
'Siemans mosiac data?')
528+
'Siemens mosiac data?')
529529
self.n_mosaic = n_mosaic
530530
self.mosaic_size = np.ceil(np.sqrt(n_mosaic))
531531

@@ -546,7 +546,7 @@ def image_shape(self):
546546
def image_position(self):
547547
''' Return position of first voxel in data block
548548
549-
Adjusts Siemans mosaic position vector for bug in mosaic format
549+
Adjusts Siemens mosaic position vector for bug in mosaic format
550550
position. See ``dicom_mosaic`` in doc/theory for details.
551551
552552
Parameters

0 commit comments

Comments
 (0)