linopy icon indicating copy to clipboard operation
linopy copied to clipboard

remove future warned scalar get item

Open FabianHofmann opened this issue 7 months ago • 0 comments

Removes feature that was future warned for a long time now:

The selection of a single item in __getitem__ now returns a Variable instead of a ScalarVariable.

  • [x] Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in doc.
  • [x] Unit tests for new features were added (if applicable).
  • [x] A note for the release notes doc/release_notes.rst of the upcoming release is included.
  • [x] I consent to the release of this PR's code under the MIT license.

FabianHofmann avatar Mar 24 '25 08:03 FabianHofmann