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 | ·f8db742d0e20a67daf3426a4f633d918·352184·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·····5292·2018-11-23·22:32:08.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···34670 | 3 | -rw-r--r--···0········0········0···346700·2018-11-23·22:32:08.000000·data.tar.xz |
Offset 189, 15 lines modified | Offset 189, 15 lines modified | ||
189 | -rw-r--r--···0·root·········(0)·root·········(0)·····8267·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/index.html | 189 | -rw-r--r--···0·root·········(0)·root·········(0)·····8267·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/index.html |
190 | -rw-r--r--···0·root·········(0)·root·········(0)·····3342·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/objects.inv | 190 | -rw-r--r--···0·root·········(0)·root·········(0)·····3342·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/objects.inv |
191 | -rw-r--r--···0·root·········(0)·root·········(0)·····9949·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/py-modindex.html | 191 | -rw-r--r--···0·root·········(0)·root·········(0)·····9949·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/py-modindex.html |
192 | -rw-r--r--···0·root·········(0)·root·········(0)····11724·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/pydicom_user_guide.html | 192 | -rw-r--r--···0·root·········(0)·root·········(0)····11724·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/pydicom_user_guide.html |
193 | -rw-r--r--···0·root·········(0)·root·········(0)····24392·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/ref_guide.html | 193 | -rw-r--r--···0·root·········(0)·root·········(0)····24392·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/ref_guide.html |
194 | -rw-r--r--···0·root·········(0)·root·········(0)····50526·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/release-notes.html | 194 | -rw-r--r--···0·root·········(0)·root·········(0)····50526·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/release-notes.html |
195 | -rw-r--r--···0·root·········(0)·root·········(0)·····5972·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/search.html | 195 | -rw-r--r--···0·root·········(0)·root·········(0)·····5972·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/search.html |
196 | -rw-r--r--···0·root·········(0)·root·········(0)····4846 | 196 | -rw-r--r--···0·root·········(0)·root·········(0)····48464·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/searchindex.js |
197 | -rw-r--r--···0·root·········(0)·root·········(0)····20495·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/transition_to_pydicom1.html | 197 | -rw-r--r--···0·root·········(0)·root·········(0)····20495·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/transition_to_pydicom1.html |
198 | -rw-r--r--···0·root·········(0)·root·········(0)····13724·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/viewing_images.html | 198 | -rw-r--r--···0·root·········(0)·root·········(0)····13724·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/viewing_images.html |
199 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/ | 199 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/ |
200 | -rw-r--r--···0·root·········(0)·root·········(0)·····9615·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/v.0.9.4.html | 200 | -rw-r--r--···0·root·········(0)·root·········(0)·····9615·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/v.0.9.4.html |
201 | -rw-r--r--···0·root·········(0)·root·········(0)·····8637·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/v0.9.2.html | 201 | -rw-r--r--···0·root·········(0)·root·········(0)·····8637·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/v0.9.2.html |
202 | -rw-r--r--···0·root·········(0)·root·········(0)·····8281·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/v0.9.3.html | 202 | -rw-r--r--···0·root·········(0)·root·········(0)·····8281·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/v0.9.3.html |
203 | -rw-r--r--···0·root·········(0)·root·········(0)·····8020·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/v0.9.5.html | 203 | -rw-r--r--···0·root·········(0)·root·········(0)·····8020·2018-11-23·22:32:08.000000·./usr/share/doc/python-pydicom-doc/html/whatsnew/v0.9.5.html |
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.087·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.062·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. | 89 | **Total·running·time·of·the·script:**·(·0·minutes··0.109·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.409·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.01 | 65 | **Total·running·time·of·the·script:**·(·0·minutes··0.016·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/tmpb2ozfh3b.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/tmpvol__vka.dcm |
31 | ····Load·file·/tmp/tmp | 31 | ····Load·file·/tmp/tmpb2ozfh3b.dcm·... |
32 | ····(0008,·0023)·Content·Date························DA:·'2020070 | 32 | ····(0008,·0023)·Content·Date························DA:·'20200704' |
33 | ····(0008,·0033)·Content·Time························TM:·'0 | 33 | ····(0008,·0033)·Content·Time························TM:·'050503.240908' |
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/tmpb2ozfh3b.dcm·... |
37 | ····Load·file·/tmp/tmp | 37 | ····Load·file·/tmp/tmpvol__vka.dcm·... |
38 | ····(0008,·0023)·Content·Date························DA:·'2020070 | 38 | ····(0008,·0023)·Content·Date························DA:·'20200704' |
39 | ····(0008,·0033)·Content·Time························TM:·'0 | 39 | ····(0008,·0033)·Content·Time························TM:·'050503.240908' |
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/tmpvol__vka.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.0 | 120 | **Total·running·time·of·the·script:**·(·0·minutes··0.030·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 76, 15 lines modified | Offset 76, 15 lines modified | ||
76 | ····ds.TestOne·=·42 | 76 | ····ds.TestOne·=·42 |
77 | ····ds.TestTwo·=·'12345' | 77 | ····ds.TestTwo·=·'12345' |
78 | ····ds.TestThree·=·'1.2.3.4.5' | 78 | ····ds.TestThree·=·'1.2.3.4.5' |
79 | ····print(ds.top()) | 79 | ····print(ds.top()) |
80 | **Total·running·time·of·the·script:**·(·0·minutes··0.00 | 80 | **Total·running·time·of·the·script:**·(·0·minutes··0.003·seconds) |
81 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_add_dict_entries.py: | 81 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_add_dict_entries.py: |
82 | ..·only·::·html | 82 | ..·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.0 | 194 | **Total·running·time·of·the·script:**·(·0·minutes··0.047·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 64, 15 lines modified | Offset 64, 15 lines modified | ||
64 | ····#·create·a·new·data·set | 64 | ····#·create·a·new·data·set |
65 | ····block_ds3·=·Dataset() | 65 | ····block_ds3·=·Dataset() |
66 | ····#·add·data·elements·to·it·as·above·and·don't·forget·to·update·Number·of·Blocks | 66 | ····#·add·data·elements·to·it·as·above·and·don't·forget·to·update·Number·of·Blocks |
67 | ····#·data·element | 67 | ····#·data·element |
68 | ····beam0.BlockSequence.append(block_ds3) | 68 | ····beam0.BlockSequence.append(block_ds3) |
69 | ····del·plan_ds.BeamSequence[0].BlockSequence[1] | 69 | ····del·plan_ds.BeamSequence[0].BlockSequence[1] |
70 | **Total·running·time·of·the·script:**·(·0·minutes··0.00 | 70 | **Total·running·time·of·the·script:**·(·0·minutes··0.004·seconds) |
71 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_sequences.py: | 71 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_sequences.py: |
72 | ..·only·::·html | 72 | ..·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·· | 694 | **Total·running·time·of·the·script:**·(·0·minutes··1.042·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.087·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.062·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. | 252 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.109·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.409·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.01 | 230 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.016·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/tmpb2ozfh3b.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/tmpvol__vka.dcm |
202 | Load·file·/tmp/tmp | 202 | Load·file·/tmp/tmpb2ozfh3b.dcm·... |
203 | (0008,·0023)·Content·Date························DA:·'2020070 | 203 | (0008,·0023)·Content·Date························DA:·'20200704' |
204 | (0008,·0033)·Content·Time························TM:·'0 | 204 | (0008,·0033)·Content·Time························TM:·'050503.240908' |
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/tmpb2ozfh3b.dcm·... |
208 | Load·file·/tmp/tmp | 208 | Load·file·/tmp/tmpvol__vka.dcm·... |
209 | (0008,·0023)·Content·Date························DA:·'2020070 | 209 | (0008,·0023)·Content·Date························DA:·'20200704' |
210 | (0008,·0033)·Content·Time························TM:·'0 | 210 | (0008,·0033)·Content·Time························TM:·'050503.240908' |
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/tmpvol__vka.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.0 | 285 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.030·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 238, 15 lines modified | Offset 238, 15 lines modified | ||
238 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestOne</span>·<span·class="o">=</span>·<span·class="mi">42</span> | 238 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestOne</span>·<span·class="o">=</span>·<span·class="mi">42</span> |
239 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestTwo</span>·<span·class="o">=</span>·<span·class="s1">'12345'</span> | 239 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestTwo</span>·<span·class="o">=</span>·<span·class="s1">'12345'</span> |
240 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestThree</span>·<span·class="o">=</span>·<span·class="s1">'1.2.3.4.5'</span> | 240 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestThree</span>·<span·class="o">=</span>·<span·class="s1">'1.2.3.4.5'</span> |
241 | <span·class="k">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">top</span><span·class="p">())</span> | 241 | <span·class="k">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">top</span><span·class="p">())</span> |
242 | </pre></div> | 242 | </pre></div> |
243 | </div> | 243 | </div> |
244 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 244 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.003·seconds)</p> |
245 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-add-dict-entries-py"> | 245 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-add-dict-entries-py"> |
246 | <div·class="sphx-glr-download·docutils·container"> | 246 | <div·class="sphx-glr-download·docutils·container"> |
247 | <a·class="reference·download·internal"·download=""·href="../../_downloads/99ca9050111bf3b86bff31f9dd60084a/plot_add_dict_entries.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_add_dict_entries.py</span></code></a></div> | 247 | <a·class="reference·download·internal"·download=""·href="../../_downloads/99ca9050111bf3b86bff31f9dd60084a/plot_add_dict_entries.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_add_dict_entries.py</span></code></a></div> |
248 | <div·class="sphx-glr-download·docutils·container"> | 248 | <div·class="sphx-glr-download·docutils·container"> |
249 | <a·class="reference·download·internal"·download=""·href="../../_downloads/115828d1355ea2e438954c0f0197c1b3/plot_add_dict_entries.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_add_dict_entries.ipynb</span></code></a></div> | 249 | <a·class="reference·download·internal"·download=""·href="../../_downloads/115828d1355ea2e438954c0f0197c1b3/plot_add_dict_entries.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_add_dict_entries.ipynb</span></code></a></div> |
250 | </div> | 250 | </div> |
251 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 251 | <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.0 | 281 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.047·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 226, 15 lines modified | Offset 226, 15 lines modified | ||
226 | <span·class="n">block_ds3</span>·<span·class="o">=</span>·<span·class="n">Dataset</span><span·class="p">()</span> | 226 | <span·class="n">block_ds3</span>·<span·class="o">=</span>·<span·class="n">Dataset</span><span·class="p">()</span> |
227 | <span·class="c1">#·add·data·elements·to·it·as·above·and·don't·forget·to·update·Number·of·Blocks</span> | 227 | <span·class="c1">#·add·data·elements·to·it·as·above·and·don't·forget·to·update·Number·of·Blocks</span> |
228 | <span·class="c1">#·data·element</span> | 228 | <span·class="c1">#·data·element</span> |
229 | <span·class="n">beam0</span><span·class="o">.</span><span·class="n">BlockSequence</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">block_ds3</span><span·class="p">)</span> | 229 | <span·class="n">beam0</span><span·class="o">.</span><span·class="n">BlockSequence</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">block_ds3</span><span·class="p">)</span> |
230 | <span·class="k">del</span>·<span·class="n">plan_ds</span><span·class="o">.</span><span·class="n">BeamSequence</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">BlockSequence</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span> | 230 | <span·class="k">del</span>·<span·class="n">plan_ds</span><span·class="o">.</span><span·class="n">BeamSequence</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">BlockSequence</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span> |
231 | </pre></div> | 231 | </pre></div> |
232 | </div> | 232 | </div> |
233 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 233 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.004·seconds)</p> |
234 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-sequences-py"> | 234 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-metadata-processing-plot-sequences-py"> |
235 | <div·class="sphx-glr-download·docutils·container"> | 235 | <div·class="sphx-glr-download·docutils·container"> |
236 | <a·class="reference·download·internal"·download=""·href="../../_downloads/74ac4db3b7a5d9ea93319fbcae4f1506/plot_sequences.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_sequences.py</span></code></a></div> | 236 | <a·class="reference·download·internal"·download=""·href="../../_downloads/74ac4db3b7a5d9ea93319fbcae4f1506/plot_sequences.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_sequences.py</span></code></a></div> |
237 | <div·class="sphx-glr-download·docutils·container"> | 237 | <div·class="sphx-glr-download·docutils·container"> |
238 | <a·class="reference·download·internal"·download=""·href="../../_downloads/322c7776d04c4e12ad272a0fa2bb90b3/plot_sequences.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_sequences.ipynb</span></code></a></div> | 238 | <a·class="reference·download·internal"·download=""·href="../../_downloads/322c7776d04c4e12ad272a0fa2bb90b3/plot_sequences.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_sequences.ipynb</span></code></a></div> |
239 | </div> | 239 | </div> |
240 | <p·class="sphx-glr-signature"><a·class="reference·external"·href="https://sphinx-gallery.readthedocs.io">Gallery·generated·by·Sphinx-Gallery</a></p> | 240 | <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·· | 858 | <p><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··1.042·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 2206, 17 lines modified | Offset 2206, 17 lines modified | ||
2206 | ········time:·[0,·1,·2,·4,·5,·6,·7,·8,·9,·10,·11,·12,·13,·14,·20,·21,·23,·31,·35,·36], | 2206 | ········time:·[0,·1,·2,·4,·5,·6,·7,·8,·9,·10,·11,·12,·13,·14,·20,·21,·23,·31,·35,·36], |
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 | ········tmp7tqwn68:·8, | ||
2214 | ········tmp:·8, | 2213 | ········tmp:·8, |
2215 | ········tmp | 2214 | ········tmpb2ozfh3b:·8, |
2215 | ········tmpvol__vka:·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], |