Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use decimal.Decimal to parse strings #1

Merged
merged 2 commits into from
Jun 13, 2017

Conversation

duncanmmacleod
Copy link
Member

This PR updates the LIGOTimeGPS str value parser to use decimal.Decimal, which has logic to handle basically anything that looks like a number, e.g. 1.23456789e9 (which wasn't supported before).

handles arbitrary strings much better than custom parser
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d340e5a on duncanmmacleod:parse-str-decimal into ** on lscsoft:master**.

5 similar comments
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d340e5a on duncanmmacleod:parse-str-decimal into ** on lscsoft:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d340e5a on duncanmmacleod:parse-str-decimal into ** on lscsoft:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d340e5a on duncanmmacleod:parse-str-decimal into ** on lscsoft:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d340e5a on duncanmmacleod:parse-str-decimal into ** on lscsoft:master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling d340e5a on duncanmmacleod:parse-str-decimal into ** on lscsoft:master**.

uses more builtin operations
@coveralls
Copy link

coveralls commented Jun 13, 2017

Coverage Status

Changes Unknown when pulling 2260ff7 on duncanmmacleod:parse-str-decimal into ** on lscsoft:master**.

@duncanmmacleod duncanmmacleod merged commit ad03d2f into gwpy:master Jun 13, 2017
@duncanmmacleod duncanmmacleod deleted the parse-str-decimal branch June 13, 2017 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants