-
Notifications
You must be signed in to change notification settings - Fork 29
Removing remnant legacy methods #608
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
base: develop
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #608 +/- ##
===========================================
+ Coverage 91.55% 92.28% +0.72%
===========================================
Files 102 102
Lines 5828 5700 -128
===========================================
- Hits 5336 5260 -76
+ Misses 492 440 -52
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…cleanupBackend2
…cleanupBackend2
…cleanupBackend2
User description
Context: As an exercise, this PR aims to remove many of the methods that are no longer used in the core functionality of Mr Mustard.
Description of the Change: Updated
DM.physical_stellar_decomposition_mixed
to make use ofmath.pinv
and updated the tensorflowpinv
to account for the complex case. Updated several tests that globally mutated settings to instead make use of the context manager. Obliteratedrandom.py
. Removed the following:backend_manager.py
bargmann_utils.py
fock_utils.py
gaussian.py
gaussian_integrals.py
Benefits: A more lightweight Mr Mustard experience.
Possible Drawbacks: Many of these methods may still be useful for user to have access to outside of the core MM functionality. In this case, this PR can always serve as reference for these methods and we can reintroduce them on a "as needed" basis.
PR Type
Other
Description
• Remove legacy unused methods from backend managers
• Update tests to use settings context manager
• Fix TensorFlow pinv for complex matrices
• Replace deprecated atleast_1d/2d/3d with atleast_nd
Changes walkthrough 📝
4 files
Replace global settings mutation with context manager
Use settings context manager in tests
Use settings context manager in tests
Use settings context manager in tests
8 files
Remove legacy unused backend methods
Remove legacy JAX backend methods
Remove legacy NumPy backend methods
Remove legacy methods and fix complex pinv
Replace atleast_1d with atleast_nd
Use math.pinv instead of numpy.linalg.pinv
Replace atleast_1d with atleast_nd
Replace atleast_1d with atleast_nd
7 files