-
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
txt.py restructuring and acq read addition #123
Conversation
delete unnecesary f string Co-Authored-By: Eneko Uruñuela <[email protected]>
Delete unecessary f string Co-Authored-By: Eneko Uruñuela <[email protected]>
delete unnecesary f string Co-Authored-By: Eneko Uruñuela <[email protected]>
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.
Looks very promising!
It needs a couple of changes but it's looking good.
One thing: can you add (or collaborate with another developer to add) testing for this new file?
We should start not merging PRs without tests (docs aside). You can ask @eurunuela or @rmarkello for help in the task!
delete unnecesary f string Co-Authored-By: Eneko Uruñuela <[email protected]>
Co-Authored-By: Stefano Moia <[email protected]>
…ex1 to be more orientative
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.
Ok, we're getting there! A couple of comments and docstring reviews more, and I think we'll be ready!
phys2bids/interfaces/txt.py
Outdated
# get units and names | ||
orig_units = [] | ||
orig_names = [] | ||
for index1 in range(3, len(header[-1]) + 8, 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.
I think that @eurunuela 's point is still not met. Can you maybe comment this line to make it more clear (so we can help you with a name for the variable?)
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.
so basically the variable is an index than used into the header retreats for every channel the original name and units
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.
we could call it ``retriving_indx```?
Codecov Report
@@ Coverage Diff @@
## master #123 +/- ##
========================================
Coverage ? 66.7%
========================================
Files ? 11
Lines ? 934
Branches ? 0
========================================
Hits ? 623
Misses ? 311
Partials ? 0
Continue to review full report at Codecov.
|
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.
Looks pretty good to me overall, just little details we should probably tackle before merging.
@smoia please review |
Anddddd Travis is working now, I think you can accept the pull request safely @smoia, @eurunuela |
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.
Great example of how the PRs should be from now on!
There's only one little issue with the files. Change that and you're good to go!
Changes requested done, please accept the review, @smoia @eurunuela |
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!
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.
🎉 🎉 🎉
Closes issue #137 and #136.
Add acq support mentioned in issue #41
Proposed Changes
populate_phys_input
function so it only checks the header and recognizes the file type. File reading has been delegated to secondary functions. Added commented files support both in header and channels