diff options
author | 2017-05-04 16:24:16 -0700 | |
---|---|---|
committer | 2017-05-04 16:24:16 -0700 | |
commit | a8548b2890473b5d1834d151246a22d441fa059f (patch) | |
tree | 01bde3ee687e625da6e64f5fb59252560db5c547 /Python/pywarpx/_libwarpx.py | |
parent | 902894c1fbc3b4384fea8331f98cd59e3361d3e1 (diff) | |
download | WarpX-a8548b2890473b5d1834d151246a22d441fa059f.tar.gz WarpX-a8548b2890473b5d1834d151246a22d441fa059f.tar.zst WarpX-a8548b2890473b5d1834d151246a22d441fa059f.zip |
Minor fixes for Python interface
Diffstat (limited to 'Python/pywarpx/_libwarpx.py')
-rwxr-xr-x | Python/pywarpx/_libwarpx.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pywarpx/_libwarpx.py b/Python/pywarpx/_libwarpx.py index 07caa6763..183fe315e 100755 --- a/Python/pywarpx/_libwarpx.py +++ b/Python/pywarpx/_libwarpx.py @@ -6,6 +6,9 @@ from ctypes.util import find_library import numpy as np from numpy.ctypeslib import ndpointer +# --- Is there a better way of handling constants? +clight = 2.99792458e+8 # m/s + def get_package_root(): ''' Get the path to the installation location (where libwarpx.so would be installed). |