-
Notifications
You must be signed in to change notification settings - Fork 127
rename grabbids to layout, closes #228 #230
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
Codecov Report
@@ Coverage Diff @@
## master #230 +/- ##
==========================================
- Coverage 74.59% 74.42% -0.17%
==========================================
Files 23 24 +1
Lines 2204 2209 +5
Branches 525 525
==========================================
Hits 1644 1644
- Misses 409 414 +5
Partials 151 151
Continue to review full report at Codecov.
|
tests failed when symlinking also added a the tutorial ipynb now imports from |
Great, thanks! @chrisfilo, you okay with renaming the |
Wouldn't this break a bunch of code doing |
Old syntax is supported, with a deprecation warning, and we can eventually remove the old placeholder in a few releases. |
bids/grabbids/__init__.py
Outdated
__all__ = ["BIDSLayout", "BIDSValidator"] | ||
|
||
warnings.simplefilter('always', DeprecationWarning) |
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'd rather libraries not change the warnings
registry. This makes it harder for programs to control their outputs.
bids/grabbids/__init__.py
Outdated
__all__ = ["BIDSLayout", "BIDSValidator"] | ||
|
||
warnings.simplefilter('always', DeprecationWarning) | ||
warnings.warn("grabbids has been renamed to layout", DeprecationWarning) |
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.
Could we note in the warning text the version we're deprecating at (0.6.5 or 0.7), and when to expect its removal? This both helps downstream projects plan a transition path and lets pybids developers know when they can fully remove it.
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.
How's this for a proposed change to those lines:
-warnings.simplefilter('always', DeprecationWarning)
-warnings.warn("grabbids has been renamed to layout", DeprecationWarning)
+warnings.warn("grabbids has been renamed to layout in version 0.6.5, and will be removed in version 0.7", FutureWarning)
I could change the versions to whatever you think is best. FutureWarning
shows up by default without changing the warning filter. I could also do that in another way
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.
@tyarkoni Will the next version be 0.6.5 or 0.7?
And I would say we should remove in 1.0, unless that's expected within the next month. (I realize pybids is alpha, but the grabbids API has been around for a long time.)
works for me
Best,
Chris
…On Thu, Aug 9, 2018 at 1:57 PM Chris Markiewicz ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In bids/grabbids/__init__.py
<#230 (comment)>:
> __all__ = ["BIDSLayout", "BIDSValidator"]
+
+warnings.simplefilter('always', DeprecationWarning)
+warnings.warn("grabbids has been renamed to layout", DeprecationWarning)
Could we note in the warning text the version we're deprecating at (0.6.5
or 0.7), and when to expect its removal? This both helps downstream
projects plan a transition path and lets pybids developers know when they
can fully remove it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#230 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOkpxcVjYGvp_61D6OmA8DwczLkaztsks5uPHfygaJpZM4V1GBA>
.
|
Thanks! |
Closes #228 by renaming
bids/grabbids
tobids/layout
, but running creating a symlink fromlayout
to grabbidsand keeping
grabbids inbids/__init__.py
.The README changes may not be the best, and no longer includes a pun.