annotate Tests/CheckScuTranscoding.py @ 385:17e14efcc7fb

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