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
[MRG] Make _parse_bids_filename() public, drop verbose arg #487
Conversation
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.
fine with me, actually cool when a private func turns out to be so useful. Why did it have a verbose arg before?
And I also like the added "examples" section to the docstr 👍
We make use of `mne_bids.path._parse_bids_filename()` in the mne-study-template in a totally un-hacky manner, making us believe that this function should probably be made public. This commit also drops the function's `verbose` argument, as it wasunused.
77c85b9
to
bf5979d
Compare
doc/whats_new.rst
Outdated
@@ -65,6 +65,7 @@ API | |||
- :func:`mne_bids.make_dataset_description` now takes the argument `overwrite` which will reset all fields if `True`. If `False`, user-provided fields will no longer be overwritten by :func:`mne_bids.write_raw_bids` when its `overwrite` argument is `True` unless new values are supplied, by `Alex Rockhill`_ (`#478 <https://github.com/mne-tools/mne-bids/pull/478>`_) | |||
- :func:`mne_bids.make_report` is now available from the `mne_bids` namespace that creates a string output of a summary of the BIDS dataset. In addition, the command line interface allows one to call `make_report`, by `Adam Li`_ (`#457 <https://github.com/mne-tools/mne-bids/pull/457>`_) | |||
- Added namespace :code:`mne_bids.path` which hosts path-like functionality for MNE-BIDS by `Adam Li`_ (`#483 <https://github.com/mne-tools/mne-bids/pull/483>`_) | |||
- :func:`mne_bids.path._parse_bids_filename` is now part of the public API and has consequently been renamed to `:func:`mne_bids.path._parse_bids_filename`, by `Richard Höchenberger`_ (`#487 <https://github.com/mne-tools/mne-bids/pull/487>`_) |
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.
private functions cannot be put in the what's new as they are not part of the public API
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.
you also need to add to API rst page the new public function.
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.
private functions cannot be put in the what's new as they are not part of the public API
But it is now… so it's a "new" function. Do you mean I should not list it under "API", but instead under Changelog?
you also need to add to API rst page the new public function.
will do
you wrote _parse_bids_filename
… |
I think I see what you mean! |
Codecov Report
@@ Coverage Diff @@
## master #487 +/- ##
=======================================
Coverage 92.74% 92.74%
=======================================
Files 14 14
Lines 1970 1970
=======================================
Hits 1827 1827
Misses 143 143
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.
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 nice, thanks @hoechenberger !
PR Description
We make use of
mne_bids.path._parse_bids_filename()
in the mne-study-template in a totally un-hacky manner, making us believe that this function should probably be made public.This PR also drops the function's
verbose
argument, as it was unused.Describe your PR here
Merge checklist
Maintainer, please confirm the following before merging: