A pure Python version of lal.LIGOTimeGPS
Project description
LIGOTimeGPS
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.
Description
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
python -m 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ligotimegps-2.1.0.tar.gz.
File metadata
- Download URL: ligotimegps-2.1.0.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d948ffc4d58472b303478a983ec56d2e6a7f35e54cbb351ca6f1292e68398cb2
|
|
| MD5 |
a959f7f9d7e139c6beeae905e943ad85
|
|
| BLAKE2b-256 |
7e9b521be61daa7603603826d40fa6327a22e04df4f20e69d9ed42182370a7f8
|
File details
Details for the file ligotimegps-2.1.0-py3-none-any.whl.
File metadata
- Download URL: ligotimegps-2.1.0-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14dbbb07b175b94b4e1a519d7baa4548f0ea07bc71ef7d7f096ad8397d359043
|
|
| MD5 |
0e674b96090e5d87dc22abf290554c10
|
|
| BLAKE2b-256 |
0e9238674acb59c663bcdb69522e11afd3b4e6371f74b5764aeec2e99308cd79
|