Skip to content
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

Update calls to deprecated methods #313

Merged
merged 5 commits into from
Feb 4, 2025
Merged

Update calls to deprecated methods #313

merged 5 commits into from
Feb 4, 2025

Conversation

mofeing
Copy link
Member

@mofeing mofeing commented Feb 3, 2025

Deprecation warnings remain. This PR just fixes calls to deprecated methods on internal code and tests.

@jofrevalles I've renamed contract! on MPS for contracting the $\Lambda$ to a tensor to absorb! because (1) it was conflicting with contract!(; bond) and the dispatch wasn't working, and (2) I think semantically this is more representative. wdyt?

@mofeing mofeing requested a review from jofrevalles February 4, 2025 10:00
@mofeing mofeing changed the title Replace deprecated methods Update calls deprecated methods Feb 4, 2025
@mofeing mofeing changed the title Update calls deprecated methods Update calls to deprecated methods Feb 4, 2025
@jofrevalles
Copy link
Member

Seems good to me!

@mofeing
Copy link
Member Author

mofeing commented Feb 4, 2025

Great, then let's merge once all tests pass.

@@ -1,3 +1,5 @@
using Test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
using Test

This is not needed, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a recent change i've done: now we include everything needed in the file so that we can run tests on just one file when debugging.

Also, for integration tests now we use SafeTestsets.jl which bundles everything in a module to avoid symbol clashes. In exchange, we need to add the using or import statements on each file.

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 0% with 44 lines in your changes missing coverage. Please review.

Project coverage is 51.13%. Comparing base (9f298ae) to head (07551ea).
Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
src/MPS.jl 0.00% 31 Missing ⚠️
src/Ansatz.jl 0.00% 13 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #313       +/-   ##
===========================================
- Coverage   64.76%   51.13%   -13.63%     
===========================================
  Files          36       34        -2     
  Lines        2401     2370       -31     
===========================================
- Hits         1555     1212      -343     
- Misses        846     1158      +312     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mofeing mofeing merged commit 970756a into master Feb 4, 2025
7 of 9 checks passed
@mofeing mofeing deleted the fix/deprecations branch February 4, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants