Skip to content

Commit

Permalink
check for empty generation vals before resampling (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
braddf committed Jun 18, 2024
1 parent 60c7095 commit c17458e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/india_api/internal/service/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@


def resample_generation(values: list[ActualPower], internal_minutes: int) -> list[ActualPower]:
if not values:
return []

# convert to dataframe
df = pd.DataFrame(
Expand Down

0 comments on commit c17458e

Please sign in to comment.