Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative construction of objects from existing data sets #93

Merged
merged 208 commits into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
b597135
Integrate new pydicom DS formatting
CPBridge Apr 8, 2021
d9784a7
Fix recording of evidence in structured reports
hackermd Apr 29, 2021
f2e8ddf
Increase package version
hackermd Apr 29, 2021
c91d00b
Assert that evidence is provided for references
hackermd May 1, 2021
8e6ad62
Use sets for comparison and avoid duplicates
hackermd May 2, 2021
58351d6
Fix mypy errors
hackermd May 2, 2021
dbe4c77
Add test for report referencing multiple studies
hackermd May 2, 2021
7284f0c
Remove import statement for unused variable
hackermd May 2, 2021
c24d0e0
Add properties to content items
hackermd May 7, 2021
466819c
Fix recording of evidence in structured reports
hackermd Apr 29, 2021
68af856
Use sets for comparison and avoid duplicates
hackermd May 2, 2021
0665672
Fix mypy errors
hackermd May 2, 2021
1e0bb4f
Add test for report referencing multiple studies
hackermd May 2, 2021
9205175
Add properties to content items
hackermd May 7, 2021
da95df2
Merge branch 'feat/sr-content-decoding' of github:mghcomputationalpat…
hackermd May 7, 2021
97622c7
Use datetime workaround for python 3.6 support
hackermd May 7, 2021
0bb3660
Incomplete implementation of image library
hackermd May 9, 2021
0be93c3
Add proporties and methods on SR templates
hackermd May 11, 2021
d3b1fde
Update type of content item property return value
hackermd May 11, 2021
ce92631
Fix alternative construction of sr documents
hackermd May 15, 2021
7ac37ab
Typo in exception message
May 19, 2021
82f8520
Fix recording of evidence in structured reports
hackermd Apr 29, 2021
7340f25
Use sets for comparison and avoid duplicates
hackermd May 2, 2021
e67a7a0
Fix mypy errors
hackermd May 2, 2021
503118c
Add test for report referencing multiple studies
hackermd May 2, 2021
76eb2e8
Add properties to content items
hackermd May 7, 2021
cda1d75
Fix recording of evidence in structured reports
hackermd Apr 29, 2021
0344ea2
Use sets for comparison and avoid duplicates
hackermd May 2, 2021
56b674e
Fix mypy errors
hackermd May 2, 2021
9986b3e
Add test for report referencing multiple studies
hackermd May 2, 2021
ea1aacc
Use datetime workaround for python 3.6 support
hackermd May 7, 2021
8ad116f
Incomplete implementation of image library
hackermd May 9, 2021
625d08b
Add proporties and methods on SR templates
hackermd May 11, 2021
284882d
Update type of content item property return value
hackermd May 11, 2021
682fa4e
Fix alternative construction of sr documents
hackermd May 15, 2021
dd2ce5d
Update package version
hackermd May 19, 2021
8187f5f
Merge branch 'feat/sr-content-decoding' of github:mghcomputationalpat…
hackermd May 19, 2021
a8158ff
Feat/image library entries (#77)
seandoyle Jun 2, 2021
c722722
Fix handling of library entry descriptors
hackermd Jun 3, 2021
81e3cb7
Fix default value for Pixel Origin Intepretation
hackermd Jun 4, 2021
6d4fe12
Initial attempt at seg parsing
CPBridge Apr 16, 2021
f8ea54a
Searching for segments by property can return multiple segments
CPBridge May 9, 2021
d861a62
Rename parameter to 'relabel'
CPBridge May 9, 2021
e515918
Added attribute checking logic and applied to segment description
CPBridge May 16, 2021
7f5a545
Implemented conversion and parsing for algorithm id and segment descr…
CPBridge May 16, 2021
bf85bae
Further implementation of segmentation from_dataset conversion and pa…
CPBridge May 17, 2021
1ec456f
Fix outdated method call
CPBridge May 17, 2021
3262891
Docstrings and refactoring of segmentation object parsing
CPBridge May 19, 2021
9ac18ce
Work in progress on altering indexing logic
CPBridge May 20, 2021
d10af53
Got indexing by source frame working
May 21, 2021
70fe01c
WIP
May 27, 2021
deaa590
Implemented indexing by dimension index values. Needs docstrings
May 27, 2021
4581715
Completed documentation, fixed indexing bugs
CPBridge May 30, 2021
0dcab50
removed highdicom errors
CPBridge May 30, 2021
4890c14
made module_utils private
CPBridge May 30, 2021
a224a11
Apply hackermd's suggestions from code review
CPBridge Jun 16, 2021
65548a0
Updated some docstring types to new import pattern
Jun 26, 2021
4d44cbb
Changed Optional return markings to Union[x, None]
Jun 26, 2021
81fe054
Rename methods
Jun 26, 2021
e2d8bdb
Rename tracking id methods
Jun 26, 2021
4ee6173
Added dosctring for iter_segments method
CPBridge Jun 26, 2021
85050f3
Added check for correct segment numbers
CPBridge Jun 26, 2021
7fe1b3d
Added tests for seg parsing
CPBridge Jun 27, 2021
77ea145
Full testing of seg parsing
CPBridge Jun 27, 2021
b607a3b
Rename methods for parsing measurement groups
hackermd Jul 1, 2021
da9f066
Fix implementation of content property on SR documents
hackermd Jul 1, 2021
98b5e2f
Update src/highdicom/content.py
CPBridge Jul 2, 2021
28f804a
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
fbcd5d0
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
fb502ac
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
a6ba143
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
1ff4dc8
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
abf591f
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
909dc49
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
65494fe
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
eac61df
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
9f58e0f
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
a822a2f
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
c7b2a95
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
dc641b4
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
52f63ac
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
1c65b8e
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
d59788b
Fix typo in method name
hackermd Jul 2, 2021
453660c
Merge branch 'feat/sr-content-decoding' of github:mghcomputationalpat…
hackermd Jul 2, 2021
8b6a3c6
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
473cd54
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
12e1e8f
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
aaef0a5
Update tests/test_content.py
hackermd Jul 2, 2021
06d0570
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
bd53fb5
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
3b930aa
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
e2777fd
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
1fa5b8a
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
c40b58f
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
af97b2c
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
20e56ff
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
359f440
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
57c8b77
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
1415660
Update src/highdicom/sr/value_types.py
hackermd Jul 2, 2021
02d455f
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
70a7912
Use constant for code missing in pydicom
hackermd Jul 2, 2021
bdd39ba
Update src/highdicom/sr/templates.py
hackermd Jul 2, 2021
be5c830
Use constant for code missing in pydicom
hackermd Jul 2, 2021
2d448c2
Fix alternative construction of template instances
hackermd Jul 2, 2021
f615e4e
Merge branch 'feat/sr-content-decoding' of github:mghcomputationalpat…
hackermd Jul 2, 2021
f34cfc1
Make value and unit required for NUM content items
hackermd Jul 2, 2021
19dad8f
Update tests for NUM content items
hackermd Jul 2, 2021
8c96ec9
Fix return value type of properties of NUM content item
hackermd Jul 2, 2021
22a54b7
Add qualifier property to NUM content item
hackermd Jul 2, 2021
005fc3d
Return uids of type UID instead of str
hackermd Jul 2, 2021
e8d50a4
Clarify array dimensions in property docstring
hackermd Jul 2, 2021
b5b3f7e
Simplify reshaping of graphic data array
hackermd Jul 2, 2021
d5438cc
Merge branch 'master' into feat/sr-content-decoding
hackermd Jul 2, 2021
bb9fd8e
Add is_root parameter to alternative constructor
hackermd Jul 2, 2021
e1f7caa
Fix unit tests
hackermd Jul 2, 2021
cad8120
Reuse CodedConcept.from_dataset method
hackermd Jul 2, 2021
9297638
Allow constructor of UID to accept a value
hackermd Jul 2, 2021
979e3ae
Return UID instead of str instances
hackermd Jul 2, 2021
7f9f7f4
Return empty list instead of None
hackermd Jul 2, 2021
ed4383b
Fix filtering logic of template methods
hackermd Jul 2, 2021
9f449dc
Changed Optional[x] -> Union[x, None] in docstrings
CPBridge Jul 4, 2021
fe168eb
Added more examples to seg docstrings
CPBridge Jul 4, 2021
ed62f99
Add segread function
CPBridge Jul 4, 2021
2c44e31
Fix segread paths in docstring examples
CPBridge Jul 4, 2021
2c33af3
Fix exception text formatting
CPBridge Jul 4, 2021
94d7c9d
Ensure anatomic regions and anatomic structures properties return pla…
CPBridge Jul 4, 2021
2ee628b
Refactor detection of measurement groups
hackermd Jul 6, 2021
8ca64c6
Apply suggestions from code review
hackermd Jul 6, 2021
4475f05
Log warning if wrong number of content items
hackermd Jul 6, 2021
ee8baee
Merge branch 'feat/sr-content-decoding' of github:mghcomputationalpat…
hackermd Jul 6, 2021
4824abb
Fix construction of content item from dataset
hackermd Jul 6, 2021
4ff586e
Fix construction of code content item from dataset
hackermd Jul 6, 2021
7c2981f
Add property for temporal range type
hackermd Jul 6, 2021
fc6c95c
Update src/highdicom/sr/templates.py
hackermd Jul 6, 2021
6adbf6a
Use image pixel description instead of pixel data
hackermd Jul 6, 2021
505ea88
Update summary in docstrings
hackermd Jul 8, 2021
9a78df3
Apply suggestions from code review
hackermd Jul 8, 2021
5217b32
Improve docstring of methods
hackermd Jul 8, 2021
0b5ae3d
Move QualitativeEvaluation from content to templates
hackermd Jul 12, 2021
e1c07cd
Fix type of return value of template methods
hackermd Jul 12, 2021
7fbd8d8
Merge pull request #74 from MGHComputationalPathology/feature/seg_dec…
CPBridge Jul 26, 2021
61f68c6
Fix merge conflicts, merge sr decoding into seg decoding
Jul 26, 2021
98beb7e
Allow Concept Name Code Sequence to be absent
hackermd Jul 27, 2021
460bc31
Require Concept Name Code Sequence for CONTAINER
hackermd Jul 27, 2021
89f6354
Let pydicom handle encapsulated frame decoding
hackermd Jul 27, 2021
e9a4189
Fix alternative construction of NumContentItem
hackermd Jul 27, 2021
0688b77
Remove print statement
hackermd Jul 28, 2021
c4b3589
Allow num content items to have empty content seq
hackermd Jul 28, 2021
d2b7370
Avoid unnecessary copying of datasets
hackermd Jul 28, 2021
954a998
Write error traceback to stderr instead of stdout
hackermd Jul 30, 2021
7b25584
Fixed merge conflicts from master (dimension index fixes)
CPBridge Aug 2, 2021
64b7b71
Flake8 fixes
CPBridge Aug 2, 2021
b3316a4
Fix querying for tracking uid and finding site
hackermd Aug 3, 2021
0d30b6f
Merge branch 'dev' of github:mghcomputationalpathology/highdicom into…
hackermd Aug 3, 2021
09490cd
Add unit tests
hackermd Aug 3, 2021
5757d3a
Update requirements
hackermd Aug 3, 2021
fd1384d
docstring corrections
CPBridge Aug 3, 2021
3b7165a
Fix mypy errors
hackermd Aug 3, 2021
effb6f3
Merge branch 'dev' of github:mghcomputationalpathology/highdicom into…
hackermd Aug 3, 2021
c268cda
Fix mypy errors
hackermd Aug 3, 2021
2a52e3f
Merged in ds formatting, fixed conflicts
CPBridge Aug 4, 2021
5bcd770
Fix optionals in docstrings (except sr pakcage), add PatientSexValues…
CPBridge Aug 6, 2021
353f322
Add docstrings for enums
CPBridge Aug 6, 2021
ba0ff48
Implementation of Parametric Map IOD (#89)
hackermd Aug 6, 2021
3826700
Merge branch 'dev' of github:mghcomputationalpathology/highdicom into…
hackermd Aug 6, 2021
0aead48
Completed docstring fixes
CPBridge Aug 7, 2021
d6216c3
Fix linting and tests
CPBridge Aug 7, 2021
033ac3b
Add photometric interpretation link
CPBridge Aug 7, 2021
7093fd6
Resolved merge conflicts
CPBridge Aug 7, 2021
e83c34a
Fix unintended indent
CPBridge Aug 7, 2021
aec828a
Fix typo related to comparison of coded concepts
hackermd Aug 9, 2021
3525c76
Changed PatientSexValues to single letters
Aug 9, 2021
5adf6e3
Fully qualified types in docstring
CPBridge Aug 9, 2021
5e9503b
Apply suggestions from code review
CPBridge Aug 9, 2021
93235e1
Update src/highdicom/sc/sop.py
CPBridge Aug 9, 2021
9a6f15f
Expose enum at package root, update docstrings
Aug 9, 2021
152cb91
Merge branch 'dev' into docs/docstrings_optionals
Aug 9, 2021
22be548
Add flake8 ignore
CPBridge Aug 9, 2021
acc1702
Flake8 fixes
CPBridge Aug 9, 2021
d731825
Merge branch 'dev' into docs/docstrings_optionals
CPBridge Aug 9, 2021
7686be6
Remove sphinx duplication for highdicom.enum
CPBridge Aug 9, 2021
fc2fb3f
Expose ContentItem at level hd.sr, fix all highdicom.sr.value_type re…
CPBridge Aug 9, 2021
f26656b
Alternative SCImage Constructor (#97)
CPBridge Aug 10, 2021
f811fd9
Update src/highdicom/sr/enum.py
CPBridge Aug 10, 2021
338d260
Apply suggestions from code review (single line dosctring summaries)
CPBridge Aug 10, 2021
52aa0b0
More single line docstrings
Aug 10, 2021
54b2948
Resolve conflicts
Aug 10, 2021
328e637
Fix coding style issues in script
hackermd Aug 10, 2021
e03bc74
Rename package map to pm
hackermd Aug 10, 2021
ac711e3
Merge branch 'dev' of github:mghcomputationalpathology/highdicom into…
hackermd Aug 10, 2021
04acd10
Update src/highdicom/sr/templates.py
hackermd Aug 10, 2021
4ac4de8
Apply suggestions from code review
hackermd Aug 10, 2021
79aa9fa
Don't add empty content sequence
hackermd Aug 10, 2021
79dd362
Merge branch 'dev' of github:mghcomputationalpathology/highdicom into…
hackermd Aug 10, 2021
aa031ab
Fix many mypy errors as well as a few bugs
hackermd Aug 12, 2021
0454813
Fix merge conflicts from dev
Aug 12, 2021
6a726f7
Merge pull request #96 from MGHComputationalPathology/docs/docstrings…
CPBridge Aug 12, 2021
b72193d
Fix further typing errors and bugs
hackermd Aug 12, 2021
93af8a9
Fix more typing errors
hackermd Aug 12, 2021
c0f1245
Fix bug
hackermd Aug 12, 2021
62aad0d
Ignore typing error for runtime resolved type
hackermd Aug 12, 2021
bd7cd34
Add type hints to iods and modules files
hackermd Aug 12, 2021
9d510b8
Update version to next release candidate
hackermd Aug 13, 2021
77a5172
Only warn if patient name check fails
hackermd Aug 26, 2021
cc17477
Fix dimension indices of parametric maps
hackermd Aug 27, 2021
da5f253
Minor formatting
hackermd Aug 27, 2021
b1d7314
Update pydicom version
hackermd Aug 27, 2021
08a913b
Use numpy version with support for python 3.6
hackermd Aug 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@ venv.bak/

#IntelliJ
.idea

# Visual Studio Code
.vscode

33 changes: 22 additions & 11 deletions bin/create_iods_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
import sys

from pydicom.datadict import dictionary_keyword, repeater_has_tag
from pydicom.datadict import dictionary_keyword
from pydicom.tag import Tag

logger = logging.getLogger(__name__)
Expand All @@ -28,21 +28,23 @@ def _load_json_from_file(filename):
def _dump_json(data):
return json.dumps(data, indent=4, sort_keys=True)


def _create_sop_to_iods(directory):
filename = os.path.join(directory, 'sops.json')
sops = _load_json_from_file(filename)

filename = os.path.join(directory, 'ciods.json')
ciods = _load_json_from_file(filename)

sop_id_to_ciod_name = {sop['id'] :sop['ciod'] for sop in sops}
ciod_name_to_ciod_id = {ciod['name'] :ciod['id'] for ciod in ciods}
sop_id_to_ciod_name = {sop['id']: sop['ciod'] for sop in sops}
ciod_name_to_ciod_id = {ciod['name']: ciod['id'] for ciod in ciods}
sop_id_to_ciod_id = {
sop_id: ciod_name_to_ciod_id[sop_id_to_ciod_name[sop_id]]
for sop_id in sop_id_to_ciod_name
}
return sop_id_to_ciod_id


def _create_iods(directory):
filename = os.path.join(directory, 'ciod_to_modules.json')
ciod_to_modules = _load_json_from_file(filename)
Expand Down Expand Up @@ -110,31 +112,40 @@ def _create_modules(directory):

iods = _create_iods(directory)
iods_docstr = '\n'.join([
'"""DICOM information object definitions (IODs)',
'"""DICOM Information Object Definitions (IODs)',
f'auto-generated on {current_date} at {current_time}.',
'"""'
'"""',
'from typing import Dict, List'
])
sop_to_iods = _create_sop_to_iods(directory)
iods_filename = os.path.join(PGK_PATH, '_iods.py')
with open(iods_filename, 'w') as fp:
fp.write(iods_docstr)
fp.write('\n\n')
iods_formatted = _dump_json(iods).replace('null', 'None')
fp.write('IOD_MODULE_MAP = {}'.format(iods_formatted))
fp.write(
'IOD_MODULE_MAP: Dict[str, List[Dict[str, str]]] = {}'.format(
iods_formatted
)
)
fp.write('\n\n')
sop_to_iods_formatted = _dump_json(sop_to_iods).replace('null', 'None')
fp.write('SOP_CLASS_UID_IOD_KEY_MAP = {}'.format(sop_to_iods_formatted))


modules = _create_modules(directory)
modules_docstr = (
modules_docstr = '\n'.join([
'"""DICOM modules'
f'auto-generated on {current_date} at {current_time}.'
'"""'
)
'"""',
'from typing import Dict, List, Sequence, Union'
])
modules_filename = os.path.join(PGK_PATH, '_modules.py')
with open(modules_filename, 'w') as fp:
fp.write(modules_docstr)
fp.write('\n\n')
modules_formatted = _dump_json(modules).replace('null', 'None')
fp.write('MODULE_ATTRIBUTE_MAP = {}'.format(modules_formatted))
fp.write(
'MODULE_ATTRIBUTE_MAP: Dict[str, List[Dict[str, Union[str, Sequence[str]]]]] = {}'.format( # noqa: E501
modules_formatted
)
)
29 changes: 29 additions & 0 deletions data/test_files/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Test Files

These files are used for automated tests of the highdicom library. Note that
many more test files are available as part of the pydicom package.

### Images
* `ct_image.dcm` - A small CT image.
* `sm_image.dcm` - A slide microscopy image.

### Segmentation Images
* `seg_image_ct_binary.dcm` - Segmentation image of `BINARY` type derived
from the series of small CT images in the pydicom test files
(`dicomdirtests/77654033/CT2/*`) using the highdicom library.
* `seg_image_ct_binary_overlap.dcm` - Segmentation image of `BINARY` type derived
from the series of small CT images in the pydicom test files
(`dicomdirtests/77654033/CT2/*`) using the highdicom library. This example
contains 2 overlapping segments.
* `seg_image_ct_binary_fractional.dcm` - Segmentation image of `FRACTIONAL`
type but with binary values (i.e. only 0.0 and 1.0) derived from the series
of small CT images in the pydicom test files (`dicomdirtests/77654033/CT2/*`)
using the highdicom library.
* `seg_image_ct_true_fractional.dcm` - Segmentation image of `FRACTIONAL`
type with true fractional values derived from the series
of small CT images in the pydicom test files (`dicomdirtests/77654033/CT2/*`)
using the highdicom library.

### Structured Report Documents
* `sr_document.dcm` - A simple SR document following TID 1500 describing
measurements of a CT image.
Binary file added data/test_files/seg_image_ct_binary.dcm
Binary file not shown.
Binary file not shown.
Binary file added data/test_files/seg_image_ct_binary_overlap.dcm
Binary file not shown.
Binary file added data/test_files/seg_image_ct_true_fractional.dcm
Binary file not shown.
Binary file modified data/test_files/sr_document.dcm
Binary file not shown.
9 changes: 0 additions & 9 deletions docs/package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ highdicom.color module
:undoc-members:
:show-inheritance:

highdicom.enum module
+++++++++++++++++++++

.. automodule:: highdicom.enum
:members:
:special-members: __call__
:undoc-members:
:show-inheritance:

highdicom.frame module
++++++++++++++++++++++

Expand Down
6 changes: 3 additions & 3 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mypy==0.800
pytest==6.2.2
pytest-cov==2.11.1
mypy==0.910
pytest==6.2.4
pytest-cov==2.12.1
pytest-flake8==1.0.7
git+https://github.com/numpy/numpy-stubs@201115370a0c011d879d69068b60509accc7f750#egg=numpy-stubs
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
package_dir={'': 'src'},
python_requires='>=3.6',
install_requires=[
'pydicom>=1.4,!=2.1.0,!=2.1.1',
'pydicom>=2.2.1',
'numpy>=1.19',
'pillow>=6.0'
'pillow>=8.3'
],
)
46 changes: 37 additions & 9 deletions src/highdicom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from highdicom import legacy
from highdicom import pm
from highdicom import sc
from highdicom import seg
from highdicom import sr
Expand All @@ -15,6 +16,20 @@
SpecimenSampling,
SpecimenStaining,
)
from highdicom.enum import (
CoordinateSystemNames,
ContentQualificationValues,
DimensionOrganizationTypeValues,
PatientSexValues,
PhotometricInterpretationValues,
PlanarConfigurationValues,
PixelRepresentationValues,
LateralityValues,
AnatomicalOrientationTypeValues,
PatientOrientationValuesBiped,
PatientOrientationValuesQuadruped,
UniversalEntityIDTypeValues
)
from highdicom import frame
from highdicom import io
from highdicom import spatial
Expand All @@ -23,23 +38,36 @@

__all__ = [
'AlgorithmIdentificationSequence',
'color',
'frame',
'io',
'AnatomicalOrientationTypeValues',
'ContentQualificationValues',
'CoordinateSystemNames',
'DimensionOrganizationTypeValues',
'IssuerOfIdentifier',
'legacy',
'LateralityValues',
'PatientOrientationValuesBiped',
'PatientOrientationValuesQuadruped',
'PatientSexValues',
'PhotometricInterpretationValues',
'PixelMeasuresSequence',
'PlanePositionSequence',
'PixelRepresentationValues',
'PlanarConfigurationValues',
'PlaneOrientationSequence',
'sc',
'seg',
'spatial',
'PlanePositionSequence',
'SpecimenCollection',
'SpecimenDescription',
'SpecimenPreparationStep',
'SpecimenSampling',
'SpecimenStaining',
'sr',
'UID',
'UniversalEntityIDTypeValues',
'color',
'frame',
'io',
'legacy',
'pm',
'sc',
'seg',
'spatial',
'sr',
'utils',
]
Loading