Skip to content

Commit

Permalink
comment clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Mar 11, 2025
1 parent 751d3dd commit de5ac52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 0 additions & 7 deletions rise/rise.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ def items(
):
response: LocationResponse
if itemId:
try:
str(int(itemId))
except ValueError:
raise ProviderQueryError(
f"ID should be able to be converted to int but got: {itemId}"
)

# Instead of merging all location pages, just
# fetch the location associated with the ID
url: str = f"https://data.usbr.gov/rise/api/location/{itemId}"
Expand Down
6 changes: 1 addition & 5 deletions rise/rise_edr.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,6 @@ def cube(

response = response.filter_by_bbox(bbox, z)

# match format_:
# case "json" | "GeoJSON" | _:
# return LocationHelper.to_geojson(response)
builder = LocationResultBuilder(cache=self.cache, base_response=response)
response_with_results = builder.load_results(time_filter=datetime_)
return CovJSONBuilder(self.cache).fill_template(response_with_results)
Expand All @@ -159,8 +156,7 @@ def area(
):
"""
Extract and return coverage data from a specified area.
Example: http://localhost:5000/collections/rise-edr/area?coords=POLYGON((-124.566244%2042.000709%2C%20-124.566244%2046.292035%2C%20-116.463262%2046.292035%2C%20-116.463262%2042.000709%2C%20-124.566244%2042.000709))
Example: http://localhost:5000/collections/rise-edr/area?coords=POLYGON%20((-109.204102%2047.010226,%20-104.655762%2047.010226,%20-104.655762%2049.267805,%20-109.204102%2049.267805,%20-109.204102%2047.010226))&f=json
"""

raw_resp = self.get_or_fetch_all_param_filtered_pages(select_properties)
Expand Down

0 comments on commit de5ac52

Please sign in to comment.