Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·368d6b18d5ed07fe3dd542a2c91e61fd·963120·doc·optional·python-pydicom-doc_2.4.3-1_all.deb |
2 | ·ecc65934d550121ff19bbd98a74c72e3·1119976·python·optional·python3-pydicom_2.4.3-1_all.deb | 2 | ·ecc65934d550121ff19bbd98a74c72e3·1119976·python·optional·python3-pydicom_2.4.3-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-01-26·12:08:13.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-01-26·12:08:13.000000·debian-binary |
2 | -rw-r--r--···0········0········0····297 | 2 | -rw-r--r--···0········0········0····29760·2024-01-26·12:08:13.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···933 | 3 | -rw-r--r--···0········0········0···933168·2024-01-26·12:08:13.000000·data.tar.xz |
Offset 1162, 15 lines modified | Offset 1162, 15 lines modified | ||
1162 | -rw-r--r--···0·root·········(0)·root·········(0)····30101·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.0.html | 1162 | -rw-r--r--···0·root·········(0)·root·········(0)····30101·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.0.html |
1163 | -rw-r--r--···0·root·········(0)·root·········(0)·····6968·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.1.html | 1163 | -rw-r--r--···0·root·········(0)·root·········(0)·····6968·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.1.1.html |
1164 | -rw-r--r--···0·root·········(0)·root·········(0)····24705·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.2.0.html | 1164 | -rw-r--r--···0·root·········(0)·root·········(0)····24705·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.2.0.html |
1165 | -rw-r--r--···0·root·········(0)·root·········(0)····13875·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.3.0.html | 1165 | -rw-r--r--···0·root·········(0)·root·········(0)····13875·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.3.0.html |
1166 | -rw-r--r--···0·root·········(0)·root·········(0)····11969·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.0.html | 1166 | -rw-r--r--···0·root·········(0)·root·········(0)····11969·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.0.html |
1167 | -rw-r--r--···0·root·········(0)·root·········(0)·····6445·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.3.html | 1167 | -rw-r--r--···0·root·········(0)·root·········(0)·····6445·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/release_notes/v2.4.3.html |
1168 | -rw-r--r--···0·root·········(0)·root·········(0)·····6357·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/search.html | 1168 | -rw-r--r--···0·root·········(0)·root·········(0)·····6357·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/search.html |
1169 | -rw-r--r--···0·root·········(0)·root·········(0)···4416 | 1169 | -rw-r--r--···0·root·········(0)·root·········(0)···441669·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/searchindex.js |
1170 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/ | 1170 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/ |
1171 | -rw-r--r--···0·root·········(0)·root·········(0)·····8645·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing.html | 1171 | -rw-r--r--···0·root·········(0)·root·········(0)·····8645·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing.html |
1172 | -rw-r--r--···0·root·········(0)·root·········(0)····28294·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_code.html | 1172 | -rw-r--r--···0·root·········(0)·root·········(0)····28294·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_code.html |
1173 | -rw-r--r--···0·root·········(0)·root·········(0)····26313·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_docs.html | 1173 | -rw-r--r--···0·root·········(0)·root·········(0)····26313·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/contributing_docs.html |
1174 | -rw-r--r--···0·root·········(0)·root·········(0)····72022·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dataset_basics.html | 1174 | -rw-r--r--···0·root·········(0)·root·········(0)····72022·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dataset_basics.html |
1175 | -rw-r--r--···0·root·········(0)·root·········(0)····22003·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dicom_json.html | 1175 | -rw-r--r--···0·root·········(0)·root·········(0)····22003·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/dicom_json.html |
1176 | -rw-r--r--···0·root·········(0)·root·········(0)····63353·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/filesets.html | 1176 | -rw-r--r--···0·root·········(0)·root·········(0)····63353·2024-01-26·12:08:13.000000·./usr/share/doc/python-pydicom-doc/html/tutorials/filesets.html |
Offset 83, 15 lines modified | Offset 83, 15 lines modified | ||
83 | ····fig.tight_layout(pad=1) | 83 | ····fig.tight_layout(pad=1) |
84 | ····plt.show() | 84 | ····plt.show() |
85 | ..·rst-class::·sphx-glr-timing | 85 | ..·rst-class::·sphx-glr-timing |
86 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.1 | 86 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.188·seconds) |
87 | ..·_sphx_glr_download_auto_examples_image_processing_plot_waveforms.py: | 87 | ..·_sphx_glr_download_auto_examples_image_processing_plot_waveforms.py: |
88 | ..·only·::·html | 88 | ..·only·::·html |
Offset 1, 16 lines modified | Offset 1, 16 lines modified | ||
1 | :orphan: | 1 | :orphan: |
2 | ..·_sphx_glr_auto_examples_image_processing_sg_execution_times: | 2 | ..·_sphx_glr_auto_examples_image_processing_sg_execution_times: |
3 | Computation·times | 3 | Computation·times |
4 | ================= | 4 | ================= |
5 | **00:00. | 5 | **00:00.194**·total·execution·time·for·**auto_examples_image_processing**·files: |
6 | +----------------------------------------------------------------------------------------------------+-----------+--------+ | 6 | +----------------------------------------------------------------------------------------------------+-----------+--------+ |
7 | |·:ref:`sphx_glr_auto_examples_image_processing_plot_waveforms.py`·(``plot_waveforms.py``)···········|·00:00.1 | 7 | |·:ref:`sphx_glr_auto_examples_image_processing_plot_waveforms.py`·(``plot_waveforms.py``)···········|·00:00.188·|·0.0·MB·| |
8 | +----------------------------------------------------------------------------------------------------+-----------+--------+ | 8 | +----------------------------------------------------------------------------------------------------+-----------+--------+ |
9 | |·:ref:`sphx_glr_auto_examples_image_processing_plot_downsize_image.py`·(``plot_downsize_image.py``)·|·00:00.007·|·0.0·MB·| | 9 | |·:ref:`sphx_glr_auto_examples_image_processing_plot_downsize_image.py`·(``plot_downsize_image.py``)·|·00:00.007·|·0.0·MB·| |
10 | +----------------------------------------------------------------------------------------------------+-----------+--------+ | 10 | +----------------------------------------------------------------------------------------------------+-----------+--------+ |
11 | |·:ref:`sphx_glr_auto_examples_image_processing_reslice.py`·(``reslice.py``)·························|·00:00.000·|·0.0·MB·| | 11 | |·:ref:`sphx_glr_auto_examples_image_processing_reslice.py`·(``reslice.py``)·························|·00:00.000·|·0.0·MB·| |
12 | +----------------------------------------------------------------------------------------------------+-----------+--------+ | 12 | +----------------------------------------------------------------------------------------------------+-----------+--------+ |
Offset 93, 15 lines modified | Offset 93, 15 lines modified | ||
93 | ····#·plot·the·image·using·matplotlib | 93 | ····#·plot·the·image·using·matplotlib |
94 | ····plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) | 94 | ····plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) |
95 | ····plt.show() | 95 | ····plt.show() |
96 | ..·rst-class::·sphx-glr-timing | 96 | ..·rst-class::·sphx-glr-timing |
97 | ···**Total·running·time·of·the·script:**·(·0·minutes··0. | 97 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.098·seconds) |
98 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: | 98 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_dicom.py: |
99 | ..·only·::·html | 99 | ..·only·::·html |
Offset 101, 15 lines modified | Offset 101, 15 lines modified | ||
101 | ········Modality=MR·-·3·SOP·Instances | 101 | ········Modality=MR·-·3·SOP·Instances |
102 | ········Modality=MR·-·7·SOP·Instances | 102 | ········Modality=MR·-·7·SOP·Instances |
103 | ····Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 103 | ····Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
104 | ····Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading | 104 | ····Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading |
105 | ····Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests | 105 | ····Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests |
106 | ····File-set·copied·to·/tmp/tmp | 106 | ····File-set·copied·to·/tmp/tmpdro3qn8c·and·contains·the·following·files: |
107 | ······DICOMDIR | 107 | ······DICOMDIR |
108 | ······PT000000/ST000000/SE000000/IM000000 | 108 | ······PT000000/ST000000/SE000000/IM000000 |
109 | ······PT000000/ST000000/SE000001/IM000000 | 109 | ······PT000000/ST000000/SE000001/IM000000 |
110 | ······PT000000/ST000000/SE000002/IM000000 | 110 | ······PT000000/ST000000/SE000002/IM000000 |
111 | ······PT000000/ST000001/SE000000/IM000000 | 111 | ······PT000000/ST000001/SE000000/IM000000 |
112 | ······PT000000/ST000001/SE000000/IM000001 | 112 | ······PT000000/ST000001/SE000000/IM000001 |
113 | ······PT000000/ST000001/SE000000/IM000002 | 113 | ······PT000000/ST000001/SE000000/IM000002 |
Offset 75, 15 lines modified | Offset 75, 15 lines modified | ||
75 | ····filename·=·get_testdata_file('rtplan.dcm') | 75 | ····filename·=·get_testdata_file('rtplan.dcm') |
76 | ····dataset·=·pydicom.dcmread(filename) | 76 | ····dataset·=·pydicom.dcmread(filename) |
77 | ····print(list_beams(dataset)) | 77 | ····print(list_beams(dataset)) |
78 | ..·rst-class::·sphx-glr-timing | 78 | ..·rst-class::·sphx-glr-timing |
79 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.00 | 79 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.003·seconds) |
80 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_rtplan.py: | 80 | ..·_sphx_glr_download_auto_examples_input_output_plot_read_rtplan.py: |
81 | ..·only·::·html | 81 | ..·only·::·html |
Offset 35, 40 lines modified | Offset 35, 40 lines modified | ||
35 | ·Out: | 35 | ·Out: |
36 | ·..·code-block::·none | 36 | ·..·code-block::·none |
37 | ····Setting·file·meta·information... | 37 | ····Setting·file·meta·information... |
38 | ····Setting·dataset·values... | 38 | ····Setting·dataset·values... |
39 | ····Writing·test·file·/tmp/tmp | 39 | ····Writing·test·file·/tmp/tmpyxh55zqw.dcm |
40 | ····File·saved. | 40 | ····File·saved. |
41 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 41 | ····Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpqahzj9dq.dcm |
42 | ····Load·file·/tmp/tmp | 42 | ····Load·file·/tmp/tmpyxh55zqw.dcm·... |
43 | ····Dataset.file_meta·------------------------------- | 43 | ····Dataset.file_meta·------------------------------- |
44 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 44 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
45 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 45 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
46 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 46 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
47 | ····------------------------------------------------- | 47 | ····------------------------------------------------- |
48 | ····(0008,·0023)·Content·Date························DA:·'202 | 48 | ····(0008,·0023)·Content·Date························DA:·'20240419' |
49 | ····(0008,·0033)·Content·Time························TM:·'0 | 49 | ····(0008,·0033)·Content·Time························TM:·'001516.845190' |
50 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 50 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
51 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 51 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
52 | ····Remove·file·/tmp/tmp | 52 | ····Remove·file·/tmp/tmpyxh55zqw.dcm·... |
53 | ····Load·file·/tmp/tmp | 53 | ····Load·file·/tmp/tmpqahzj9dq.dcm·... |
54 | ····Dataset.file_meta·------------------------------- | 54 | ····Dataset.file_meta·------------------------------- |
55 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 55 | ····(0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
56 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 56 | ····(0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
57 | ····(0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 57 | ····(0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
58 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 58 | ····(0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
59 | ····------------------------------------------------- | 59 | ····------------------------------------------------- |
60 | ····(0008,·0023)·Content·Date························DA:·'202 | 60 | ····(0008,·0023)·Content·Date························DA:·'20240419' |
61 | ····(0008,·0033)·Content·Time························TM:·'0 | 61 | ····(0008,·0033)·Content·Time························TM:·'001516.845190' |
62 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 62 | ····(0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
63 | ····(0010,·0020)·Patient·ID··························LO:·'123456' | 63 | ····(0010,·0020)·Patient·ID··························LO:·'123456' |
64 | ····Remove·file·/tmp/tmp | 64 | ····Remove·file·/tmp/tmpqahzj9dq.dcm·... |
65 | | | 65 | | |
Offset 1, 22 lines modified | Offset 1, 22 lines modified | ||
1 | :orphan: | 1 | :orphan: |
2 | ..·_sphx_glr_auto_examples_input_output_sg_execution_times: | 2 | ..·_sphx_glr_auto_examples_input_output_sg_execution_times: |
3 | Computation·times | 3 | Computation·times |
4 | ================= | 4 | ================= |
5 | **00:00.36 | 5 | **00:00.360**·total·execution·time·for·**auto_examples_input_output**·files: |
6 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 6 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
7 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_fileset.py`·(``plot_read_fileset.py``)·················|·00:00.23 | 7 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_fileset.py`·(``plot_read_fileset.py``)·················|·00:00.233·|·0.0·MB·| |
8 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 8 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
9 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_dicom.py`·(``plot_read_dicom.py``)·····················|·00:00. | 9 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_dicom.py`·(``plot_read_dicom.py``)·····················|·00:00.098·|·0.0·MB·| |
10 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 10 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
11 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_dicom_directory.py`·(``plot_read_dicom_directory.py``)·|·00:00.014·|·0.0·MB·| | 11 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_dicom_directory.py`·(``plot_read_dicom_directory.py``)·|·00:00.014·|·0.0·MB·| |
12 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 12 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
13 | |·:ref:`sphx_glr_auto_examples_input_output_plot_printing_dataset.py`·(``plot_printing_dataset.py``)·········|·00:00.006·|·0.0·MB·| | 13 | |·:ref:`sphx_glr_auto_examples_input_output_plot_printing_dataset.py`·(``plot_printing_dataset.py``)·········|·00:00.006·|·0.0·MB·| |
14 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 14 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
15 | |·:ref:`sphx_glr_auto_examples_input_output_plot_write_dicom.py`·(``plot_write_dicom.py``)···················|·00:00.006·|·0.0·MB·| | 15 | |·:ref:`sphx_glr_auto_examples_input_output_plot_write_dicom.py`·(``plot_write_dicom.py``)···················|·00:00.006·|·0.0·MB·| |
16 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 16 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
17 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_rtplan.py`·(``plot_read_rtplan.py``)···················|·00:00.00 | 17 | |·:ref:`sphx_glr_auto_examples_input_output_plot_read_rtplan.py`·(``plot_read_rtplan.py``)···················|·00:00.003·|·0.0·MB·| |
18 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ | 18 | +------------------------------------------------------------------------------------------------------------+-----------+--------+ |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | ····ds.TestThree·=·'1.2.3.4.5' | 91 | ····ds.TestThree·=·'1.2.3.4.5' |
92 | ····print(ds.top()) | 92 | ····print(ds.top()) |
93 | ..·rst-class::·sphx-glr-timing | 93 | ..·rst-class::·sphx-glr-timing |
94 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.00 | 94 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.001·seconds) |
95 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_add_dict_entries.py: | 95 | ..·_sphx_glr_download_auto_examples_metadata_processing_plot_add_dict_entries.py: |
96 | ..·only·::·html | 96 | ..·only·::·html |
Offset 8, 9 lines modified | Offset 8, 9 lines modified | ||
8 | **00:00.013**·total·execution·time·for·**auto_examples_metadata_processing**·files: | 8 | **00:00.013**·total·execution·time·for·**auto_examples_metadata_processing**·files: |
9 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ | 9 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ |
10 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_anonymize.py`·(``plot_anonymize.py``)···············|·00:00.010·|·0.0·MB·| | 10 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_anonymize.py`·(``plot_anonymize.py``)···············|·00:00.010·|·0.0·MB·| |
11 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ | 11 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ |
12 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_sequences.py`·(``plot_sequences.py``)···············|·00:00.002·|·0.0·MB·| | 12 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_sequences.py`·(``plot_sequences.py``)···············|·00:00.002·|·0.0·MB·| |
13 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ | 13 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ |
14 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_add_dict_entries.py`·(``plot_add_dict_entries.py``)·|·00:00.00 | 14 | |·:ref:`sphx_glr_auto_examples_metadata_processing_plot_add_dict_entries.py`·(``plot_add_dict_entries.py``)·|·00:00.001·|·0.0·MB·| |
15 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ | 15 | +-----------------------------------------------------------------------------------------------------------+-----------+--------+ |
Offset 747, 15 lines modified | Offset 747, 15 lines modified | ||
747 | ····for·line·in·diff.compare(rep[0],·rep[1]): | 747 | ····for·line·in·diff.compare(rep[0],·rep[1]): |
748 | ········if·line[0]·!=·"?": | 748 | ········if·line[0]·!=·"?": |
749 | ············print(line) | 749 | ············print(line) |
750 | ..·rst-class::·sphx-glr-timing | 750 | ..·rst-class::·sphx-glr-timing |
751 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.09 | 751 | ···**Total·running·time·of·the·script:**·(·0·minutes··0.094·seconds) |
752 | ..·_sphx_glr_download_auto_examples_plot_dicom_difference.py: | 752 | ..·_sphx_glr_download_auto_examples_plot_dicom_difference.py: |
753 | ..·only·::·html | 753 | ..·only·::·html |
Offset 1, 18 lines modified | Offset 1, 18 lines modified | ||
1 | :orphan: | 1 | :orphan: |
2 | ..·_sphx_glr_auto_examples_sg_execution_times: | 2 | ..·_sphx_glr_auto_examples_sg_execution_times: |
3 | Computation·times | 3 | Computation·times |
4 | ================= | 4 | ================= |
5 | **00:00.09 | 5 | **00:00.094**·total·execution·time·for·**auto_examples**·files: |
6 | +---------------------------------------------------------------------------------------+-----------+--------+ | 6 | +---------------------------------------------------------------------------------------+-----------+--------+ |
7 | |·:ref:`sphx_glr_auto_examples_plot_dicom_difference.py`·(``plot_dicom_difference.py``)·|·00:00.09 | 7 | |·:ref:`sphx_glr_auto_examples_plot_dicom_difference.py`·(``plot_dicom_difference.py``)·|·00:00.094·|·0.0·MB·| |
8 | +---------------------------------------------------------------------------------------+-----------+--------+ | 8 | +---------------------------------------------------------------------------------------+-----------+--------+ |
9 | |·:ref:`sphx_glr_auto_examples_dicomtree.py`·(``dicomtree.py``)·························|·00:00.000·|·0.0·MB·| | 9 | |·:ref:`sphx_glr_auto_examples_dicomtree.py`·(``dicomtree.py``)·························|·00:00.000·|·0.0·MB·| |
10 | +---------------------------------------------------------------------------------------+-----------+--------+ | 10 | +---------------------------------------------------------------------------------------+-----------+--------+ |
11 | |·:ref:`sphx_glr_auto_examples_memory_dataset.py`·(``memory_dataset.py``)···············|·00:00.000·|·0.0·MB·| | 11 | |·:ref:`sphx_glr_auto_examples_memory_dataset.py`·(``memory_dataset.py``)···············|·00:00.000·|·0.0·MB·| |
12 | +---------------------------------------------------------------------------------------+-----------+--------+ | 12 | +---------------------------------------------------------------------------------------+-----------+--------+ |
13 | |·:ref:`sphx_glr_auto_examples_show_charset_name.py`·(``show_charset_name.py``)·········|·00:00.000·|·0.0·MB·| | 13 | |·:ref:`sphx_glr_auto_examples_show_charset_name.py`·(``show_charset_name.py``)·········|·00:00.000·|·0.0·MB·| |
14 | +---------------------------------------------------------------------------------------+-----------+--------+ | 14 | +---------------------------------------------------------------------------------------+-----------+--------+ |
Offset 157, 15 lines modified | Offset 157, 15 lines modified | ||
157 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">x_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> | 157 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_xlabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">x_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> |
158 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">y_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> | 158 | ····<span·class="n">ax</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"(</span><span·class="si">{</span><span·class="n">y_units</span><span·class="si">}</span><span·class="s2">)"</span><span·class="p">)</span> |
159 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">tight_layout</span><span·class="p">(</span><span·class="n">pad</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> | 159 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">tight_layout</span><span·class="p">(</span><span·class="n">pad</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span> |
160 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 160 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
161 | </pre></div> | 161 | </pre></div> |
162 | </div> | 162 | </div> |
163 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.1 | 163 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.188·seconds)</p> |
164 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-waveforms-py"> | 164 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-image-processing-plot-waveforms-py"> |
165 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 165 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
166 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/37526ba18181b1083cb01706ece1f85f/plot_waveforms.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_waveforms.py</span></code></a></p> | 166 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/37526ba18181b1083cb01706ece1f85f/plot_waveforms.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_waveforms.py</span></code></a></p> |
167 | </div> | 167 | </div> |
168 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 168 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
169 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/e5a4893fc2534cd7549d6717555a1054/plot_waveforms.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_waveforms.ipynb</span></code></a></p> | 169 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/e5a4893fc2534cd7549d6717555a1054/plot_waveforms.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_waveforms.ipynb</span></code></a></p> |
170 | </div> | 170 | </div> |
Offset 70, 15 lines modified | Offset 70, 15 lines modified | ||
70 | ····ax.plot(x,·arr[...,·ch_idx]) | 70 | ····ax.plot(x,·arr[...,·ch_idx]) |
71 | ····ax.set_title(f"{mplx_label}:·{ch_source}") | 71 | ····ax.set_title(f"{mplx_label}:·{ch_source}") |
72 | ····ax.set_xlabel(f"({x_units})") | 72 | ····ax.set_xlabel(f"({x_units})") |
73 | ····ax.set_ylabel(f"({y_units})") | 73 | ····ax.set_ylabel(f"({y_units})") |
74 | fig.tight_layout(pad=1) | 74 | fig.tight_layout(pad=1) |
75 | plt.show() | 75 | plt.show() |
76 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.1 | 76 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.188·seconds) |
77 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8p_\x8y | 77 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8p_\x8y |
78 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 78 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8w_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
79 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 79 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
80 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 80 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
81 | =============================================================================== | 81 | =============================================================================== |
82 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 82 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
83 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 83 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 98, 19 lines modified | Offset 98, 19 lines modified | ||
98 | ··<hr/> | 98 | ··<hr/> |
99 | </div> | 99 | </div> |
100 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> | 100 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> |
101 | ···········<div·itemprop="articleBody"> | 101 | ···········<div·itemprop="articleBody"> |
102 | ············· | 102 | ············· |
103 | ··<section·id="computation-times"> | 103 | ··<section·id="computation-times"> |
104 | <span·id="sphx-glr-auto-examples-image-processing-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Link·to·this·heading">¶</a></h1> | 104 | <span·id="sphx-glr-auto-examples-image-processing-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Link·to·this·heading">¶</a></h1> |
105 | <p><strong>00:00. | 105 | <p><strong>00:00.194</strong>·total·execution·time·for·<strong>auto_examples_image_processing</strong>·files:</p> |
106 | <table·class="docutils·align-default"> | 106 | <table·class="docutils·align-default"> |
107 | <tbody> | 107 | <tbody> |
108 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_waveforms.html#sphx-glr-auto-examples-image-processing-plot-waveforms-py"><span·class="std·std-ref">Decode·and·plot·Waveform·Data</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_waveforms.py</span></code>)</p></td> | 108 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_waveforms.html#sphx-glr-auto-examples-image-processing-plot-waveforms-py"><span·class="std·std-ref">Decode·and·plot·Waveform·Data</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_waveforms.py</span></code>)</p></td> |
109 | <td><p>00:00.1 | 109 | <td><p>00:00.188</p></td> |
110 | <td><p>0.0·MB</p></td> | 110 | <td><p>0.0·MB</p></td> |
111 | </tr> | 111 | </tr> |
112 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_downsize_image.html#sphx-glr-auto-examples-image-processing-plot-downsize-image-py"><span·class="std·std-ref">Downsize·MRI·image·using·pydicom</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_downsize_image.py</span></code>)</p></td> | 112 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_downsize_image.html#sphx-glr-auto-examples-image-processing-plot-downsize-image-py"><span·class="std·std-ref">Downsize·MRI·image·using·pydicom</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_downsize_image.py</span></code>)</p></td> |
113 | <td><p>00:00.007</p></td> | 113 | <td><p>00:00.007</p></td> |
114 | <td><p>0.0·MB</p></td> | 114 | <td><p>0.0·MB</p></td> |
115 | </tr> | 115 | </tr> |
116 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="reslice.html#sphx-glr-auto-examples-image-processing-reslice-py"><span·class="std·std-ref">Load·CT·slices·and·plot·axial,·sagittal·and·coronal·images</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">reslice.py</span></code>)</p></td> | 116 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="reslice.html#sphx-glr-auto-examples-image-processing-reslice-py"><span·class="std·std-ref">Load·CT·slices·and·plot·axial,·sagittal·and·coronal·images</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">reslice.py</span></code>)</p></td> |
Offset 19, 15 lines modified | Offset 19, 15 lines modified | ||
19 | ····*·_\x8C_\x8o_\x8n_\x8t_\x8r_\x8i_\x8b_\x8u_\x8t_\x8i_\x8n_\x8g_\x8·_\x8t_\x8o_\x8·_\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m | 19 | ····*·_\x8C_\x8o_\x8n_\x8t_\x8r_\x8i_\x8b_\x8u_\x8t_\x8i_\x8n_\x8g_\x8·_\x8t_\x8o_\x8·_\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m |
20 | ····*·_\x8F_\x8r_\x8e_\x8q_\x8u_\x8e_\x8n_\x8t_\x8l_\x8y_\x8·_\x8a_\x8s_\x8k_\x8e_\x8d_\x8·_\x8q_\x8u_\x8e_\x8s_\x8t_\x8i_\x8o_\x8n_\x8s | 20 | ····*·_\x8F_\x8r_\x8e_\x8q_\x8u_\x8e_\x8n_\x8t_\x8l_\x8y_\x8·_\x8a_\x8s_\x8k_\x8e_\x8d_\x8·_\x8q_\x8u_\x8e_\x8s_\x8t_\x8i_\x8o_\x8n_\x8s |
21 | ····*·_\x8R_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8·_\x8n_\x8o_\x8t_\x8e_\x8s | 21 | ····*·_\x8R_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8·_\x8n_\x8o_\x8t_\x8e_\x8s |
22 | _\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m | 22 | _\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m |
23 | ····*·Computation·times | 23 | ····*·Computation·times |
24 | =============================================================================== | 24 | =============================================================================== |
25 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8om\x8mp\x8pu\x8ut\x8ta\x8at\x8ti\x8io\x8on\x8n·t\x8ti\x8im\x8me\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* | 25 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8om\x8mp\x8pu\x8ut\x8ta\x8at\x8ti\x8io\x8on\x8n·t\x8ti\x8im\x8me\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* |
26 | 0\x800\x80:\x8:0\x800\x80.\x8. | 26 | 0\x800\x80:\x8:0\x800\x80.\x8.1.19.94.4·total·execution·time·for·a\x8au\x8ut\x8to\x8o_\x8_e\x8ex\x8xa\x8am\x8mp\x8pl\x8le\x8es\x8s_\x8_i\x8im\x8ma\x8ag\x8ge\x8e_\x8_p\x8pr\x8ro\x8oc\x8ce\x8es\x8ss\x8si\x8in\x8ng\x8g·files: |
27 | _\x8D_\x8e_\x8c_\x8o_\x8d_\x8e_\x8·_\x8a_\x8n_\x8d_\x8·_\x8p_\x8l_\x8o_\x8t_\x8·_\x8W_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8·_\x8D_\x8a_\x8t_\x8a·(plot_waveforms.py)···········00:00.1 | 27 | _\x8D_\x8e_\x8c_\x8o_\x8d_\x8e_\x8·_\x8a_\x8n_\x8d_\x8·_\x8p_\x8l_\x8o_\x8t_\x8·_\x8W_\x8a_\x8v_\x8e_\x8f_\x8o_\x8r_\x8m_\x8·_\x8D_\x8a_\x8t_\x8a·(plot_waveforms.py)···········00:00.188·0.0·MB |
28 | _\x8D_\x8o_\x8w_\x8n_\x8s_\x8i_\x8z_\x8e_\x8·_\x8M_\x8R_\x8I_\x8·_\x8i_\x8m_\x8a_\x8g_\x8e_\x8·_\x8u_\x8s_\x8i_\x8n_\x8g_\x8·_\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m·(plot_downsize_image.py)···00:00.007·0.0·MB | 28 | _\x8D_\x8o_\x8w_\x8n_\x8s_\x8i_\x8z_\x8e_\x8·_\x8M_\x8R_\x8I_\x8·_\x8i_\x8m_\x8a_\x8g_\x8e_\x8·_\x8u_\x8s_\x8i_\x8n_\x8g_\x8·_\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m·(plot_downsize_image.py)···00:00.007·0.0·MB |
29 | _\x8L_\x8o_\x8a_\x8d_\x8·_\x8C_\x8T_\x8·_\x8s_\x8l_\x8i_\x8c_\x8e_\x8s_\x8·_\x8a_\x8n_\x8d_\x8·_\x8p_\x8l_\x8o_\x8t_\x8·_\x8a_\x8x_\x8i_\x8a_\x8l_\x8,_\x8·_\x8s_\x8a_\x8g_\x8i_\x8t_\x8t_\x8a_\x8l_\x8·_\x8a_\x8n_\x8d_\x8·_\x8c_\x8o_\x8r_\x8o_\x8n_\x8a_\x8l_\x8·_\x8i_\x8m_\x8a_\x8g_\x8e_\x8s··00:00.000·0.0·MB | 29 | _\x8L_\x8o_\x8a_\x8d_\x8·_\x8C_\x8T_\x8·_\x8s_\x8l_\x8i_\x8c_\x8e_\x8s_\x8·_\x8a_\x8n_\x8d_\x8·_\x8p_\x8l_\x8o_\x8t_\x8·_\x8a_\x8x_\x8i_\x8a_\x8l_\x8,_\x8·_\x8s_\x8a_\x8g_\x8i_\x8t_\x8t_\x8a_\x8l_\x8·_\x8a_\x8n_\x8d_\x8·_\x8c_\x8o_\x8r_\x8o_\x8n_\x8a_\x8l_\x8·_\x8i_\x8m_\x8a_\x8g_\x8e_\x8s··00:00.000·0.0·MB |
30 | (reslice.py) | 30 | (reslice.py) |
31 | =============================================================================== | 31 | =============================================================================== |
32 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 32 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
33 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 33 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 164, 15 lines modified | Offset 164, 15 lines modified | ||
164 | <span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"Slice·location...:·</span><span·class="si">{</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s1">'SliceLocation'</span><span·class="p">,</span><span·class="w">·</span><span·class="s1">'(missing)'</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> | 164 | <span·class="nb">print</span><span·class="p">(</span><span·class="sa">f</span><span·class="s2">"Slice·location...:·</span><span·class="si">{</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s1">'SliceLocation'</span><span·class="p">,</span><span·class="w">·</span><span·class="s1">'(missing)'</span><span·class="p">)</span><span·class="si">}</span><span·class="s2">"</span><span·class="p">)</span> |
165 | <span·class="c1">#·plot·the·image·using·matplotlib</span> | 165 | <span·class="c1">#·plot·the·image·using·matplotlib</span> |
166 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">pixel_array</span><span·class="p">,</span>·<span·class="n">cmap</span><span·class="o">=</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">cm</span><span·class="o">.</span><span·class="n">gray</span><span·class="p">)</span> | 166 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">imshow</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">pixel_array</span><span·class="p">,</span>·<span·class="n">cmap</span><span·class="o">=</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">cm</span><span·class="o">.</span><span·class="n">gray</span><span·class="p">)</span> |
167 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 167 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
168 | </pre></div> | 168 | </pre></div> |
169 | </div> | 169 | </div> |
170 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0. | 170 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.098·seconds)</p> |
171 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> | 171 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-dicom-py"> |
172 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 172 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
173 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/5e2195081f5a423e984744f70649688b/plot_read_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom.py</span></code></a></p> | 173 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/5e2195081f5a423e984744f70649688b/plot_read_dicom.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">plot_read_dicom.py</span></code></a></p> |
174 | </div> | 174 | </div> |
175 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 175 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/596a13aa12214abf0489d3740bbada1f/plot_read_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom.ipynb</span></code></a></p> | 176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/596a13aa12214abf0489d3740bbada1f/plot_read_dicom.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">plot_read_dicom.ipynb</span></code></a></p> |
177 | </div> | 177 | </div> |
Offset 74, 15 lines modified | Offset 74, 15 lines modified | ||
74 | #·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing | 74 | #·use·.get()·if·not·sure·the·item·exists,·and·want·a·default·value·if·missing |
75 | print(f"Slice·location...:·{ds.get('SliceLocation',·'(missing)')}") | 75 | print(f"Slice·location...:·{ds.get('SliceLocation',·'(missing)')}") |
76 | #·plot·the·image·using·matplotlib | 76 | #·plot·the·image·using·matplotlib |
77 | plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) | 77 | plt.imshow(ds.pixel_array,·cmap=plt.cm.gray) |
78 | plt.show() | 78 | plt.show() |
79 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0. | 79 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.098·seconds) |
80 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8p_\x8y | 80 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8p_\x8y |
81 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 81 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
82 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 82 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
83 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 83 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
84 | =============================================================================== | 84 | =============================================================================== |
85 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 85 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
86 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 86 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 186, 15 lines modified | Offset 186, 15 lines modified | ||
186 | ····Modality=MR·-·3·SOP·Instances | 186 | ····Modality=MR·-·3·SOP·Instances |
187 | ····Modality=MR·-·7·SOP·Instances | 187 | ····Modality=MR·-·7·SOP·Instances |
188 | Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 188 | Found·7·instances·for·SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
189 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading | 189 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading·the·stored·instances·and·3·instances·with·loading |
190 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests | 190 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/test_files/dicomdirtests |
191 | File-set·copied·to·/tmp/tmp | 191 | File-set·copied·to·/tmp/tmpdro3qn8c·and·contains·the·following·files: |
192 | ··DICOMDIR | 192 | ··DICOMDIR |
193 | ··PT000000/ST000000/SE000000/IM000000 | 193 | ··PT000000/ST000000/SE000000/IM000000 |
194 | ··PT000000/ST000000/SE000001/IM000000 | 194 | ··PT000000/ST000000/SE000001/IM000000 |
195 | ··PT000000/ST000000/SE000002/IM000000 | 195 | ··PT000000/ST000000/SE000002/IM000000 |
196 | ··PT000000/ST000001/SE000000/IM000000 | 196 | ··PT000000/ST000001/SE000000/IM000000 |
197 | ··PT000000/ST000001/SE000000/IM000001 | 197 | ··PT000000/ST000001/SE000000/IM000001 |
198 | ··PT000000/ST000001/SE000000/IM000002 | 198 | ··PT000000/ST000001/SE000000/IM000002 |
Offset 106, 15 lines modified | Offset 106, 15 lines modified | ||
106 | Found·7·instances·for | 106 | Found·7·instances·for |
107 | SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 | 107 | SeriesInstanceUID=1.3.6.1.4.1.5962.1.1.0.0.0.1196533885.18148.0.118 |
108 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading | 108 | Found·0·instances·with·PhotometricInterpretation='MONOCHROME1'·without·loading |
109 | the·stored·instances·and·3·instances·with·loading | 109 | the·stored·instances·and·3·instances·with·loading |
110 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/ | 110 | Original·File-set·still·at·/build/reproducible-path/pydicom-2.4.3/pydicom/data/ |
111 | test_files/dicomdirtests | 111 | test_files/dicomdirtests |
112 | File-set·copied·to·/tmp/tmp | 112 | File-set·copied·to·/tmp/tmpdro3qn8c·and·contains·the·following·files: |
113 | ··DICOMDIR | 113 | ··DICOMDIR |
114 | ··PT000000/ST000000/SE000000/IM000000 | 114 | ··PT000000/ST000000/SE000000/IM000000 |
115 | ··PT000000/ST000000/SE000001/IM000000 | 115 | ··PT000000/ST000000/SE000001/IM000000 |
116 | ··PT000000/ST000000/SE000002/IM000000 | 116 | ··PT000000/ST000000/SE000002/IM000000 |
117 | ··PT000000/ST000001/SE000000/IM000000 | 117 | ··PT000000/ST000001/SE000000/IM000000 |
118 | ··PT000000/ST000001/SE000000/IM000001 | 118 | ··PT000000/ST000001/SE000000/IM000001 |
119 | ··PT000000/ST000001/SE000000/IM000002 | 119 | ··PT000000/ST000001/SE000000/IM000002 |
Offset 151, 15 lines modified | Offset 151, 15 lines modified | ||
151 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_file.html#pydicom.data.get_testdata_file"·title="pydicom.data.get_testdata_file"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_file</span></a><span·class="p">(</span><span·class="s1">'rtplan.dcm'</span><span·class="p">)</span> | 151 | <span·class="n">filename</span>·<span·class="o">=</span>·<a·href="../../reference/generated/pydicom.data.get_testdata_file.html#pydicom.data.get_testdata_file"·title="pydicom.data.get_testdata_file"·class="sphx-glr-backref-module-pydicom-data·sphx-glr-backref-type-py-function"><span·class="n">get_testdata_file</span></a><span·class="p">(</span><span·class="s1">'rtplan.dcm'</span><span·class="p">)</span> |
152 | <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> | 152 | <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> |
153 | <span·class="nb">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> | 153 | <span·class="nb">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> |
154 | </pre></div> | 154 | </pre></div> |
155 | </div> | 155 | </div> |
156 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 156 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.003·seconds)</p> |
157 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-rtplan-py"> | 157 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-input-output-plot-read-rtplan-py"> |
158 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 158 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
159 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/c01783b47dfa1aa1100193cafc705c66/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></p> | 159 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/c01783b47dfa1aa1100193cafc705c66/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></p> |
160 | </div> | 160 | </div> |
161 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 161 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
162 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/eab5c62f7aa13a9dba28bb72f29156aa/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></p> | 162 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/eab5c62f7aa13a9dba28bb72f29156aa/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></p> |
163 | </div> | 163 | </div> |
Offset 59, 15 lines modified | Offset 59, 15 lines modified | ||
59 | ·······················································ssd=SSD)) | 59 | ·······················································ssd=SSD)) |
60 | ····return·"\n".join(lines) | 60 | ····return·"\n".join(lines) |
61 | filename·=·_\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8s_\x8t_\x8d_\x8a_\x8t_\x8a_\x8__\x8f_\x8i_\x8l_\x8e('rtplan.dcm') | 61 | filename·=·_\x8g_\x8e_\x8t_\x8__\x8t_\x8e_\x8s_\x8t_\x8d_\x8a_\x8t_\x8a_\x8__\x8f_\x8i_\x8l_\x8e('rtplan.dcm') |
62 | dataset·=·pydicom.dcmread(filename) | 62 | dataset·=·pydicom.dcmread(filename) |
63 | print(list_beams(dataset)) | 63 | print(list_beams(dataset)) |
64 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.00 | 64 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.003·seconds) |
65 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8t_\x8p_\x8l_\x8a_\x8n_\x8._\x8p_\x8y | 65 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8t_\x8p_\x8l_\x8a_\x8n_\x8._\x8p_\x8y |
66 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8t_\x8p_\x8l_\x8a_\x8n_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 66 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8r_\x8e_\x8a_\x8d_\x8__\x8r_\x8t_\x8p_\x8l_\x8a_\x8n_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
67 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 67 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
68 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 68 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
69 | =============================================================================== | 69 | =============================================================================== |
70 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 70 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
71 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 71 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 120, 40 lines modified | Offset 120, 40 lines modified | ||
120 | <span·id="sphx-glr-auto-examples-input-output-plot-write-dicom-py"></span><h1>Write·DICOM·data<a·class="headerlink"·href="#write-dicom-data"·title="Link·to·this·heading">¶</a></h1> | 120 | <span·id="sphx-glr-auto-examples-input-output-plot-write-dicom-py"></span><h1>Write·DICOM·data<a·class="headerlink"·href="#write-dicom-data"·title="Link·to·this·heading">¶</a></h1> |
121 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 121 | <p>This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
122 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 122 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
123 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> | 123 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements.</p> |
124 | <p·class="sphx-glr-script-out">Out:</p> | 124 | <p·class="sphx-glr-script-out">Out:</p> |
125 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... | 125 | <div·class="sphx-glr-script-out·highlight-none·notranslate"><div·class="highlight"><pre><span></span>Setting·file·meta·information... |
126 | Setting·dataset·values... | 126 | Setting·dataset·values... |
127 | Writing·test·file·/tmp/tmp | 127 | Writing·test·file·/tmp/tmpyxh55zqw.dcm |
128 | File·saved. | 128 | File·saved. |
129 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 129 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpqahzj9dq.dcm |
130 | Load·file·/tmp/tmp | 130 | Load·file·/tmp/tmpyxh55zqw.dcm·... |
131 | Dataset.file_meta·------------------------------- | 131 | Dataset.file_meta·------------------------------- |
132 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 132 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
133 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 133 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
134 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 134 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
135 | ------------------------------------------------- | 135 | ------------------------------------------------- |
136 | (0008,·0023)·Content·Date························DA:·'202 | 136 | (0008,·0023)·Content·Date························DA:·'20240419' |
137 | (0008,·0033)·Content·Time························TM:·'0 | 137 | (0008,·0033)·Content·Time························TM:·'001516.845190' |
138 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 138 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
139 | (0010,·0020)·Patient·ID··························LO:·'123456' | 139 | (0010,·0020)·Patient·ID··························LO:·'123456' |
140 | Remove·file·/tmp/tmp | 140 | Remove·file·/tmp/tmpyxh55zqw.dcm·... |
141 | Load·file·/tmp/tmp | 141 | Load·file·/tmp/tmpqahzj9dq.dcm·... |
142 | Dataset.file_meta·------------------------------- | 142 | Dataset.file_meta·------------------------------- |
143 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 143 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
144 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 144 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
145 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 145 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
146 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 146 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
147 | ------------------------------------------------- | 147 | ------------------------------------------------- |
148 | (0008,·0023)·Content·Date························DA:·'202 | 148 | (0008,·0023)·Content·Date························DA:·'20240419' |
149 | (0008,·0033)·Content·Time························TM:·'0 | 149 | (0008,·0033)·Content·Time························TM:·'001516.845190' |
150 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 150 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
151 | (0010,·0020)·Patient·ID··························LO:·'123456' | 151 | (0010,·0020)·Patient·ID··························LO:·'123456' |
152 | Remove·file·/tmp/tmp | 152 | Remove·file·/tmp/tmpqahzj9dq.dcm·... |
153 | </pre></div> | 153 | </pre></div> |
154 | </div> | 154 | </div> |
155 | <div·class="line-block"> | 155 | <div·class="line-block"> |
156 | <div·class="line"><br·/></div> | 156 | <div·class="line"><br·/></div> |
157 | </div> | 157 | </div> |
158 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> | 158 | <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com></span> |
159 | <span·class="c1">#·license·:·MIT</span> | 159 | <span·class="c1">#·license·:·MIT</span> |
Offset 34, 40 lines modified | Offset 34, 40 lines modified | ||
34 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wr\x8ri\x8it\x8te\x8e·D\x8DI\x8IC\x8CO\x8OM\x8M·d\x8da\x8at\x8ta\x8a_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* | 34 | *\x8**\x8**\x8**\x8**\x8**\x8*·W\x8Wr\x8ri\x8it\x8te\x8e·D\x8DI\x8IC\x8CO\x8OM\x8M·d\x8da\x8at\x8ta\x8a_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* |
35 | This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This | 35 | This·example·shows·how·to·write·a·DICOM·file·from·scratch·using·pydicom.·This |
36 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will | 36 | example·does·not·produce·a·DICOM·standards·compliant·file·as·written,·you·will |
37 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements. | 37 | have·to·change·UIDs·to·valid·values·and·add·all·required·DICOM·data·elements. |
38 | Out: | 38 | Out: |
39 | Setting·file·meta·information... | 39 | Setting·file·meta·information... |
40 | Setting·dataset·values... | 40 | Setting·dataset·values... |
41 | Writing·test·file·/tmp/tmp | 41 | Writing·test·file·/tmp/tmpyxh55zqw.dcm |
42 | File·saved. | 42 | File·saved. |
43 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmp | 43 | Writing·test·file·as·Big·Endian·Explicit·VR·/tmp/tmpqahzj9dq.dcm |
44 | Load·file·/tmp/tmp | 44 | Load·file·/tmp/tmpyxh55zqw.dcm·... |
45 | Dataset.file_meta·------------------------------- | 45 | Dataset.file_meta·------------------------------- |
46 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 46 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
47 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 47 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
48 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 48 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
49 | ------------------------------------------------- | 49 | ------------------------------------------------- |
50 | (0008,·0023)·Content·Date························DA:·'202 | 50 | (0008,·0023)·Content·Date························DA:·'20240419' |
51 | (0008,·0033)·Content·Time························TM:·'0 | 51 | (0008,·0033)·Content·Time························TM:·'001516.845190' |
52 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 52 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
53 | (0010,·0020)·Patient·ID··························LO:·'123456' | 53 | (0010,·0020)·Patient·ID··························LO:·'123456' |
54 | Remove·file·/tmp/tmp | 54 | Remove·file·/tmp/tmpyxh55zqw.dcm·... |
55 | Load·file·/tmp/tmp | 55 | Load·file·/tmp/tmpqahzj9dq.dcm·... |
56 | Dataset.file_meta·------------------------------- | 56 | Dataset.file_meta·------------------------------- |
57 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage | 57 | (0002,·0002)·Media·Storage·SOP·Class·UID·········UI:·CT·Image·Storage |
58 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 | 58 | (0002,·0003)·Media·Storage·SOP·Instance·UID······UI:·1.2.3 |
59 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian | 59 | (0002,·0010)·Transfer·Syntax·UID·················UI:·Explicit·VR·Big·Endian |
60 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 | 60 | (0002,·0012)·Implementation·Class·UID············UI:·1.2.3.4 |
61 | ------------------------------------------------- | 61 | ------------------------------------------------- |
62 | (0008,·0023)·Content·Date························DA:·'202 | 62 | (0008,·0023)·Content·Date························DA:·'20240419' |
63 | (0008,·0033)·Content·Time························TM:·'0 | 63 | (0008,·0033)·Content·Time························TM:·'001516.845190' |
64 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' | 64 | (0010,·0010)·Patient's·Name······················PN:·'Test^Firstname' |
65 | (0010,·0020)·Patient·ID··························LO:·'123456' | 65 | (0010,·0020)·Patient·ID··························LO:·'123456' |
66 | Remove·file·/tmp/tmp | 66 | Remove·file·/tmp/tmpqahzj9dq.dcm·... |
67 | #·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com> | 67 | #·authors·:·Guillaume·Lemaitre·<g.lemaitre58@gmail.com> |
68 | #·license·:·MIT | 68 | #·license·:·MIT |
69 | import·datetime | 69 | import·datetime |
70 | import·os | 70 | import·os |
71 | import·tempfile | 71 | import·tempfile |
Offset 98, 23 lines modified | Offset 98, 23 lines modified | ||
98 | ··<hr/> | 98 | ··<hr/> |
99 | </div> | 99 | </div> |
100 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> | 100 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> |
101 | ···········<div·itemprop="articleBody"> | 101 | ···········<div·itemprop="articleBody"> |
102 | ············· | 102 | ············· |
103 | ··<section·id="computation-times"> | 103 | ··<section·id="computation-times"> |
104 | <span·id="sphx-glr-auto-examples-input-output-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Link·to·this·heading">¶</a></h1> | 104 | <span·id="sphx-glr-auto-examples-input-output-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Link·to·this·heading">¶</a></h1> |
105 | <p><strong>00:00.36 | 105 | <p><strong>00:00.360</strong>·total·execution·time·for·<strong>auto_examples_input_output</strong>·files:</p> |
106 | <table·class="docutils·align-default"> | 106 | <table·class="docutils·align-default"> |
107 | <tbody> | 107 | <tbody> |
108 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_read_fileset.html#sphx-glr-auto-examples-input-output-plot-read-fileset-py"><span·class="std·std-ref">Read·a·DICOM·File-set</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_fileset.py</span></code>)</p></td> | 108 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_read_fileset.html#sphx-glr-auto-examples-input-output-plot-read-fileset-py"><span·class="std·std-ref">Read·a·DICOM·File-set</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_fileset.py</span></code>)</p></td> |
109 | <td><p>00:00.23 | 109 | <td><p>00:00.233</p></td> |
110 | <td><p>0.0·MB</p></td> | 110 | <td><p>0.0·MB</p></td> |
111 | </tr> | 111 | </tr> |
112 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_read_dicom.html#sphx-glr-auto-examples-input-output-plot-read-dicom-py"><span·class="std·std-ref">Read·a·Dataset·and·plot·Pixel·Data</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_dicom.py</span></code>)</p></td> | 112 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_read_dicom.html#sphx-glr-auto-examples-input-output-plot-read-dicom-py"><span·class="std·std-ref">Read·a·Dataset·and·plot·Pixel·Data</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_dicom.py</span></code>)</p></td> |
113 | <td><p>00:00. | 113 | <td><p>00:00.098</p></td> |
114 | <td><p>0.0·MB</p></td> | 114 | <td><p>0.0·MB</p></td> |
115 | </tr> | 115 | </tr> |
116 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_read_dicom_directory.html#sphx-glr-auto-examples-input-output-plot-read-dicom-directory-py"><span·class="std·std-ref">Read·a·DICOMDIR·dataset</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_dicom_directory.py</span></code>)</p></td> | 116 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_read_dicom_directory.html#sphx-glr-auto-examples-input-output-plot-read-dicom-directory-py"><span·class="std·std-ref">Read·a·DICOMDIR·dataset</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_read_dicom_directory.py</span></code>)</p></td> |
117 | <td><p>00:00.014</p></td> | 117 | <td><p>00:00.014</p></td> |
118 | <td><p>0.0·MB</p></td> | 118 | <td><p>0.0·MB</p></td> |
119 | </tr> | 119 | </tr> |
120 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_printing_dataset.html#sphx-glr-auto-examples-input-output-plot-printing-dataset-py"><span·class="std·std-ref">Format·the·output·of·the·data·set·printing</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_printing_dataset.py</span></code>)</p></td> | 120 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_printing_dataset.html#sphx-glr-auto-examples-input-output-plot-printing-dataset-py"><span·class="std·std-ref">Format·the·output·of·the·data·set·printing</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_printing_dataset.py</span></code>)</p></td> |
Offset 19, 18 lines modified | Offset 19, 18 lines modified | ||
19 | ····*·_\x8C_\x8o_\x8n_\x8t_\x8r_\x8i_\x8b_\x8u_\x8t_\x8i_\x8n_\x8g_\x8·_\x8t_\x8o_\x8·_\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m | 19 | ····*·_\x8C_\x8o_\x8n_\x8t_\x8r_\x8i_\x8b_\x8u_\x8t_\x8i_\x8n_\x8g_\x8·_\x8t_\x8o_\x8·_\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m |
20 | ····*·_\x8F_\x8r_\x8e_\x8q_\x8u_\x8e_\x8n_\x8t_\x8l_\x8y_\x8·_\x8a_\x8s_\x8k_\x8e_\x8d_\x8·_\x8q_\x8u_\x8e_\x8s_\x8t_\x8i_\x8o_\x8n_\x8s | 20 | ····*·_\x8F_\x8r_\x8e_\x8q_\x8u_\x8e_\x8n_\x8t_\x8l_\x8y_\x8·_\x8a_\x8s_\x8k_\x8e_\x8d_\x8·_\x8q_\x8u_\x8e_\x8s_\x8t_\x8i_\x8o_\x8n_\x8s |
21 | ····*·_\x8R_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8·_\x8n_\x8o_\x8t_\x8e_\x8s | 21 | ····*·_\x8R_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8·_\x8n_\x8o_\x8t_\x8e_\x8s |
22 | _\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m | 22 | _\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m |
23 | ····*·Computation·times | 23 | ····*·Computation·times |
24 | =============================================================================== | 24 | =============================================================================== |
25 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8om\x8mp\x8pu\x8ut\x8ta\x8at\x8ti\x8io\x8on\x8n·t\x8ti\x8im\x8me\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* | 25 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8om\x8mp\x8pu\x8ut\x8ta\x8at\x8ti\x8io\x8on\x8n·t\x8ti\x8im\x8me\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* |
26 | 0\x800\x80:\x8:0\x800\x80.\x8.3\x836\x86 | 26 | 0\x800\x80:\x8:0\x800\x80.\x8.3\x836\x860.0·total·execution·time·for·a\x8au\x8ut\x8to\x8o_\x8_e\x8ex\x8xa\x8am\x8mp\x8pl\x8le\x8es\x8s_\x8_i\x8in\x8np\x8pu\x8ut\x8t_\x8_o\x8ou\x8ut\x8tp\x8pu\x8ut\x8t·files: |
27 | _\x8R_\x8e_\x8a_\x8d_\x8·_\x8a_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8F_\x8i_\x8l_\x8e_\x8-_\x8s_\x8e_\x8t·(plot_read_fileset.py)·················00:00.23 | 27 | _\x8R_\x8e_\x8a_\x8d_\x8·_\x8a_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8F_\x8i_\x8l_\x8e_\x8-_\x8s_\x8e_\x8t·(plot_read_fileset.py)·················00:00.233·0.0·MB |
28 | _\x8R_\x8e_\x8a_\x8d_\x8·_\x8a_\x8·_\x8D_\x8a_\x8t_\x8a_\x8s_\x8e_\x8t_\x8·_\x8a_\x8n_\x8d_\x8·_\x8p_\x8l_\x8o_\x8t_\x8·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8·_\x8D_\x8a_\x8t_\x8a·(plot_read_dicom.py)······00:00. | 28 | _\x8R_\x8e_\x8a_\x8d_\x8·_\x8a_\x8·_\x8D_\x8a_\x8t_\x8a_\x8s_\x8e_\x8t_\x8·_\x8a_\x8n_\x8d_\x8·_\x8p_\x8l_\x8o_\x8t_\x8·_\x8P_\x8i_\x8x_\x8e_\x8l_\x8·_\x8D_\x8a_\x8t_\x8a·(plot_read_dicom.py)······00:00.098·0.0·MB |
29 | _\x8R_\x8e_\x8a_\x8d_\x8·_\x8a_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8D_\x8I_\x8R_\x8·_\x8d_\x8a_\x8t_\x8a_\x8s_\x8e_\x8t·(plot_read_dicom_directory.py)·······00:00.014·0.0·MB | 29 | _\x8R_\x8e_\x8a_\x8d_\x8·_\x8a_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8D_\x8I_\x8R_\x8·_\x8d_\x8a_\x8t_\x8a_\x8s_\x8e_\x8t·(plot_read_dicom_directory.py)·······00:00.014·0.0·MB |
30 | _\x8F_\x8o_\x8r_\x8m_\x8a_\x8t_\x8·_\x8t_\x8h_\x8e_\x8·_\x8o_\x8u_\x8t_\x8p_\x8u_\x8t_\x8·_\x8o_\x8f_\x8·_\x8t_\x8h_\x8e_\x8·_\x8d_\x8a_\x8t_\x8a_\x8·_\x8s_\x8e_\x8t_\x8·_\x8p_\x8r_\x8i_\x8n_\x8t_\x8i_\x8n_\x8g···················00:00.006·0.0·MB | 30 | _\x8F_\x8o_\x8r_\x8m_\x8a_\x8t_\x8·_\x8t_\x8h_\x8e_\x8·_\x8o_\x8u_\x8t_\x8p_\x8u_\x8t_\x8·_\x8o_\x8f_\x8·_\x8t_\x8h_\x8e_\x8·_\x8d_\x8a_\x8t_\x8a_\x8·_\x8s_\x8e_\x8t_\x8·_\x8p_\x8r_\x8i_\x8n_\x8t_\x8i_\x8n_\x8g···················00:00.006·0.0·MB |
31 | (plot_printing_dataset.py) | 31 | (plot_printing_dataset.py) |
32 | _\x8W_\x8r_\x8i_\x8t_\x8e_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8d_\x8a_\x8t_\x8a·(plot_write_dicom.py)·······················00:00.006·0.0·MB | 32 | _\x8W_\x8r_\x8i_\x8t_\x8e_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8d_\x8a_\x8t_\x8a·(plot_write_dicom.py)·······················00:00.006·0.0·MB |
33 | _\x8R_\x8e_\x8a_\x8d_\x8·_\x8R_\x8T_\x8P_\x8L_\x8A_\x8N_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8a_\x8n_\x8d_\x8·_\x8l_\x8i_\x8s_\x8t_\x8·_\x8i_\x8n_\x8f_\x8o_\x8r_\x8m_\x8a_\x8t_\x8i_\x8o_\x8n·(plot_read_rtplan.py)·00:00.00 | 33 | _\x8R_\x8e_\x8a_\x8d_\x8·_\x8R_\x8T_\x8P_\x8L_\x8A_\x8N_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8a_\x8n_\x8d_\x8·_\x8l_\x8i_\x8s_\x8t_\x8·_\x8i_\x8n_\x8f_\x8o_\x8r_\x8m_\x8a_\x8t_\x8i_\x8o_\x8n·(plot_read_rtplan.py)·00:00.003·0.0·MB |
34 | =============================================================================== | 34 | =============================================================================== |
35 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 35 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
36 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 36 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 164, 15 lines modified | Offset 164, 15 lines modified | ||
164 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestOne</span>·<span·class="o">=</span>·<span·class="mi">42</span> | 164 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestOne</span>·<span·class="o">=</span>·<span·class="mi">42</span> |
165 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestTwo</span>·<span·class="o">=</span>·<span·class="s1">'12345'</span> | 165 | <span·class="n">ds</span><span·class="o">.</span><span·class="n">TestTwo</span>·<span·class="o">=</span>·<span·class="s1">'12345'</span> |
166 | <a·href="../../reference/generated/pydicom.uid.UID.html#pydicom.uid.UID"·title="pydicom.uid.UID"·class="sphx-glr-backref-module-pydicom-uid·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">ds</span><span·class="o">.</span><span·class="n">TestThree</span></a>·<span·class="o">=</span>·<span·class="s1">'1.2.3.4.5'</span> | 166 | <a·href="../../reference/generated/pydicom.uid.UID.html#pydicom.uid.UID"·title="pydicom.uid.UID"·class="sphx-glr-backref-module-pydicom-uid·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">ds</span><span·class="o">.</span><span·class="n">TestThree</span></a>·<span·class="o">=</span>·<span·class="s1">'1.2.3.4.5'</span> |
167 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">top</span><span·class="p">())</span> | 167 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">ds</span><span·class="o">.</span><span·class="n">top</span><span·class="p">())</span> |
168 | </pre></div> | 168 | </pre></div> |
169 | </div> | 169 | </div> |
170 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.00 | 170 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.001·seconds)</p> |
171 | <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"> | 171 | <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"> |
172 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 172 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
173 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/b09c4a9ac1947f91877d5cbf389a2b2e/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></p> | 173 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/b09c4a9ac1947f91877d5cbf389a2b2e/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></p> |
174 | </div> | 174 | </div> |
175 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 175 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/54be3151aaa6e43d8757c4eaeb691675/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></p> | 176 | <p><a·class="reference·download·internal"·download=""·href="../../_downloads/54be3151aaa6e43d8757c4eaeb691675/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></p> |
177 | </div> | 177 | </div> |
Offset 70, 15 lines modified | Offset 70, 15 lines modified | ||
70 | ds·=·Dataset()··#·or·could·get·one·from·dcmread,·etc | 70 | ds·=·Dataset()··#·or·could·get·one·from·dcmread,·etc |
71 | ds.TestOne·=·42 | 71 | ds.TestOne·=·42 |
72 | ds.TestTwo·=·'12345' | 72 | ds.TestTwo·=·'12345' |
73 | _\x8d_\x8s_\x8._\x8T_\x8e_\x8s_\x8t_\x8T_\x8h_\x8r_\x8e_\x8e·=·'1.2.3.4.5' | 73 | _\x8d_\x8s_\x8._\x8T_\x8e_\x8s_\x8t_\x8T_\x8h_\x8r_\x8e_\x8e·=·'1.2.3.4.5' |
74 | print(ds.top()) | 74 | print(ds.top()) |
75 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.00 | 75 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.001·seconds) |
76 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8a_\x8d_\x8d_\x8__\x8d_\x8i_\x8c_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8i_\x8e_\x8s_\x8._\x8p_\x8y | 76 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8a_\x8d_\x8d_\x8__\x8d_\x8i_\x8c_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8i_\x8e_\x8s_\x8._\x8p_\x8y |
77 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8a_\x8d_\x8d_\x8__\x8d_\x8i_\x8c_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8i_\x8e_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 77 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8a_\x8d_\x8d_\x8__\x8d_\x8i_\x8c_\x8t_\x8__\x8e_\x8n_\x8t_\x8r_\x8i_\x8e_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
78 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 78 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
79 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 79 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
80 | =============================================================================== | 80 | =============================================================================== |
81 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 81 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
82 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 82 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 110, 15 lines modified | Offset 110, 15 lines modified | ||
110 | <td><p>0.0·MB</p></td> | 110 | <td><p>0.0·MB</p></td> |
111 | </tr> | 111 | </tr> |
112 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_sequences.html#sphx-glr-auto-examples-metadata-processing-plot-sequences-py"><span·class="std·std-ref">Working·with·sequences</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_sequences.py</span></code>)</p></td> | 112 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_sequences.html#sphx-glr-auto-examples-metadata-processing-plot-sequences-py"><span·class="std·std-ref">Working·with·sequences</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_sequences.py</span></code>)</p></td> |
113 | <td><p>00:00.002</p></td> | 113 | <td><p>00:00.002</p></td> |
114 | <td><p>0.0·MB</p></td> | 114 | <td><p>0.0·MB</p></td> |
115 | </tr> | 115 | </tr> |
116 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_add_dict_entries.html#sphx-glr-auto-examples-metadata-processing-plot-add-dict-entries-py"><span·class="std·std-ref">Add·dictionary·items·in·the·standard·DICOM·dictionary</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_add_dict_entries.py</span></code>)</p></td> | 116 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_add_dict_entries.html#sphx-glr-auto-examples-metadata-processing-plot-add-dict-entries-py"><span·class="std·std-ref">Add·dictionary·items·in·the·standard·DICOM·dictionary</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_add_dict_entries.py</span></code>)</p></td> |
117 | <td><p>00:00.00 | 117 | <td><p>00:00.001</p></td> |
118 | <td><p>0.0·MB</p></td> | 118 | <td><p>0.0·MB</p></td> |
119 | </tr> | 119 | </tr> |
120 | </tbody> | 120 | </tbody> |
121 | </table> | 121 | </table> |
122 | </section> | 122 | </section> |
Offset 22, 12 lines modified | Offset 22, 12 lines modified | ||
22 | _\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m | 22 | _\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m |
23 | ····*·Computation·times | 23 | ····*·Computation·times |
24 | =============================================================================== | 24 | =============================================================================== |
25 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8om\x8mp\x8pu\x8ut\x8ta\x8at\x8ti\x8io\x8on\x8n·t\x8ti\x8im\x8me\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* | 25 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8om\x8mp\x8pu\x8ut\x8ta\x8at\x8ti\x8io\x8on\x8n·t\x8ti\x8im\x8me\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* |
26 | 0\x800\x80:\x8:0\x800\x80.\x8.0\x801\x813\x83·total·execution·time·for·a\x8au\x8ut\x8to\x8o_\x8_e\x8ex\x8xa\x8am\x8mp\x8pl\x8le\x8es\x8s_\x8_m\x8me\x8et\x8ta\x8ad\x8da\x8at\x8ta\x8a_\x8_p\x8pr\x8ro\x8oc\x8ce\x8es\x8ss\x8si\x8in\x8ng\x8g·files: | 26 | 0\x800\x80:\x8:0\x800\x80.\x8.0\x801\x813\x83·total·execution·time·for·a\x8au\x8ut\x8to\x8o_\x8_e\x8ex\x8xa\x8am\x8mp\x8pl\x8le\x8es\x8s_\x8_m\x8me\x8et\x8ta\x8ad\x8da\x8at\x8ta\x8a_\x8_p\x8pr\x8ro\x8oc\x8ce\x8es\x8ss\x8si\x8in\x8ng\x8g·files: |
27 | _\x8A_\x8n_\x8o_\x8n_\x8y_\x8m_\x8i_\x8z_\x8e_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8d_\x8a_\x8t_\x8a·(plot_anonymize.py)···············00:00.010·0.0·MB | 27 | _\x8A_\x8n_\x8o_\x8n_\x8y_\x8m_\x8i_\x8z_\x8e_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8d_\x8a_\x8t_\x8a·(plot_anonymize.py)···············00:00.010·0.0·MB |
28 | _\x8W_\x8o_\x8r_\x8k_\x8i_\x8n_\x8g_\x8·_\x8w_\x8i_\x8t_\x8h_\x8·_\x8s_\x8e_\x8q_\x8u_\x8e_\x8n_\x8c_\x8e_\x8s·(plot_sequences.py)·············00:00.002·0.0·MB | 28 | _\x8W_\x8o_\x8r_\x8k_\x8i_\x8n_\x8g_\x8·_\x8w_\x8i_\x8t_\x8h_\x8·_\x8s_\x8e_\x8q_\x8u_\x8e_\x8n_\x8c_\x8e_\x8s·(plot_sequences.py)·············00:00.002·0.0·MB |
29 | _\x8A_\x8d_\x8d_\x8·_\x8d_\x8i_\x8c_\x8t_\x8i_\x8o_\x8n_\x8a_\x8r_\x8y_\x8·_\x8i_\x8t_\x8e_\x8m_\x8s_\x8·_\x8i_\x8n_\x8·_\x8t_\x8h_\x8e_\x8·_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8d_\x8i_\x8c_\x8t_\x8i_\x8o_\x8n_\x8a_\x8r_\x8y··00:00.00 | 29 | _\x8A_\x8d_\x8d_\x8·_\x8d_\x8i_\x8c_\x8t_\x8i_\x8o_\x8n_\x8a_\x8r_\x8y_\x8·_\x8i_\x8t_\x8e_\x8m_\x8s_\x8·_\x8i_\x8n_\x8·_\x8t_\x8h_\x8e_\x8·_\x8s_\x8t_\x8a_\x8n_\x8d_\x8a_\x8r_\x8d_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8d_\x8i_\x8c_\x8t_\x8i_\x8o_\x8n_\x8a_\x8r_\x8y··00:00.001·0.0·MB |
30 | (plot_add_dict_entries.py) | 30 | (plot_add_dict_entries.py) |
31 | =============================================================================== | 31 | =============================================================================== |
32 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 32 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
33 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 33 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 820, 15 lines modified | Offset 820, 15 lines modified | ||
820 | <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> | 820 | <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> |
821 | <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> | 821 | <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> |
822 | ····<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> | 822 | ····<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> |
823 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="n">line</span><span·class="p">)</span> | 823 | ········<span·class="nb">print</span><span·class="p">(</span><span·class="n">line</span><span·class="p">)</span> |
824 | </pre></div> | 824 | </pre></div> |
825 | </div> | 825 | </div> |
826 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.09 | 826 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.094·seconds)</p> |
827 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-dicom-difference-py"> | 827 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-dicom-difference-py"> |
828 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 828 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
829 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a3b4852d291f27302d2926716393406e/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></p> | 829 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a3b4852d291f27302d2926716393406e/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></p> |
830 | </div> | 830 | </div> |
831 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 831 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
832 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/41ba38a2ae2d88170db68a78dcabe080/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></p> | 832 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/41ba38a2ae2d88170db68a78dcabe080/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></p> |
833 | </div> | 833 | </div> |
Offset 746, 15 lines modified | Offset 746, 15 lines modified | ||
746 | ····rep.append(lines) | 746 | ····rep.append(lines) |
747 | diff·=·difflib.Differ() | 747 | diff·=·difflib.Differ() |
748 | for·line·in·diff.compare(rep[0],·rep[1]): | 748 | for·line·in·diff.compare(rep[0],·rep[1]): |
749 | ····if·line[0]·!=·"?": | 749 | ····if·line[0]·!=·"?": |
750 | ········print(line) | 750 | ········print(line) |
751 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.09 | 751 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(·0·minutes·0.094·seconds) |
752 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8__\x8d_\x8i_\x8f_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e_\x8._\x8p_\x8y | 752 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8__\x8d_\x8i_\x8f_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e_\x8._\x8p_\x8y |
753 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8__\x8d_\x8i_\x8f_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 753 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8p_\x8l_\x8o_\x8t_\x8__\x8d_\x8i_\x8c_\x8o_\x8m_\x8__\x8d_\x8i_\x8f_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
754 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 754 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
755 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 755 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
756 | =============================================================================== | 756 | =============================================================================== |
757 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 757 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
758 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 758 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 98, 19 lines modified | Offset 98, 19 lines modified | ||
98 | ··<hr/> | 98 | ··<hr/> |
99 | </div> | 99 | </div> |
100 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> | 100 | ··········<div·role="main"·class="document"·itemscope="itemscope"·itemtype="http://schema.org/Article"> |
101 | ···········<div·itemprop="articleBody"> | 101 | ···········<div·itemprop="articleBody"> |
102 | ············· | 102 | ············· |
103 | ··<section·id="computation-times"> | 103 | ··<section·id="computation-times"> |
104 | <span·id="sphx-glr-auto-examples-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Link·to·this·heading">¶</a></h1> | 104 | <span·id="sphx-glr-auto-examples-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Link·to·this·heading">¶</a></h1> |
105 | <p><strong>00:00.09 | 105 | <p><strong>00:00.094</strong>·total·execution·time·for·<strong>auto_examples</strong>·files:</p> |
106 | <table·class="docutils·align-default"> | 106 | <table·class="docutils·align-default"> |
107 | <tbody> | 107 | <tbody> |
108 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_dicom_difference.html#sphx-glr-auto-examples-plot-dicom-difference-py"><span·class="std·std-ref">Analyse·differences·between·DICOM·files</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_dicom_difference.py</span></code>)</p></td> | 108 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_dicom_difference.html#sphx-glr-auto-examples-plot-dicom-difference-py"><span·class="std·std-ref">Analyse·differences·between·DICOM·files</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_dicom_difference.py</span></code>)</p></td> |
109 | <td><p>00:00.09 | 109 | <td><p>00:00.094</p></td> |
110 | <td><p>0.0·MB</p></td> | 110 | <td><p>0.0·MB</p></td> |
111 | </tr> | 111 | </tr> |
112 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="dicomtree.html#sphx-glr-auto-examples-dicomtree-py"><span·class="std·std-ref">Show·a·dicom·file·using·hierarchical·tree</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">dicomtree.py</span></code>)</p></td> | 112 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="dicomtree.html#sphx-glr-auto-examples-dicomtree-py"><span·class="std·std-ref">Show·a·dicom·file·using·hierarchical·tree</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">dicomtree.py</span></code>)</p></td> |
113 | <td><p>00:00.000</p></td> | 113 | <td><p>00:00.000</p></td> |
114 | <td><p>0.0·MB</p></td> | 114 | <td><p>0.0·MB</p></td> |
115 | </tr> | 115 | </tr> |
116 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="memory_dataset.html#sphx-glr-auto-examples-memory-dataset-py"><span·class="std·std-ref">Show·working·with·memory-based·dataset</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">memory_dataset.py</span></code>)</p></td> | 116 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="memory_dataset.html#sphx-glr-auto-examples-memory-dataset-py"><span·class="std·std-ref">Show·working·with·memory-based·dataset</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">memory_dataset.py</span></code>)</p></td> |
Offset 19, 16 lines modified | Offset 19, 16 lines modified | ||
19 | ····*·_\x8C_\x8o_\x8n_\x8t_\x8r_\x8i_\x8b_\x8u_\x8t_\x8i_\x8n_\x8g_\x8·_\x8t_\x8o_\x8·_\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m | 19 | ····*·_\x8C_\x8o_\x8n_\x8t_\x8r_\x8i_\x8b_\x8u_\x8t_\x8i_\x8n_\x8g_\x8·_\x8t_\x8o_\x8·_\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m |
20 | ····*·_\x8F_\x8r_\x8e_\x8q_\x8u_\x8e_\x8n_\x8t_\x8l_\x8y_\x8·_\x8a_\x8s_\x8k_\x8e_\x8d_\x8·_\x8q_\x8u_\x8e_\x8s_\x8t_\x8i_\x8o_\x8n_\x8s | 20 | ····*·_\x8F_\x8r_\x8e_\x8q_\x8u_\x8e_\x8n_\x8t_\x8l_\x8y_\x8·_\x8a_\x8s_\x8k_\x8e_\x8d_\x8·_\x8q_\x8u_\x8e_\x8s_\x8t_\x8i_\x8o_\x8n_\x8s |
21 | ····*·_\x8R_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8·_\x8n_\x8o_\x8t_\x8e_\x8s | 21 | ····*·_\x8R_\x8e_\x8l_\x8e_\x8a_\x8s_\x8e_\x8·_\x8n_\x8o_\x8t_\x8e_\x8s |
22 | _\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m | 22 | _\x8p_\x8y_\x8d_\x8i_\x8c_\x8o_\x8m |
23 | ····*·Computation·times | 23 | ····*·Computation·times |
24 | =============================================================================== | 24 | =============================================================================== |
25 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8om\x8mp\x8pu\x8ut\x8ta\x8at\x8ti\x8io\x8on\x8n·t\x8ti\x8im\x8me\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* | 25 | *\x8**\x8**\x8**\x8**\x8**\x8*·C\x8Co\x8om\x8mp\x8pu\x8ut\x8ta\x8at\x8ti\x8io\x8on\x8n·t\x8ti\x8im\x8me\x8es\x8s_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8**\x8* |
26 | 0\x800\x80:\x8:0\x800\x80.\x8.0\x809\x89 | 26 | 0\x800\x80:\x8:0\x800\x80.\x8.0\x809\x894.4·total·execution·time·for·a\x8au\x8ut\x8to\x8o_\x8_e\x8ex\x8xa\x8am\x8mp\x8pl\x8le\x8es\x8s·files: |
27 | _\x8A_\x8n_\x8a_\x8l_\x8y_\x8s_\x8e_\x8·_\x8d_\x8i_\x8f_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e_\x8s_\x8·_\x8b_\x8e_\x8t_\x8w_\x8e_\x8e_\x8n_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8f_\x8i_\x8l_\x8e_\x8s····················00:00.09 | 27 | _\x8A_\x8n_\x8a_\x8l_\x8y_\x8s_\x8e_\x8·_\x8d_\x8i_\x8f_\x8f_\x8e_\x8r_\x8e_\x8n_\x8c_\x8e_\x8s_\x8·_\x8b_\x8e_\x8t_\x8w_\x8e_\x8e_\x8n_\x8·_\x8D_\x8I_\x8C_\x8O_\x8M_\x8·_\x8f_\x8i_\x8l_\x8e_\x8s····················00:00.094·0.0·MB |
28 | (plot_dicom_difference.py) | 28 | (plot_dicom_difference.py) |
29 | _\x8S_\x8h_\x8o_\x8w_\x8·_\x8a_\x8·_\x8d_\x8i_\x8c_\x8o_\x8m_\x8·_\x8f_\x8i_\x8l_\x8e_\x8·_\x8u_\x8s_\x8i_\x8n_\x8g_\x8·_\x8h_\x8i_\x8e_\x8r_\x8a_\x8r_\x8c_\x8h_\x8i_\x8c_\x8a_\x8l_\x8·_\x8t_\x8r_\x8e_\x8e·(dicomtree.py)···00:00.000·0.0·MB | 29 | _\x8S_\x8h_\x8o_\x8w_\x8·_\x8a_\x8·_\x8d_\x8i_\x8c_\x8o_\x8m_\x8·_\x8f_\x8i_\x8l_\x8e_\x8·_\x8u_\x8s_\x8i_\x8n_\x8g_\x8·_\x8h_\x8i_\x8e_\x8r_\x8a_\x8r_\x8c_\x8h_\x8i_\x8c_\x8a_\x8l_\x8·_\x8t_\x8r_\x8e_\x8e·(dicomtree.py)···00:00.000·0.0·MB |
30 | _\x8S_\x8h_\x8o_\x8w_\x8·_\x8w_\x8o_\x8r_\x8k_\x8i_\x8n_\x8g_\x8·_\x8w_\x8i_\x8t_\x8h_\x8·_\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8-_\x8b_\x8a_\x8s_\x8e_\x8d_\x8·_\x8d_\x8a_\x8t_\x8a_\x8s_\x8e_\x8t·(memory_dataset.py)·00:00.000·0.0·MB | 30 | _\x8S_\x8h_\x8o_\x8w_\x8·_\x8w_\x8o_\x8r_\x8k_\x8i_\x8n_\x8g_\x8·_\x8w_\x8i_\x8t_\x8h_\x8·_\x8m_\x8e_\x8m_\x8o_\x8r_\x8y_\x8-_\x8b_\x8a_\x8s_\x8e_\x8d_\x8·_\x8d_\x8a_\x8t_\x8a_\x8s_\x8e_\x8t·(memory_dataset.py)·00:00.000·0.0·MB |
31 | _\x8D_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8·_\x8u_\x8n_\x8i_\x8c_\x8o_\x8d_\x8e_\x8·_\x8p_\x8e_\x8r_\x8s_\x8o_\x8n_\x8·_\x8n_\x8a_\x8m_\x8e_\x8s·(show_charset_name.py)········00:00.000·0.0·MB | 31 | _\x8D_\x8i_\x8s_\x8p_\x8l_\x8a_\x8y_\x8·_\x8u_\x8n_\x8i_\x8c_\x8o_\x8d_\x8e_\x8·_\x8p_\x8e_\x8r_\x8s_\x8o_\x8n_\x8·_\x8n_\x8a_\x8m_\x8e_\x8s·(show_charset_name.py)········00:00.000·0.0·MB |
32 | =============================================================================== | 32 | =============================================================================== |
33 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. | 33 | ©·Copyright·2008-2024,·Darcy·Mason·and·pydicom·contributors. |
34 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 34 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 502, 15 lines modified | Offset 502, 15 lines modified | ||
502 | ········"descript":·[2,·14,·18,·23,·24,·25,·28,·35,·36,·38,·41,·106,·107,·108,·109,·112,·122,·126,·132,·477,·478,·479,·492,·496], | 502 | ········"descript":·[2,·14,·18,·23,·24,·25,·28,·35,·36,·38,·41,·106,·107,·108,·109,·112,·122,·126,·132,·477,·478,·479,·492,·496], |
503 | ········"ch_sourc":·2, | 503 | ········"ch_sourc":·2, |
504 | ········"channelsourcesequ":·[2,·510], | 504 | ········"channelsourcesequ":·[2,·510], |
505 | ········"set_titl":·2, | 505 | ········"set_titl":·2, |
506 | ········"set_xlabel":·2, | 506 | ········"set_xlabel":·2, |
507 | ········"set_ylabel":·[2,·510], | 507 | ········"set_ylabel":·[2,·510], |
508 | ········"tight_layout":·2, | 508 | ········"tight_layout":·2, |
509 | ········"1 | 509 | ········"188":·[2,·4], |
510 | ········"plot_waveform":·[2,·4], | 510 | ········"plot_waveform":·[2,·4], |
511 | ········"multipl":·[3,·27,·29,·32,·36,·47,·48,·75,·107,·109,·110,·120,·126,·129,·140,·142,·143,·148,·206,·207,·208,·209,·216,·217,·443,·463,·477,·490,·496,·502], | 511 | ········"multipl":·[3,·27,·29,·32,·36,·47,·48,·75,·107,·109,·110,·120,·126,·129,·140,·142,·143,·148,·206,·207,·208,·209,·216,·217,·443,·463,·477,·490,·496,·502], |
512 | ········"sort":·[3,·9,·129,·504], | 512 | ········"sort":·[3,·9,·129,·504], |
513 | ········"them":·[3,·6,·22,·24,·25,·26,·29,·34,·35,·36,·40,·41,·47,·50,·129,·179,·452,·454,·477,·485,·489,·493,·501,·502,·504,·509], | 513 | ········"them":·[3,·6,·22,·24,·25,·26,·29,·34,·35,·36,·40,·41,·47,·50,·129,·179,·452,·454,·477,·485,·489,·493,·501,·502,·504,·509], |
514 | ········"build":·[3,·7,·8,·9,·94,·95,·134,·477,·486,·497,·500], | 514 | ········"build":·[3,·7,·8,·9,·94,·95,·134,·477,·486,·497,·500], |
515 | ········"reslic":·[3,·4], | 515 | ········"reslic":·[3,·4], |
516 | ········"differ":·[3,·5,·11,·15,·19,·23,·24,·26,·27,·31,·35,·41,·45,·48,·477,·480,·492,·500,·501,·502,·503,·504,·509], | 516 | ········"differ":·[3,·5,·11,·15,·19,·23,·24,·26,·27,·31,·35,·41,·45,·48,·477,·480,·492,·500,·501,·502,·503,·504,·509], |