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

Add attribute to provide a LaTeX representation of a Particle #2642

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

namurphy
Copy link
Member

This PR adds the Particle.latex_str attribute, which I expect will be used primarily in plotting.

Closes #2640. Would be helpful to include for #2639.

I still have to add tests. I started this PR on an airplane, but hopefully I'll get back to it soon!

Copy link

codecov bot commented Apr 18, 2024

Codecov Report

Attention: Patch coverage is 18.18182% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 95.13%. Comparing base (2a6cf7f) to head (39b72a4).
Report is 3 commits behind head on main.

Files Patch % Lines
src/plasmapy/particles/particle_class.py 10.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2642      +/-   ##
==========================================
- Coverage   95.18%   95.13%   -0.06%     
==========================================
  Files         103      103              
  Lines        9412     9412              
  Branches     2153     2153              
==========================================
- Hits         8959     8954       -5     
- Misses        276      283       +7     
+ Partials      177      175       -2     

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

@namurphy namurphy added plasmapy.particles Related to the plasmapy.particles subpackage status: in progress labels Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plasmapy.particles Related to the plasmapy.particles subpackage status: in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add latex_str attribute to Particle
1 participant