Skip to content

EHN: Improve JSON interfaces #1047

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

Merged
merged 8 commits into from
Feb 15, 2015
Merged

Conversation

oesteban
Copy link
Contributor

Following #1020, the idea of this PR is improving these new interfaces.

  • Add a defaults input to JSONFileGrabber so that one can set default settings to workflows in case the JSON file with settings does not exist.
  • Solve the JSONFileSink outputs, as @satra suggested in ENH: IO interfaces to JSON files #1020 or maybe with a novel paradigm.
  • Add a regression test for the new JSONFileSink feature

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 70.39% when pulling 098f96f on oesteban:enh/ImproveJSONInterfaces into 2410411 on nipy:master.

if force_run:
self._always_run = True

def _process_name(self, name, val):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

hi @satra, thinking about the [string[.[@]string]] format, I guess there's no use for the @ here right? I've implemented only the dot element to create nested dictionaries

Copy link
Member

Choose a reason for hiding this comment

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

the @ in datasink allows people to dump multiple outputs to the same location and that nipype won't allow connecting two different outputs to the same input.

i'm not sure yet of all the use cases for this interface, but perhaps we can implement it later if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

+1 on implementing it later, let's see what happens when people use this

@oesteban oesteban changed the title WIP: Improve JSON interfaces EHN: Improve JSON interfaces Feb 11, 2015
@satra
Copy link
Member

satra commented Feb 14, 2015

@oesteban - sync with master and update changes for merge. feel free to merge this.

oesteban added a commit that referenced this pull request Feb 15, 2015
@oesteban oesteban merged commit ee31238 into nipy:master Feb 15, 2015
@oesteban oesteban deleted the enh/ImproveJSONInterfaces branch February 15, 2015 10:41
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