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: better use of autograd for base lens quantities #306

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

Conversation

ConnorStoneAstro
Copy link
Member

Now one need only define a lens potential and the deflection angles will be computed from it's gradient, and the convergence will be computed from the hessian. Also, implemented better version of the jacobian of the deflection angles.

@ConnorStoneAstro
Copy link
Member Author

This may also address #242

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.33%. Comparing base (264b300) to head (a64bcc0).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #306      +/-   ##
==========================================
+ Coverage   90.31%   90.33%   +0.02%     
==========================================
  Files          55       55              
  Lines        2281     2286       +5     
==========================================
+ Hits         2060     2065       +5     
  Misses        221      221              
Flag Coverage Δ
unittests 90.33% <100.00%> (+0.02%) ⬆️

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 changed the title better use of autograd for base lens quantities refactor: better use of autograd for base lens quantities Dec 20, 2024
@ConnorStoneAstro ConnorStoneAstro added the refactor A code change that neither fixes a bug nor adds a feature label Dec 20, 2024
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.

Fix circular logic in Thin Lens deflection angle calculation for multiplane code
1 participant