Skip to content

Commit

Permalink
Merge pull request #23 from bkatiemills/box
Browse files Browse the repository at this point in the history
0.0.17 build artefacts
  • Loading branch information
bkatiemills authored Mar 14, 2024
2 parents bb9ca58 + c631cb3 commit f9b866a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion argovisHelpers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def argofetch(route, options={}, apikey='', apiroot='https://argovis-api.colorad
# raises on anything other than success or a 404.

o = copy.deepcopy(options)
for option in ['polygon', 'multipolygon']:
for option in ['polygon', 'multipolygon', 'box']:
if option in options:
options[option] = str(options[option])

Expand Down Expand Up @@ -119,6 +119,9 @@ def query(route, options={}, apikey='', apiroot='https://argovis-api.colorado.ed
extents = [area.area({'type':'Polygon','coordinates':[x]}) / 13000 / 1000000 for x in options['multipolygon']]
extent = min(extents)
timestep = min(400,math.floor(maxbulk / extent))
elif 'box' in options:
extent = area.area({'type':'Polygon','coordinates':[[ options['box'][0], [options['box'][1][0], options['box'][0][0]], options['box'][1], [options['box'][0][0], options['box'][1][0]], options['box'][0]]]}) / 13000 / 1000000
timestep = min(400, math.floor(maxbulk / extent))

delta = datetime.timedelta(days=timestep)
times = [start]
Expand Down
Binary file added dist/argovisHelpers-0.0.17-py3-none-any.whl
Binary file not shown.
Binary file added dist/argovisHelpers-0.0.17.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ build-backend = "setuptools.build_meta"

[project]
name = "argovisHelpers"
version = "0.0.16"
version = "0.0.17"
description = "Helper functions to consume and parse information from University of Colorado's Argovis API."
readme = "README.md"
authors = [{name = "Bill Mills" }]
authors = [{name = "Katie Mills" }]
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
Expand Down

0 comments on commit f9b866a

Please sign in to comment.