Skip to content

Commit

Permalink
Merge pull request robcarver17#1453 from tgibson11/future-warnings
Browse files Browse the repository at this point in the history
Fix pandas FutureWarning
  • Loading branch information
bug-or-feature authored Nov 7, 2024
2 parents 6f7e836 + a874b95 commit bf1d5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion systems/diagoutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def forecast_scalars(self):

for instrument in instrument_list:
scalar = float(
system.forecastScaleCap.get_forecast_scalar(instrument, rule)[-1]
system.forecastScaleCap.get_forecast_scalar(instrument, rule).iloc[
-1
]
)
if pooling:
# will be overwritten for each instrument
Expand Down

0 comments on commit bf1d5a0

Please sign in to comment.