From de5ac52530a721e14b7689e286fa8218fd3d48d1 Mon Sep 17 00:00:00 2001 From: Colton Loftus <70598503+C-Loftus@users.noreply.github.com> Date: Tue, 11 Mar 2025 16:32:37 -0400 Subject: [PATCH] comment clean ups --- rise/rise.py | 7 ------- rise/rise_edr.py | 6 +----- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/rise/rise.py b/rise/rise.py index 9a975a5..2965c38 100644 --- a/rise/rise.py +++ b/rise/rise.py @@ -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}" diff --git a/rise/rise_edr.py b/rise/rise_edr.py index 634eb0b..6e10a29 100644 --- a/rise/rise_edr.py +++ b/rise/rise_edr.py @@ -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) @@ -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)