Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·a | 1 | ·a00fec5644f3288f2a3ed1f82081ad49·965712·doc·optional·python-pydicom-doc_2.4.3-2_all.deb |
2 | ·42afc9c9828e12132c03052800d20d1e·1122044·python·optional·python3-pydicom_2.4.3-2_all.deb | 2 | ·42afc9c9828e12132c03052800d20d1e·1122044·python·optional·python3-pydicom_2.4.3-2_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2025-04-14·21:30:28.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2025-04-14·21:30:28.000000·debian-binary |
2 | -rw-r--r--···0········0········0····3034 | 2 | -rw-r--r--···0········0········0····30344·2025-04-14·21:30:28.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···935 | 3 | -rw-r--r--···0········0········0···935176·2025-04-14·21:30:28.000000·data.tar.xz |
Offset 1194, 15 lines modified | Offset 1194, 15 lines modified | ||
1194 | -rw-r--r--···0·root·········(0)·root·········(0)····30346·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.0.html | 1194 | -rw-r--r--···0·root·········(0)·root·········(0)····30346·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.0.html |
1195 | -rw-r--r--···0·root·········(0)·root·········(0)·····6920·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.1.html | 1195 | -rw-r--r--···0·root·········(0)·root·········(0)·····6920·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.1.html |
1196 | -rw-r--r--···0·root·········(0)·root·········(0)····24926·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.2.0.html | 1196 | -rw-r--r--···0·root·········(0)·root·········(0)····24926·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.2.0.html |
1197 | -rw-r--r--···0·root·········(0)·root·········(0)····13994·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.3.0.html | 1197 | -rw-r--r--···0·root·········(0)·root·········(0)····13994·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.3.0.html |
1198 | -rw-r--r--···0·root·········(0)·root·········(0)····12163·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.0.html | 1198 | -rw-r--r--···0·root·········(0)·root·········(0)····12163·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.0.html |
1199 | -rw-r--r--···0·root·········(0)·root·········(0)·····6355·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.3.html | 1199 | -rw-r--r--···0·root·········(0)·root·········(0)·····6355·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.3.html |
1200 | -rw-r--r--···0·root·········(0)·root·········(0)·····6267·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/search.html | 1200 | -rw-r--r--···0·root·········(0)·root·········(0)·····6267·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/search.html |
1201 | -rw-r--r--···0·root·········(0)·root·········(0)···42963 | 1201 | -rw-r--r--···0·root·········(0)·root·········(0)···429634·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/searchindex.js |
1202 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/ | 1202 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/ |
1203 | -rw-r--r--···0·root·········(0)·root·········(0)·····8599·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing.html | 1203 | -rw-r--r--···0·root·········(0)·root·········(0)·····8599·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing.html |
1204 | -rw-r--r--···0·root·········(0)·root·········(0)····28358·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_code.html | 1204 | -rw-r--r--···0·root·········(0)·root·········(0)····28358·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_code.html |
1205 | -rw-r--r--···0·root·········(0)·root·········(0)····26245·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_docs.html | 1205 | -rw-r--r--···0·root·········(0)·root·········(0)····26245·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_docs.html |
1206 | -rw-r--r--···0·root·········(0)·root·········(0)····72087·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dataset_basics.html | 1206 | -rw-r--r--···0·root·········(0)·root·········(0)····72087·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dataset_basics.html |
1207 | -rw-r--r--···0·root·········(0)·root·········(0)····21951·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dicom_json.html | 1207 | -rw-r--r--···0·root·········(0)·root·········(0)····21951·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dicom_json.html |
1208 | -rw-r--r--···0·root·········(0)·root·········(0)····63371·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/filesets.html | 1208 | -rw-r--r--···0·root·········(0)·root·········(0)····63371·2025-04-14·21:30:28.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/filesets.html |
Offset 83, 15 lines modified | Offset 83, 15 lines modified | ||
83 | ····fig.tight_layout(pad=1) | 83 | ····fig.tight_layout(pad=1) |
84 | ····plt.show() | 84 | ····plt.show() |
85 | ..·rst-class::·sphx-glr-timing | 85 | ..·rst-class::·sphx-glr-timing |
86 | ···**Total·running·time·of·the·script:**·(0·minutes·0.2 | 86 | ···**Total·running·time·of·the·script:**·(0·minutes·0.236·seconds) |
87 | ..·_sphx_glr_download_auto_examples_image_processing_plot_waveforms.py: | 87 | ..·_sphx_glr_download_auto_examples_image_processing_plot_waveforms.py: |
88 | ..·only::·html | 88 | ..·only::·html |
89 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 89 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | ····#·plot·the·image·using·matplotlib | 91 | ····#·plot·the·image·using·matplotlib |
92 | ····plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) | 92 | ····plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) |
93 | ····plt.show() | 93 | ····plt.show() |
94 | ..·rst-class::·sphx-glr-timing | 94 | ..·rst-class::·sphx-glr-timing |
95 | ···**Total·running·time·of·the·script:**·(0·minutes·0.10 | 95 | ···**Total·running·time·of·the·script:**·(0·minutes·0.108·seconds) |
96 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: | 96 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: |
97 | ..·only::·html | 97 | ..·only::·html |
98 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 98 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 170, 15 lines modified | Offset 170, 15 lines modified | ||
170 | ····················#·Optionally·read·the·corresponding·SOP·Instance | 170 | ····················#·Optionally·read·the·corresponding·SOP·Instance |
171 | ····················#·instance·=·dcmread(Path(root_dir)·/·p) | 171 | ····················#·instance·=·dcmread(Path(root_dir)·/·p) |
172 | ····················#·print(instance.PatientName) | 172 | ····················#·print(instance.PatientName) |
173 | ..·rst-class::·sphx-glr-timing | 173 | ..·rst-class::·sphx-glr-timing |
174 | ···**Total·running·time·of·the·script:**·(0·minutes·0.01 | 174 | ···**Total·running·time·of·the·script:**·(0·minutes·0.012·seconds) |
175 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom_directory.py: | 175 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom_directory.py: |
176 | ..·only::·html | 176 | ..·only::·html |
177 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 177 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 99, 15 lines modified | Offset 99, 15 lines modified | ||
99 | ········Modality=MR·-·3·SOP·Instances | 99 | ········Modality=MR·-·3·SOP·Instances |
100 | ········Modality=MR·-·7·SOP·Instances | 100 | ········Modality=MR·-·7·SOP·Instances |
101 | ····Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 101 | ····Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
102 | ····Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading | 102 | ····Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading |
103 | ····Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests | 103 | ····Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests |
104 | ····File-set·copied·to·/tmp/tmp | 104 | ····File-set·copied·to·/tmp/tmpk6l7crae·and·contains·the·following·files: |
105 | ······DICOMDIR | 105 | ······DICOMDIR |
106 | ······PT000000/ST000000/SE000000/IM000000 | 106 | ······PT000000/ST000000/SE000000/IM000000 |
107 | ······PT000000/ST000000/SE000001/IM000000 | 107 | ······PT000000/ST000000/SE000001/IM000000 |
108 | ······PT000000/ST000000/SE000002/IM000000 | 108 | ······PT000000/ST000000/SE000002/IM000000 |
109 | ······PT000000/ST000001/SE000000/IM000000 | 109 | ······PT000000/ST000001/SE000000/IM000000 |
110 | ······PT000000/ST000001/SE000000/IM000001 | 110 | ······PT000000/ST000001/SE000000/IM000001 |
111 | ······PT000000/ST000001/SE000000/IM000002 | 111 | ······PT000000/ST000001/SE000000/IM000002 |
Offset 263, 15 lines modified | Offset 263, 15 lines modified | ||
263 | ····for·p·in·sorted(root.glob('**/*')): | 263 | ····for·p·in·sorted(root.glob('**/*')): |
264 | ········if·p.is_file(): | 264 | ········if·p.is_file(): |
265 | ············print(f"··{p.relative_to(root)}") | 265 | ············print(f"··{p.relative_to(root)}") |
266 | ..·rst-class::·sphx-glr-timing | 266 | ..·rst-class::·sphx-glr-timing |
267 | ···**Total·running·time·of·the·script:**·(0·minutes·0.2 | 267 | ···**Total·running·time·of·the·script:**·(0·minutes·0.229·seconds) |
268 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_fileset.py: | 268 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_fileset.py: |
269 | ..·only::·html | 269 | ..·only::·html |
270 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 270 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 33, 40 lines modified | Offset 33, 40 lines modified | ||
33 | ..·rst-class::·sphx-glr-script-out | 33 | ..·rst-class::·sphx-glr-script-out |
34 | ·..·code-block::·none | 34 | ·..·code-block::·none |
35 | ····Setting·file·meta·information... | 35 | ····Setting·file·meta·information... |
36 | ····Setting·dataset·values... | 36 | ····Setting·dataset·values... |
37 | ····Writing·test·file·/tmp/tmp | 37 | ····Writing·test·file·/tmp/tmp81z9xr1t.dcm |
38 | ····File·saved. | 38 | ····File·saved. |
39 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 39 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpa4xbw_5u.dcm |
40 | ····Load·file·/tmp/tmp | 40 | ····Load·file·/tmp/tmp81z9xr1t.dcm·... |
41 | ····Dataset.file_meta·------------------------------- | 41 | ····Dataset.file_meta·------------------------------- |
42 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 42 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
43 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 43 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
44 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 44 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
45 | ····------------------------------------------------- | 45 | ····------------------------------------------------- |
46 | ····(0008,·0023)·Content·Date························DA:·'202 | 46 | ····(0008,·0023)·Content·Date························DA:·'20250607' |
47 | ····(0008,·0033)·Content·Time························TM:·'0 | 47 | ····(0008,·0033)·Content·Time························TM:·'033731.145431' |
48 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 48 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
49 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 49 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
50 | ····Remove·file·/tmp/tmp | 50 | ····Remove·file·/tmp/tmp81z9xr1t.dcm·... |
51 | ····Load·file·/tmp/tmp | 51 | ····Load·file·/tmp/tmpa4xbw_5u.dcm·... |
52 | ····Dataset.file_meta·------------------------------- | 52 | ····Dataset.file_meta·------------------------------- |
53 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 53 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
54 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 54 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
55 | ····(0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 55 | ····(0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
56 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 56 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
57 | ····------------------------------------------------- | 57 | ····------------------------------------------------- |
58 | ····(0008,·0023)·Content·Date························DA:·'202 | 58 | ····(0008,·0023)·Content·Date························DA:·'20250607' |
59 | ····(0008,·0033)·Content·Time························TM:·'0 | 59 | ····(0008,·0033)·Content·Time························TM:·'033731.145431' |
60 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 60 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
61 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 61 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
62 | ····Remove·file·/tmp/tmp | 62 | ····Remove·file·/tmp/tmpa4xbw_5u.dcm·... |
63 | | | 63 | | |
Offset 140, 15 lines modified | Offset 140, 15 lines modified | ||
140 | ········#·remove·the·created·file | 140 | ········#·remove·the·created·file |
141 | ········print('Remove·file·{}·...'.format(filename)) | 141 | ········print('Remove·file·{}·...'.format(filename)) |
142 | ········os.remove(filename) | 142 | ········os.remove(filename) |
143 | ..·rst-class::·sphx-glr-timing | 143 | ..·rst-class::·sphx-glr-timing |
144 | ···**Total·running·time·of·the·script:**·(0·minutes·0.00 | 144 | ···**Total·running·time·of·the·script:**·(0·minutes·0.005·seconds) |
145 | ..·_sphx_glr_download_auto_examples_input_output_plot_write_dicom.py: | 145 | ..·_sphx_glr_download_auto_examples_input_output_plot_write_dicom.py: |
146 | ..·only::·html | 146 | ..·only::·html |
147 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 147 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 223, 15 lines modified | Offset 223, 15 lines modified | ||
223 | ..·rst-class::·sphx-glr-timing | 223 | ..·rst-class::·sphx-glr-timing |
224 | ···**Total·running·time·of·the·script:**·(0·minutes·0.0 | 224 | ···**Total·running·time·of·the·script:**·(0·minutes·0.009·seconds) |
225 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_anonymize.py: | 225 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_anonymize.py: |
226 | ..·only::·html | 226 | ..·only::·html |
227 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 227 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 161, 15 lines modified | Offset 161, 15 lines modified | ||
161 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">x_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> | 161 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">x_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> |
162 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">y_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> | 162 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">y_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> |
163 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">tight_layout</span><span·class="p">(</span><span·class="n">pad</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> | 163 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">tight_layout</span><span·class="p">(</span><span·class="n">pad</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> |
164 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 164 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
165 | </pre></div> | 165 | </pre></div> |
166 | </div> | 166 | </div> |
167 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.2 | 167 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.236·seconds)</p> |
168 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-waveforms-py"> | 168 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-waveforms-py"> |
169 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 169 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
170 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/e5a4893fc2534cd7549d6717555a1054/plot_waveforms.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_waveforms.ipynb</span></code></a></p> | 170 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/e5a4893fc2534cd7549d6717555a1054/plot_waveforms.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_waveforms.ipynb</span></code></a></p> |
171 | </div> | 171 | </div> |
172 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 172 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
173 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/37526ba18181b1083cb01706ece1f85f/plot_waveforms.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_waveforms.py</span></code></a></p> | 173 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/37526ba18181b1083cb01706ece1f85f/plot_waveforms.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_waveforms.py</span></code></a></p> |
174 | </div> | 174 | </div> |
Offset 73, 15 lines modified | Offset 73, 15 lines modified | ||
73 | ····ax.plot(x,·arr[...,·ch_idx]) | 73 | ····ax.plot(x,·arr[...,·ch_idx]) |
74 | ····ax.set_title(f"{mplx_label}:·{ch_source}") | 74 | ····ax.set_title(f"{mplx_label}:·{ch_source}") |
75 | ····ax.set_xlabel(f"({x_units})") | 75 | ····ax.set_xlabel(f"({x_units})") |
76 | ····ax.set_ylabel(f"({y_units})") | 76 | ····ax.set_ylabel(f"({y_units})") |
77 | fig.tight_layout(pad=1) | 77 | fig.tight_layout(pad=1) |
78 | plt.show() | 78 | plt.show() |
79 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.2 | 79 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.236·seconds) |
80 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 80 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8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x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 83 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
84 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 84 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
85 | =============================================================================== | 85 | =============================================================================== |
86 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. | 86 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. |
Offset 167, 15 lines modified | Offset 167, 15 lines modified | ||
167 | <span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"Slice·location...:·</span><span·class="si">{</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s1">'SliceLocation'</span><span·class="p">,</span><span·class="w">·</span><span·class="s1">'(missing)'</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> | 167 | <span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"Slice·location...:·</span><span·class="si">{</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s1">'SliceLocation'</span><span·class="p">,</span><span·class="w">·</span><span·class="s1">'(missing)'</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> |
168 | <span·class="c1">#·plot·the·image·using·matplotlib</span> | 168 | <span·class="c1">#·plot·the·image·using·matplotlib</span> |
169 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">pixel_array</span><span·class="p">,</span>·<span·class="n">cmap</span><span·class="o">=</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">cm</span><span·class="o">.</span><span·class="n">gray</span><span·class="p">)</span> | 169 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">pixel_array</span><span·class="p">,</span>·<span·class="n">cmap</span><span·class="o">=</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">cm</span><span·class="o">.</span><span·class="n">gray</span><span·class="p">)</span> |
170 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 170 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
171 | </pre></div> | 171 | </pre></div> |
172 | </div> | 172 | </div> |
173 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.10 | 173 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.108·seconds)</p> |
174 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> | 174 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> |
175 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 175 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/596a13aa12214abf0489d3740bbada1f/plot_read_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom.ipynb</span></code></a></p> | 176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/596a13aa12214abf0489d3740bbada1f/plot_read_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom.ipynb</span></code></a></p> |
177 | </div> | 177 | </div> |
178 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 178 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
179 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/5e2195081f5a423e984744f70649688b/plot_read_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom.py</span></code></a></p> | 179 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/5e2195081f5a423e984744f70649688b/plot_read_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom.py</span></code></a></p> |
180 | </div> | 180 | </div> |
Offset 76, 15 lines modified | Offset 76, 15 lines modified | ||
76 | #·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing | 76 | #·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing |
77 | print(f"Slice·location...:·{ds.get('SliceLocation',·'(missing)')}") | 77 | print(f"Slice·location...:·{ds.get('SliceLocation',·'(missing)')}") |
78 | #·plot·the·image·using·matplotlib | 78 | #·plot·the·image·using·matplotlib |
79 | plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) | 79 | plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) |
80 | plt.show() | 80 | plt.show() |
81 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.10 | 81 | T\x8To\x8ot\x8ta\x8al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_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8p_\x8y |
84 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8z_\x8i_\x8p_\x8p_\x8e_\x8d_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8z_\x8i_\x8p | 84 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8z_\x8i_\x8p_\x8p_\x8e_\x8d_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8z_\x8i_\x8p |
85 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 85 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
86 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 86 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
87 | =============================================================================== | 87 | =============================================================================== |
88 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. | 88 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. |
Offset 252, 15 lines modified | Offset 252, 15 lines modified | ||
252 | ················<span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"</span><span·class="si">{</span><span·class="s1">'··'</span><span·class="w">·</span><span·class="o">*</span><span·class="w">·</span><span·class="mi">3</span><span·class="si">}</span><span·class="s2">IMAGE:·Path=</span><span·class="si">{</span><span·class="n">os</span><span·class="o">.</span><span·class="n">fspath</span><span·class="p">(</span><span·class="n">p</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> | 252 | ················<span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"</span><span·class="si">{</span><span·class="s1">'··'</span><span·class="w">·</span><span·class="o">*</span><span·class="w">·</span><span·class="mi">3</span><span·class="si">}</span><span·class="s2">IMAGE:·Path=</span><span·class="si">{</span><span·class="n">os</span><span·class="o">.</span><span·class="n">fspath</span><span·class="p">(</span><span·class="n">p</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> |
253 | ················<span·class="c1">#·Optionally·read·the·corresponding·SOP·Instance</span> | 253 | ················<span·class="c1">#·Optionally·read·the·corresponding·SOP·Instance</span> |
254 | ················<span·class="c1">#·instance·=·dcmread(Path(root_dir)·/·p)</span> | 254 | ················<span·class="c1">#·instance·=·dcmread(Path(root_dir)·/·p)</span> |
255 | ················<span·class="c1">#·print(instance.PatientName)</span> | 255 | ················<span·class="c1">#·print(instance.PatientName)</span> |
256 | </pre></div> | 256 | </pre></div> |
257 | </div> | 257 | </div> |
258 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.01 | 258 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.012·seconds)</p> |
259 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-directory-py"> | 259 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-directory-py"> |
260 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 260 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
261 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/aac78b7419d1af47f86d51ba12974948/plot_read_dicom_directory.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom_directory.ipynb</span></code></a></p> | 261 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/aac78b7419d1af47f86d51ba12974948/plot_read_dicom_directory.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom_directory.ipynb</span></code></a></p> |
262 | </div> | 262 | </div> |
263 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 263 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
264 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/33b840573239ff057316729322f32358/plot_read_dicom_directory.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom_directory.py</span></code></a></p> | 264 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/33b840573239ff057316729322f32358/plot_read_dicom_directory.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom_directory.py</span></code></a></p> |
265 | </div> | 265 | </div> |
Offset 172, 15 lines modified | Offset 172, 15 lines modified | ||
172 | ············#·List·the·instance·file·paths | 172 | ············#·List·the·instance·file·paths |
173 | ············for·p·in·paths: | 173 | ············for·p·in·paths: |
174 | ················print(f"{'··'·*·3}IMAGE:·Path={os.fspath(p)}") | 174 | ················print(f"{'··'·*·3}IMAGE:·Path={os.fspath(p)}") |
175 | ················#·Optionally·read·the·corresponding·SOP·Instance | 175 | ················#·Optionally·read·the·corresponding·SOP·Instance |
176 | ················#·instance·=·dcmread(Path(root_dir)·/·p) | 176 | ················#·instance·=·dcmread(Path(root_dir)·/·p) |
177 | ················#·print(instance.PatientName) | 177 | ················#·print(instance.PatientName) |
178 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.01 | 178 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.012·seconds) |
179 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 179 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\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\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8__\x8d_\x8i_\x8r_\x8e_\x8c_\x8t_\x8o_\x8r_\x8y_\x8._\x8z_\x8i_\x8p |
182 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 182 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
183 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 183 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
184 | =============================================================================== | 184 | =============================================================================== |
185 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. | 185 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. |
Offset 189, 15 lines modified | Offset 189, 15 lines modified | ||
189 | ····Modality=MR·-·3·SOP·Instances | 189 | ····Modality=MR·-·3·SOP·Instances |
190 | ····Modality=MR·-·7·SOP·Instances | 190 | ····Modality=MR·-·7·SOP·Instances |
191 | Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 191 | Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
192 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading | 192 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading |
193 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests | 193 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests |
194 | File-set·copied·to·/tmp/tmp | 194 | File-set·copied·to·/tmp/tmpk6l7crae·and·contains·the·following·files: |
195 | ··DICOMDIR | 195 | ··DICOMDIR |
196 | ··PT000000/ST000000/SE000000/IM000000 | 196 | ··PT000000/ST000000/SE000000/IM000000 |
197 | ··PT000000/ST000000/SE000001/IM000000 | 197 | ··PT000000/ST000000/SE000001/IM000000 |
198 | ··PT000000/ST000000/SE000002/IM000000 | 198 | ··PT000000/ST000000/SE000002/IM000000 |
199 | ··PT000000/ST000001/SE000000/IM000000 | 199 | ··PT000000/ST000001/SE000000/IM000000 |
200 | ··PT000000/ST000001/SE000000/IM000001 | 200 | ··PT000000/ST000001/SE000000/IM000001 |
201 | ··PT000000/ST000001/SE000000/IM000002 | 201 | ··PT000000/ST000001/SE000000/IM000002 |
Offset 345, 15 lines modified | Offset 345, 15 lines modified | ||
345 | <span·class="c1">#·Note·how·the·original·File-set·directory·layout·has·been·changed·to</span> | 345 | <span·class="c1">#·Note·how·the·original·File-set·directory·layout·has·been·changed·to</span> |
346 | <span·class="c1">#···the·structure·used·by·pydicom</span> | 346 | <span·class="c1">#···the·structure·used·by·pydicom</span> |
347 | <span·class="k">for</span>·<span·class="n">p</span>·<span·class="ow">in</span>·<span·class="nb">sorted</span><span·class="p">(</span><span·class="n">root</span><span·class="o">.</span><span·class="n">glob</span><span·class="p">(</span><span·class="s1">'**/*'</span><span·class="p">)):</span> | 347 | <span·class="k">for</span>·<span·class="n">p</span>·<span·class="ow">in</span>·<span·class="nb">sorted</span><span·class="p">(</span><span·class="n">root</span><span·class="o">.</span><span·class="n">glob</span><span·class="p">(</span><span·class="s1">'**/*'</span><span·class="p">)):</span> |
348 | ····<span·class="k">if</span>·<span·class="n">p</span><span·class="o">.</span><span·class="n">is_file</span><span·class="p">():</span> | 348 | ····<span·class="k">if</span>·<span·class="n">p</span><span·class="o">.</span><span·class="n">is_file</span><span·class="p">():</span> |
349 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"··</span><span·class="si">{</span><span·class="n">p</span><span·class="o">.</span><span·class="n">relative_to</span><span·class="p">(</span><span·class="n">root</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> | 349 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"··</span><span·class="si">{</span><span·class="n">p</span><span·class="o">.</span><span·class="n">relative_to</span><span·class="p">(</span><span·class="n">root</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> |
350 | </pre></div> | 350 | </pre></div> |
351 | </div> | 351 | </div> |
352 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.2 | 352 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.229·seconds)</p> |
353 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-fileset-py"> | 353 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-fileset-py"> |
354 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 354 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
355 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/047cd4e7536a54c1a4581d1eeeec2a85/plot_read_fileset.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_fileset.ipynb</span></code></a></p> | 355 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/047cd4e7536a54c1a4581d1eeeec2a85/plot_read_fileset.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_fileset.ipynb</span></code></a></p> |
356 | </div> | 356 | </div> |
357 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 357 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
358 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/d9277387ad11dc0847c817c16906fc77/plot_read_fileset.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_fileset.py</span></code></a></p> | 358 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/d9277387ad11dc0847c817c16906fc77/plot_read_fileset.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_fileset.py</span></code></a></p> |
359 | </div> | 359 | </div> |
Offset 108, 15 lines modified | Offset 108, 15 lines modified | ||
108 | Found·7·instances·for | 108 | Found·7·instances·for |
109 | SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 109 | SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
110 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading | 110 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading |
111 | the·stored·instances·and·3·instances·with·loading | 111 | the·stored·instances·and·3·instances·with·loading |
112 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/ | 112 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/ |
113 | test_files/dicomdirtests | 113 | test_files/dicomdirtests |
114 | File-set·copied·to·/tmp/tmp | 114 | File-set·copied·to·/tmp/tmpk6l7crae·and·contains·the·following·files: |
115 | ··DICOMDIR | 115 | ··DICOMDIR |
116 | ··PT000000/ST000000/SE000000/IM000000 | 116 | ··PT000000/ST000000/SE000000/IM000000 |
117 | ··PT000000/ST000000/SE000001/IM000000 | 117 | ··PT000000/ST000000/SE000001/IM000000 |
118 | ··PT000000/ST000000/SE000002/IM000000 | 118 | ··PT000000/ST000000/SE000002/IM000000 |
119 | ··PT000000/ST000001/SE000000/IM000000 | 119 | ··PT000000/ST000001/SE000000/IM000000 |
120 | ··PT000000/ST000001/SE000000/IM000001 | 120 | ··PT000000/ST000001/SE000000/IM000001 |
121 | ··PT000000/ST000001/SE000000/IM000002 | 121 | ··PT000000/ST000001/SE000000/IM000002 |
Offset 258, 15 lines modified | Offset 258, 15 lines modified | ||
258 | root·=·Path(_\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8e_\x8t_\x8._\x8p_\x8a_\x8t_\x8h) | 258 | root·=·Path(_\x8n_\x8e_\x8w_\x8__\x8f_\x8i_\x8l_\x8e_\x8s_\x8e_\x8t_\x8._\x8p_\x8a_\x8t_\x8h) |
259 | print(f"File-set·copied·to·{root}·and·contains·the·following·files:") | 259 | print(f"File-set·copied·to·{root}·and·contains·the·following·files:") |
260 | #·Note·how·the·original·File-set·directory·layout·has·been·changed·to | 260 | #·Note·how·the·original·File-set·directory·layout·has·been·changed·to |
261 | #···the·structure·used·by·pydicom | 261 | #···the·structure·used·by·pydicom |
262 | for·p·in·sorted(root.glob('**/*')): | 262 | for·p·in·sorted(root.glob('**/*')): |
263 | ····if·p.is_file(): | 263 | ····if·p.is_file(): |
264 | ········print(f"··{p.relative_to(root)}") | 264 | ········print(f"··{p.relative_to(root)}") |
265 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\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x8e_\x8x_\x8t |
271 | =============================================================================== | 271 | =============================================================================== |
272 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. | 272 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. |
Offset 123, 40 lines modified | Offset 123, 40 lines modified | ||
123 | <section·class="sphx-glr-example-title"·id="write-dicom-data"> | 123 | <section·class="sphx-glr-example-title"·id="write-dicom-data"> |
124 | <span·id="sphx-glr-auto-examples-input-output-plot-write-dicom-py"></span><h1>Write·DICOM·data<a·class="headerlink"·href="#write-dicom-data"·title="Link·to·this·heading">¶</a></h1> | 124 | <span·id="sphx-glr-auto-examples-input-output-plot-write-dicom-py"></span><h1>Write·DICOM·data<a·class="headerlink"·href="#write-dicom-data"·title="Link·to·this·heading">¶</a></h1> |
125 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 125 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
126 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 126 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
127 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> | 127 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> |
128 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... | 128 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... |
129 | Setting·dataset·values... | 129 | Setting·dataset·values... |
130 | Writing·test·file·/tmp/tmp | 130 | Writing·test·file·/tmp/tmp81z9xr1t.dcm |
131 | File·saved. | 131 | File·saved. |
132 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 132 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpa4xbw_5u.dcm |
133 | Load·file·/tmp/tmp | 133 | Load·file·/tmp/tmp81z9xr1t.dcm·... |
134 | Dataset.file_meta·------------------------------- | 134 | Dataset.file_meta·------------------------------- |
135 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 135 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
136 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 136 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
137 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 137 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
138 | ------------------------------------------------- | 138 | ------------------------------------------------- |
139 | (0008,·0023)·Content·Date························DA:·'202 | 139 | (0008,·0023)·Content·Date························DA:·'20250607' |
140 | (0008,·0033)·Content·Time························TM:·'0 | 140 | (0008,·0033)·Content·Time························TM:·'033731.145431' |
141 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 141 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
142 | (0010,·0020)·Patient·ID··························LO:·'123456' | 142 | (0010,·0020)·Patient·ID··························LO:·'123456' |
143 | Remove·file·/tmp/tmp | 143 | Remove·file·/tmp/tmp81z9xr1t.dcm·... |
144 | Load·file·/tmp/tmp | 144 | Load·file·/tmp/tmpa4xbw_5u.dcm·... |
145 | Dataset.file_meta·------------------------------- | 145 | Dataset.file_meta·------------------------------- |
146 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 146 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
147 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 147 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
148 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 148 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
149 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 149 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
150 | ------------------------------------------------- | 150 | ------------------------------------------------- |
151 | (0008,·0023)·Content·Date························DA:·'202 | 151 | (0008,·0023)·Content·Date························DA:·'20250607' |
152 | (0008,·0033)·Content·Time························TM:·'0 | 152 | (0008,·0033)·Content·Time························TM:·'033731.145431' |
153 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 153 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
154 | (0010,·0020)·Patient·ID··························LO:·'123456' | 154 | (0010,·0020)·Patient·ID··························LO:·'123456' |
155 | Remove·file·/tmp/tmp | 155 | Remove·file·/tmp/tmpa4xbw_5u.dcm·... |
156 | </pre></div> | 156 | </pre></div> |
157 | </div> | 157 | </div> |
158 | <div·class="line-block"> | 158 | <div·class="line-block"> |
159 | <div·class="line"><br·/></div> | 159 | <div·class="line"><br·/></div> |
160 | </div> | 160 | </div> |
161 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> | 161 | <div·class="highlight-Python·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> |
162 | <span·class="c1">#·license·:·MIT</span> | 162 | <span·class="c1">#·license·:·MIT</span> |
Offset 222, 15 lines modified | Offset 222, 15 lines modified | ||
222 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 222 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
223 | ····<span·class="c1">#·remove·the·created·file</span> | 223 | ····<span·class="c1">#·remove·the·created·file</span> |
224 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="s1">'Remove·file·</span><span·class="si">{}</span><span·class="s1">·...'</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">))</span> | 224 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="s1">'Remove·file·</span><span·class="si">{}</span><span·class="s1">·...'</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">))</span> |
225 | ····<span·class="n">os</span><span·class="o">.</span><span·class="n">remove</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> | 225 | ····<span·class="n">os</span><span·class="o">.</span><span·class="n">remove</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> |
226 | </pre></div> | 226 | </pre></div> |
227 | </div> | 227 | </div> |
228 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.00 | 228 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.005·seconds)</p> |
229 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-write-dicom-py"> | 229 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-write-dicom-py"> |
230 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 230 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
231 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/44c3a2647e8572357403f4dc998e2848/plot_write_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_write_dicom.ipynb</span></code></a></p> | 231 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/44c3a2647e8572357403f4dc998e2848/plot_write_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_write_dicom.ipynb</span></code></a></p> |
232 | </div> | 232 | </div> |
233 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 233 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
234 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/7e3f494a513e0ac1eb4963e47afed114/plot_write_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_write_dicom.py</span></code></a></p> | 234 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/7e3f494a513e0ac1eb4963e47afed114/plot_write_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_write_dicom.py</span></code></a></p> |
235 | </div> | 235 | </div> |
Offset 36, 40 lines modified | Offset 36, 40 lines modified | ||
36 | _\x8G_\x8o_\x8·_\x8t_\x8o_\x8·_\x8t_\x8h_\x8e_\x8·_\x8e_\x8n_\x8d·to·download·the·full·example·code. | 36 | _\x8G_\x8o_\x8·_\x8t_\x8o_\x8·_\x8t_\x8h_\x8e_\x8·_\x8e_\x8n_\x8d·to·download·the·full·example·code. |
37 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wr\x8ri\x8it\x8te\x8e·D\x8DI\x8IC\x8CO\x8OM\x8M·d\x8da\x8at\x8ta\x8a_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* | 37 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wr\x8ri\x8it\x8te\x8e·D\x8DI\x8IC\x8CO\x8OM\x8M·d\x8da\x8at\x8ta\x8a_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* |
38 | This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 38 | This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
39 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 39 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
40 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements. | 40 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements. |
41 | Setting·file·meta·information... | 41 | Setting·file·meta·information... |
42 | Setting·dataset·values... | 42 | Setting·dataset·values... |
43 | Writing·test·file·/tmp/tmp | 43 | Writing·test·file·/tmp/tmp81z9xr1t.dcm |
44 | File·saved. | 44 | File·saved. |
45 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 45 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpa4xbw_5u.dcm |
46 | Load·file·/tmp/tmp | 46 | Load·file·/tmp/tmp81z9xr1t.dcm·... |
47 | Dataset.file_meta·------------------------------- | 47 | Dataset.file_meta·------------------------------- |
48 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 48 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
49 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 49 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
50 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 50 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
51 | ------------------------------------------------- | 51 | ------------------------------------------------- |
52 | (0008,·0023)·Content·Date························DA:·'202 | 52 | (0008,·0023)·Content·Date························DA:·'20250607' |
53 | (0008,·0033)·Content·Time························TM:·'0 | 53 | (0008,·0033)·Content·Time························TM:·'033731.145431' |
54 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 54 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
55 | (0010,·0020)·Patient·ID··························LO:·'123456' | 55 | (0010,·0020)·Patient·ID··························LO:·'123456' |
56 | Remove·file·/tmp/tmp | 56 | Remove·file·/tmp/tmp81z9xr1t.dcm·... |
57 | Load·file·/tmp/tmp | 57 | Load·file·/tmp/tmpa4xbw_5u.dcm·... |
58 | Dataset.file_meta·------------------------------- | 58 | Dataset.file_meta·------------------------------- |
59 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 59 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
60 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 60 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
61 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 61 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
62 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 62 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
63 | ------------------------------------------------- | 63 | ------------------------------------------------- |
64 | (0008,·0023)·Content·Date························DA:·'202 | 64 | (0008,·0023)·Content·Date························DA:·'20250607' |
65 | (0008,·0033)·Content·Time························TM:·'0 | 65 | (0008,·0033)·Content·Time························TM:·'033731.145431' |
66 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 66 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
67 | (0010,·0020)·Patient·ID··························LO:·'123456' | 67 | (0010,·0020)·Patient·ID··························LO:·'123456' |
68 | Remove·file·/tmp/tmp | 68 | Remove·file·/tmp/tmpa4xbw_5u.dcm·... |
69 | #·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com> | 69 | #·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com> |
70 | #·license·:·MIT | 70 | #·license·:·MIT |
71 | import·datetime | 71 | import·datetime |
72 | import·os | 72 | import·os |
73 | import·tempfile | 73 | import·tempfile |
Offset 129, 15 lines modified | Offset 129, 15 lines modified | ||
129 | ····print('Load·file·{}·...'.format(filename)) | 129 | ····print('Load·file·{}·...'.format(filename)) |
130 | ····ds·=·pydicom.dcmread(filename) | 130 | ····ds·=·pydicom.dcmread(filename) |
131 | ····print(ds) | 131 | ····print(ds) |
132 | ····#·remove·the·created·file | 132 | ····#·remove·the·created·file |
133 | ····print('Remove·file·{}·...'.format(filename)) | 133 | ····print('Remove·file·{}·...'.format(filename)) |
134 | ····os.remove(filename) | 134 | ····os.remove(filename) |
135 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.00 | 135 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.005·seconds) |
136 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 136 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8r_\x8i_\x8t_\x8e_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
137 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\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8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
140 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 140 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
141 | =============================================================================== | 141 | =============================================================================== |
142 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. | 142 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. |
Offset 202, 15 lines modified | Offset 202, 15 lines modified | ||
202 | <span·class="n">dataset</span><span·class="o">.</span><span·class="n">save_as</span><span·class="p">(</span><span·class="n">output_filename</span><span·class="p">)</span> | 202 | <span·class="n">dataset</span><span·class="o">.</span><span·class="n">save_as</span><span·class="p">(</span><span·class="n">output_filename</span><span·class="p">)</span> |
203 | </pre></div> | 203 | </pre></div> |
204 | </div> | 204 | </div> |
205 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>(0010,·0020)·Patient·ID··························LO:·'id' | 205 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>(0010,·0020)·Patient·ID··························LO:·'id' |
206 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' | 206 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' |
207 | </pre></div> | 207 | </pre></div> |
208 | </div> | 208 | </div> |
209 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.0 | 209 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.009·seconds)</p> |
210 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-anonymize-py"> | 210 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-anonymize-py"> |
211 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 211 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
212 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/de1da3fdb216bd623a5999980785f16d/plot_anonymize.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_anonymize.ipynb</span></code></a></p> | 212 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/de1da3fdb216bd623a5999980785f16d/plot_anonymize.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_anonymize.ipynb</span></code></a></p> |
213 | </div> | 213 | </div> |
214 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 214 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
215 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/cdbc1bcbae90b5ff13fdc9b19581006e/plot_anonymize.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_anonymize.py</span></code></a></p> | 215 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/cdbc1bcbae90b5ff13fdc9b19581006e/plot_anonymize.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_anonymize.py</span></code></a></p> |
216 | </div> | 216 | </div> |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | for·de·in·data_elements: | 91 | for·de·in·data_elements: |
92 | ····print(dataset.data_element(de)) | 92 | ····print(dataset.data_element(de)) |
93 | output_filename·=·tempfile.NamedTemporaryFile().name | 93 | output_filename·=·tempfile.NamedTemporaryFile().name |
94 | dataset.save_as(output_filename) | 94 | dataset.save_as(output_filename) |
95 | (0010,·0020)·Patient·ID··························LO:·'id' | 95 | (0010,·0020)·Patient·ID··························LO:·'id' |
96 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' | 96 | (0010,·0030)·Patient's·Birth·Date················DA:·'19000101' |
97 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.0 | 97 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.009·seconds) |
98 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8a_\x8n_\x8o_\x8n_\x8y_\x8m_\x8i_\x8z_\x8e_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 98 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8a_\x8n_\x8o_\x8n_\x8y_\x8m_\x8i_\x8z_\x8e_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
99 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x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_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
102 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 102 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
103 | =============================================================================== | 103 | =============================================================================== |
104 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. | 104 | ©·Copyright·2008-2025,·Darcy·Mason·and·pydicom·contributors. |
Offset 5261, 75 lines modified | Offset 5261, 76 lines modified | ||
5261 | ········"0036697":·[23,·24,·25], | 5261 | ········"0036697":·[23,·24,·25], |
5262 | ········"003669700000":·[23,·25], | 5262 | ········"003669700000":·[23,·25], |
5263 | ········"0037":·[2,·18], | 5263 | ········"0037":·[2,·18], |
5264 | ········"003a":·[48,·128,·468,·509], | 5264 | ········"003a":·[48,·128,·468,·509], |
5265 | ········"0040":·[2,·18], | 5265 | ········"0040":·[2,·18], |
5266 | ········"0041":·128, | 5266 | ········"0041":·128, |
5267 | ········"0043":·[18,·23,·25,·501], | 5267 | ········"0043":·[18,·23,·25,·501], |
5268 | ········"005":·12, | ||
5268 | ········"0050":·[2,·18,·23,·24,·35,·46], | 5269 | ········"0050":·[2,·18,·23,·24,·35,·46], |
5269 | ········"0051":·[23,·24], | 5270 | ········"0051":·[23,·24], |
5270 | ········"0052":·[2,·18], | 5271 | ········"0052":·[2,·18], |
5271 | ········"006":·[2,·7 | 5272 | ········"006":·[2,·7], |
5272 | ········"0060":·[2,·18,·23,·24,·35], | 5273 | ········"0060":·[2,·18,·23,·24,·35], |
5273 | ········"007":·13, | 5274 | ········"007":·13, |
5274 | ········"0070":·[2,·18,·23,·24], | 5275 | ········"0070":·[2,·18,·23,·24], |
5275 | ········"0071":·[23,·24,·25], | 5276 | ········"0071":·[23,·24,·25], |
5276 | ········"0078":·[23,·24,·25], | 5277 | ········"0078":·[23,·24,·25], |
5277 | ········"0080":·[2,·18,·23,·24,·25], | 5278 | ········"0080":·[2,·18,·23,·24,·25], |
5278 | ········"0081":·[2,·18], | 5279 | ········"0081":·[2,·18], |
5279 | ········"0082":·[23,·24,·25], | 5280 | ········"0082":·[23,·24,·25], |
5280 | ········"0083":·[2,·18], | 5281 | ········"0083":·[2,·18], |
5281 | ········"0084":·[2,·18,·23,·24,·25], | 5282 | ········"0084":·[2,·18,·23,·24,·25], |
5282 | ········"0085":·[2,·18], | 5283 | ········"0085":·[2,·18], |
5283 | ········"0086":·[2,·18,·23,·24,·25], | 5284 | ········"0086":·[2,·18,·23,·24,·25], |
5284 | ········"0088":·18, | 5285 | ········"0088":·18, |
5286 | ········"009":·16, | ||
5285 | ········"0090":·[2,·18], | 5287 | ········"0090":·[2,·18], |
5286 | ········"0091":·[2,·18], | 5288 | ········"0091":·[2,·18], |
5287 | ········"00a0":·[23,·24,·25], | 5289 | ········"00a0":·[23,·24,·25], |
5288 | ········"00b0":·[23,·24], | 5290 | ········"00b0":·[23,·24], |
5289 | ········"00b6":·[23,·24], | 5291 | ········"00b6":·[23,·24], |
5290 | ········"00f8":·17, | 5292 | ········"00f8":·17, |
5291 | ········"00fe":·17, | 5293 | ········"00fe":·17, |
5292 | ········"0100":·[2,·18,·31,·39,·48,·128,·191,·201,·211,·213,·214,·215,·468,·509], | 5294 | ········"0100":·[2,·18,·31,·39,·48,·128,·191,·201,·211,·213,·214,·215,·468,·509], |
5293 | ········"0101":·[2,·18,·31,·128,·203,·204,·211,·213,·215], | 5295 | ········"0101":·[2,·18,·31,·128,·203,·204,·211,·213,·215], |
5294 | ········"0102":·[2,·18,·31,·191,·201], | 5296 | ········"0102":·[2,·18,·31,·191,·201], |
5295 | ········"0103":·[2,·18,·31,·128,·203,·204,·211,·213,·214,·215], | 5297 | ········"0103":·[2,·18,·31,·128,·203,·204,·211,·213,·214,·215], |
5296 | ········"0106":·[2,·18], | 5298 | ········"0106":·[2,·18], |
5297 | ········"0107":·[2,·18], | 5299 | ········"0107":·[2,·18], |
5298 | ········"010c":·[23,·24], | 5300 | ········"010c":·[23,·24], |
5299 | ········"011":·9, | ||
5300 | ········"0111":·[23,·24], | 5301 | ········"0111":·[23,·24], |
5301 | ········"0115":·[23,·24], | 5302 | ········"0115":·[23,·24], |
5302 | ········"011a":·[23,·24], | 5303 | ········"011a":·[23,·24], |
5304 | ········"012":·9, | ||
5303 | ········"0120":·18, | 5305 | ········"0120":·18, |
5304 | ········"013":·16, | ||
5305 | ········"0166":·18, | 5306 | ········"0166":·18, |
5306 | ········"0180":·[23,·24], | 5307 | ········"0180":·[23,·24], |
5307 | ········"0182":·37, | 5308 | ········"0182":·37, |
5308 | ········"0197b5846bb5":·[476,·483], | 5309 | ········"0197b5846bb5":·[476,·483], |
5309 | ········"01b2":·37, | 5310 | ········"01b2":·37, |
5310 | ········"0200":·509, | 5311 | ········"0200":·509, |
5311 | ········"0201":·[2,·18,·476,·488], | 5312 | ········"0201":·[2,·18,·476,·488], |
5312 | ········"0210":·[128,·468,·509], | 5313 | ········"0210":·[128,·468,·509], |
5313 | ········"0211":·128, | 5314 | ········"0211":·128, |
5314 | ········"025109":·[10,·503], | 5315 | ········"025109":·[10,·503], |
5315 | ········"0275401":·[23,·24,·25], | 5316 | ········"0275401":·[23,·24,·25], |
5316 | ········"02754010000000":·[23,·25], | 5317 | ········"02754010000000":·[23,·25], |
5317 | ········"033":·19, | 5318 | ········"033":·19, |
5319 | ········"033731":·12, | ||
5318 | ········"035797":·18, | 5320 | ········"035797":·18, |
5319 | ········"03579711914062":·18, | 5321 | ········"03579711914062":·18, |
5320 | ········"0400":·[2,·7,·18], | 5322 | ········"0400":·[2,·7,·18], |
5321 | ········"0411bab7c985":·[476,·483], | 5323 | ········"0411bab7c985":·[476,·483], |
5322 | ········"045357":·[10,·503], | 5324 | ········"045357":·[10,·503], |
5323 | ········"05":·[18,·500], | 5325 | ········"05":·[18,·500], |
5324 | ········"0500":·18, | 5326 | ········"0500":·18, |
5325 | ········"050743":·[10,·503], | 5327 | ········"050743":·[10,·503], |
5326 | ········"072730":·[18,·23,·25], | 5328 | ········"072730":·[18,·23,·25], |
5327 | ········"072731":·[18,·23,·25,·501], | 5329 | ········"072731":·[18,·23,·25,·501], |
5328 | ········"075306":·12, | ||
5329 | ········"07992553710938":·18, | 5330 | ········"07992553710938":·18, |
5330 | ········"079926":·18, | 5331 | ········"079926":·18, |
5331 | ········"079956":·18, | 5332 | ········"079956":·18, |
5332 | ········"08":·142, | 5333 | ········"08":·142, |
5333 | ········"085000":·18, | 5334 | ········"085000":·18, |
5334 | ········"090":·18, | 5335 | ········"090":·18, |
5335 | ········"095":·18, | 5336 | ········"095":·18, |
Offset 5470, 15 lines modified | Offset 5471, 15 lines modified | ||
5470 | ········"1053":·[18,·203,·204,·215,·476,·491], | 5471 | ········"1053":·[18,·203,·204,·215,·476,·491], |
5471 | ········"1054":·18, | 5472 | ········"1054":·18, |
5472 | ········"1055":·18, | 5473 | ········"1055":·18, |
5473 | ········"1057":·18, | 5474 | ········"1057":·18, |
5474 | ········"1058":·18, | 5475 | ········"1058":·18, |
5475 | ········"105e":·18, | 5476 | ········"105e":·18, |
5476 | ········"105f":·18, | 5477 | ········"105f":·18, |
5477 | ········"106":·[ | 5478 | ········"106":·[48,·224,·330,·331], |
5478 | ········"1060":·[2,·18], | 5479 | ········"1060":·[2,·18], |
5479 | ········"1061":·18, | 5480 | ········"1061":·18, |
5480 | ········"1062":·18, | 5481 | ········"1062":·18, |
5481 | ········"1067":·[476,·491], | 5482 | ········"1067":·[476,·491], |
5482 | ········"1068":·47, | 5483 | ········"1068":·47, |
5483 | ········"106a":·18, | 5484 | ········"106a":·18, |
5484 | ········"106b":·18, | 5485 | ········"106b":·18, |
Offset 5489, 15 lines modified | Offset 5490, 15 lines modified | ||
5489 | ········"1073":·[18,·476,·491], | 5490 | ········"1073":·[18,·476,·491], |
5490 | ········"1074":·18, | 5491 | ········"1074":·18, |
5491 | ········"1075":·[18,·476,·491], | 5492 | ········"1075":·[18,·476,·491], |
5492 | ········"1076":·18, | 5493 | ········"1076":·18, |
5493 | ········"1078":·[476,·491], | 5494 | ········"1078":·[476,·491], |
5494 | ········"1079":·501, | 5495 | ········"1079":·501, |
5495 | ········"107d":·18, | 5496 | ········"107d":·18, |
5496 | ········"108":·[224,·294,·331,·442], | 5497 | ········"108":·[8,·224,·294,·331,·442], |
5497 | ········"1082":·[476,·491], | 5498 | ········"1082":·[476,·491], |
5498 | ········"1083":·47, | 5499 | ········"1083":·47, |
5499 | ········"1086":·[476,·491], | 5500 | ········"1086":·[476,·491], |
5500 | ········"1090":·[2,·18], | 5501 | ········"1090":·[2,·18], |
5501 | ········"1091":·18, | 5502 | ········"1091":·18, |
5502 | ········"10918":·[208,·215,·317,·476,·494], | 5503 | ········"10918":·[208,·215,·317,·476,·494], |
5503 | ········"1092":·18, | 5504 | ········"1092":·18, |
Offset 5624, 14 lines modified | Offset 5625, 15 lines modified | ||
5624 | ········"1430":·[165,·503], | 5625 | ········"1430":·[165,·503], |
5625 | ········"1434":·[476,·494], | 5626 | ········"1434":·[476,·494], |
5626 | ········"1436":·501, | 5627 | ········"1436":·501, |
5627 | ········"1438":·[476,·494], | 5628 | ········"1438":·[476,·494], |
5628 | ········"1444":·[476,·494], | 5629 | ········"1444":·[476,·494], |
5629 | ········"1449":·[476,·494], | 5630 | ········"1449":·[476,·494], |
5630 | ········"14495":·314, | 5631 | ········"14495":·314, |
5632 | ········"145431":·12, | ||
5631 | ········"1457":·[476,·494], | 5633 | ········"1457":·[476,·494], |
5632 | ········"1487":·[476,·495], | 5634 | ········"1487":·[476,·495], |
5633 | ········"1498":·[476,·495], | 5635 | ········"1498":·[476,·495], |
5634 | ········"15":·[2,·7,·18,·389,·501,·509], | 5636 | ········"15":·[2,·7,·18,·389,·501,·509], |
5635 | ········"150":·[0,·18,·48], | 5637 | ········"150":·[0,·18,·48], |
5636 | ········"1500":·[167,·476,·495], | 5638 | ········"1500":·[167,·476,·495], |
5637 | ········"150031":·[21,·23,·24,·35], | 5639 | ········"150031":·[21,·23,·24,·35], |
Max diff block lines reached; 2228/5986 bytes (37.22%) of diff not shown. |