Skip to main content

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.

This module is primarily for use as a drop-in replacement for the ‘offical’ lal.LIGOTimeGPS class (provided by the SWIG-python bindings of [LAL](//wiki.ligo.org/DASWG/LALSuite)) 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

`bash pip install ligotimegps `

## How to use

`python >>> from ligotimegps import LIGOTimeGPS >>> t = LIGOTimeGPS(12345, 67890) >>> print(t) 12345.00006789 `

## Project status

[![PyPI version](https://badge.fury.io/py/ligotimegps.svg)](http://badge.fury.io/py/ligotimegps) [![Build Status](https://travis-ci.org/lscsoft/ligotimegps.svg?branch=master)](https://travis-ci.org/lscsoft/ligotimegps) [![Coverage Status](https://coveralls.io/repos/github/lscsoft/ligotimegps/badge.svg?branch=master)](https://coveralls.io/github/lscsoft/ligotimegps?branch=master)

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

ligotimegps-1.1.tar.gz (34.1 kB view hashes)

Uploaded Source

Built Distributions

ligotimegps-1.1-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

ligotimegps-1.1-py2-none-any.whl (7.4 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page