Skip to content

FIX: Default value for sbatch_args (SLURMGraph) #1263

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

Closed

Conversation

brennerd11
Copy link
Contributor

Added a default value for self._sbatch_args in the SLURMGraph Plugin.
This was not present and caused nipype to abort when sbatch_args was not specified when running the plugin.

Added a default value for self._sbatch_args in the SLURMGraph Plugin.
This was not present and caused nipype to abort when sbatch_args was not specified when running the plugin.
@@ -53,6 +53,8 @@ def __init__(self, **kwargs):
self._template = open(self._template).read()
if 'sbatch_args' in kwargs['plugin_args']:
self._sbatch_args = kwargs['plugin_args']['sbatch_args']
else: # default argument for _sbatch_args
self._sbatch_args = ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of using an else here perhaps set this at the beginning on __init__

@brennerd11
Copy link
Contributor Author

You are right of course :-) Thanks! Will add this soon and update the pull request.

@satra
Copy link
Member

satra commented Dec 12, 2015

@brennerd11 - any chance for an updated pull request here :)

@brennerd11
Copy link
Contributor Author

Hi!

Sorry for the delay. Have not forgotten and will try to update the PR soon.

On 12.12.2015, at 15:29, Satrajit Ghosh [email protected] wrote:

@brennerd11 https://github.com/brennerd11 - any chance for an updated pull request here :)


Reply to this email directly or view it on GitHub #1263 (comment).

@brennerd11
Copy link
Contributor Author

Updated the PR (finally)! Sorry for the delay!

@brennerd11
Copy link
Contributor Author

Hmmm... test ci/circleci test failed. From what I see seems like one of the FSL files is not downloadable at the moment (or was when the test ran). Is there a way to trigger rerunning the CI?

@effigies
Copy link
Member

effigies commented Jan 21, 2018

If this is basically ready, could you merge master?

@effigies
Copy link
Member

Closed in favor of #2417.

@effigies effigies closed this Jan 30, 2018
@effigies effigies removed the orphaned label Feb 24, 2018
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 this pull request may close these issues.

3 participants