Skip to content

Commit

Permalink
meV_to_J, g_to_kg
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogila committed Nov 13, 2024
1 parent 1801acf commit bc67a2a
Show file tree
Hide file tree
Showing 12 changed files with 240 additions and 165 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maat v2.4.2
# Maat v2.4.4

Welcome to **M**y **A**n**A**lysis **T**ools; or just **Maat**, as the Egyptian goddess of truth, order, and justice.

Expand Down
6 changes: 3 additions & 3 deletions docs/maat.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

<h2>Contents</h2>
<ul>
<li><a href="#maat-v242">Maat v2.4.2</a>
<li><a href="#maat-v244">Maat v2.4.4</a>
<ul>
<li><a href="#installation">Installation</a></li>
<li><a href="#-1"> </a></li>
Expand All @@ -84,7 +84,7 @@ <h2>Submodules</h2>
</ul>


<footer>Maat v2.4.2 documentation</footer>
<footer>Maat v2.4.4 documentation</footer>

<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
built with <span class="visually-hidden">pdoc</span><img
Expand All @@ -98,7 +98,7 @@ <h2>Submodules</h2>
<h1 class="modulename">
maat </h1>

<div class="docstring"><h1 id="maat-v242">Maat v2.4.2</h1>
<div class="docstring"><h1 id="maat-v244">Maat v2.4.4</h1>

<p>Welcome to <strong>M</strong>y <strong>A</strong>n<strong>A</strong>lysis <strong>T</strong>ools; or just <strong>Maat</strong>, as the Egyptian goddess of truth, order, and justice. </p>

Expand Down
2 changes: 1 addition & 1 deletion docs/maat/classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ <h2>API Documentation</h2>
</ul>


<footer>Maat v2.4.2 documentation</footer>
<footer>Maat v2.4.4 documentation</footer>

<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
built with <span class="visually-hidden">pdoc</span><img
Expand Down
374 changes: 222 additions & 152 deletions docs/maat/constants.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/maat/deuteration.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h2>API Documentation</h2>
</ul>


<footer>Maat v2.4.2 documentation</footer>
<footer>Maat v2.4.4 documentation</footer>

<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
built with <span class="visually-hidden">pdoc</span><img
Expand Down
2 changes: 1 addition & 1 deletion docs/maat/fit.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2>API Documentation</h2>
</ul>


<footer>Maat v2.4.2 documentation</footer>
<footer>Maat v2.4.4 documentation</footer>

<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
built with <span class="visually-hidden">pdoc</span><img
Expand Down
2 changes: 1 addition & 1 deletion docs/maat/normalize.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2>API Documentation</h2>
</ul>


<footer>Maat v2.4.2 documentation</footer>
<footer>Maat v2.4.4 documentation</footer>

<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
built with <span class="visually-hidden">pdoc</span><img
Expand Down
2 changes: 1 addition & 1 deletion docs/maat/plot.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2>API Documentation</h2>
</ul>


<footer>Maat v2.4.2 documentation</footer>
<footer>Maat v2.4.4 documentation</footer>

<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
built with <span class="visually-hidden">pdoc</span><img
Expand Down
2 changes: 1 addition & 1 deletion docs/maat/sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h2>API Documentation</h2>
</ul>


<footer>Maat v2.4.2 documentation</footer>
<footer>Maat v2.4.4 documentation</footer>

<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
built with <span class="visually-hidden">pdoc</span><img
Expand Down
2 changes: 1 addition & 1 deletion docs/maat/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h2>API Documentation</h2>
</ul>


<footer>Maat v2.4.2 documentation</footer>
<footer>Maat v2.4.4 documentation</footer>

<a class="attribution" title="pdoc: Python API documentation generator" href="https://pdoc.dev" target="_blank">
built with <span class="visually-hidden">pdoc</span><img
Expand Down
2 changes: 1 addition & 1 deletion docs/search.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion maat/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@
import numpy as np


version = 'v2.4.3'
version = 'v2.4.4'


'''---
## Energy conversion factors
Note that `cm` refers to cm$^{-1}$.
'''
eV_to_meV = 1000.0
meV_to_eV = 0.001
meV_to_cm = 8.0655
cm_to_meV = 1.0 / meV_to_cm
eV_to_J = 1.602176634e-19
J_to_eV = 1.0 / eV_to_J
meV_to_J = meV_to_eV * eV_to_J
J_to_meV = J_to_eV * eV_to_meV
Ry_to_eV = 13.605693122990
eV_to_Ry = 1.0 / Ry_to_eV
Ry_to_J = 2.1798723611030e-18
Expand All @@ -60,6 +63,8 @@
'''
amu_to_kg = 1.66053906660e-27
kg_to_amu = 1.0 / amu_to_kg
kg_to_g = 1000.0
g_to_kg = 1.0 / kg_to_g

'''---
## Pressure conversion factors
Expand Down

0 comments on commit bc67a2a

Please sign in to comment.