Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError using reference dicom #29

Open
benduffy1 opened this issue Nov 14, 2023 · 3 comments
Open

AttributeError using reference dicom #29

benduffy1 opened this issue Nov 14, 2023 · 3 comments

Comments

@benduffy1
Copy link

Thanks @tomaroberts for your great package - using the cli if I add a reference image i get:

"/dcm_writer.py", line 89, in transfer_ref_dicom_series_tags for current_attribute in dcm.attributes_to_transfer:
AttributeError: 'Dicom' object has no attribute 'attributes_to_transfer'
@tomaroberts
Copy link
Owner

@benduffy1 – thanks for raising issue. This is fairly recent addition to nii2dcm, so not widely tested.

Can you tell me exactly what line in Terminal you ran to get this error?

Also, is it possible to share your NIfTI and DICOM files? If not, can you tell me if the reference DICOM file is single-frame or multi-frame?

Cheers!

@Astrostellar
Copy link

Astrostellar commented Apr 3, 2024

Same issue.
Traceback (most recent call last): File "/home/songzhiyun/software/anaconda3/envs/cmsr/bin/nii2dcm", line 8, in <module> sys.exit(cli()) File "/home/songzhiyun/software/anaconda3/envs/cmsr/lib/python3.8/site-packages/nii2dcm/__main__.py", line 59, in cli run_nii2dcm( File "/home/songzhiyun/software/anaconda3/envs/cmsr/lib/python3.8/site-packages/nii2dcm/run.py", line 66, in run_nii2dcm transfer_ref_dicom_series_tags(dicom, ref_dicom) File "/home/songzhiyun/software/anaconda3/envs/cmsr/lib/python3.8/site-packages/nii2dcm/dcm_writer.py", line 89, in transfer_ref_dicom_series_tags for current_attribute in dcm.attributes_to_transfer: AttributeError: 'Dicom' object has no attribute 'attributes_to_transfer'
Tested for multi-frame DICOM file

@tomaroberts
Copy link
Owner

@Astrostellar – thanks for raising the issue. Any chance you are able to share the DICOM so I can test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants