-
Notifications
You must be signed in to change notification settings - Fork 264
RF: moving nib-ls to a new cmdline folder #601
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
Conversation
…arison function in progress
I hate to say this, but it would be good to have a few little tests in the new module, if only as a template for adding more later. |
@matthew-brett can I ask what tests you're looking for? nib-ls functionality? |
Sorry - I meant tests for the not-main functions that are now in the |
Tests failing here - I think you need to add |
More tests to come for ap() and safe_get() functions |
Great, it will be good to have some more tests. There are some PEP8 fails - see https://travis-ci.org/nipy/nibabel/jobs/351289012#L1492 |
Codecov Report
@@ Coverage Diff @@
## master #601 +/- ##
==========================================
- Coverage 94.46% 90.31% -4.15%
==========================================
Files 177 87 -90
Lines 24943 10810 -14133
Branches 2661 1793 -868
==========================================
- Hits 23562 9763 -13799
+ Misses 908 718 -190
+ Partials 473 329 -144
Continue to review full report at Codecov.
|
@matthew-brett Hi - if you have the time, could you please let me know what you think of the tests I've written? Thanks very much :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor change to do and imho could be merged and improved upon later on
FTR codecov browser extension doesn't work for me ATM in neither firefox nor chromium
nibabel/cmdline/tests/test_utils.py
Outdated
return self.test | ||
|
||
test = TestObject() | ||
test.test = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move it into test_safe_get
so its purpose is clear and it doesn't get picked up by nose etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done and ready to rumble
Yes, I agree - we can merge and improve. @chrispycheng - do you mind making the change Yarik suggested, and I will merge. |
moved nib-ls to make generic use of its functions possible for a "nib-diff" function currently in progress. Shoutout to @yarikoptic