Add examples in ForceFreeRluxRopes docstring#2749
Add examples in ForceFreeRluxRopes docstring#2749AndrewSykes1 wants to merge 1 commit intoPlasmaPy:mainfrom
Conversation
|
Thank you for submitting a pull request (PR) to PlasmaPy! ✨ The future of the project depends on contributors like you, so we deeply appreciate it! 🌱 Our contributor guide has information on:
Important PlasmaPy recently switched to an The bottom of this page shows several checks that are run for every PR. Don't worry if something broke! We break stuff all the time. 😺 Click on "Details" to learn why a check didn't pass. Please also feel free to ask for help. We do that all the time as well. 🌸 You can find us in our chat room or weekly community meeting & office hours. Here are some tips:
If this PR is marked as ready for review, someone should stop by to provide a code review and offer suggestions soon. ✅ If you don't get a review within a few days, please feel free to send us a reminder. Please also use SI units within PlasmaPy, except when there is strong justification otherwise or in some examples. We thank you once again! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2749 +/- ##
==========================================
+ Coverage 94.42% 95.21% +0.78%
==========================================
Files 107 107
Lines 9496 9496
Branches 2189 2189
==========================================
+ Hits 8967 9042 +75
+ Misses 342 273 -69
+ Partials 187 181 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
namurphy
left a comment
There was a problem hiding this comment.
Thank you for doing this! I made a few fairly minor suggestions, and it looks almost ready to merge. The last remaining steps will be to:
- Add a changelog entry at
changelog/2749.doc.rst - Add yourself as an author in
CITATION.cff. (There are instructions if you click on "Details" next to the corresponding check below.)
Thank you once again! 🌱
| -------- | ||
| >>> import astropy.units as u | ||
| >>> B0 = 1 * u.T | ||
| >>> alpha = 1 * 1 / u.m |
There was a problem hiding this comment.
| >>> alpha = 1 * 1 / u.m | |
| >>> alpha = 1 / u.m |
| >>> r = [5, 3, 9] * u.m | ||
| >>> fr.B_theta(r) | ||
| <Quantity [-0.32757914, 0.33905896, 0.24531179] T> |
There was a problem hiding this comment.
| >>> r = [5, 3, 9] * u.m | |
| >>> fr.B_theta(r) | |
| <Quantity [-0.32757914, 0.33905896, 0.24531179] T> | |
| >>> r = [3, 5, 9] * u.m | |
| >>> fr.B_theta(r) | |
| <Quantity [0.33905896, -0.32757914, 0.24531179] T> |
...since I suspect that for most applications the radii will be monotonically increasing or decreasing.
| -------- | ||
| >>> import astropy.units as u | ||
| >>> B0 = 1 * u.T | ||
| >>> alpha = 1 * 1 / u.m |
There was a problem hiding this comment.
| >>> alpha = 1 * 1 / u.m | |
| >>> alpha = 1 / u.m |
| >>> r = [1, 5, 4] * u.m | ||
| >>> fr.B_z(r) | ||
| <Quantity [0.76519769, -0.17759677, -0.39714981] T> |
There was a problem hiding this comment.
| >>> r = [1, 5, 4] * u.m | |
| >>> fr.B_z(r) | |
| <Quantity [0.76519769, -0.17759677, -0.39714981] T> | |
| >>> r = [1, 4, 5] * u.m | |
| >>> fr.B_z(r) | |
| <Quantity [0.76519769, -0.39714981, -0.17759677] T> |
| -------- | ||
| >>> import astropy.units as u | ||
| >>> B0 = 1 * u.T | ||
| >>> alpha = 1 * 1 / u.m |
There was a problem hiding this comment.
| >>> alpha = 1 * 1 / u.m | |
| >>> alpha = 1 / u.m |
|
This pull request will be closed in 60 days due to a year of inactivity unless the stale label or comment is removed. |
Adds examples demonstrating how to use ForceFreeFluxRope and it's associated methods.
Closes #2531