PyPSA / linopy

Linear optimization with N-D labeled arrays in Python
https://linopy.readthedocs.io
MIT License
153 stars 40 forks source link

Docs errata: LinearExpression `expand_dims` #288

Closed Lkruitwagen closed 1 month ago

Lkruitwagen commented 1 month ago

FYI LinearExpression.expand_dims not currently supported, but is written up in the docs.

Found a work-around using assign_coords to expand out my desired dimension. Might be a quick PR to support? Will take a look.

FabianHofmann commented 1 month ago

hey @Lkruitwagen, thanks for your message. The function is already there, are you on the latest version or the current master branch?

Lkruitwagen commented 1 month ago

ah - nice one! Congrats on the release :)