Skip to content

Commit

Permalink
Ported client code to new gRPC API
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-asplin-met-no committed Jan 10, 2024
1 parent 707ddce commit 6675f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def get_data_area(
assert poly.geom_type == "Polygon"
range = get_datetime_range(datetime)
get_obs_request = dstore.GetObsRequest(
instruments=list(map(str.strip, parameter_name.split(","))),
instrument=list(map(str.strip, parameter_name.split(","))),
inside=dstore.Polygon(points=[dstore.Point(lat=coord[1], lon=coord[0]) for coord in poly.exterior.coords]),
interval=dstore.TimeInterval(start=range[0], end=range[1]) if range else None,
)
Expand Down

0 comments on commit 6675f69

Please sign in to comment.