Skip to content

Commit

Permalink
[DATALAD RUNCMD] run codespell throughout
Browse files Browse the repository at this point in the history
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed Jun 16, 2023
1 parent 4b15886 commit c318280
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/highdicom/ann/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/highdicom/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
------
Expand Down
2 changes: 1 addition & 1 deletion src/highdicom/ko/sop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/highdicom/legacy/sop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/highdicom/pm/sop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/highdicom/pr/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand Down
6 changes: 3 additions & 3 deletions src/highdicom/pr/sop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/highdicom/sr/sop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
"""
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/highdicom/sr/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/highdicom/sr/value_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
"""

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_ko.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c318280

Please sign in to comment.