Skip to main content

A pure-python version of lal.LIGOTimeGPS

Project description

PyPI version DOI Supported Python versions Unix Build Status Windows Build status Coverage Status

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)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ligotimegps, version 2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size ligotimegps-2.0.1-py2.py3-none-any.whl (19.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size ligotimegps-2.0.1.tar.gz (35.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page