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

settings context manager #477

Merged
merged 4 commits into from
Sep 5, 2024
Merged

settings context manager #477

merged 4 commits into from
Sep 5, 2024

Conversation

ziofil
Copy link
Collaborator

@ziofil ziofil commented Aug 28, 2024

Allows settings to be set locally:

with settings(ATOL = 1e-5):
    # in here settings.ATOL is 1e-5

# here it's what it was previously

@ziofil ziofil added the no changelog Pull request does not require a CHANGELOG entry label Aug 28, 2024
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.56%. Comparing base (d0ba778) to head (696b4b9).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #477      +/-   ##
===========================================
+ Coverage    89.55%   89.56%   +0.01%     
===========================================
  Files          101      101              
  Lines         7384     7392       +8     
===========================================
+ Hits          6613     6621       +8     
  Misses         771      771              
Files with missing lines Coverage Δ
mrmustard/utils/settings.py 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0ba778...696b4b9. Read the comment docs.

@ziofil ziofil merged commit 1a798b3 into develop Sep 5, 2024
7 checks passed
@ziofil ziofil deleted the settings_context branch September 5, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Pull request does not require a CHANGELOG entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants