Skip to content

Obtaining results from multi-period optimization fails in 0.6.1 #1245

@jengstud

Description

@jengstud

Describe the bug
After (successfully) running a multi-period optimization, obtaining results via

results = solph.processing.results(om)

fails. It yields

ValueError: Results extraction failed!

caused by

.venv/lib/python3.14/site-packages/pandas/core/internals/base.py:98, in DataManager._validate_set_axis(self, axis, new_labels)
     97 elif new_len != old_len:
---> 98     raise ValueError(
     99         f"Length mismatch: Expected axis has {old_len} elements, new "
    100         f"values have {new_len} elements"
    101     )

ValueError: Length mismatch: Expected axis has 17519 elements, new values have 17520 elements

To Reproduce
Steps to reproduce the behavior:

  1. Obtain latest oemof-solph release, e.g. via pip
  2. Try out the multi-period investment tutorial from the docs
  3. Run
  4. See exception

Expected behavior
Results dictionary should be returned.

Desktop (please complete the following information):

  • OS: macos Sequioa
  • Python 3.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions