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

Added prefixes for electronvolt (eV) #200

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

Atmelfan
Copy link
Contributor

@Atmelfan Atmelfan commented Aug 6, 2020

Don't know the policy of which units gets prefixes but I needed kiloelectronvolt (KeV) so why not.

Copy link
Owner

@iliekturtles iliekturtles left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I noted a couple minor fixes in the diff. Once these are resolved we can merge and I'll include in the release I was planning to do today!

src/si/energy.rs Outdated
Comment on lines 50 to 57
@petaelectronvolt: 1.602_177_E-4; "PeV", "petaelectronvolt", "petaelectronvolts";
@teraelectronvolt: 1.602_177_E-7; "TeV", "teraelectronvolt", "teraelectronvolts";
@gigaelectronvolt: 1.602_177_E-10; "GeV", "gigaelectronvolt", "gigaelectronvolts";
@megaelectronvolt: 1.602_177_E-13; "MeV", "megaelectronvolt", "megaelectronvolts";
@kiloelectronvolt: 1.602_177_E-16; "KeV", "kiloelectronvolt", "kiloelectronvolts";
@hectoelectronvolt: 1.602_177_E-17; "heV", "hectoelectronvolt", "hectoelectronvolts";
@decaelectronvolt: 1.602_177_E-18; "daeV", "decaelectronvolt", "decaelectronvolts";
@electronvolt: 1.602_177_E-19; "eV", "electronvolt", "electronvolts";
Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for late response. Fixed the conversion factor and KeV -> keV.

@iliekturtles
Copy link
Owner

Mind squashing the commits together? I'll merge after that.

Updated electronvolt definition, fixed KeV -> keV.
@iliekturtles iliekturtles merged commit d061f92 into iliekturtles:master Aug 7, 2020
@iliekturtles
Copy link
Owner

Merged! Thanks so much for the PR.

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