diff --git a/docs/usage.rst b/docs/usage.rst index a6f50b58..7abac4d5 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -351,7 +351,7 @@ Finding relevant content in the nested SR content tree: print(containers) # Query content of SR document, where content is structured according - # to TID 1500 "Measurment Report" + # to TID 1500 "Measurement Report" if sr_dataset.ContentTemplateSequence[0].TemplateIdentifier == 'TID1500': # Determine who made the observations reported in the document observers = hd.sr.utils.find_content_items( diff --git a/src/highdicom/ann/enum.py b/src/highdicom/ann/enum.py index b5008277..8a53d783 100644 --- a/src/highdicom/ann/enum.py +++ b/src/highdicom/ann/enum.py @@ -57,7 +57,7 @@ class GraphicTypeValues(Enum): """ POINT = 'POINT' - """An individual piont defined by a single coordinate.""" + """An individual point defined by a single coordinate.""" POLYLINE = 'POLYLINE' """Connected line segments defined by two or more ordered coordinates. diff --git a/src/highdicom/frame.py b/src/highdicom/frame.py index 6055d38d..0f55cda2 100644 --- a/src/highdicom/frame.py +++ b/src/highdicom/frame.py @@ -63,7 +63,7 @@ def encode_frame( ------- bytes Encoded pixel data (potentially compressed in case of encapsulated - format encoding, depending on the transfer snytax) + format encoding, depending on the transfer syntax) Raises ------ diff --git a/src/highdicom/ko/sop.py b/src/highdicom/ko/sop.py index 947d9e2d..454abc66 100644 --- a/src/highdicom/ko/sop.py +++ b/src/highdicom/ko/sop.py @@ -68,7 +68,7 @@ def __init__( Name of the department of the person or device that creates the document instance requested_procedures: Union[Sequence[pydicom.dataset.Dataset], None], optional - Requested procedures that are being fullfilled by creation of the + Requested procedures that are being fulfilled by creation of the document transfer_syntax_uid: str, optional UID of transfer syntax that should be used for encoding of diff --git a/src/highdicom/legacy/sop.py b/src/highdicom/legacy/sop.py index d7c3df4f..9c6e872a 100644 --- a/src/highdicom/legacy/sop.py +++ b/src/highdicom/legacy/sop.py @@ -328,7 +328,7 @@ def _convert_legacy_to_enhanced( # All remaining unassigned attributes will be collected in either the # UnassignedSharedConvertedAttributesSequence or the # UnassignedPerFrameConvertedAttributesSequence, depending on whether - # values vary accross frames (original single-frame image instances). + # values vary across frames (original single-frame image instances). unassigned_shared_ca_item = Dataset() unassigned_perframe_ca_items = [ Dataset() diff --git a/src/highdicom/pm/sop.py b/src/highdicom/pm/sop.py index ef29b73a..9c36e783 100644 --- a/src/highdicom/pm/sop.py +++ b/src/highdicom/pm/sop.py @@ -222,7 +222,7 @@ def __init__( Identifying information for the person who created the content of this parametric map. palette_color_lut_transformation: Union[highdicom.PaletteColorLUTTransformation, None], optional - Description of the Palette Color LUT Transformation for tranforming + Description of the Palette Color LUT Transformation for transforming grayscale into RGB color pixel values **kwargs: Any, optional Additional keyword arguments that will be passed to the constructor diff --git a/src/highdicom/pr/content.py b/src/highdicom/pr/content.py index 48809dd1..fd1df003 100644 --- a/src/highdicom/pr/content.py +++ b/src/highdicom/pr/content.py @@ -136,7 +136,7 @@ def __init__( label: str Name used to identify the Graphic Group (maximum 64 characters). description: Union[str, None], optional - Description of the group (maxiumum 10240 characters). + Description of the group (maximum 10240 characters). """ super().__init__() diff --git a/src/highdicom/pr/sop.py b/src/highdicom/pr/sop.py index 36e4ec5e..d3b7afca 100644 --- a/src/highdicom/pr/sop.py +++ b/src/highdicom/pr/sop.py @@ -389,7 +389,7 @@ def __init__( device_serial_number: Union[str, None] Manufacturer's serial number of the device palette_color_lut_transformation: highdicom.PaletteColorLUTTransformation - Description of the Palette Color LUT Transformation for tranforming + Description of the Palette Color LUT Transformation for transforming grayscale into RGB color pixel values content_label: str A label used to describe the content of this presentation state. @@ -419,10 +419,10 @@ def __init__( Identifying information for the person who created the content of this presentation state. modality_lut_transformation: Union[highdicom.ModalityLUTTransformation, None], optional - Description of the Modality LUT Transformation for tranforming modality + Description of the Modality LUT Transformation for transforming modality dependent into modality independent pixel values voi_lut_transformations: Union[Sequence[highdicom.pr.SoftcopyVOILUTTransformation], None], optional - Description of the VOI LUT Transformation for tranforming + Description of the VOI LUT Transformation for transforming modality pixel values into pixel values that are of interest to a user or an application icc_profile: Union[bytes, None], optional diff --git a/src/highdicom/sr/sop.py b/src/highdicom/sr/sop.py index c4a4aaf9..44ed97a2 100644 --- a/src/highdicom/sr/sop.py +++ b/src/highdicom/sr/sop.py @@ -127,7 +127,7 @@ def __init__( performed_procedure_codes: Union[List[highdicom.sr.CodedConcept], None], optional Codes of the performed procedures that resulted in the SR document requested_procedures: Union[List[pydicom.dataset.Dataset], None], optional - Requested procedures that are being fullfilled by creation of the + Requested procedures that are being fulfilled by creation of the SR document previous_versions: Union[List[pydicom.dataset.Dataset], None], optional Instances representing previous versions of the SR document @@ -356,7 +356,7 @@ class EnhancedSR(_SR): """SOP class for an Enhanced Structured Report (SR) document, whose content may include textual and a minimal amount of coded information, - numeric measurement values, references to SOP Instances (retricted to the + numeric measurement values, references to SOP Instances (restricted to the leaves of the tree), as well as 2D spatial or temporal regions of interest within such SOP Instances. """ @@ -432,7 +432,7 @@ def __init__( performed_procedure_codes: Union[List[highdicom.sr.CodedConcept], None], optional Codes of the performed procedures that resulted in the SR document requested_procedures: Union[List[pydicom.dataset.Dataset], None], optional - Requested procedures that are being fullfilled by creation of the + Requested procedures that are being fulfilled by creation of the SR document previous_versions: Union[List[pydicom.dataset.Dataset], None], optional Instances representing previous versions of the SR document @@ -563,7 +563,7 @@ def __init__( performed_procedure_codes: Union[List[highdicom.sr.CodedConcept], None], optional Codes of the performed procedures that resulted in the SR document requested_procedures: Union[List[pydicom.dataset.Dataset], None], optional - Requested procedures that are being fullfilled by creation of the + Requested procedures that are being fulfilled by creation of the SR document previous_versions: Union[List[pydicom.dataset.Dataset], None], optional Instances representing previous versions of the SR document @@ -725,7 +725,7 @@ def __init__( performed_procedure_codes: Union[List[highdicom.sr.CodedConcept], None], optional Codes of the performed procedures that resulted in the SR document requested_procedures: Union[List[pydicom.dataset.Dataset], None], optional - Requested procedures that are being fullfilled by creation of the + Requested procedures that are being fulfilled by creation of the SR document previous_versions: Union[List[pydicom.dataset.Dataset], None], optional Instances representing previous versions of the SR document diff --git a/src/highdicom/sr/templates.py b/src/highdicom/sr/templates.py index 484c2556..42681bf2 100644 --- a/src/highdicom/sr/templates.py +++ b/src/highdicom/sr/templates.py @@ -2350,7 +2350,7 @@ def __init__( "General Region of Interest Measurement Modifiers" for options) finding_sites: Union[Sequence[highdicom.sr.FindingSite], None], optional - Coded description of one or more anatomic locations corresonding + Coded description of one or more anatomic locations corresponding to the image region from which measurement was taken method: Union[highdicom.sr.CodedConcept, pydicom.sr.coding.Code, None], optional Measurement method (see @@ -3274,7 +3274,7 @@ def __init__( algorithm_id: Union[highdicom.sr.AlgorithmIdentification, None], optional Identification of algorithm used for making measurements finding_sites: Union[Sequence[highdicom.sr.FindingSite], None], optional - Coded description of one or more anatomic locations corresonding + Coded description of one or more anatomic locations corresponding to the image region from which measurement was taken session: Union[str, None], optional Description of the session diff --git a/src/highdicom/sr/value_types.py b/src/highdicom/sr/value_types.py index dfa07487..16a1958c 100644 --- a/src/highdicom/sr/value_types.py +++ b/src/highdicom/sr/value_types.py @@ -1458,7 +1458,7 @@ def __init__( Number of frame(s) to which the reference applies in case of a multi-frame image referenced_segment_numbers: Union[int, Sequence[int], None], optional - Number of segment(s) to which the refernce applies in case of a + Number of segment(s) to which the reference applies in case of a segmentation image relationship_type: Union[highdicom.sr.RelationshipTypeValues, str, None], optional Type of relationship with parent content item @@ -1702,7 +1702,7 @@ class Scoord3DContentItem(ContentItem): Note ---- Spatial coordinates are defined in the patient or specimen-based coordinate - system and have milimeter unit. + system and have millimeter unit. """ @@ -1955,7 +1955,7 @@ def __init__( referenced_waveform_channels: Union[Sequence[Tuple[int, int]], None], optional Pairs of waveform number (number of item in the Waveform Sequence) and channel definition number (number of item in the Channel - Defition Sequence) to which the reference applies in case of a + Definition Sequence) to which the reference applies in case of a multi-channel waveform relationship_type: Union[highdicom.sr.RelationshipTypeValues, str, None], optional Type of relationship with parent content item diff --git a/tests/test_ko.py b/tests/test_ko.py index d4ab94db..c88fdf4b 100644 --- a/tests/test_ko.py +++ b/tests/test_ko.py @@ -89,8 +89,8 @@ def test_construction(self): container = content[0] assert isinstance(container, ContainerContentItem) assert container.ContentTemplateSequence[0].TemplateIdentifier == '2010' - # Oberver Context (Person): 2 - # Oberver Context (Device): 3 + # Observer Context (Person): 2 + # Observer Context (Device): 3 # Description: 1 # Referenced Objects: 4 assert len(container.ContentSequence) == 10