Skip to content

Commit

Permalink
Refactor: DICOM tags module
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Mar 29, 2024
1 parent 0b513e8 commit 154daad
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
24 changes: 24 additions & 0 deletions src/nbiatoolkit/dicomtags/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from .tags import (
convert_element_to_int,
convert_int_to_element,
LOOKUP_TAG,
element_VR_lookup,
getSeriesModality,
)

from .tags import (
subsetSeriesTags,
getReferencedFrameOfReferenceSequence,
getReferencedSeriesUIDS,
)

__all__ = [
"convert_element_to_int",
"convert_int_to_element",
"LOOKUP_TAG",
"element_VR_lookup",
"getSeriesModality",
"subsetSeriesTags",
"getReferencedFrameOfReferenceSequence",
"getReferencedSeriesUIDS",
]
3 changes: 1 addition & 2 deletions src/nbiatoolkit/dicomtags/tags.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from pydicom.datadict import dictionary_VR
from pydicom.datadict import tag_for_keyword
from pydicom._dicom_dict import DicomDictionary
import pandas as pd
from typing import Any, Union, List
from typing import List


def convert_element_to_int(element_str: str) -> int:
Expand Down

0 comments on commit 154daad

Please sign in to comment.