hgrecco / pint

Operate and manipulate physical quantities in Python
http://pint.readthedocs.org/
Other
2.37k stars 466 forks source link

Allow "Eh" instead of "E_h" as an abbreviation for Hartree #712

Closed xxyxxyxyx1 closed 5 years ago

xxyxxyxyx1 commented 5 years ago

A simple request. "Eh" is not currently in use, and it would be much nicer to type "Eh" than needing to type two shift-characters in a row.

"Eh" is the way "Hartree" is commonly written in plaintext, for example in the ASCII output of quantum chemistry/physics programs like ORCA or Turbomole. So for the people who would use Hartrees, "Eh" would be the intuitive unit. Thank you.

hgrecco commented 5 years ago

please submit a PR

xxyxxyxyx1 commented 5 years ago

okay I've done it. my first use of github, so hopefully I didn't do anything odd.