elastix · 284db4aa80ca8ff1110fc74c76bb2d481a267487
type-affine-plus-bspline-add-uint8-float32
ErrorLoad images and transform failed: ParserContentError: - ElastixParameterTransform.load: ParserNotImplementedError: This elastix transform combines with its initial transform by 'Add' (HowToCombineTransforms): T(x) = T1(x) + T0(x) - x. A sequence of transformations can only compose them, so it cannot be read. Pass initial=False to read the file's own transform alone.
No numerical comparison was reached.
Application error
Stage: load images and transform
Cannot parse file 'affine-plus-bspline-add.txt'. Tried: - ElastixParameterTransform.load: ParserNotImplementedError: This elastix transform combines with its initial transform by 'Add' (HowToCombineTransforms): T(x) = T1(x) + T0(x) - x. A sequence of transformations can only compose them, so it cannot be read. Pass initial=False to read the file's own transform alone.
Full traceback
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/base/_dispatch.py", line 453, in attempt
return True, getattr(subclass, fn_parse)(source.get(), **bound)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/base/parsers.py", line 515, in load
return cls.from_file(other, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/base/parsers.py", line 546, in from_file
return cls.from_filename(file, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/transformations/elastix/_xform.py", line 387, in from_filename
return _from_filename(cls, "text", filename, initial, encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/transformations/elastix/_xform.py", line 655, in _from_filename
return _checked(cls.from_raw(raw, initial=given))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/transformations/elastix/_xform.py", line 721, in _checked
_check_composed(current)
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/transformations/elastix/_xform.py", line 740, in _check_composed
raise ParserNotImplementedError(
brainhops.errors.ParserNotImplementedError: This elastix transform combines with its initial transform by 'Add' (HowToCombineTransforms): T(x) = T1(x) + T0(x) - x. A sequence of transformations can only compose them, so it cannot be read. Pass initial=False to read the file's own transform alone.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops_eval/evaluate.py", line 139, in _case
arrays = execute(bio, fixtures, paths, case, context["geometry_probes"], record)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops_eval/resampling.py", line 222, in execute
return handler(bio, fixtures, paths, case, probes, record)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops_eval/resampling.py", line 160, in python_nifti
resliced, _, _ = _apply_python(bio, fixtures, paths, case, record)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops_eval/resampling.py", line 123, in _apply_python
pull = load_transform(bio, fixtures, case)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops_eval/resampling.py", line 113, in load_transform
return bio.load(relative_file(fixtures, case["transform"]), **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/base/_load.py", line 34, in load
return FileFormat.load(filelike, brute=brute, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/base/_base.py", line 413, in load
return parse(
^^^^^^
File "/opt/hostedtoolcache/Python/3.11.17/x64/lib/python3.11/site-packages/brainhops/io/base/_dispatch.py", line 504, in parse
raise _failure(source, list(allowed), errors)
brainhops.errors.ParserContentError: Cannot parse file 'affine-plus-bspline-add.txt'. Tried:
- ElastixParameterTransform.load: ParserNotImplementedError: This elastix transform combines with its initial transform by 'Add' (HowToCombineTransforms): T(x) = T1(x) + T0(x) - x. A sequence of transformations can only compose them, so it cannot be read. Pass initial=False to read the file's own transform alone.