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

crash #314

Open
chrplr opened this issue Jan 10, 2019 · 0 comments
Open

crash #314

chrplr opened this issue Jan 10, 2019 · 0 comments

Comments

@chrplr
Copy link
Contributor

chrplr commented Jan 10, 2019


in generate_normalization_thumbnails
segmented = warped_tpms.values().count(None) < len(warped_tpms)
AttributeError: 'dict_values' object has no attribute 'count'

Full trace:


Traceback (most recent call last):
File "/volatile/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/externals/loky/process_executor.py", line 418, in _process_worker
r = call_item()
File "/volatile/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/externals/loky/process_executor.py", line 272, in call
return self.fn(*self.args, **self.kwargs)
File "/volatile/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/_parallel_backends.py", line 567, in call
return self.func(*args, **kwargs)
File "/volatile/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py", line 225, in call
for func, args, kwargs in self.items]
File "/volatile/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py", line 225, in
for func, args, kwargs in self.items]
File "/neurospin/unicog/protocols/IRMf/MentalLogical_Anna_2018/scripts/pypreprocess-stc/pypreprocess/nipype_preproc_spm_utils.py", line 1445, in do_subject_preproc
**kwargs.get("interface_normalize", {}))
File "/neurospin/unicog/protocols/IRMf/MentalLogical_Anna_2018/scripts/pypreprocess-stc/pypreprocess/nipype_preproc_spm_utils.py", line 929, in _do_subject_normalize
subject_data.generate_normalization_thumbnails()
File "/neurospin/unicog/protocols/IRMf/MentalLogical_Anna_2018/scripts/pypreprocess-stc/pypreprocess/subject_data.py", line 800, in generate_normalization_thumbnails
segmented = warped_tpms.values().count(None) < len(warped_tpms)
AttributeError: 'dict_values' object has no attribute 'count'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "pypreprocess-stc/pypreprocess.py", line 23, in
subjects = do_subjects_preproc(sys.argv[1])
File "/neurospin/unicog/protocols/IRMf/MentalLogical_Anna_2018/scripts/pypreprocess-stc/pypreprocess/nipype_preproc_spm_utils.py", line 1812, in do_subjects_preproc
subject_data, **preproc_params) for subject_data in subjects)
File "/volatile/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py", line 930, in call
self.retrieve()
File "/volatile/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py", line 833, in retrieve
self._output.extend(job.get(timeout=self.timeout))
File "/volatile/anaconda3/lib/python3.6/site-packages/sklearn/externals/joblib/_parallel_backends.py", line 521, in wrap_future_result
return future.result(timeout=timeout)
File "/volatile/anaconda3/lib/python3.6/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/volatile/anaconda3/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
AttributeError: 'dict_values' object has no attribute 'count'

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

Successfully merging a pull request may close this issue.

1 participant