You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(models): pad predictions to match index length in prepare_prediction_models
Fix a bug in `prepare_prediction_models` where model outputs could
mismatch the expected index length when the available data is smaller
than the configured moving average window size.
Instead of slicing and risking index errors, predictions are now aligned
to the reference index by right-aligning predictions and padding missing
entries with NaNs if necessary.
This makes the model preparation robust even with minimal data and prevents
silent failures or incorrect series construction.
Signed-off-by: cyiallou - Costas <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,3 +14,4 @@
14
14
## Bug Fixes
15
15
16
16
* Fixed a bug where the Solar Maintenance app would crash if some requested inverter components were missing from the reporting data. Missing components are now handled gracefully with a warning.
17
+
* Fixed a bug in prediction model preparation where predictions could fail or mismatch the expected index when using minimal data and a large moving average window. Predictions are now correctly aligned with the data index, with missing values padded with NaN.
0 commit comments