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

PR: Added a surface.from_pyQSC method and tests #306

Merged
merged 2 commits into from
Apr 23, 2023
Merged

Conversation

rogeriojorge
Copy link
Contributor

This PR allows users to generate a SurfaceRZFourier directly from a pyQSC instance (a Qsc class).
It helps users perform stage 1 and stage 2 optimizations involving near-axis expansions, either as initial conditions or not.

@codecov
Copy link

codecov bot commented Apr 23, 2023

Codecov Report

Patch coverage: 78.94% and project coverage change: -0.43 ⚠️

Comparison is base (a1329c7) 91.93% compared to head (fe9697e) 91.51%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #306      +/-   ##
==========================================
- Coverage   91.93%   91.51%   -0.43%     
==========================================
  Files          62       62              
  Lines       10099    10118      +19     
==========================================
- Hits         9285     9259      -26     
- Misses        814      859      +45     
Flag Coverage Δ
unittests 91.51% <78.94%> (-0.43%) ⬇️

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

Impacted Files Coverage Δ
src/simsopt/geo/surfacerzfourier.py 93.63% <78.94%> (-0.62%) ⬇️

... and 9 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Args:
stel: Qsc object with a near-axis equilibrium.
r: the near-axis coordinate radius (in meters).
kwargs: Any other arguments to pass to the ``SurfaceRZFourier`` constructor.
Copy link
Contributor

Choose a reason for hiding this comment

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

Document ntheta, mpol, and ntor in docstring.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in commit fe9697e

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