/usr/lib/python2.7/dist-packages/dicom/test/_write_stds.py is in python-dicom 0.9.9-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | # _write_stds.py
"""Snippets for what a particular dataset (including nested sequences)
should look like after writing in different expl/impl Vr and endian combos,
as well as undefined length sequences and items
"""
# Implicit VR, little endian, SQ's with defined lengths
impl_LE_deflen_std_hex = (
"10 00 10 00 " # (0010, 0010) Patient's Name
"0c 00 00 00 " # length 12
"4e 61 6d 65 5e 50 61 74 69 65 6e 74 " # "Name^Patient"
"06 30 39 00 " # (3006, 0039) ROI Contour Sequence
"5a 00 00 00 " # length 90
"fe ff 00 e0 " # (fffe, e000) Item Tag
"52 00 00 00 " # length 82
"06 30 40 00 " # (3006, 0040) Contour Sequence
"4a 00 00 00 " # length 74
"fe ff 00 e0 " # (fffe, e000) Item Tag
"1a 00 00 00 " # length 26
"06 30 48 00 " # (3006, 0048) Contour Number
"02 00 00 00 " # length 2
"31 20 " # "1 "
"06 30 50 00 " # (3006, 0050) Contour Data
"08 00 00 00 " # length 8
"32 5c 34 5c 38 5c 31 36 " # "2\4\8\16"
"fe ff 00 e0 " # (fffe, e000) Item Tag
"20 00 00 00 " # length 32
"06 30 48 00 " # (3006, 0048) Contour Number
"02 00 00 00 " # length 2
"32 20 " # "2 "
"06 30 50 00 " # (3006, 0050) Contour Data
"0e 00 00 00 " # length 14
"33 32 5c 36 34 5c 31 32 38 5c 31 39 36 20 "
# "32\64\128\196 "
)
# Implicit VR, big endian, SQ's with defined lengths
# Realized after coding this that there is no Impl VR big endian in DICOM std;
# however, it seems to exist as a GE private transfer syntax.
# Will leave this here for now.
impl_BE_deflen_std_hex = (
"00 10 00 10 " # (0010, 0010) Patient's Name
"00 00 00 0c " # length 12
"4e 61 6d 65 5e 50 61 74 69 65 6e 74 " # "Name^Patient"
"30 06 00 39 " # (3006, 0039) ROI Contour Sequence
"00 00 00 5a " # length 90
"ff fe e0 00 " # (fffe, e000) Item Tag
"00 00 00 52 " # length 82
"30 06 00 40 " # (3006, 0040) Contour Sequence
"00 00 00 4a " # length 74
"ff fe e0 00 " # (fffe, e000) Item Tag
"00 00 00 1a " # length 26
"30 06 00 48 " # (3006, 0048) Contour Number
"00 00 00 02 " # length 2
"31 20 " # "1 "
"30 06 00 50 " # (3006, 0050) Contour Data
"00 00 00 08 " # length 8
"32 5c 34 5c 38 5c 31 36 " # "2\4\8\16"
"ff fe e0 00 " # (fffe, e000) Item Tag
"20 00 00 00 " # length 32
"30 06 00 48 " # (3006, 0048) Contour Number
"00 00 00 02 " # length 2
"32 20 " # "2 "
"30 06 00 50 " # (3006, 0050) Contour Data
"00 00 00 0e " # length 14
"33 32 5c 36 34 5c 31 32 38 5c 31 39 36 20 "
# "32\64\128\196 "
)
|