-
Notifications
You must be signed in to change notification settings - Fork 54
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
RZ stopping criteria #385
RZ stopping criteria #385
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #385 +/- ##
=======================================
Coverage 91.43% 91.44%
=======================================
Files 73 73
Lines 12709 12717 +8
=======================================
+ Hits 11621 11629 +8
Misses 1088 1088
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kindly add a unit test in which RStoppingCriterion
and ZStoppingCriterion
are called.
My 2 cents: Replacing MinToroidalFluxStoppingCriteria and MaxToroidalFluxStoppingCriteria with ToroidalFluxStoppingCriteria is breaking the existing API. I am not sure who is using this piece of code, but to favor the users, can you retain the previous two classes and call the ToroidalFluxStoppingCriteria behind the scenes whenever the user calls the [Max,Min]ToroidalFluxStoppingCriteria with a deprecation warning? Please make sure the existing tests are retained. |
@mbkumar @landreman Thanks for your feedback. I have added a unit test to test_fieldline.py, and I have reverted to the previous API. |
This pull request implements new StoppingCriteria based on minimum and maximum values of the cylindrical R and Z coordinates. This is more convenient to use for creating Poincare plots of very compact configurations, for which the definition of a bounding surface may be challenging. The new classes are called RStoppingCriteria and ZStoppingCriteria, which are defined by the critical value of R or Z and a boolean that indicates whether the minimum or maximum is evaluated. The MinToroidalFluxStoppingCriteria and MaxToroidalFluxStoppingCriteria have been replaced by ToroidalFluxStoppingCriteria to mimic this structure.