Mercurial > hg > orthanc-tests
comparison Plugins/WSI/Run.py @ 588:8aa101e126d0
migration to UCLouvain servers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 22 Nov 2023 07:28:23 +0100 |
parents | e6cee85fe421 |
children | 9f8276ac1cdd |
comparison
equal
deleted
inserted
replaced
587:f29d3ff889bf | 588:8aa101e126d0 |
---|---|
294 for j in range(4): | 294 for j in range(4): |
295 self.assertTrue('RGB' in p[j]) | 295 self.assertTrue('RGB' in p[j]) |
296 | 296 |
297 | 297 |
298 def test_concatenation(self): | 298 def test_concatenation(self): |
299 # https://bugs.orthanc-server.com/show_bug.cgi?id=145 | 299 # https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=145 |
300 CallDicomizer([ GetDatabasePath('LenaGrayscale.png'), '--levels=1', ]) | 300 CallDicomizer([ GetDatabasePath('LenaGrayscale.png'), '--levels=1', ]) |
301 i = DoGet(ORTHANC, '/instances') | 301 i = DoGet(ORTHANC, '/instances') |
302 self.assertEqual(1, len(i)) | 302 self.assertEqual(1, len(i)) |
303 tags = DoGet(ORTHANC, '/instances/%s/tags?short' % i[0]) | 303 tags = DoGet(ORTHANC, '/instances/%s/tags?short' % i[0]) |
304 self.assertTrue('0020,0242' in tags) # SOP Instance UID of Concatenation Source | 304 self.assertTrue('0020,0242' in tags) # SOP Instance UID of Concatenation Source |
345 self.assertEqual('2', t1['0020,9162']) | 345 self.assertEqual('2', t1['0020,9162']) |
346 self.assertEqual('2', t1['0020,9228']) | 346 self.assertEqual('2', t1['0020,9228']) |
347 | 347 |
348 | 348 |
349 def test_pixel_spacing(self): | 349 def test_pixel_spacing(self): |
350 # https://bugs.orthanc-server.com/show_bug.cgi?id=139 | 350 # https://orthanc.uclouvain.be/bugs/show_bug.cgi?id=139 |
351 CallDicomizer([ GetDatabasePath('LenaGrayscale.png'), # Image is 512x512 | 351 CallDicomizer([ GetDatabasePath('LenaGrayscale.png'), # Image is 512x512 |
352 '--levels=4', '--tile-width=64', '--tile-height=64', '--max-size=0', | 352 '--levels=4', '--tile-width=64', '--tile-height=64', '--max-size=0', |
353 '--imaged-width=20', '--imaged-height=10' ]) | 353 '--imaged-width=20', '--imaged-height=10' ]) |
354 | 354 |
355 instances = DoGet(ORTHANC, '/instances') | 355 instances = DoGet(ORTHANC, '/instances') |