Commit Graph
1 Commits
Author SHA1 Message Date
9a10a0d968 fix: use tolist() on numpy arrays in genetic parameter preparation (#1168)
GeneticOptimizationParameters.prepare() calls .to_list() on the result of
prediction.key_to_array(), which returns a numpy ndarray. Numpy arrays only
provide .tolist(), so every call raised AttributeError, was swallowed by the
bare except and logged as a misleading 'No ... data available' message. As a
consequence every automatic energy management run was canceled with 'Could
not prepare optimisation parameters'.

Regression introduced in a0febef (#1155).

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Bobby Noelte <b0661n0e17e@gmail.com>
2026-07-20 07:26:47 +02:00