A pure-python version of lal.LIGOTimeGPS
Project description
This module provides a pure-python version of the LIGOTimeGPS
class, used to represent GPS times (number of seconds elapsed since GPS epoch) with nanoseconds precision.
This module is primarily for use as a drop-in replacement for the 'official' lal.LIGOTimeGPS
class (provided by the SWIG-python bindings of LAL) for use on those environments where LAL is not available, or building LAL is unnecessary for the application (e.g. testing).
The code provided here is much slower than the C-implementation provided by LAL, so if you really care about performance, don't use this module.
How to install
pip install ligotimegps
How to use
>>> from ligotimegps import LIGOTimeGPS
>>> t = LIGOTimeGPS(12345, 67890)
>>> print(t)
12345.00006789
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ligotimegps-2.0.1.tar.gz
.
File metadata
- Download URL: ligotimegps-2.0.1.tar.gz
- Upload date:
- Size: 35.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88626c02ad9a464d1242a1147b40074792f424bafa2ab013eee629c7d1b6469c |
|
MD5 | f5429dbdb93205845f3eec93c4e91988 |
|
BLAKE2b-256 | 392ecef2ee4c4f3f1f04566e3e7e9343811a74f6e9a0bc6ef4711248f132e3bb |
File details
Details for the file ligotimegps-2.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: ligotimegps-2.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da8c1289ba1310337ef5177e7936e25ce47d4e8e6a269cbdd5e9abfc5b5db490 |
|
MD5 | b5d3c22ed70a67e203be0baa52b5d4db |
|
BLAKE2b-256 | 69b66d6d0585fa2ae936a9f5d411b1f0fbe9fcb0aca0c51a775aa4f8f95fdf5e |