-
Notifications
You must be signed in to change notification settings - Fork 45
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
Refactor phys2bids interfaces into single script io.py
#344
Conversation
Codecov Report
@@ Coverage Diff @@
## master #344 +/- ##
==========================================
+ Coverage 94.89% 94.93% +0.03%
==========================================
Files 9 8 -1
Lines 843 868 +25
==========================================
+ Hits 800 824 +24
- Misses 43 44 +1
|
Thank you @vinferrer ! I don't have the bandwidth right now to review this but I will. I see you selected both Also, we would be going under 90% code coverage, so we'll need some tests. |
I don't know what to do about it.
That's weird i didn't change any tests i just moved the functions around and modified the imports in the testing |
I forgot to commit the testing function, 😆 |
Hey y'all! Sorry, I noticed I didn't add the refactoring to the possible change types. But @vinferrer labelled it right: it's a refactoring. "Internal" is for the infrastructure. Maybe we can change the label, now that I think about it... |
BTW: I would get rid of the "interfaces" folder and rename |
An interface implies a class to me, with bidirectional interaction with the source. Having an input/output module also lets you put the |
I like |
so should i get rid of the folder then ? |
I would say yes. It does not make much sense to have the folder with just one file. And usually, |
okay |
I think this is ready for review then |
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.
Generally LGTM, but unless everyone else is ok with it, could you remove _ext
from the name of the functions?
Actually no, this is something that i put to remark that we are processing |
This is actually related to the next PR I talk about in #295. Because my goal is to have extension functions that will call in the end to the same process fucntion. This way we will reduce the amount of code |
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.
Alright, sounds good!
It's ready!
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.
LGTM! I just have a tiny comment.
io.py
@vinferrer , you merged a PR without being the main reviewer (not a big deal), but also without passing the style check. |
🚀 PR was released in |
Closes #295
Merges
txt.py
andacq.py
intoio.py
Proposed Changes
phys2bids.io
). If you're concerned about their respective imports, you can just move the tool-specific imports into the function definitions.populate_phys_info()
toload_acq_ext()
, andload_text_ext()
(or similar).Change Type
bugfix
(+0.0.1)minor
(+0.1.0)major
(+1.0.0)internal
(no version update)documentation
(no version update)Checklist before review