Skip to content

Commit

Permalink
graceful failure when firms fails - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Jul 22, 2024
1 parent accb27a commit d1cb225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blue_geo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DESCRIPTION = f"{ICON} AI for precise geospatial data analysis and visualization."

VERSION = "4.120.1"
VERSION = "4.121.1"

REPO_NAME = "blue-geo"

Expand Down
3 changes: 3 additions & 0 deletions blue_geo/datacube/firms/area/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ def ingest(self, object_name: str) -> Tuple[
return False, gpd.GeoDataFrame()

data = pd.read_csv(csv_filename)
if data.empty:
return False, gpd.GeoDataFrame()

logger.info(f"loaded {len(data):,} point(s).")

gdf = gpd.GeoDataFrame(
Expand Down

0 comments on commit d1cb225

Please sign in to comment.