Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ============================= test session starts ==============================
- platform linux -- Python 3.7.4, pytest-5.1.2, py-1.8.0, pluggy-0.13.0
- rootdir: /vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests
- collected 558 items
- test_PypeS/test_pype.py ....x... [ 1%]
- test_PypeS/test_pypes.py . [ 1%]
- test_vmtkScripts/test_importvmtkscripts.py . [ 1%]
- test_vmtkScripts/test_vmtkbifurcationprofiles.py ....................... [ 5%]
- . [ 6%]
- test_vmtkScripts/test_vmtkbifurcationreferencesystems.py ............ [ 8%]
- test_vmtkScripts/test_vmtkbifurcationsections.py ...............FFFFFFFF [ 12%]
- FFFFFFFFFFFFFF............ [ 17%]
- test_vmtkScripts/test_vmtkbifurcationvectors.py ........................ [ 21%]
- ... [ 21%]
- test_vmtkScripts/test_vmtkbranchclipper.py .......... [ 23%]
- test_vmtkScripts/test_vmtkbranchextractor.py ....FFF.FFF................ [ 28%]
- ......... [ 30%]
- test_vmtkScripts/test_vmtkbranchgeometry.py ............. [ 32%]
- test_vmtkScripts/test_vmtkbranchmetrics.py .. [ 32%]
- test_vmtkScripts/test_vmtkbranchsections.py ..FFFFFFFFFFFFFF............ [ 37%]
- ........................................................................ [ 50%]
- ........................... [ 55%]
- test_vmtkScripts/test_vmtkcenterlineattributes.py .. [ 55%]
- test_vmtkScripts/test_vmtkcenterlinegeometry.py . [ 56%]
- test_vmtkScripts/test_vmtkcenterlineimage.py F [ 56%]
- test_vmtkScripts/test_vmtkcenterlineinterpolation.py ... [ 56%]
- test_vmtkScripts/test_vmtkcenterlinemodeller.py ... [ 57%]
- test_vmtkScripts/test_vmtkcenterlineoffsetattributes.py .. [ 57%]
- test_vmtkScripts/test_vmtkcenterlineresampling.py . [ 57%]
- test_vmtkScripts/test_vmtkcenterlines.py ... [ 58%]
- test_vmtkScripts/test_vmtkcenterlinesmoothing.py ..... [ 59%]
- test_vmtkScripts/test_vmtkcenterlinesnetwork.py F [ 59%]
- test_vmtkScripts/test_vmtkimagebinarize.py ..... [ 60%]
- test_vmtkScripts/test_vmtkimagecast.py .... [ 61%]
- test_vmtkScripts/test_vmtkimagecompare.py .. [ 61%]
- test_vmtkScripts/test_vmtkimagecompose.py ..... [ 62%]
- test_vmtkScripts/test_vmtkimagefeatures.py ........FF [ 64%]
- test_vmtkScripts/test_vmtkimageinitialization.py ....... [ 65%]
- test_vmtkScripts/test_vmtkimagemorphology.py ..... [ 66%]
- test_vmtkScripts/test_vmtkimagenormalize.py . [ 66%]
- test_vmtkScripts/test_vmtkimageobjectenhancement.py .......... [ 68%]
- test_vmtkScripts/test_vmtkimageotsuthresholds.py .... [ 68%]
- test_vmtkScripts/test_vmtkimagereader.py ... [ 69%]
- test_vmtkScripts/test_vmtkimageshiftscale.py ................... [ 72%]
- test_vmtkScripts/test_vmtkimagesmoother.py ......... [ 74%]
- test_vmtkScripts/test_vmtkimagevesselenhancement.py .............sssssss [ 78%]
- sss [ 78%]
- test_vmtkScripts/test_vmtkimagevoipainter.py s [ 78%]
- test_vmtkScripts/test_vmtkimagevoiselector.py . [ 79%]
- test_vmtkScripts/test_vmtkimagevolumeviewer.py EEEEEEEEEEEEEEEEEEEEEEEE [ 83%]
- test_vmtkScripts/test_vmtklevelsetsegmentation.py ....... [ 84%]
- test_vmtkScripts/test_vmtkmarchingcubes.py . [ 84%]
- test_vmtkScripts/test_vmtksurfaceappend.py . [ 84%]
- test_vmtkScripts/test_vmtksurfacebooleanoperation.py ...... [ 86%]
- test_vmtkScripts/test_vmtksurfacecapper.py sssssssss [ 87%]
- test_vmtkScripts/test_vmtksurfacecelldatatopointdata.py ................ [ 90%]
- .. [ 90%]
- test_vmtkScripts/test_vmtksurfaceconnectivity.py ... [ 91%]
- test_vmtkScripts/test_vmtksurfacedecimation.py .. [ 91%]
- test_vmtkScripts/test_vmtksurfacekiteremoval.py .. [ 92%]
- test_vmtkScripts/test_vmtksurfacemassproperties.py . [ 92%]
- test_vmtkScripts/test_vmtksurfacemodeller.py ... [ 92%]
- test_vmtkScripts/test_vmtksurfacenormals.py ... [ 93%]
- test_vmtkScripts/test_vmtksurfacereader.py .. [ 93%]
- test_vmtkScripts/test_vmtksurfaceremeshing.py ........... [ 95%]
- test_vmtkScripts/test_vmtksurfacescaling.py ....... [ 96%]
- test_vmtkScripts/test_vmtksurfacesmoothing.py .... [ 97%]
- test_vmtkScripts/test_vmtksurfacesubdivision.py ...... [ 98%]
- test_vmtkScripts/test_vmtksurfacetobinaryimage.py FFFFF [ 99%]
- test_vmtkScripts/test_vmtksurfacetransformtoras.py EE [100%]
- ==================================== ERRORS ====================================
- __________ ERROR at setup of test_volume_viewer_preset_values[CT-AAA] __________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- ---------------------------- Captured stdout setup -----------------------------
- Spacing 0.878906 0.878906 1.500090
- Origin 156.445000 24.609400 0.000000
- Dimensions 157 393 34
- _________ ERROR at setup of test_volume_viewer_preset_values[CT-AAA2] __________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _________ ERROR at setup of test_volume_viewer_preset_values[CT-Bone] __________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _________ ERROR at setup of test_volume_viewer_preset_values[CT-Bones] _________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- ________ ERROR at setup of test_volume_viewer_preset_values[CT-Cardiac] ________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _______ ERROR at setup of test_volume_viewer_preset_values[CT-Cardiac2] ________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _______ ERROR at setup of test_volume_viewer_preset_values[CT-Cardiac3] ________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _ ERROR at setup of test_volume_viewer_preset_values[CT-Chest-Contrast-Enhanced] _
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _____ ERROR at setup of test_volume_viewer_preset_values[CT-Chest-Vessels] _____
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- ___ ERROR at setup of test_volume_viewer_preset_values[CT-Coronary-Arteries] ___
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- __ ERROR at setup of test_volume_viewer_preset_values[CT-Coronary-Arteries-2] __
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- __ ERROR at setup of test_volume_viewer_preset_values[CT-Coronary-Arteries-3] __
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- __ ERROR at setup of test_volume_viewer_preset_values[CT-Cropped-Volume-Bone] __
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- __________ ERROR at setup of test_volume_viewer_preset_values[CT-Fat] __________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- ___ ERROR at setup of test_volume_viewer_preset_values[CT-Liver-Vasculature] ___
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _________ ERROR at setup of test_volume_viewer_preset_values[CT-Lung] __________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- __________ ERROR at setup of test_volume_viewer_preset_values[CT-MIP] __________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- ________ ERROR at setup of test_volume_viewer_preset_values[CT-Muscle] _________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- __ ERROR at setup of test_volume_viewer_preset_values[CT-Pulmonary-Arteries] ___
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- ______ ERROR at setup of test_volume_viewer_preset_values[CT-Soft-Tissue] ______
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _________ ERROR at setup of test_volume_viewer_preset_values[MR-Angio] _________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- ________ ERROR at setup of test_volume_viewer_preset_values[MR-Default] ________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- __________ ERROR at setup of test_volume_viewer_preset_values[MR-MIP] __________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- _______ ERROR at setup of test_volume_viewer_preset_values[MR-T2-Brain] ________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def expected_results_dict(input_datadir):
- from json import load
- import os
- > with open(os.path.join(input_datadir, 'vmtkimagevolumeviewer_testresults.json'), 'r') as f:
- E FileNotFoundError: [Errno 2] No such file or directory: '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/vmtkimagevolumeviewer_testresults.json'
- test_vmtkScripts/test_vmtkimagevolumeviewer.py:25: FileNotFoundError
- __________________ ERROR at setup of test_default_parameters ___________________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def transform_image(input_datadir):
- import vmtk.vmtkimagereader as imagereader
- reader = imagereader.vmtkImageReader()
- reader.InputFileName = os.path.join(input_datadir, 'image-test-transform.nrrd')
- > reader.Execute()
- test_vmtkScripts/test_vmtksurfacetransformtoras.py:26:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /scratch/gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/vmtk/vmtkimagereader.py:266: in Execute
- self.ReadITKIO()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <vmtk.vmtkimagereader.vmtkImageReader object at 0x2ab226052b10>
- def ReadITKIO(self):
- if self.InputFileName == '':
- self.PrintError('Error: no InputFileName.')
- reader = vtkvmtk.vtkvmtkITKArchetypeImageSeriesScalarReader()
- reader.SetArchetype(self.InputFileName)
- reader.SetDefaultDataSpacing(self.DataSpacing)
- reader.SetDefaultDataOrigin(self.DataOrigin)
- reader.SetOutputScalarTypeToNative()
- if self.DesiredOrientation == 'native':
- reader.SetDesiredCoordinateOrientationToNative()
- elif self.DesiredOrientation == 'axial':
- reader.SetDesiredCoordinateOrientationToAxial()
- elif self.DesiredOrientation == 'coronal':
- reader.SetDesiredCoordinateOrientationToCoronal()
- elif self.DesiredOrientation == 'sagittal':
- reader.SetDesiredCoordinateOrientationToSagittal()
- reader.SetSingleFile(0)
- reader.Update()
- self.Image = vtk.vtkImageData()
- self.Image.DeepCopy(reader.GetOutput())
- matrix = reader.GetRasToIjkMatrix()
- self.RasToIjkMatrixCoefficients = [
- > matrix.GetElement(0,0), matrix.GetElement(0,1), matrix.GetElement(0,2), matrix.GetElement(0,3),
- matrix.GetElement(1,0), matrix.GetElement(1,1), matrix.GetElement(1,2), matrix.GetElement(1,3),
- matrix.GetElement(2,0), matrix.GetElement(2,1), matrix.GetElement(2,2), matrix.GetElement(2,3),
- matrix.GetElement(3,0), matrix.GetElement(3,1), matrix.GetElement(3,2), matrix.GetElement(3,3)]
- E AttributeError: 'NoneType' object has no attribute 'GetElement'
- /scratch/gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/vmtk/vmtkimagereader.py:203: AttributeError
- ---------------------------- Captured stderr setup -----------------------------
- ERROR: In /tmp/vsc43810/easybuild/build/VMTK/1.4.0/foss-2019b-Python-3.7.4/vmtk-63a3b990328d8dfaa6ffd31968fc341cad9dbe67/vtkVmtk/Utilities/vtkvmtkITK/vtkvmtkITKArchetypeImageSeriesReader.cxx, line 220
- vtkvmtkITKArchetypeImageSeriesScalarReader (0x4b12530): vtkvmtkITKArchetypeImageSeriesReader::ExecuteInformation: Archetype file /scratch/gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input/image-test-transform.nrrd does not exist.
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/Common/ExecutionModel/vtkExecutive.cxx, line 782
- vtkCompositeDataPipeline (0x4d320e0): Algorithm vtkvmtkITKArchetypeImageSeriesScalarReader(0x4b12530) returned failure for request: vtkInformation (0x4217ef0)
- Debug: Off
- Modified Time: 39217731
- Reference Count: 1
- Registered Events: (none)
- Request: REQUEST_INFORMATION
- ALGORITHM_AFTER_FORWARD: 1
- FORWARD_DIRECTION: 0
- _______________________ ERROR at setup of test_invert_on _______________________
- input_datadir = '/vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/input'
- @pytest.fixture(scope='module')
- def transform_image(input_datadir):
- import vmtk.vmtkimagereader as imagereader
- reader = imagereader.vmtkImageReader()
- reader.InputFileName = os.path.join(input_datadir, 'image-test-transform.nrrd')
- > reader.Execute()
- test_vmtkScripts/test_vmtksurfacetransformtoras.py:26:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /scratch/gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/vmtk/vmtkimagereader.py:266: in Execute
- self.ReadITKIO()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <vmtk.vmtkimagereader.vmtkImageReader object at 0x2ab226052b10>
- def ReadITKIO(self):
- if self.InputFileName == '':
- self.PrintError('Error: no InputFileName.')
- reader = vtkvmtk.vtkvmtkITKArchetypeImageSeriesScalarReader()
- reader.SetArchetype(self.InputFileName)
- reader.SetDefaultDataSpacing(self.DataSpacing)
- reader.SetDefaultDataOrigin(self.DataOrigin)
- reader.SetOutputScalarTypeToNative()
- if self.DesiredOrientation == 'native':
- reader.SetDesiredCoordinateOrientationToNative()
- elif self.DesiredOrientation == 'axial':
- reader.SetDesiredCoordinateOrientationToAxial()
- elif self.DesiredOrientation == 'coronal':
- reader.SetDesiredCoordinateOrientationToCoronal()
- elif self.DesiredOrientation == 'sagittal':
- reader.SetDesiredCoordinateOrientationToSagittal()
- reader.SetSingleFile(0)
- reader.Update()
- self.Image = vtk.vtkImageData()
- self.Image.DeepCopy(reader.GetOutput())
- matrix = reader.GetRasToIjkMatrix()
- self.RasToIjkMatrixCoefficients = [
- > matrix.GetElement(0,0), matrix.GetElement(0,1), matrix.GetElement(0,2), matrix.GetElement(0,3),
- matrix.GetElement(1,0), matrix.GetElement(1,1), matrix.GetElement(1,2), matrix.GetElement(1,3),
- matrix.GetElement(2,0), matrix.GetElement(2,1), matrix.GetElement(2,2), matrix.GetElement(2,3),
- matrix.GetElement(3,0), matrix.GetElement(3,1), matrix.GetElement(3,2), matrix.GetElement(3,3)]
- E AttributeError: 'NoneType' object has no attribute 'GetElement'
- /scratch/gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/vmtk/vmtkimagereader.py:203: AttributeError
- =================================== FAILURES ===================================
- _ test_bifurcation_section_group_ids_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_group_ids_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_bifurcation_group_ids_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_bifurcation_group_ids_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_point_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_point_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_normal_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_normal_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_area_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_area_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_min_size_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_min_size_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_max_size_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_max_size_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_shape_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_shape_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_closed_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_closed_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_orientation_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_orientation_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_distance_to_spheres_correct[bifur_sections_one_sphere-expectedValue0] _
- Fixture "bifur_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_bifurcation_section_distance_to_spheres_correct[bifur_sections_two_spheres-expectedValue1] _
- Fixture "bifur_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _________________ test_cell_data_array_names[CenterlineIds-0] __________________
- centerline_branches = (vtkCommonDataModelPython.vtkPolyData)0x2ab226036d00
- expectedname = 'CenterlineIds', paramid = 0
- @pytest.mark.parametrize("expectedname,paramid", [
- ("CenterlineIds", 0),
- ("TractIds", 1),
- ("Blanking", 2),
- ("GroupIds", 3)
- ])
- def test_cell_data_array_names(centerline_branches, expectedname, paramid):
- > assert centerline_branches.GetCellData().GetArrayName(paramid) == expectedname
- E AssertionError: assert 'Blanking' == 'CenterlineIds'
- E - Blanking
- E + CenterlineIds
- test_vmtkScripts/test_vmtkbranchextractor.py:57: AssertionError
- ____________________ test_cell_data_array_names[TractIds-1] ____________________
- centerline_branches = (vtkCommonDataModelPython.vtkPolyData)0x2ab226036d00
- expectedname = 'TractIds', paramid = 1
- @pytest.mark.parametrize("expectedname,paramid", [
- ("CenterlineIds", 0),
- ("TractIds", 1),
- ("Blanking", 2),
- ("GroupIds", 3)
- ])
- def test_cell_data_array_names(centerline_branches, expectedname, paramid):
- > assert centerline_branches.GetCellData().GetArrayName(paramid) == expectedname
- E AssertionError: assert 'CenterlineIds' == 'TractIds'
- E - CenterlineIds
- E + TractIds
- test_vmtkScripts/test_vmtkbranchextractor.py:57: AssertionError
- ____________________ test_cell_data_array_names[Blanking-2] ____________________
- centerline_branches = (vtkCommonDataModelPython.vtkPolyData)0x2ab226036d00
- expectedname = 'Blanking', paramid = 2
- @pytest.mark.parametrize("expectedname,paramid", [
- ("CenterlineIds", 0),
- ("TractIds", 1),
- ("Blanking", 2),
- ("GroupIds", 3)
- ])
- def test_cell_data_array_names(centerline_branches, expectedname, paramid):
- > assert centerline_branches.GetCellData().GetArrayName(paramid) == expectedname
- E AssertionError: assert 'TractIds' == 'Blanking'
- E - TractIds
- E + Blanking
- test_vmtkScripts/test_vmtkbranchextractor.py:57: AssertionError
- ________________ test_cell_data_array_values[expectedvalue0-0] _________________
- centerline_branches = (vtkCommonDataModelPython.vtkPolyData)0x2ab226036d00
- expectedvalue = [0, 0, 0, 1, 1, 1], paramid = 0
- @pytest.mark.parametrize("expectedvalue,paramid", [
- ([0, 0, 0, 1, 1, 1], 0),
- ([0, 1, 2, 0, 1, 2], 1),
- ([0, 1, 0, 0, 1, 0], 2),
- ([0, 1, 2, 0, 1, 3], 3)
- ])
- def test_cell_data_array_values(centerline_branches, expectedvalue, paramid):
- centerline_branches_wrapped = dsa.WrapDataObject(centerline_branches)
- > assert centerline_branches_wrapped.CellData.GetArray(paramid).tolist() == expectedvalue
- E assert [0, 1, 0, 0, 1, 0] == [0, 0, 0, 1, 1, 1]
- E At index 1 diff: 1 != 0
- E Use -v to get the full diff
- test_vmtkScripts/test_vmtkbranchextractor.py:68: AssertionError
- ________________ test_cell_data_array_values[expectedvalue1-1] _________________
- centerline_branches = (vtkCommonDataModelPython.vtkPolyData)0x2ab226036d00
- expectedvalue = [0, 1, 2, 0, 1, 2], paramid = 1
- @pytest.mark.parametrize("expectedvalue,paramid", [
- ([0, 0, 0, 1, 1, 1], 0),
- ([0, 1, 2, 0, 1, 2], 1),
- ([0, 1, 0, 0, 1, 0], 2),
- ([0, 1, 2, 0, 1, 3], 3)
- ])
- def test_cell_data_array_values(centerline_branches, expectedvalue, paramid):
- centerline_branches_wrapped = dsa.WrapDataObject(centerline_branches)
- > assert centerline_branches_wrapped.CellData.GetArray(paramid).tolist() == expectedvalue
- E assert [0, 0, 0, 1, 1, 1] == [0, 1, 2, 0, 1, 2]
- E At index 1 diff: 0 != 1
- E Use -v to get the full diff
- test_vmtkScripts/test_vmtkbranchextractor.py:68: AssertionError
- ________________ test_cell_data_array_values[expectedvalue2-2] _________________
- centerline_branches = (vtkCommonDataModelPython.vtkPolyData)0x2ab226036d00
- expectedvalue = [0, 1, 0, 0, 1, 0], paramid = 2
- @pytest.mark.parametrize("expectedvalue,paramid", [
- ([0, 0, 0, 1, 1, 1], 0),
- ([0, 1, 2, 0, 1, 2], 1),
- ([0, 1, 0, 0, 1, 0], 2),
- ([0, 1, 2, 0, 1, 3], 3)
- ])
- def test_cell_data_array_values(centerline_branches, expectedvalue, paramid):
- centerline_branches_wrapped = dsa.WrapDataObject(centerline_branches)
- > assert centerline_branches_wrapped.CellData.GetArray(paramid).tolist() == expectedvalue
- E assert [0, 1, 2, 0, 1, 2] == [0, 1, 0, 0, 1, 0]
- E At index 2 diff: 2 != 0
- E Use -v to get the full diff
- test_vmtkScripts/test_vmtkbranchextractor.py:68: AssertionError
- _ test_branch_section_group_ids_correct[branch_sections_one_sphere-expectedValue0] _
- Fixture "branch_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_group_ids_correct[branch_sections_two_spheres-expectedValue1] _
- Fixture "branch_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_area_correct[branch_sections_one_sphere-expectedValue0] __
- Fixture "branch_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_area_correct[branch_sections_two_spheres-expectedValue1] _
- Fixture "branch_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_min_size_correct[branch_sections_one_sphere-expectedValue0] _
- Fixture "branch_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_min_size_correct[branch_sections_two_spheres-expectedValue1] _
- Fixture "branch_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_max_size_correct[branch_sections_one_sphere-expectedValue0] _
- Fixture "branch_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_max_size_correct[branch_sections_two_spheres-expectedValue1] _
- Fixture "branch_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_shape_correct[branch_sections_one_sphere-expectedValue0] _
- Fixture "branch_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_shape_correct[branch_sections_two_spheres-expectedValue1] _
- Fixture "branch_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_closed_correct[branch_sections_one_sphere-expectedValue0] _
- Fixture "branch_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_closed_correct[branch_sections_two_spheres-expectedValue1] _
- Fixture "branch_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_distance_to_spheres_correct[branch_sections_one_sphere-expectedValue0] _
- Fixture "branch_sections_one_sphere" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- _ test_branch_section_distance_to_spheres_correct[branch_sections_two_spheres-expectedValue1] _
- Fixture "branch_sections_two_spheres" called directly. Fixtures are not meant to be called directly,
- but are created automatically when test functions request them as parameters.
- See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
- https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
- ___________________________ test_default_parameters ____________________________
- aorta_surface = (vtkCommonDataModelPython.vtkPolyData)0x2ab226036590
- compare_images = <function compare_images.<locals>.make_compare_images at 0x2ab225fbfd40>
- per_system_compare_image_name = 'test_vmtkcenterlineimage_test_default_parameters_linux.vti'
- def test_default_parameters(aorta_surface, compare_images, per_system_compare_image_name):
- centImage = centerlineimage.vmtkCenterlineImage()
- centImage.Surface = aorta_surface
- centImage.Execute()
- > assert compare_images(centImage.Image, per_system_compare_image_name) == True
- E AssertionError: assert False == True
- E + where False = <function compare_images.<locals>.make_compare_images at 0x2ab225fbfd40>((vtkCommonDataModelPython.vtkImageData)0x2ab225febb40, 'test_vmtkcenterlineimage_test_default_parameters_linux.vti')
- E + where (vtkCommonDataModelPython.vtkImageData)0x2ab225febb40 = <vmtk.vmtkcenterlineimage.vmtkCenterlineImage object at 0x2ab2260a4c10>.Image
- test_vmtkScripts/test_vmtkcenterlineimage.py:37: AssertionError
- ---------------------------- Captured stdout setup -----------------------------
- Reading VTK XML surface file.
- ----------------------------- Captured stdout call -----------------------------
- Converting Surface to Image Mask
- Extracting Centerline Skeleton from Image Mask...
- Reading VTK XML image file.
- Spacing 1.000000 1.000000 1.000000
- Origin 0.000000 0.000000 0.000000
- Dimensions 0 0 0
- Image Points: 2479400Reference Image Points: 0
- ----------------------------- Captured stderr call -----------------------------
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/IO/XML/vtkXMLReader.cxx, line 271
- vtkXMLImageDataReader (0x44e5070): Error opening file /vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/imagereference/test_vmtkcenterlineimage_test_default_parameters_linux.vti
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/Common/ExecutionModel/vtkExecutive.cxx, line 782
- vtkCompositeDataPipeline (0x27c72d0): Algorithm vtkXMLImageDataReader(0x44e5070) returned failure for request: vtkInformation (0x2a8c180)
- Debug: Off
- Modified Time: 2894420
- Reference Count: 1
- Registered Events: (none)
- Request: REQUEST_INFORMATION
- ALGORITHM_AFTER_FORWARD: 1
- FORWARD_DIRECTION: 0
- _______________ test_centerline_extraction_surface_with_no_hole ________________
- aorta_surface = (vtkCommonDataModelPython.vtkPolyData)0x2ab225feb590
- def test_centerline_extraction_surface_with_no_hole(aorta_surface):
- clnetwork = centerlinesnetwork.vmtkCenterlinesNetwork()
- clnetwork.Surface = aorta_surface
- > clnetwork.Execute()
- test_vmtkScripts/test_vmtkcenterlinesnetwork.py:24:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <vmtk.vmtkcenterlinesnetwork.vmtkCenterlinesNetwork object at 0x2ab2260bf5d0>
- def Execute(self):
- if self.Surface == None:
- self.PrintError('Error: No input surface.')
- # feature edges are used to find any holes in the surface.
- fedges = vtk.vtkFeatureEdges()
- fedges.BoundaryEdgesOn()
- fedges.FeatureEdgesOff()
- fedges.ManifoldEdgesOff()
- fedges.SetInputData(self.Surface)
- fedges.Update()
- ofedges = fedges.GetOutput()
- # if numEdges is not 0, then there are holes which need to be capped
- numEdges = ofedges.GetNumberOfPoints()
- if numEdges != 0:
- tempcapper = vmtksurfacecapper.vmtkSurfaceCapper()
- tempcapper.Surface = self.Surface
- tempcapper.Interactive = 0
- tempcapper.Execute()
- networkSurface = tempcapper.Surface
- else:
- networkSurface = self.Surface
- # randomly select one cell to delete so that there is an opening for
- # vmtkNetworkExtraction to use.
- numCells = self.Surface.GetNumberOfCells()
- cellToDelete = random.randrange(0, numCells-1)
- networkSurface.BuildLinks()
- networkSurface.DeleteCell(cellToDelete)
- networkSurface.RemoveDeletedCells()
- # extract the network of approximated centerlines
- net = vmtknetworkextraction.vmtkNetworkExtraction()
- net.Surface = networkSurface
- net.AdvancementRatio = 1.001
- net.Execute()
- network = net.Network
- convert = vmtkcenterlinestonumpy.vmtkCenterlinesToNumpy()
- convert.Centerlines = network
- convert.LogOn = False
- convert.Execute()
- ad = convert.ArrayDict
- cellDataTopology = ad['CellData']['Topology']
- # the network topology identifies an the input segment with the "0" id.
- # since we artificially created this segment, we don't want to use the
- # ends of the segment as source/target points of the centerline calculation
- nodeIndexToIgnore = np.where(cellDataTopology[:,0] == 0)[0][0]
- keepCellConnectivityList = []
- pointIdxToKeep = np.array([])
- # we remove the cell, points, and point data which are associated with the
- # segment we want to ignore
- for loopIdx, cellConnectivityList in enumerate(ad['CellData']['CellPointIds']):
- if loopIdx == nodeIndexToIgnore:
- removeCellStartIdx = cellConnectivityList[0]
- removeCellEndIdx = cellConnectivityList[-1]
- removeCellLength = cellConnectivityList.size
- if (removeCellEndIdx + 1) - removeCellStartIdx != removeCellLength:
- raise(ValueError)
- continue
- else:
- > rescaledCellConnectivity = np.subtract(cellConnectivityList, removeCellLength, where=cellConnectivityList >= removeCellLength)
- E UnboundLocalError: local variable 'removeCellLength' referenced before assignment
- /scratch/gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/lib/python3.7/site-packages/vmtk/vmtkcenterlinesnetwork.py:174: UnboundLocalError
- ---------------------------- Captured stdout setup -----------------------------
- Reading VTK XML surface file.
- ----------------------------- Captured stdout call -----------------------------
- Progress: 100%Progress: 100%
- _________________ test_upwind_factor_values_for_upwind[0.0-0] __________________
- aorta_image = (vtkCommonDataModelPython.vtkImageData)0x2ab22608ed70
- compare_images = <function compare_images.<locals>.make_compare_images at 0x2ab22609f560>
- upwindValue = 0.0, paramid = '0'
- write_image = <function write_image.<locals>.make_write_image at 0x2ab22609f170>
- @pytest.mark.parametrize("upwindValue,paramid", [
- (0.0, '0'),
- (0.3, '1'),
- ])
- def test_upwind_factor_values_for_upwind(aorta_image, compare_images, upwindValue, paramid, write_image):
- name = __name__ + '_test_upwind_factor_values_for_upwind_' + paramid + '.mha'
- featurer = imagefeatures.vmtkImageFeatures()
- featurer.Image = aorta_image
- featurer.FeatureImageType = 'upwind'
- featurer.UpwindFactor = upwindValue
- featurer.Execute()
- > assert compare_images(featurer.Image, name) == True
- E AssertionError: assert False == True
- E + where False = <function compare_images.<locals>.make_compare_images at 0x2ab22609f560>((vtkCommonDataModelPython.vtkImageData)0x2ab2260aa280, 'test_vmtkimagefeatures_test_upwind_factor_values_for_upwind_0.mha')
- E + where (vtkCommonDataModelPython.vtkImageData)0x2ab2260aa280 = <vmtk.vmtkimagefeatures.vmtkImageFeatures object at 0x2ab225ffe610>.Image
- test_vmtkScripts/test_vmtkimagefeatures.py:80: AssertionError
- ----------------------------- Captured stdout call -----------------------------
- Spacing 0.878906 0.878906 1.500090
- Origin 156.445000 24.609400 0.000000
- Dimensions 157 393 34
- Image Points: 2097834Reference Image Points: 2097834Difference Range: (-0.9947620630264282, 0.0)
- _________________ test_upwind_factor_values_for_upwind[0.3-1] __________________
- aorta_image = (vtkCommonDataModelPython.vtkImageData)0x2ab22608ed70
- compare_images = <function compare_images.<locals>.make_compare_images at 0x2ab22609f560>
- upwindValue = 0.3, paramid = '1'
- write_image = <function write_image.<locals>.make_write_image at 0x2ab22609f170>
- @pytest.mark.parametrize("upwindValue,paramid", [
- (0.0, '0'),
- (0.3, '1'),
- ])
- def test_upwind_factor_values_for_upwind(aorta_image, compare_images, upwindValue, paramid, write_image):
- name = __name__ + '_test_upwind_factor_values_for_upwind_' + paramid + '.mha'
- featurer = imagefeatures.vmtkImageFeatures()
- featurer.Image = aorta_image
- featurer.FeatureImageType = 'upwind'
- featurer.UpwindFactor = upwindValue
- featurer.Execute()
- > assert compare_images(featurer.Image, name) == True
- E AssertionError: assert False == True
- E + where False = <function compare_images.<locals>.make_compare_images at 0x2ab22609f560>((vtkCommonDataModelPython.vtkImageData)0x2ab2260aaa60, 'test_vmtkimagefeatures_test_upwind_factor_values_for_upwind_1.mha')
- E + where (vtkCommonDataModelPython.vtkImageData)0x2ab2260aaa60 = <vmtk.vmtkimagefeatures.vmtkImageFeatures object at 0x2ab226052310>.Image
- test_vmtkScripts/test_vmtkimagefeatures.py:80: AssertionError
- ----------------------------- Captured stdout call -----------------------------
- Spacing 0.878906 0.878906 1.500090
- Origin 156.445000 24.609400 0.000000
- Dimensions 157 393 34
- Image Points: 2097834Reference Image Points: 2097834Difference Range: (-0.9925339818000793, 0.0)
- ____________________ test_set_inside_outside_values[1-0-0] _____________________
- aorta_surface = (vtkCommonDataModelPython.vtkPolyData)0x2ab2260aae50
- compare_images = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>
- insidevalue = 1, outsidevalue = 0, paramid = '0'
- @pytest.mark.parametrize("insidevalue,outsidevalue,paramid", [
- (1, 0 ,'0'),
- (255, 0, '1'),
- (255, 1, '2'),
- (1, 255, '3'),
- ])
- def test_set_inside_outside_values(aorta_surface, compare_images,
- insidevalue, outsidevalue, paramid):
- name = __name__ + '_test_set_inside_outside_values_' + paramid + '.vti'
- surfToImage = surfacetobinaryimage.vmtkSurfaceToBinaryImage()
- surfToImage.Surface = aorta_surface
- surfToImage.InsideValue = insidevalue
- surfToImage.OutsideValue = outsidevalue
- surfToImage.Execute()
- > assert compare_images(surfToImage.Image, name) == True
- E AssertionError: assert False == True
- E + where False = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>((vtkCommonDataModelPython.vtkImageData)0x2ab225feb910, 'test_vmtksurfacetobinaryimage_test_set_inside_outside_values_0.vti')
- E + where (vtkCommonDataModelPython.vtkImageData)0x2ab225feb910 = <vmtk.vmtksurfacetobinaryimage.vmtkSurfaceToBinaryImage object at 0x2ab2260529d0>.Image
- test_vmtkScripts/test_vmtksurfacetobinaryimage.py:35: AssertionError
- ---------------------------- Captured stdout setup -----------------------------
- Reading VTK XML surface file.
- ----------------------------- Captured stdout call -----------------------------
- Reading VTK XML image file.
- Spacing 1.000000 1.000000 1.000000
- Origin 0.000000 0.000000 0.000000
- Dimensions 0 0 0
- Image Points: 2479400Reference Image Points: 0
- ----------------------------- Captured stderr call -----------------------------
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/IO/XML/vtkXMLReader.cxx, line 271
- vtkXMLImageDataReader (0x2abb180): Error opening file /vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/imagereference/test_vmtksurfacetobinaryimage_test_set_inside_outside_values_0.vti
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/Common/ExecutionModel/vtkExecutive.cxx, line 782
- vtkCompositeDataPipeline (0x542bd60): Algorithm vtkXMLImageDataReader(0x2abb180) returned failure for request: vtkInformation (0x323c2d0)
- Debug: Off
- Modified Time: 39207558
- Reference Count: 1
- Registered Events: (none)
- Request: REQUEST_INFORMATION
- ALGORITHM_AFTER_FORWARD: 1
- FORWARD_DIRECTION: 0
- ___________________ test_set_inside_outside_values[255-0-1] ____________________
- aorta_surface = (vtkCommonDataModelPython.vtkPolyData)0x2ab2260aae50
- compare_images = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>
- insidevalue = 255, outsidevalue = 0, paramid = '1'
- @pytest.mark.parametrize("insidevalue,outsidevalue,paramid", [
- (1, 0 ,'0'),
- (255, 0, '1'),
- (255, 1, '2'),
- (1, 255, '3'),
- ])
- def test_set_inside_outside_values(aorta_surface, compare_images,
- insidevalue, outsidevalue, paramid):
- name = __name__ + '_test_set_inside_outside_values_' + paramid + '.vti'
- surfToImage = surfacetobinaryimage.vmtkSurfaceToBinaryImage()
- surfToImage.Surface = aorta_surface
- surfToImage.InsideValue = insidevalue
- surfToImage.OutsideValue = outsidevalue
- surfToImage.Execute()
- > assert compare_images(surfToImage.Image, name) == True
- E AssertionError: assert False == True
- E + where False = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>((vtkCommonDataModelPython.vtkImageData)0x2ab2260aa910, 'test_vmtksurfacetobinaryimage_test_set_inside_outside_values_1.vti')
- E + where (vtkCommonDataModelPython.vtkImageData)0x2ab2260aa910 = <vmtk.vmtksurfacetobinaryimage.vmtkSurfaceToBinaryImage object at 0x2ab22616c610>.Image
- test_vmtkScripts/test_vmtksurfacetobinaryimage.py:35: AssertionError
- ----------------------------- Captured stdout call -----------------------------
- Reading VTK XML image file.
- Spacing 1.000000 1.000000 1.000000
- Origin 0.000000 0.000000 0.000000
- Dimensions 0 0 0
- Image Points: 2479400Reference Image Points: 0
- ----------------------------- Captured stderr call -----------------------------
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/IO/XML/vtkXMLReader.cxx, line 271
- vtkXMLImageDataReader (0x52468b0): Error opening file /vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/imagereference/test_vmtksurfacetobinaryimage_test_set_inside_outside_values_1.vti
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/Common/ExecutionModel/vtkExecutive.cxx, line 782
- vtkCompositeDataPipeline (0x524b7b0): Algorithm vtkXMLImageDataReader(0x52468b0) returned failure for request: vtkInformation (0x2c4dda0)
- Debug: Off
- Modified Time: 39210253
- Reference Count: 1
- Registered Events: (none)
- Request: REQUEST_INFORMATION
- ALGORITHM_AFTER_FORWARD: 1
- FORWARD_DIRECTION: 0
- ___________________ test_set_inside_outside_values[255-1-2] ____________________
- aorta_surface = (vtkCommonDataModelPython.vtkPolyData)0x2ab2260aae50
- compare_images = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>
- insidevalue = 255, outsidevalue = 1, paramid = '2'
- @pytest.mark.parametrize("insidevalue,outsidevalue,paramid", [
- (1, 0 ,'0'),
- (255, 0, '1'),
- (255, 1, '2'),
- (1, 255, '3'),
- ])
- def test_set_inside_outside_values(aorta_surface, compare_images,
- insidevalue, outsidevalue, paramid):
- name = __name__ + '_test_set_inside_outside_values_' + paramid + '.vti'
- surfToImage = surfacetobinaryimage.vmtkSurfaceToBinaryImage()
- surfToImage.Surface = aorta_surface
- surfToImage.InsideValue = insidevalue
- surfToImage.OutsideValue = outsidevalue
- surfToImage.Execute()
- > assert compare_images(surfToImage.Image, name) == True
- E AssertionError: assert False == True
- E + where False = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>((vtkCommonDataModelPython.vtkImageData)0x2ab225d02670, 'test_vmtksurfacetobinaryimage_test_set_inside_outside_values_2.vti')
- E + where (vtkCommonDataModelPython.vtkImageData)0x2ab225d02670 = <vmtk.vmtksurfacetobinaryimage.vmtkSurfaceToBinaryImage object at 0x2ab22614cc10>.Image
- test_vmtkScripts/test_vmtksurfacetobinaryimage.py:35: AssertionError
- ----------------------------- Captured stdout call -----------------------------
- Reading VTK XML image file.
- Spacing 1.000000 1.000000 1.000000
- Origin 0.000000 0.000000 0.000000
- Dimensions 0 0 0
- Image Points: 2479400Reference Image Points: 0
- ----------------------------- Captured stderr call -----------------------------
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/IO/XML/vtkXMLReader.cxx, line 271
- vtkXMLImageDataReader (0x4de7390): Error opening file /vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/imagereference/test_vmtksurfacetobinaryimage_test_set_inside_outside_values_2.vti
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/Common/ExecutionModel/vtkExecutive.cxx, line 782
- vtkCompositeDataPipeline (0x524e8f0): Algorithm vtkXMLImageDataReader(0x4de7390) returned failure for request: vtkInformation (0x523a8f0)
- Debug: Off
- Modified Time: 39212856
- Reference Count: 1
- Registered Events: (none)
- Request: REQUEST_INFORMATION
- ALGORITHM_AFTER_FORWARD: 1
- FORWARD_DIRECTION: 0
- ___________________ test_set_inside_outside_values[1-255-3] ____________________
- aorta_surface = (vtkCommonDataModelPython.vtkPolyData)0x2ab2260aae50
- compare_images = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>
- insidevalue = 1, outsidevalue = 255, paramid = '3'
- @pytest.mark.parametrize("insidevalue,outsidevalue,paramid", [
- (1, 0 ,'0'),
- (255, 0, '1'),
- (255, 1, '2'),
- (1, 255, '3'),
- ])
- def test_set_inside_outside_values(aorta_surface, compare_images,
- insidevalue, outsidevalue, paramid):
- name = __name__ + '_test_set_inside_outside_values_' + paramid + '.vti'
- surfToImage = surfacetobinaryimage.vmtkSurfaceToBinaryImage()
- surfToImage.Surface = aorta_surface
- surfToImage.InsideValue = insidevalue
- surfToImage.OutsideValue = outsidevalue
- surfToImage.Execute()
- > assert compare_images(surfToImage.Image, name) == True
- E AssertionError: assert False == True
- E + where False = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>((vtkCommonDataModelPython.vtkImageData)0x2ab226161520, 'test_vmtksurfacetobinaryimage_test_set_inside_outside_values_3.vti')
- E + where (vtkCommonDataModelPython.vtkImageData)0x2ab226161520 = <vmtk.vmtksurfacetobinaryimage.vmtkSurfaceToBinaryImage object at 0x2ab226188b90>.Image
- test_vmtkScripts/test_vmtksurfacetobinaryimage.py:35: AssertionError
- ----------------------------- Captured stdout call -----------------------------
- Reading VTK XML image file.
- Spacing 1.000000 1.000000 1.000000
- Origin 0.000000 0.000000 0.000000
- Dimensions 0 0 0
- Image Points: 2479400Reference Image Points: 0
- ----------------------------- Captured stderr call -----------------------------
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/IO/XML/vtkXMLReader.cxx, line 271
- vtkXMLImageDataReader (0x4b21b40): Error opening file /vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/imagereference/test_vmtksurfacetobinaryimage_test_set_inside_outside_values_3.vti
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/Common/ExecutionModel/vtkExecutive.cxx, line 782
- vtkCompositeDataPipeline (0x52405a0): Algorithm vtkXMLImageDataReader(0x4b21b40) returned failure for request: vtkInformation (0x4d28380)
- Debug: Off
- Modified Time: 39215489
- Reference Count: 1
- Registered Events: (none)
- Request: REQUEST_INFORMATION
- ALGORITHM_AFTER_FORWARD: 1
- FORWARD_DIRECTION: 0
- _____________________________ test_change_spacing ______________________________
- aorta_surface = (vtkCommonDataModelPython.vtkPolyData)0x2ab2260aae50
- compare_images = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>
- def test_change_spacing(aorta_surface, compare_images):
- name = __name__ + '_test_change_spacing.vti'
- surfToImage = surfacetobinaryimage.vmtkSurfaceToBinaryImage()
- surfToImage.Surface = aorta_surface
- surfToImage.PolyDataToImageDataSpacing = [0.4, 0.4, 0.4]
- surfToImage.Execute()
- > assert compare_images(surfToImage.Image, name) == True
- E AssertionError: assert False == True
- E + where False = <function compare_images.<locals>.make_compare_images at 0x2ab226145170>((vtkCommonDataModelPython.vtkImageData)0x2ab2261614b0, 'test_vmtksurfacetobinaryimage_test_change_spacing.vti')
- E + where (vtkCommonDataModelPython.vtkImageData)0x2ab2261614b0 = <vmtk.vmtksurfacetobinaryimage.vmtkSurfaceToBinaryImage object at 0x2ab22617b450>.Image
- test_vmtkScripts/test_vmtksurfacetobinaryimage.py:45: AssertionError
- ----------------------------- Captured stdout call -----------------------------
- Reading VTK XML image file.
- Spacing 1.000000 1.000000 1.000000
- Origin 0.000000 0.000000 0.000000
- Dimensions 0 0 0
- Image Points: 1047480Reference Image Points: 0
- ----------------------------- Captured stderr call -----------------------------
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/IO/XML/vtkXMLReader.cxx, line 271
- vtkXMLImageDataReader (0x6c55600): Error opening file /vscmnt/gent_kyukon_scratch/_kyukon_scratch_gent/vo/001/gvo00117/easybuild/CO7/skylake-eth/software/VMTK/1.4.0-foss-2019b-Python-3.7.4/tests/vmtk-test-data/imagereference/test_vmtksurfacetobinaryimage_test_change_spacing.vti
- ERROR: In /tmp/vsc40003/easybuild/VTK/8.2.0/foss-2019b-Python-3.7.4/VTK-8.2.0/Common/ExecutionModel/vtkExecutive.cxx, line 782
- vtkCompositeDataPipeline (0x490f9c0): Algorithm vtkXMLImageDataReader(0x6c55600) returned failure for request: vtkInformation (0x149d510)
- Debug: Off
- Modified Time: 39217618
- Reference Count: 1
- Registered Events: (none)
- Request: REQUEST_INFORMATION
- ALGORITHM_AFTER_FORWARD: 1
- FORWARD_DIRECTION: 0
- == 51 failed, 460 passed, 20 skipped, 1 xfailed, 26 error in 98.89s (0:01:38) ==
Advertisement
Add Comment
Please, Sign In to add comment