Skip to content

Commit

Permalink
Fix missing check that metrics are present
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreenbury committed Jul 1, 2024
1 parent 65fc4c0 commit ab19647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/popgetter/assets/usa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def derived_metrics(

# TODO: refactor asset
variable_dictionary = generate_variable_dictionary(year, summary_level)
if census_tables.shape[0] == 0:
if census_tables.shape[0] == 0 or census_tables.shape[1] == 0:
context.log.warning(f"No metrics found in parition: {partition_key}")
return MetricsOutput(metadata=[], metrics=pd.DataFrame())

Expand Down

0 comments on commit ab19647

Please sign in to comment.