-
Notifications
You must be signed in to change notification settings - Fork 533
SLURMGraph fails #2353
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
Comments
Ok, I managed to hack my way through this. It seems that this error emerges because data structures that used to be lists in P2 are generators in P3. Following hacks solved the problem:
and
However, I do realize that this is just a hack. Does anyone know a proper P3-way of looking at indices in generators? |
I did some digging and it seems that casting to list is the way to go. Could you submit a patch with those changes? |
@chrisfilo: Sure I can, but I am not sure if this won't break the P2 compatibility. For example, if nx.topological_sort(graph) returns a list [a, b, c], then the hacks I proposed will create [[a,b,c]]. Is that the desired behavior? If so, I will submit a relevant patch. |
@mfalkiewicz feel free to submit the PR - if these changes causes issues with py2 we have tests in place to catch them. |
Summary
Attempt to submit jobs with SLURMGraph fails
Actual behavior
Expected behavior
Pipeline submitted
How to replicate the behavior
Submit jobs with SLURMGraph plugin
Script/Workflow details
Vanilla fmriprep 1.0.2
Platform details:
-bash-4.2$ python3 -c "import nipype; print(nipype.get_info()); print(nipype.version)"
{'pkg_path': '/homea/inm7/mfalkiew/.local/lib/python3.6/site-packages/nipype', 'commit_source': 'installation', 'commit_hash': 'bdb7afc', 'nipype_version': '0.14.0', 'sys_version': '3.6.4 (default, Jan 2 2018, 15:26:07) \n[GCC 5.5.0]', 'sys_executable': '/homea/inm7/mfalkiew/.linuxbrew/opt/python3/bin/python3.6', 'sys_platform': 'linux', 'numpy_version': '1.13.3', 'scipy_version': '1.0.0', 'networkx_version': '2.0', 'nibabel_version': '2.2.1', 'traits_version': '4.6.0'}
0.14.0
The text was updated successfully, but these errors were encountered: