Skip to content

fix: Near-opt space example notebook cleanup#1396

Merged
lkstrp merged 2 commits intoPyPSA:masterfrom
koen-vg:near-opt-example-log-fix
Oct 15, 2025
Merged

fix: Near-opt space example notebook cleanup#1396
lkstrp merged 2 commits intoPyPSA:masterfrom
koen-vg:near-opt-example-log-fix

Conversation

@koen-vg
Copy link
Copy Markdown
Contributor

@koen-vg koen-vg commented Oct 14, 2025

Since the near-optimal spaces example is kind of my baby, I thought I'd quickly submit this, which cleans up the output significantly.

There are also a bunch of these warnings:

/home/docs/checkouts/readthedocs.org/user_builds/pypsa/envs/latest/lib/python3.13/site-packages/linopy/expressions.py:2006: FutureWarning:

In a future version of xarray the default value for join will change from join='outer' to join='exact'. This change will result in the following ValueError: cannot be aligned with join='exact' because index/labels/sizes are not equal along these coordinates (dimensions): 'name' ('name',) The recommendation is to set join explicitly for this case.

I can't quite replicate this locally so I'm not sure how they might be cleaned up from the documentation.

Checklist

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

@lkstrp
Copy link
Copy Markdown
Member

lkstrp commented Oct 15, 2025

In a future version of xarray the default value for join will change from join='outer' to join='exact'. This change will result in the following ValueError: cannot be aligned with join='exact' because index/labels/sizes are not equal along these coordinates (dimensions): 'name' ('name',) The recommendation is to set join explicitly for this case.

That's a linopy issue that we should address. It's the last deprecation warning that hasn't been cleaned up

@lkstrp lkstrp merged commit 8b126b6 into PyPSA:master Oct 15, 2025
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants