+
Skip to content

gwpy/ligotimegps

Repository files navigation

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.

PyPI version Conda version License Supported Python versions

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

About

Mirror of main development project on gitlab.com

Topics

Resources

License

Stars

Watchers

Forks

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载