Offset 1, 6 lines modified | Offset 1, 6 lines modified | ||
1 | ·78b836d112bc724ff3522ec8c5433645·4696·oldlibs·optional·python-dicom_1.2.1-1_all.deb | 1 | ·78b836d112bc724ff3522ec8c5433645·4696·oldlibs·optional·python-dicom_1.2.1-1_all.deb |
2 | · | 2 | ·ac719bbd16c59c57a324167416024a86·352224·doc·optional·python-pydicom-doc_1.2.1-1_all.deb |
3 | ·ce9ea8c10f42befd25b0a731adf8e330·4396516·python·optional·python-pydicom_1.2.1-1_all.deb | 3 | ·ce9ea8c10f42befd25b0a731adf8e330·4396516·python·optional·python-pydicom_1.2.1-1_all.deb |
4 | ·d61e91fe2b580fec73f74782ffd22307·4704·oldlibs·optional·python3-dicom_1.2.1-1_all.deb | 4 | ·d61e91fe2b580fec73f74782ffd22307·4704·oldlibs·optional·python3-dicom_1.2.1-1_all.deb |
5 | ·bf04b8677dadbfd00b206dabd761ab2c·4396608·python·optional·python3-pydicom_1.2.1-1_all.deb | 5 | ·bf04b8677dadbfd00b206dabd761ab2c·4396608·python·optional·python3-pydicom_1.2.1-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2018-11-23·22:32:08.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2018-11-23·22:32:08.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····52 | 2 | -rw-r--r--···0········0········0·····5272·2018-11-23·22:32:08.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···346 | 3 | -rw-r--r--···0········0········0···346760·2018-11-23·22:32:08.000000·data.tar.xz |
Offset 142, 15 lines modified | Offset 142, 15 lines modified | ||
142 | ····#·update·the·information·regarding·the·shape·of·the·data·array | 142 | ····#·update·the·information·regarding·the·shape·of·the·data·array |
143 | ····ds.Rows,·ds.Columns·=·data_downsampling.shape | 143 | ····ds.Rows,·ds.Columns·=·data_downsampling.shape |
144 | ····#·print·the·image·information·given·in·the·dataset | 144 | ····#·print·the·image·information·given·in·the·dataset |
145 | ····print('The·information·of·the·data·set·after·downsampling:·\n') | 145 | ····print('The·information·of·the·data·set·after·downsampling:·\n') |
146 | ····print(ds) | 146 | ····print(ds) |
147 | **Total·running·time·of·the·script:**·(·0·minutes··0.0 | 147 | **Total·running·time·of·the·script:**·(·0·minutes··0.009·seconds) |
148 | ..·_sphx_glr_download_auto_examples_image_processing_plot_downsize_image.py: | 148 | ..·_sphx_glr_download_auto_examples_image_processing_plot_downsize_image.py: |
149 | ..·only·::·html | 149 | ..·only·::·html |
Offset 147, 15 lines modified | Offset 147, 15 lines modified | ||
147 | ····filename·=·get_testdata_files('MR_small.dcm')[0] | 147 | ····filename·=·get_testdata_files('MR_small.dcm')[0] |
148 | ····ds·=·pydicom.dcmread(filename) | 148 | ····ds·=·pydicom.dcmread(filename) |
149 | ····myprint(ds) | 149 | ····myprint(ds) |
150 | **Total·running·time·of·the·script:**·(·0·minutes··0.0 | 150 | **Total·running·time·of·the·script:**·(·0·minutes··0.009·seconds) |
151 | ..·_sphx_glr_download_auto_examples_input_output_plot_printing_dataset.py: | 151 | ..·_sphx_glr_download_auto_examples_input_output_plot_printing_dataset.py: |
152 | ..·only·::·html | 152 | ..·only·::·html |
Offset 84, 15 lines modified | Offset 84, 15 lines modified | ||
84 | ····#·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing | 84 | ····#·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing |
85 | ····print("Slice·location...:",·dataset.get('SliceLocation',·"(missing)")) | 85 | ····print("Slice·location...:",·dataset.get('SliceLocation',·"(missing)")) |
86 | ····#·plot·the·image·using·matplotlib | 86 | ····#·plot·the·image·using·matplotlib |
87 | ····plt.imshow(dataset.pixel_array,·cmap=plt.cm.bone) | 87 | ····plt.imshow(dataset.pixel_array,·cmap=plt.cm.bone) |
88 | ····plt.show() | 88 | ····plt.show() |
89 | **Total·running·time·of·the·script:**·(·0·minutes··0.0 | 89 | **Total·running·time·of·the·script:**·(·0·minutes··0.021·seconds) |
90 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: | 90 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: |
91 | ..·only·::·html | 91 | ..·only·::·html |
Offset 218, 15 lines modified | Offset 218, 15 lines modified | ||
218 | ················#·Expect·all·images·to·have·same·patient·name,·id | 218 | ················#·Expect·all·images·to·have·same·patient·name,·id |
219 | ················#·Show·the·set·of·all·names,·IDs·found·(should·each·have·one) | 219 | ················#·Show·the·set·of·all·names,·IDs·found·(should·each·have·one) |
220 | ················print("·"·*·12·+·"Patient·Names·in·images..:·{}".format( | 220 | ················print("·"·*·12·+·"Patient·Names·in·images..:·{}".format( |
221 | ····················patient_names)) | 221 | ····················patient_names)) |
222 | ················print("·"·*·12·+·"Patient·IDs·in·images..:·{}".format( | 222 | ················print("·"·*·12·+·"Patient·IDs·in·images..:·{}".format( |
223 | ····················patient_IDs)) | 223 | ····················patient_IDs)) |
224 | **Total·running·time·of·the·script:**·(·0·minutes··0. | 224 | **Total·running·time·of·the·script:**·(·0·minutes··0.080·seconds) |
225 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom_directory.py: | 225 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom_directory.py: |
226 | ..·only·::·html | 226 | ..·only·::·html |
Offset 61, 15 lines modified | Offset 61, 15 lines modified | ||
61 | ········return·"\n".join(lines) | 61 | ········return·"\n".join(lines) |
62 | ····filename·=·get_testdata_files('rtplan.dcm')[0] | 62 | ····filename·=·get_testdata_files('rtplan.dcm')[0] |
63 | ····dataset·=·pydicom.dcmread(filename) | 63 | ····dataset·=·pydicom.dcmread(filename) |
64 | ····print(list_beams(dataset)) | 64 | ····print(list_beams(dataset)) |
65 | **Total·running·time·of·the·script:**·(·0·minutes··0.0 | 65 | **Total·running·time·of·the·script:**·(·0·minutes··0.004·seconds) |
66 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_rtplan.py: | 66 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_rtplan.py: |
67 | ..·only·::·html | 67 | ..·only·::·html |
Offset 24, 29 lines modified | Offset 24, 29 lines modified | ||
24 | ·Out: | 24 | ·Out: |
25 | ·..·code-block::·none | 25 | ·..·code-block::·none |
26 | ····Setting·file·meta·information... | 26 | ····Setting·file·meta·information... |
27 | ····Setting·dataset·values... | 27 | ····Setting·dataset·values... |
28 | ····Writing·test·file·/tmp/tmp | 28 | ····Writing·test·file·/tmp/tmpalwi6728.dcm |
29 | ····File·saved. | 29 | ····File·saved. |
30 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 30 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpthnv0xbe.dcm |
31 | ····Load·file·/tmp/tmp | 31 | ····Load·file·/tmp/tmpalwi6728.dcm·... |
32 | ····(0008,·0023)·Content·Date························DA:·'202112 | 32 | ····(0008,·0023)·Content·Date························DA:·'20230112' |
33 | ····(0008,·0033)·Content·Time························TM:·'1 | 33 | ····(0008,·0033)·Content·Time························TM:·'190703.949097' |
34 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 34 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
35 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 35 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
36 | ····Remove·file·/tmp/tmp | 36 | ····Remove·file·/tmp/tmpalwi6728.dcm·... |
37 | ····Load·file·/tmp/tmp | 37 | ····Load·file·/tmp/tmpthnv0xbe.dcm·... |
38 | ····(0008,·0023)·Content·Date························DA:·'202112 | 38 | ····(0008,·0023)·Content·Date························DA:·'20230112' |
39 | ····(0008,·0033)·Content·Time························TM:·'1 | 39 | ····(0008,·0033)·Content·Time························TM:·'190703.949097' |
40 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 40 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
41 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 41 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
42 | ····Remove·file·/tmp/tmp | 42 | ····Remove·file·/tmp/tmpthnv0xbe.dcm·... |
43 | | | 43 | | |
Offset 115, 15 lines modified | Offset 115, 15 lines modified | ||
115 | ········ds·=·pydicom.dcmread(filename) | 115 | ········ds·=·pydicom.dcmread(filename) |
116 | ········print(ds) | 116 | ········print(ds) |
117 | ········#·remove·the·created·file | 117 | ········#·remove·the·created·file |
118 | ········print('Remove·file·{}·...'.format(filename)) | 118 | ········print('Remove·file·{}·...'.format(filename)) |
119 | ········os.remove(filename) | 119 | ········os.remove(filename) |
120 | **Total·running·time·of·the·script:**·(·0·minutes··0.00 | 120 | **Total·running·time·of·the·script:**·(·0·minutes··0.005·seconds) |
121 | ..·_sphx_glr_download_auto_examples_input_output_plot_write_dicom.py: | 121 | ..·_sphx_glr_download_auto_examples_input_output_plot_write_dicom.py: |
122 | ..·only·::·html | 122 | ..·only·::·html |
Offset 191, 15 lines modified | Offset 191, 15 lines modified | ||
191 | ·..·code-block::·none | 191 | ·..·code-block::·none |
192 | ····(0010,·0020)·Patient·ID··························LO:·'id' | 192 | ····(0010,·0020)·Patient·ID··························LO:·'id' |
193 | ····(0010,·0030)·Patient's·Birth·Date················DA:·'01011900' | 193 | ····(0010,·0030)·Patient's·Birth·Date················DA:·'01011900' |
194 | **Total·running·time·of·the·script:**·(·0·minutes··0.01 | 194 | **Total·running·time·of·the·script:**·(·0·minutes··0.012·seconds) |
195 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_anonymize.py: | 195 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_anonymize.py: |
196 | ..·only·::·html | 196 | ..·only·::·html |
Offset 690, 15 lines modified | Offset 690, 15 lines modified | ||
690 | ····diff·=·difflib.Differ() | 690 | ····diff·=·difflib.Differ() |
691 | ····for·line·in·diff.compare(rep[0],·rep[1]): | 691 | ····for·line·in·diff.compare(rep[0],·rep[1]): |
692 | ········if·line[0]·!=·"?": | 692 | ········if·line[0]·!=·"?": |
693 | ············print(line) | 693 | ············print(line) |
694 | **Total·running·time·of·the·script:**·(·0·minutes··0. | 694 | **Total·running·time·of·the·script:**·(·0·minutes··0.172·seconds) |
695 | ..·_sphx_glr_download_auto_examples_plot_dicom_difference.py: | 695 | ..·_sphx_glr_download_auto_examples_plot_dicom_difference.py: |
696 | ..·only·::·html | 696 | ..·only·::·html |
Offset 302, 15 lines modified | Offset 302, 15 lines modified | ||
302 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">Rows</span><span·class="p">,</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">Columns</span>·<span·class="o">=</span>·<span·class="n">data_downsampling</span><span·class="o">.</span><span·class="n">shape</span> | 302 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">Rows</span><span·class="p">,</span>·<span·class="n">ds</span><span·class="o">.</span><span·class="n">Columns</span>·<span·class="o">=</span>·<span·class="n">data_downsampling</span><span·class="o">.</span><span·class="n">shape</span> |
303 | <span·class="c1">#·print·the·image·information·given·in·the·dataset</span> | 303 | <span·class="c1">#·print·the·image·information·given·in·the·dataset</span> |
304 | <span·class="k">print</span><span·class="p">(</span><span·class="s1">'The·information·of·the·data·set·after·downsampling:·</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">)</span> | 304 | <span·class="k">print</span><span·class="p">(</span><span·class="s1">'The·information·of·the·data·set·after·downsampling:·</span><span·class="se">\n</span><span·class="s1">'</span><span·class="p">)</span> |
305 | <span·class="k">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 305 | <span·class="k">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
306 | </pre></div> | 306 | </pre></div> |
307 | </div> | 307 | </div> |
308 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 308 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.009·seconds)</p> |
309 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-downsize-image-py"> | 309 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-downsize-image-py"> |
310 | <div·class="sphx-glr-download·docutils·container"> | 310 | <div·class="sphx-glr-download·docutils·container"> |
311 | <a·class="reference·download·internal"·download=""·href="../../_downloads/47a2001fd80e51de7b8c0d49dc6a2f1f/plot_downsize_image.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_downsize_image.py</span></code></a></div> | 311 | <a·class="reference·download·internal"·download=""·href="../../_downloads/47a2001fd80e51de7b8c0d49dc6a2f1f/plot_downsize_image.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_downsize_image.py</span></code></a></div> |
312 | <div·class="sphx-glr-download·docutils·container"> | 312 | <div·class="sphx-glr-download·docutils·container"> |
313 | <a·class="reference·download·internal"·download=""·href="../../_downloads/0dab0e1133069ef5ae026bc4e1ebda4f/plot_downsize_image.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_downsize_image.ipynb</span></code></a></div> | 313 | <a·class="reference·download·internal"·download=""·href="../../_downloads/0dab0e1133069ef5ae026bc4e1ebda4f/plot_downsize_image.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_downsize_image.ipynb</span></code></a></div> |
314 | </div> | 314 | </div> |
315 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 315 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> |
Offset 311, 15 lines modified | Offset 311, 15 lines modified | ||
311 | <span·class="n">filename</span>·<span·class="o">=</span>·<span·class="n">get_testdata_files</span><span·class="p">(</span><span·class="s1">'MR_small.dcm'</span><span·class="p">)[</span><span·class="mi">0</span><span·class="p">]</span> | 311 | <span·class="n">filename</span>·<span·class="o">=</span>·<span·class="n">get_testdata_files</span><span·class="p">(</span><span·class="s1">'MR_small.dcm'</span><span·class="p">)[</span><span·class="mi">0</span><span·class="p">]</span> |
312 | <span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> | 312 | <span·class="n">ds</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> |
313 | <span·class="n">myprint</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 313 | <span·class="n">myprint</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
314 | </pre></div> | 314 | </pre></div> |
315 | </div> | 315 | </div> |
316 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 316 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.009·seconds)</p> |
317 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-printing-dataset-py"> | 317 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-printing-dataset-py"> |
318 | <div·class="sphx-glr-download·docutils·container"> | 318 | <div·class="sphx-glr-download·docutils·container"> |
319 | <a·class="reference·download·internal"·download=""·href="../../_downloads/b9f999b110e748812893315708310997/plot_printing_dataset.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_printing_dataset.py</span></code></a></div> | 319 | <a·class="reference·download·internal"·download=""·href="../../_downloads/b9f999b110e748812893315708310997/plot_printing_dataset.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_printing_dataset.py</span></code></a></div> |
320 | <div·class="sphx-glr-download·docutils·container"> | 320 | <div·class="sphx-glr-download·docutils·container"> |
321 | <a·class="reference·download·internal"·download=""·href="../../_downloads/40aa2da9ec27854c160c052ddbfa3317/plot_printing_dataset.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_printing_dataset.ipynb</span></code></a></div> | 321 | <a·class="reference·download·internal"·download=""·href="../../_downloads/40aa2da9ec27854c160c052ddbfa3317/plot_printing_dataset.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_printing_dataset.ipynb</span></code></a></div> |
322 | </div> | 322 | </div> |
323 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 323 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> |
Offset 246, 15 lines modified | Offset 246, 15 lines modified | ||
246 | <span·class="k">print</span><span·class="p">(</span><span·class="s2">"Slice·location...:"</span><span·class="p">,</span>·<span·class="n">dataset</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="s2">"(missing)"</span><span·class="p">))</span> | 246 | <span·class="k">print</span><span·class="p">(</span><span·class="s2">"Slice·location...:"</span><span·class="p">,</span>·<span·class="n">dataset</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="s2">"(missing)"</span><span·class="p">))</span> |
247 | <span·class="c1">#·plot·the·image·using·matplotlib</span> | 247 | <span·class="c1">#·plot·the·image·using·matplotlib</span> |
248 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">dataset</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">bone</span><span·class="p">)</span> | 248 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">dataset</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">bone</span><span·class="p">)</span> |
249 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 249 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
250 | </pre></div> | 250 | </pre></div> |
251 | </div> | 251 | </div> |
252 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 252 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.021·seconds)</p> |
253 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> | 253 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> |
254 | <div·class="sphx-glr-download·docutils·container"> | 254 | <div·class="sphx-glr-download·docutils·container"> |
255 | <a·class="reference·download·internal"·download=""·href="../../_downloads/1bf6b3140b2fe3825529697c37d8fbb2/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></div> | 255 | <a·class="reference·download·internal"·download=""·href="../../_downloads/1bf6b3140b2fe3825529697c37d8fbb2/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></div> |
256 | <div·class="sphx-glr-download·docutils·container"> | 256 | <div·class="sphx-glr-download·docutils·container"> |
257 | <a·class="reference·download·internal"·download=""·href="../../_downloads/745eea193572ac77277f4132ec5928ce/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></div> | 257 | <a·class="reference·download·internal"·download=""·href="../../_downloads/745eea193572ac77277f4132ec5928ce/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></div> |
258 | </div> | 258 | </div> |
259 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 259 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> |
Offset 382, 15 lines modified | Offset 382, 15 lines modified | ||
382 | ············<span·class="c1">#·Show·the·set·of·all·names,·IDs·found·(should·each·have·one)</span> | 382 | ············<span·class="c1">#·Show·the·set·of·all·names,·IDs·found·(should·each·have·one)</span> |
383 | ············<span·class="k">print</span><span·class="p">(</span><span·class="s2">"·"</span>·<span·class="o">*</span>·<span·class="mi">12</span>·<span·class="o">+</span>·<span·class="s2">"Patient·Names·in·images..:·{}"</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span> | 383 | ············<span·class="k">print</span><span·class="p">(</span><span·class="s2">"·"</span>·<span·class="o">*</span>·<span·class="mi">12</span>·<span·class="o">+</span>·<span·class="s2">"Patient·Names·in·images..:·{}"</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span> |
384 | ················<span·class="n">patient_names</span><span·class="p">))</span> | 384 | ················<span·class="n">patient_names</span><span·class="p">))</span> |
385 | ············<span·class="k">print</span><span·class="p">(</span><span·class="s2">"·"</span>·<span·class="o">*</span>·<span·class="mi">12</span>·<span·class="o">+</span>·<span·class="s2">"Patient·IDs·in·images..:·{}"</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span> | 385 | ············<span·class="k">print</span><span·class="p">(</span><span·class="s2">"·"</span>·<span·class="o">*</span>·<span·class="mi">12</span>·<span·class="o">+</span>·<span·class="s2">"Patient·IDs·in·images..:·{}"</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span> |
386 | ················<span·class="n">patient_IDs</span><span·class="p">))</span> | 386 | ················<span·class="n">patient_IDs</span><span·class="p">))</span> |
387 | </pre></div> | 387 | </pre></div> |
388 | </div> | 388 | </div> |
389 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0. | 389 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.080·seconds)</p> |
390 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-directory-py"> | 390 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-directory-py"> |
391 | <div·class="sphx-glr-download·docutils·container"> | 391 | <div·class="sphx-glr-download·docutils·container"> |
392 | <a·class="reference·download·internal"·download=""·href="../../_downloads/96cd4385cd4722429628ed02c75f9d03/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></div> | 392 | <a·class="reference·download·internal"·download=""·href="../../_downloads/96cd4385cd4722429628ed02c75f9d03/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></div> |
393 | <div·class="sphx-glr-download·docutils·container"> | 393 | <div·class="sphx-glr-download·docutils·container"> |
394 | <a·class="reference·download·internal"·download=""·href="../../_downloads/fa9b93aaa988a1c519497dc56a3c8336/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></div> | 394 | <a·class="reference·download·internal"·download=""·href="../../_downloads/fa9b93aaa988a1c519497dc56a3c8336/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></div> |
395 | </div> | 395 | </div> |
396 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 396 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> |
Offset 225, 15 lines modified | Offset 225, 15 lines modified | ||
225 | <span·class="n">filename</span>·<span·class="o">=</span>·<span·class="n">get_testdata_files</span><span·class="p">(</span><span·class="s1">'rtplan.dcm'</span><span·class="p">)[</span><span·class="mi">0</span><span·class="p">]</span> | 225 | <span·class="n">filename</span>·<span·class="o">=</span>·<span·class="n">get_testdata_files</span><span·class="p">(</span><span·class="s1">'rtplan.dcm'</span><span·class="p">)[</span><span·class="mi">0</span><span·class="p">]</span> |
226 | <span·class="n">dataset</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> | 226 | <span·class="n">dataset</span>·<span·class="o">=</span>·<span·class="n">pydicom</span><span·class="o">.</span><span·class="n">dcmread</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">)</span> |
227 | <span·class="k">print</span><span·class="p">(</span><span·class="n">list_beams</span><span·class="p">(</span><span·class="n">dataset</span><span·class="p">))</span> | 227 | <span·class="k">print</span><span·class="p">(</span><span·class="n">list_beams</span><span·class="p">(</span><span·class="n">dataset</span><span·class="p">))</span> |
228 | </pre></div> | 228 | </pre></div> |
229 | </div> | 229 | </div> |
230 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 230 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.004·seconds)</p> |
231 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-rtplan-py"> | 231 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-rtplan-py"> |
232 | <div·class="sphx-glr-download·docutils·container"> | 232 | <div·class="sphx-glr-download·docutils·container"> |
233 | <a·class="reference·download·internal"·download=""·href="../../_downloads/d38b2db7ae3a7fb040bd6c0a87f31912/plot_read_rtplan.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_rtplan.py</span></code></a></div> | 233 | <a·class="reference·download·internal"·download=""·href="../../_downloads/d38b2db7ae3a7fb040bd6c0a87f31912/plot_read_rtplan.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_rtplan.py</span></code></a></div> |
234 | <div·class="sphx-glr-download·docutils·container"> | 234 | <div·class="sphx-glr-download·docutils·container"> |
235 | <a·class="reference·download·internal"·download=""·href="../../_downloads/dfdab9554545592290a42da43ba53e8a/plot_read_rtplan.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_rtplan.ipynb</span></code></a></div> | 235 | <a·class="reference·download·internal"·download=""·href="../../_downloads/dfdab9554545592290a42da43ba53e8a/plot_read_rtplan.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_rtplan.ipynb</span></code></a></div> |
236 | </div> | 236 | </div> |
237 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 237 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> |
Offset 192, 29 lines modified | Offset 192, 29 lines modified | ||
192 | <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="Permalink·to·this·headline">¶</a></h1> | 192 | <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="Permalink·to·this·headline">¶</a></h1> |
193 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 193 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
194 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 194 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
195 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> | 195 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> |
196 | <p·class="sphx-glr-script-out">Out:</p> | 196 | <p·class="sphx-glr-script-out">Out:</p> |
197 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... | 197 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... |
198 | Setting·dataset·values... | 198 | Setting·dataset·values... |
199 | Writing·test·file·/tmp/tmp | 199 | Writing·test·file·/tmp/tmpalwi6728.dcm |
200 | File·saved. | 200 | File·saved. |
201 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 201 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpthnv0xbe.dcm |
202 | Load·file·/tmp/tmp | 202 | Load·file·/tmp/tmpalwi6728.dcm·... |
203 | (0008,·0023)·Content·Date························DA:·'202112 | 203 | (0008,·0023)·Content·Date························DA:·'20230112' |
204 | (0008,·0033)·Content·Time························TM:·'1 | 204 | (0008,·0033)·Content·Time························TM:·'190703.949097' |
205 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 205 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
206 | (0010,·0020)·Patient·ID··························LO:·'123456' | 206 | (0010,·0020)·Patient·ID··························LO:·'123456' |
207 | Remove·file·/tmp/tmp | 207 | Remove·file·/tmp/tmpalwi6728.dcm·... |
208 | Load·file·/tmp/tmp | 208 | Load·file·/tmp/tmpthnv0xbe.dcm·... |
209 | (0008,·0023)·Content·Date························DA:·'202112 | 209 | (0008,·0023)·Content·Date························DA:·'20230112' |
210 | (0008,·0033)·Content·Time························TM:·'1 | 210 | (0008,·0033)·Content·Time························TM:·'190703.949097' |
211 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 211 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
212 | (0010,·0020)·Patient·ID··························LO:·'123456' | 212 | (0010,·0020)·Patient·ID··························LO:·'123456' |
213 | Remove·file·/tmp/tmp | 213 | Remove·file·/tmp/tmpthnv0xbe.dcm·... |
214 | </pre></div> | 214 | </pre></div> |
215 | </div> | 215 | </div> |
216 | <div·class="line-block"> | 216 | <div·class="line-block"> |
217 | <div·class="line"><br·/></div> | 217 | <div·class="line"><br·/></div> |
218 | </div> | 218 | </div> |
219 | <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> | 219 | <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> |
220 | <span·class="c1">#·license·:·MIT</span> | 220 | <span·class="c1">#·license·:·MIT</span> |
Offset 279, 15 lines modified | Offset 279, 15 lines modified | ||
279 | ····<span·class="k">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> | 279 | ····<span·class="k">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="p">)</span> |
280 | ····<span·class="c1">#·remove·the·created·file</span> | 280 | ····<span·class="c1">#·remove·the·created·file</span> |
281 | ····<span·class="k">print</span><span·class="p">(</span><span·class="s1">'Remove·file·{}·...'</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">))</span> | 281 | ····<span·class="k">print</span><span·class="p">(</span><span·class="s1">'Remove·file·{}·...'</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">filename</span><span·class="p">))</span> |
282 | ····<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> | 282 | ····<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> |
283 | </pre></div> | 283 | </pre></div> |
284 | </div> | 284 | </div> |
285 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 285 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.005·seconds)</p> |
286 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-write-dicom-py"> | 286 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-write-dicom-py"> |
287 | <div·class="sphx-glr-download·docutils·container"> | 287 | <div·class="sphx-glr-download·docutils·container"> |
288 | <a·class="reference·download·internal"·download=""·href="../../_downloads/09f1ed9fbb675411e202dfee47647783/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></div> | 288 | <a·class="reference·download·internal"·download=""·href="../../_downloads/09f1ed9fbb675411e202dfee47647783/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></div> |
289 | <div·class="sphx-glr-download·docutils·container"> | 289 | <div·class="sphx-glr-download·docutils·container"> |
290 | <a·class="reference·download·internal"·download=""·href="../../_downloads/4dce273fd3c39fa7811f8be698628e5a/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></div> | 290 | <a·class="reference·download·internal"·download=""·href="../../_downloads/4dce273fd3c39fa7811f8be698628e5a/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></div> |
291 | </div> | 291 | </div> |
292 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 292 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> |
Offset 274, 15 lines modified | Offset 274, 15 lines modified | ||
274 | </pre></div> | 274 | </pre></div> |
275 | </div> | 275 | </div> |
276 | <p·class="sphx-glr-script-out">Out:</p> | 276 | <p·class="sphx-glr-script-out">Out:</p> |
277 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>(0010,·0020)·Patient·ID··························LO:·'id' | 277 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>(0010,·0020)·Patient·ID··························LO:·'id' |
278 | (0010,·0030)·Patient's·Birth·Date················DA:·'01011900' | 278 | (0010,·0030)·Patient's·Birth·Date················DA:·'01011900' |
279 | </pre></div> | 279 | </pre></div> |
280 | </div> | 280 | </div> |
281 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.01 | 281 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.012·seconds)</p> |
282 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-anonymize-py"> | 282 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-anonymize-py"> |
283 | <div·class="sphx-glr-download·docutils·container"> | 283 | <div·class="sphx-glr-download·docutils·container"> |
284 | <a·class="reference·download·internal"·download=""·href="../../_downloads/daef48626e37db7a7e3beae7016b8a71/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></div> | 284 | <a·class="reference·download·internal"·download=""·href="../../_downloads/daef48626e37db7a7e3beae7016b8a71/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></div> |
285 | <div·class="sphx-glr-download·docutils·container"> | 285 | <div·class="sphx-glr-download·docutils·container"> |
286 | <a·class="reference·download·internal"·download=""·href="../../_downloads/06404d62ac78a67c7972414c2612f2c9/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></div> | 286 | <a·class="reference·download·internal"·download=""·href="../../_downloads/06404d62ac78a67c7972414c2612f2c9/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></div> |
287 | </div> | 287 | </div> |
288 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 288 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> |
Offset 852, 15 lines modified | Offset 852, 15 lines modified | ||
852 | <span·class="n">diff</span>·<span·class="o">=</span>·<span·class="n">difflib</span><span·class="o">.</span><span·class="n">Differ</span><span·class="p">()</span> | 852 | <span·class="n">diff</span>·<span·class="o">=</span>·<span·class="n">difflib</span><span·class="o">.</span><span·class="n">Differ</span><span·class="p">()</span> |
853 | <span·class="k">for</span>·<span·class="n">line</span>·<span·class="ow">in</span>·<span·class="n">diff</span><span·class="o">.</span><span·class="n">compare</span><span·class="p">(</span><span·class="n">rep</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">],</span>·<span·class="n">rep</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]):</span> | 853 | <span·class="k">for</span>·<span·class="n">line</span>·<span·class="ow">in</span>·<span·class="n">diff</span><span·class="o">.</span><span·class="n">compare</span><span·class="p">(</span><span·class="n">rep</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">],</span>·<span·class="n">rep</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]):</span> |
854 | ····<span·class="k">if</span>·<span·class="n">line</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>·<span·class="o">!=</span>·<span·class="s2">"?"</span><span·class="p">:</span> | 854 | ····<span·class="k">if</span>·<span·class="n">line</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>·<span·class="o">!=</span>·<span·class="s2">"?"</span><span·class="p">:</span> |
855 | ········<span·class="k">print</span><span·class="p">(</span><span·class="n">line</span><span·class="p">)</span> | 855 | ········<span·class="k">print</span><span·class="p">(</span><span·class="n">line</span><span·class="p">)</span> |
856 | </pre></div> | 856 | </pre></div> |
857 | </div> | 857 | </div> |
858 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0. | 858 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.172·seconds)</p> |
859 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-dicom-difference-py"> | 859 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-dicom-difference-py"> |
860 | <div·class="sphx-glr-download·docutils·container"> | 860 | <div·class="sphx-glr-download·docutils·container"> |
861 | <a·class="reference·download·internal"·download=""·href="../_downloads/768d289e90d27dc2f3b851a6fe49f82e/plot_dicom_difference.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_dicom_difference.py</span></code></a></div> | 861 | <a·class="reference·download·internal"·download=""·href="../_downloads/768d289e90d27dc2f3b851a6fe49f82e/plot_dicom_difference.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_dicom_difference.py</span></code></a></div> |
862 | <div·class="sphx-glr-download·docutils·container"> | 862 | <div·class="sphx-glr-download·docutils·container"> |
863 | <a·class="reference·download·internal"·download=""·href="../_downloads/2e1e6361d3affd8fba81a8ad1f1e4b96/plot_dicom_difference.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_dicom_difference.ipynb</span></code></a></div> | 863 | <a·class="reference·download·internal"·download=""·href="../_downloads/2e1e6361d3affd8fba81a8ad1f1e4b96/plot_dicom_difference.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_dicom_difference.ipynb</span></code></a></div> |
864 | </div> | 864 | </div> |
865 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 865 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> |
Offset 2207, 16 lines modified | Offset 2207, 16 lines modified | ||
2207 | ········timestamp:·0, | 2207 | ········timestamp:·0, |
2208 | ········timestr:·8, | 2208 | ········timestr:·8, |
2209 | ········timezon:·[2,·4,·12], | 2209 | ········timezon:·[2,·4,·12], |
2210 | ········tix:·[1,·20,·24], | 2210 | ········tix:·[1,·20,·24], |
2211 | ········tkinter:·[1,·13,·18,·20,·23,·24], | 2211 | ········tkinter:·[1,·13,·18,·20,·23,·24], |
2212 | ········tkinter_tix:·1, | 2212 | ········tkinter_tix:·1, |
2213 | ········tmp:·8, | 2213 | ········tmp:·8, |
2214 | ········tmpl | 2214 | ········tmpalwi6728:·8, |
2215 | ········tmp | 2215 | ········tmpthnv0xbe:·8, |
2216 | ········tobyt:·[2,·35], | 2216 | ········tobyt:·[2,·35], |
2217 | ········togeth:·0, | 2217 | ········togeth:·0, |
2218 | ········toi:·11, | 2218 | ········toi:·11, |
2219 | ········toler:·[20,·25], | 2219 | ········toler:·[20,·25], |
2220 | ········too:·[0,·19,·20,·32], | 2220 | ········too:·[0,·19,·20,·32], |
2221 | ········tool:·36, | 2221 | ········tool:·36, |
2222 | ········top:·[0,·1,·9,·12], | 2222 | ········top:·[0,·1,·9,·12], |