Skip to content

nested pixel spacing #821

@saisubhash9

Description

@saisubhash9

ERROR: Embedding failed: Exception raised while executing Node embedder.

Traceback:
Traceback (most recent call last):
File "/opt/miniconda-py39_4.12.0/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 401, in run
runtime = self._run_interface(runtime)
File "/opt/miniconda-py39_4.12.0/lib/python3.9/site-packages/nipype/interfaces/utility/wrappers.py", line 139, in _run_interface
out = function_handle(**args)
File "", line 35, in embed_dicom_and_nifti_metadata
File "/opt/miniconda-py39_4.12.0/lib/python3.9/site-packages/dcmstack/dcmstack.py", line 1163, in parse_and_stack
results[key] = stack_group(group, warn_on_except, **stack_args)
File "/opt/miniconda-py39_4.12.0/lib/python3.9/site-packages/dcmstack/dcmstack.py", line 1117, in stack_group
result.add_dcm(dcm, meta)
File "/opt/miniconda-py39_4.12.0/lib/python3.9/site-packages/dcmstack/dcmstack.py", line 520, in add_dcm
self._chk_congruent(meta)
File "/opt/miniconda-py39_4.12.0/lib/python3.9/site-packages/dcmstack/dcmstack.py", line 479, in _chk_congruent
self._chk_close(('PixelSpacing',
File "/opt/miniconda-py39_4.12.0/lib/python3.9/site-packages/dcmstack/dcmstack.py", line 473, in _chk_close
if not np.allclose(meta1[key], meta2[key], atol=5e-5):
KeyError: 'PixelSpacing'

The pixel spacing tag is present but it is nested format,
(5200,9230) Per-frame Functional Groups Sequence tag
(0028,9110) Pixel Measures Sequence.
(0028,0030) Pixel Spacing value.

can you guys let me know, how I can resolve the issue? Thank You.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions