Skip to content

Commit 53b0a45

Browse files
authored
Merge pull request #76 from cyiallou/fix/runtime-error
Fix RuntimeError in solar maintenance app
2 parents f546a7a + 1492b78 commit 53b0a45

File tree

1 file changed

+2
-2
lines changed
  • src/frequenz/lib/notebooks/solar/maintenance

1 file changed

+2
-2
lines changed

src/frequenz/lib/notebooks/solar/maintenance/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import pandas as pd
2222
import pvlib
2323
from numpy.typing import NDArray
24-
from pandas import Series
24+
from pandas import Index, Series
2525
from pvlib.location import Location
2626
from pvlib.modelchain import ModelChain
2727
from pvlib.pvsystem import Array, FixedMount, PVSystem
@@ -554,7 +554,7 @@ def _get_pvgis_hourly(
554554

555555
def _align_predictions_to_index(
556556
predictions: NDArray[np.float64],
557-
reference_index: pd.Index[Any],
557+
reference_index: "Index[Any]",
558558
) -> SeriesFloat:
559559
"""Align predictions to a reference index, padding with NaNs if necessary.
560560

0 commit comments

Comments
 (0)