annotate Tests/CheckScuTranscoding.py @ 633:7bb22f87fc5b

fix auth test wrt plugin version
author Alain Mazy <am@osimis.io>
date Tue, 19 Mar 2024 08:51:56 +0100
parents ec657d1a62a6
children 9f8276ac1cdd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
610
ec657d1a62a6 fix compatibility with python3
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 511
diff changeset
1 #!/usr/bin/env python3
371
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 # Orthanc - A Lightweight, RESTful DICOM Store
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 # Department, University Hospital of Liege, Belgium
511
933fe1bbce4f upgrade to year 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 449
diff changeset
6 # Copyright (C) 2017-2023 Osimis S.A., Belgium
933fe1bbce4f upgrade to year 2023
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 449
diff changeset
7 # Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
371
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 #
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 # This program is free software: you can redistribute it and/or
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 # modify it under the terms of the GNU General Public License as
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 # published by the Free Software Foundation, either version 3 of the
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 # License, or (at your option) any later version.
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 #
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 # This program is distributed in the hope that it will be useful, but
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 # General Public License for more details.
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 #
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 # You should have received a copy of the GNU General Public License
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 import json
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 import os
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 import subprocess
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 import sys
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 import time
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 import Toolbox
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 if len(sys.argv) < 2:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 print('Must provide a path to Orthanc binaries')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 exit(-1)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 TMP = '/tmp/OrthancTest'
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 TMP_ORTHANC = os.path.join(TMP, 'orthanc')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 TMP_STORESCP = os.path.join(TMP, 'storescp')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 CONFIG = os.path.join(TMP, 'orthanc', 'Configuration.json')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 ORTHANC = Toolbox.DefineOrthanc()
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 if os.path.exists(TMP):
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 print('Temporary path already exists: %s' % TMP)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 exit(-1)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 os.mkdir(TMP)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 os.mkdir(TMP_ORTHANC)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 os.mkdir(TMP_STORESCP)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 def DropOrthanc():
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 while True:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 try:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 instances = Toolbox.DoGet(ORTHANC, '/instances')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56 if len(instances) == 0:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 break
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58 else:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 for i in instances:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 Toolbox.DoDelete(ORTHANC, '/instances/%s' % i)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 except:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 # Orthanc is still in its startup process, wait for it to
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63 # become available
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 time.sleep(0.05)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 def CreateStorescpConfiguration(acceptedSyntaxes):
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 with open(os.path.join(TMP_STORESCP, 'config'), 'w') as f:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 f.write('[[TransferSyntaxes]]\n')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 f.write('[Accepted]\n')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 for i in range(len(acceptedSyntaxes)):
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 f.write('TransferSyntax%d = %s\n' % (i + 1, acceptedSyntaxes[i]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 f.write('[[PresentationContexts]]\n')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 f.write('[StorageSCP]\n')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78 # These strings correspond to the SOP class UIDs of the DICOM
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79 # instances in folder "../Database/TransferSyntaxes/"
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 SOP_CLASS_UIDS = [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81 '1.2.840.10008.5.1.4.1.1.2',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82 '1.2.840.10008.5.1.4.1.1.4',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83 '1.2.840.10008.5.1.4.1.1.6',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
84 '1.2.840.10008.5.1.4.1.1.6.1',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
85 '1.2.840.10008.5.1.4.1.1.7',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86 ]
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
88 for i in range(len(SOP_CLASS_UIDS)):
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89 f.write('PresentationContext%d = %s\\Accepted\n' % (i + 1, SOP_CLASS_UIDS[i]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
90
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
91 f.write('[[Profiles]]\n')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
92 f.write('[Default]\n')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93 f.write('PresentationContexts = StorageSCP\n')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
94
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
96 def TestStore(config, storescpArgs, tests):
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
97 config['DicomModalities'] = {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 'storescp' : [ 'STORESCP', 'localhost', 2000 ]
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
99 }
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 with open(CONFIG, 'w') as f:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102 f.write(json.dumps(config))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104 FNULL = open(os.devnull, 'w') # Emulates "subprocess.DEVNULL" on Python 2.7
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105 process1 = subprocess.Popen(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
106 sys.argv[1:] + [ CONFIG, '--no-jobs' ], #, '--trace-dicom' ],
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
107 cwd = TMP_ORTHANC,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
108 #stdout=FNULL,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
109 stderr=FNULL,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
110 #shell=True
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
111 )
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 process2 = subprocess.Popen(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 [ 'storescp', '-p', '2000' ] + storescpArgs,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115 cwd = TMP_STORESCP,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
116 #stdout=FNULL,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
117 #stderr=FNULL,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
118 #shell=True
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
119 )
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
120
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
121 success = True
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
122
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
123 try:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
124 for test in tests:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
125 DropOrthanc()
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
126 for f in os.listdir(TMP_STORESCP):
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
127 os.remove(os.path.join(TMP_STORESCP, f))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
128
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
129 i = Toolbox.UploadInstance(ORTHANC, test[0]) ['ID']
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
130
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
131 try:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
132 Toolbox.DoPost(ORTHANC, '/modalities/storescp/store', {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
133 'Resources' : [ i ],
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
134 'Synchronous' : True,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
135 })
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
136 except:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
137 if test[1] != None:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
138 print('INTERNAL ERROR on: %s' % test[0])
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
139 success = False
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
140 continue
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
141
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
142 f = os.listdir(TMP_STORESCP)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
143 if len(f) > 1:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
144 print('INTERNAL ERROR')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
145 success = False
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
146 elif len(f) == 0:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
147 if test[1] != None:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
148 print('No file was received by storescp! %s' % test[0])
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
149 success = False
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
150 else:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
151 if test[1] == None:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
152 print('No file should have been received by storescp! %s' % test[0])
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
153 success = False
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
154 else:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
155 with open(os.path.join(TMP_STORESCP, f[0]), 'rb') as f:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
156 ts = Toolbox.GetTransferSyntax(f.read())
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
157
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
158 if ts != test[1]:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
159 print('TRANSFER SYNTAX MISMATCH: observed %s vs. expected %s' % (ts, test[1]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
160 success = False
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
161
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
162 except Exception as e:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
163 print('EXCEPTION: %s' % e)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
164 success = False
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
165
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
166 process1.terminate()
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
167 process2.terminate()
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
168
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
169 process1.wait()
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
170 process2.wait()
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
171
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
172 return success
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
173
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
174
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
175 def Assert(b):
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
176 if not b:
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
177 raise Exception('Bad result')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
178
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
179
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
180
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
181 ##
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
182 ## Each test specifies: The input DICOM instance, and the expected
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
183 ## transfer syntax as received by storescp
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
184 ##
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
185
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
186
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
187 print('==== TEST 1 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
188 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
189 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
190 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.1', # Little Endian Explicit
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
191 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
192 [ '+xa' ], # storescp accepts any transfer syntax
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
193 # (DicomScuPreferredTransferSyntax has no effect)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
194 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
195 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
196 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
197 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
198 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.4.51'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
199 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
200 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
201
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
202
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
203 print('==== TEST 2 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
204 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
205 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
206 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.2', # Big Endian
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
208 [ '+xa' ], # storescp accepts any transfer syntax
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
209 # (DicomScuPreferredTransferSyntax has no effect)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
210 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
211 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
212 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
213 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
214 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.4.51'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
215 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
216 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
217
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
218
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
219 print('==== TEST 3 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
220 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
221 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
222 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.4.70', # JPEG baseline 12bpp
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
223 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
224 [ '+xa' ], # storescp accepts any transfer syntax
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
225 # (DicomScuPreferredTransferSyntax has no effect)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
226 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
227 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
228 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
229 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
230 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.4.51'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
231 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
232 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
233
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
234
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
235 print('==== TEST 4 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
236 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
237 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
238 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.1', # Little Endian Explicit
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
239 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
240 [ ], # storescp only accepts uncompressed transfer syntaxes
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
241 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
242 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
243 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
244 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
245 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
246 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
247 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
248
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
249
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
250 print('==== TEST 5 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
251 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
252 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
253 # Defaults to "1.2.840.10008.1.2.1", Little Endian Explicit
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
254 # (was Little Endian Implicit in Orthanc between 1.7.0 and 1.8.2)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
255 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
256 [ ], # storescp only accepts uncompressed transfer syntaxes
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
257 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
258 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
259 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
260 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
261 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
262 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
263 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
264
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
265
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
266 print('==== TEST 6 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
267 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
268 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
269 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2', # Little Endian Implicit
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
270 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
271 [ ], # storescp only accepts uncompressed transfer syntaxes
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
272 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
273 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
274 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
275 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
276 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
277 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
278 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
279
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
280
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
281 print('==== TEST 7 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
282 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
283 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
284 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.2', # Big Endian
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
285 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
286 [ ], # storescp only accepts uncompressed transfer syntaxes
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
287 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
288 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
289 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
290 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
291 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
292 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
293 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
294
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
295
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
296 print('==== TEST 8 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
297 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
298 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
299 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.4.70'
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
300 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
301 [ ], # storescp only accepts uncompressed transfer syntaxes,
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
302 # Little Endian Explicit will be chosed by Orthanc (was
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
303 # Little Endian Implicit in Orthanc between 1.7.0 and 1.8.2)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
304 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
306 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
307 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
308 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
309 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
310 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
311
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
312
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
313 print('==== TEST 9 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
314 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
315 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
316 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.4.70'
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
317 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
318 [ '+xi' ], # storescp only accepts Little Endian Implicit (1.2.840.10008.1.2)
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
319 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
320 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
321 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
322 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
323 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
324 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
325 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
326
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
327
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
328 print('==== TEST 10 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
329 CreateStorescpConfiguration([
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
330 '1.2.840.10008.1.2.4.70',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
331 ])
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
332 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
333 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
334 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.4.70'
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
335 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
336 [ '-xf', 'config', 'Default' ], # storescp only accepts "1.2.840.10008.1.2.4.70"
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
337 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
338 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
339 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
340 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
341 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
342 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
343 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
344
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
345
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
346 print('==== TEST 11 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
347 CreateStorescpConfiguration([
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
348 '1.2.840.10008.1.2.4.57',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
349 ])
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
350 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
351 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
352 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.4.70'
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
353 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
354 [ '-xf', 'config', 'Default' ],
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
355 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
356 ('TransferSyntaxes/1.2.840.10008.1.2.4.57.dcm', '1.2.840.10008.1.2.4.57'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
357
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
358 # All the transfers below will be rejected by storescp
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
359 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', None),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
360 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', None),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
361 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', None),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
362 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', None),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
363 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', None),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
364 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
365
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
366
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
367 print('==== TEST 12 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
368 CreateStorescpConfiguration([
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
369 '1.2.840.10008.1.2.4.70',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
370 '1.2.840.10008.1.2.1',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
371 ])
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
372 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
373 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
374 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.4.70'
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
375 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
376 [ '-xf', 'config', 'Default' ],
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
377 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
378 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
379 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
380 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
381 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
382 ('TransferSyntaxes/1.2.840.10008.1.2.4.70.dcm', '1.2.840.10008.1.2.4.70'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
383 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
384
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
385
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
386 print('==== TEST 13 ====')
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
387 CreateStorescpConfiguration([
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
388 '1.2.840.10008.1.2.4.90',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
389 '1.2.840.10008.1.2.1',
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
390 ])
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
391 Assert(TestStore(
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
392 {
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
393 # The built-in DCMTK transcoder of Orthanc cannot transcode to
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
394 # JPEG2k, so the fallback "1.2.840.10008.1.2.1" transfer
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
395 # syntax will be used if transcoding is needed
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
396 'DicomScuPreferredTransferSyntax' : '1.2.840.10008.1.2.4.90'
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
397 },
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
398 [ '-xf', 'config', 'Default' ],
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
399 [
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
400 ('TransferSyntaxes/1.2.840.10008.1.2.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
401 ('TransferSyntaxes/1.2.840.10008.1.2.1.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
402 ('TransferSyntaxes/1.2.840.10008.1.2.2.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
403 ('TransferSyntaxes/1.2.840.10008.1.2.4.51.dcm', '1.2.840.10008.1.2.1'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
404 ('TransferSyntaxes/1.2.840.10008.1.2.4.90.dcm', '1.2.840.10008.1.2.4.90'),
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
405 ]))
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
406
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
407
6941a4f449cc CheckScuTranscoding.py
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
408 print('Success!')