You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cascading_search returns ValueError ValueError: ItemCollection is empty, cannot convert to GeoDataFrame when a one of the datasets in secondary_datasets doesn't return a 'hit'.
Returns TypeError unsupported operand type(s) for *: 'GeometryArray' and 'float' when the overlapping datasets in the search don't meet the min_overlap_area minimum. ie. when geographic_area() returns an empty gdf due to datasets not meeting minimum area constraint, subset_by_minimum_area() raises the error
The text was updated successfully, but these errors were encountered:
Thanks for digging into this @Jack-Hayes ! I'd say it's really 2 separate issues.
cascading_search returns ValueError ValueError: ItemCollection is empty, cannot convert to GeoDataFrame when a one of the datasets in secondary_datasets doesn't return a 'hit'.
Do you think it's better to just clarify the error message by including the dataset name without hits? Or warn instead and proceed to the next secondary dataset?
TypeError unsupported operand type(s) for *: 'GeometryArray' and 'float' when the overlapping datasets in the search don't meet the min_overlap_area minimum. ie. when geographic_area() returns an empty gdf due to datasets not meeting minimum area constraint, subset_by_minimum_area() raises the error
Agreed we want to avoid that confusing error. Would you prefer to just return the empty geodataframe or raise a more informative ValueError for this case?
cascading_search returns ValueError ValueError: ItemCollection is empty, cannot convert to GeoDataFrame when a one of the datasets in secondary_datasets doesn't return a 'hit'.
Do you think we could implement a warning message displaying the dataset name without hits as well as returning only the gdfs with hits? I think if I had to pick between the two I would rather clarify the error message by including the dataset name without hits!
For
TypeError unsupported operand type(s) for *: 'GeometryArray' and 'float' when the overlapping datasets in the search don't meet the min_overlap_area minimum. ie. when geographic_area() returns an empty gdf due to datasets not meeting minimum area constraint, subset_by_minimum_area() raises the error
I think a more informative ValueError would be best!
11/08/2024
Custom Python environment 3.12.5
Coincident version: '0.1.dev40+gfa66db4.d20241108'
cascading_search returns ValueError
ValueError: ItemCollection is empty, cannot convert to GeoDataFrame
when a one of the datasets insecondary_datasets
doesn't return a 'hit'.Returns
TypeError unsupported operand type(s) for *: 'GeometryArray' and 'float'
when the overlapping datasets in the search don't meet themin_overlap_area
minimum. ie. when geographic_area() returns an empty gdf due to datasets not meeting minimum area constraint, subset_by_minimum_area() raises the errorThe text was updated successfully, but these errors were encountered: