Mercurial > hg > orthanc-tests
comparison GenerateConfigurationForTests.py @ 205:42e4c00fe7c8 Orthanc-1.5.2
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 18 Jan 2019 19:11:20 +0100 |
parents | 7a58288d1b27 |
children | dc9682d80d22 |
comparison
equal
deleted
inserted
replaced
204:7a58288d1b27 | 205:42e4c00fe7c8 |
---|---|
79 ip = socket.gethostbyname(socket.gethostname()) | 79 ip = socket.gethostbyname(socket.gethostname()) |
80 | 80 |
81 | 81 |
82 # Download the content of the default configuration file | 82 # Download the content of the default configuration file |
83 with open(args.target, 'w') as f: | 83 with open(args.target, 'w') as f: |
84 url = 'https://bitbucket.org/sjodogne/orthanc/raw/Orthanc-1.2.0/Resources/Configuration.json' | 84 url = 'https://bitbucket.org/sjodogne/orthanc/raw/default/Resources/Configuration.json' |
85 http = urllib.urlopen(url) | 85 http = urllib.urlopen(url) |
86 if http.getcode() != 200: | 86 if http.getcode() != 200: |
87 raise Exception('Cannot download: %s' % url) | 87 raise Exception('Cannot download: %s' % url) |
88 | 88 |
89 f.write(http.read()) | 89 f.write(http.read()) |
116 config['RemoteAccessAllowed'] = True | 116 config['RemoteAccessAllowed'] = True |
117 config['OverwriteInstances'] = True | 117 config['OverwriteInstances'] = True |
118 config['JobsHistorySize'] = 1000 | 118 config['JobsHistorySize'] = 1000 |
119 config['SynchronousCMove'] = False | 119 config['SynchronousCMove'] = False |
120 config['MediaArchiveSize'] = 1 | 120 config['MediaArchiveSize'] = 1 |
121 config['KeepAlive'] = False | 121 del config['KeepAlive'] |
122 | 122 |
123 config['Dictionary'] = { | 123 config['Dictionary'] = { |
124 '00e1,10c2' : [ 'UI', 'PET-CT Multi Modality Name', 1, 1, 'ELSCINT1' ], | 124 '00e1,10c2' : [ 'UI', 'PET-CT Multi Modality Name', 1, 1, 'ELSCINT1' ], |
125 '7053,1003' : [ 'ST', 'Original Image Filename', 1, 1, 'Philips PET Private Group' ] | 125 '7053,1003' : [ 'ST', 'Original Image Filename', 1, 1, 'Philips PET Private Group' ] |
126 } | 126 } |