diff --git a/pypreprocess/subject_data.py b/pypreprocess/subject_data.py index ae2b4b38..b5fc8e2e 100644 --- a/pypreprocess/subject_data.py +++ b/pypreprocess/subject_data.py @@ -797,7 +797,7 @@ def generate_normalization_thumbnails(self, log=True, nipype=True): warped_tpms = dict( (tpm, getattr(self, tpm, None)) for tpm in ["mwgm", "mwwm", "mwcsf"]) - segmented = warped_tpms.values().count(None) < len(warped_tpms) + segmented = list(warped_tpms.values()).count(None) < len(warped_tpms) # generate thumbnails proper for brain_name, brain, cmap in zip(