-
Notifications
You must be signed in to change notification settings - Fork 36
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
deprecate Project.index #591
Conversation
Codecov Report
@@ Coverage Diff @@
## master #591 +/- ##
=======================================
Coverage 78.27% 78.27%
=======================================
Files 65 65
Lines 7069 7070 +1
Branches 1310 1310
=======================================
+ Hits 5533 5534 +1
Misses 1231 1231
Partials 305 305
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.
thanks!
37a3b95
to
e50af81
Compare
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 added a changelog line. Merging. We will still need to go back and add deprecations to individual functions accepting an index
argument. See #588 for a list of those methods.
@bdice I'm doing this now. Is there an easy way to only show a deprecation warning when a user passes the |
@atravitz We don't want to deprecate the whole method. Try something like this: signac/signac/contrib/project.py Line 169 in 0c5a096
For example: # At the top of the `project.py` file:
INDEX_DEPRECATION_WARNING = "The index argument is deprecated and will be removed in signac 2.0."
# In methods with an `index` argument, put this near the top of the method:
if index is not None:
warnings.warn(INDEX_DEPRECATION_WARNING, DeprecationWarning) |
addresses issue #588
Description
Motivation and Context
Indexing is deprecated and we'd like to remove
indexing.py
in v 2.0, but to do so we need to remove dependencies inproject.py
.Types of Changes
1The change breaks (or has the potential to break) existing functionality.
Checklist:
If necessary: