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

refactor: Change z_s from argument to caskade param #305

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

ConnorStoneAstro
Copy link
Member

Now that caskade handles linking parameters, it is possible to make z_s a param and simply link the value where appropriate.

This update means less confusion for users about when/why z_s should be passed. It is intuitive that a lens object may need z_s, some functions however don't need it yet were previously requiring it.

@ConnorStoneAstro ConnorStoneAstro added the refactor A code change that neither fixes a bug nor adds a feature label Dec 20, 2024
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 97.05882% with 3 lines in your changes missing coverage. Please review.

Project coverage is 91.25%. Comparing base (264b300) to head (30a02bb).

Files with missing lines Patch % Lines
src/caustics/lenses/base.py 90.90% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #305      +/-   ##
==========================================
+ Coverage   90.31%   91.25%   +0.94%     
==========================================
  Files          55       55              
  Lines        2281     2287       +6     
==========================================
+ Hits         2060     2087      +27     
+ Misses        221      200      -21     
Flag Coverage Δ
unittests 91.25% <97.05%> (+0.94%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@ConnorStoneAstro ConnorStoneAstro linked an issue Dec 20, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should z_s become a param?
1 participant