Skip to content

Commit

Permalink
use string
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Oct 23, 2024
1 parent c797bc3 commit 518e10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion india_forecast_app/models/pvnet/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def predict(self, site_id: str, timestamp: dt.datetime):
final_gen_index = 0
for gen_idx in range(len(generation_da.index.values) - 1, -1, -1):
current_gen \
= generation_da.isel(index=gen_idx)[generation_da.columns[0]].values
= generation_da.isel(index=gen_idx)[str(generation_da.columns[0])].values
if not np.isnan(current_gen) and current_gen > 0:
final_gen_points = current_gen * 1000.0
# Convert to KW back from MW
Expand Down

0 comments on commit 518e10b

Please sign in to comment.