Skip to content

Commit

Permalink
add length units for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainp committed Aug 28, 2019
1 parent 9e039af commit 8d16d0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion smrt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .core import sensor
from .core.result import open_result
from .core.sensitivity_study import sensitivity_study
from .core.globalconstants import PSU, GHz
from .core.globalconstants import PSU, GHz, cm, mm, micron
from .core.plugin import register_package

from .inputs import sensor_list
3 changes: 3 additions & 0 deletions smrt/core/globalconstants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
PERMITTIVITY_OF_FREE_SPACE = 1 / (4e-7 * np.pi * C_SPEED ** 2)

GHz = 1e9 # G in fact
cm = 1e-2 # centimeter
mm = 1e-3 # millimeter
micron = 1e-6 # micron
PSU = 1e-3 # g/kg -> kg/kg

0 comments on commit 8d16d0d

Please sign in to comment.