Skip to content

Avoid scientific notation in point query parameters#114

Open
arpitjain099 wants to merge 1 commit into
nasa:developfrom
arpitjain099:fix/point-no-scientific-notation
Open

Avoid scientific notation in point query parameters#114
arpitjain099 wants to merge 1 commit into
nasa:developfrom
arpitjain099:fix/point-no-scientific-notation

Conversation

@arpitjain099

Copy link
Copy Markdown

Fixes #108.

point() now serializes coordinates in plain decimal form before building the URL, so values like 0.00001 stay as 0.00001 instead of 1e-05.

I also added a regression test that checks both the stored point value and the generated query string.

Verification:

  • python3 -m pytest tests/test_granule.py tests/test_queries.py

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

very small numbers get written into URLs with error-raising scientific notation

1 participant