Skip to content

ENH: Added a datagrabber capable of grabbing files from an SSH access #844

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 10 commits into from
Jun 6, 2014

Conversation

demianw
Copy link
Contributor

@demianw demianw commented May 19, 2014

This is a simple extension to the default DataGrabber. Tried to copy the XNAT data grabber for the testing but realised that there is no actual testing for data grabbers that grab data over a network

Comments welcome!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.19%) when pulling 6d7af13 on demianw:SSHDataGrabber into 9099a58 on nipy:master.

@mwaskom
Copy link
Member

mwaskom commented May 19, 2014

Instead of just copying the DataGrabber code, why not use inheritance?

@demianw
Copy link
Contributor Author

demianw commented May 19, 2014

I totally Agree with @mwaskom and my last commit goes in that direction. Further work on the inheritance part would need a refactoring on the DataGrabber class I think.

Any suggestions on how to setup doctests that run? e.g. an SSH server that we could use for free to make them run?

"""
input_spec = SSHDataGrabberInputSpec
output_spec = DynamicTraitedSpec
_always_run = True
Copy link
Member

Choose a reason for hiding this comment

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

Do you really want this to always run? It seems like a pretty expensive interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are absolutely right! Thanks

@demianw
Copy link
Contributor Author

demianw commented May 22, 2014

@mwaskom None of the other interfaces with optional dependencies (XNAT, SQL) checks for the support libraries in the init method. They do it, implicitly, in the _list_outputs.

This difference provokes that my module does not successfully complete the doctests. So I'm changing the exception rethrow to a waning in init and to an exception in list_outputs

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.22%) when pulling 5156fa4 on demianw:SSHDataGrabber into 9099a58 on nipy:master.

@demianw
Copy link
Contributor Author

demianw commented Jun 5, 2014

@mwaskom could you please help me shaping up the PR? The 2.6 test is failing due to a library I haven't even touched and as I maintained the testing infrastructure of the XNAT modules, the coverage has decreased.

What do I need to get it to a merge-possible state?

Thanks

@mwaskom
Copy link
Member

mwaskom commented Jun 5, 2014

It looks like the failure on 2.6 is because of a set literal, which aren't supported on that version.

@demianw
Copy link
Contributor Author

demianw commented Jun 5, 2014

@mwaskom yup, but I didn't touch the file where that is happening ( ERROR: Failure: SyntaxError (invalid syntax (model.py, line 407))
)

That's why I'm puzzled

@mwaskom
Copy link
Member

mwaskom commented Jun 5, 2014

I can see why that would be confusing :).

@satra this is downloading prov from your github; did you break 2.6 compatibility recently?

@oesteban
Copy link
Contributor

oesteban commented Jun 5, 2014

@demianw seems to be corrected now in master

I fetched upstream and then merged to my branches. Now they pass the tests

@demianw
Copy link
Contributor Author

demianw commented Jun 5, 2014

Worked! Thanks @oesteban

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.21%) when pulling 4634f5a on demianw:SSHDataGrabber into ab0e8b9 on nipy:master.

@chrisgorgo
Copy link
Member

@demianw thanks for your hard work! Could you add a mention of this new feature in CHANGES file? I think that's the last thing remaining before the merge.

@demianw
Copy link
Contributor Author

demianw commented Jun 6, 2014

@chrisfilo voila

chrisgorgo added a commit that referenced this pull request Jun 6, 2014
ENH: Added a datagrabber capable of grabbing files from an SSH access
@chrisgorgo chrisgorgo merged commit e815741 into nipy:master Jun 6, 2014
@demianw
Copy link
Contributor Author

demianw commented Jun 6, 2014

Yay

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.21%) when pulling 854e510 on demianw:SSHDataGrabber into ab0e8b9 on nipy:master.

@demianw demianw deleted the SSHDataGrabber branch April 20, 2015 09:17
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.

5 participants