-
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
Deprecation of create_access_module method #308
Conversation
@kidrahahjo Next steps:
|
@bdice Can I ignore the deprecation warning globally instead of using the pytest's "deprecated call" feature? |
Codecov Report
@@ Coverage Diff @@
## master #308 +/- ##
==========================================
+ Coverage 76.18% 76.19% +0.01%
==========================================
Files 43 43
Lines 7075 7078 +3
==========================================
+ Hits 5390 5393 +3
Misses 1685 1685
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.
LGTM
@kidrahahjo Ignoring the warning is not quite the same. Using |
@bdice I will have a look and then do the changes where required. Thank you for providing the link. |
@tommy-waltmann @zhou-pj |
@kidrahahjo There is nothing that immediately jumps out to me as the reason a warning is not being generated, you may have to experiment a little on your own machine as to why this is happening. For example, you might run only this unit test and make sure, via pdb or a print statement, that the code does in fact enter the If neither of those work, you can try some of your own experiments to determine what is going on. |
@tommy-waltmann @zhou-pj @bdice |
@kidrahahjo I am going to push some changes. I finally figured out something that had been confusing me. I forgot that the deprecation warnings won't actually appear until |
@@ -115,6 +116,9 @@ | |||
""" | |||
|
|||
|
|||
warnings.simplefilter("default") |
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.
@glotzerlab/signac-maintainers Can I get a second opinion on this one-line fix for issue #317? I put it in this PR because it's related to deprecation warnings.
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 verified that warnings are sent to stderr, not stdout.
@bdice I tried with a code which had |
I also tried using the print statement with |
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 approve. Thanks @kidrahahjo! I think this is ready to merge once I get a second opinion from someone on warnings in the signac
CLI.
Description
I have deprecated the
create_access_module
method but haven't adapted with its deprecation warning yet as no warnings were showing up on my local machine.Motivation and Context
Fixes #303, fixes #317.
Types of Changes
1The change breaks (or has the potential to break) existing functionality.
Checklist:
If necessary:
Example for a changelog entry:
Fix issue with launching rockets to the moon (#101, #212).