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

'FileDataset' object has no attribute 'PerFrameFunctionalGroupsSequence' #139

Open
moonforsun opened this issue Feb 22, 2024 · 1 comment

Comments

@moonforsun
Copy link

moonforsun commented Feb 22, 2024

Thanks for the very useful tool!
I got the following error while I wanted to convert a sequence of dicoms to nifti.

AttributeError: 'FileDataset' object has no attribute 'PerFrameFunctionalGroupsSequence'

How can I resolve this error?

If I load every single dicom slice, I can get (0020, 0032) Image Position (Patient) information via pydicom. Would this be used to stack dicoms together?

@moonforsun
Copy link
Author

More context for where the errors come out:
In the common.py

def multiframe_validate_orientation(dicoms):
    """
    Validate that all dicoms have the same orientation

    :param dicoms: list of dicoms
    """

    frame_info = dicoms[0].PerFrameFunctionalGroupsSequence

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

1 participant