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

loading a dicom series generates TypeError #623

Closed
satra opened this issue Apr 25, 2018 · 1 comment
Closed

loading a dicom series generates TypeError #623

satra opened this issue Apr 25, 2018 · 1 comment

Comments

@satra
Copy link
Member

satra commented Apr 25, 2018

just noting this here for now.

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-20-13b4a533131d> in <module>()
----> 1 nibabel.nicom.dicomreaders.slices_to_series([nibabel.nicom.dicomreaders.wrapper_from_file(val) for val in fl])

/software/miniconda3/envs/dev36pype/lib/python3.6/site-packages/nibabel/nicom/dicomreaders.py in slices_to_series(wrappers)
    147     for vol_list in volume_lists:
    148         if len(vol_list) > 1:
--> 149             vol_list.sort(_slice_sorter)
    150             zs = [s.slice_indicator for s in vol_list]
    151             if len(set(zs)) < len(zs):  # not unique zs

TypeError: must use keyword argument for key function
@effigies
Copy link
Member

Fixed in #728.

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

2 participants