コード例 #1
0
ファイル: datadict.py プロジェクト: glemaitre/pydicom
def repeater_has_keyword(keyword):
    """Return True if the DICOM repeaters element
       exists with `keyword`."""
    repeater_keywords = [val[4] for val in RepeatersDictionary.values()]
    return (keyword in repeater_keywords)
コード例 #2
0
ファイル: datadict.py プロジェクト: link-zju/pydicom
def repeater_has_keyword(keyword):
    """Return True if the DICOM repeaters element
       exists with `keyword`."""
    repeater_keywords = [val[4] for val in RepeatersDictionary.values()]
    return (keyword in repeater_keywords)
コード例 #3
0
    Parameters
    ----------
    tag : int
        The tag to check.

    Returns
    -------
    bool
        ``True`` if the tag is a non-private element tag present in the
        official DICOM repeaters data dictionary, ``False`` otherwise.
    """
    return (mask_match(tag) in RepeatersDictionary)


REPEATER_KEYWORDS = [val[4] for val in RepeatersDictionary.values()]


def repeater_has_keyword(keyword):
    """Return ``True`` if `keyword` is in the DICOM repeaters data dictionary.

    Parameters
    ----------
    keyword : str
        The keyword to check.

    Returns
    -------
    bool
        ``True`` if the keyword corresponding to an element present in the
        official DICOM repeaters data dictionary, ``False`` otherwise.