Skip to content

docs: list legacy alignment sites on 0.10 before migrating to v1 - #1188

Open
MaykThewessen wants to merge 1 commit into
PyPSA:masterfrom
MaykThewessen:docs/v1-migration-alignment-trace
Open

MaykThewessen wants to merge 1 commit into
PyPSA:masterfrom
MaykThewessen:docs/v1-migration-alignment-trace

Conversation

@MaykThewessen

Copy link
Copy Markdown
Contributor

Changes proposed in this Pull Request

A short section in the v1 migration guide: on linopy 0.10, a stdlib snippet collects every LinopySemanticsWarning during a model build and prints one line per call site, so users can list everything to fix in one pass before they upgrade. Docs only, no new API, as @FBumann preferred in #717 (comment).

Note

The following content was generated by AI.

Checks
  • The snippet was run as written on linopy 0.10.1 against a small model; the output in the page is that run, byte for byte.
  • Both suggested fixes (x.add(y, join="inner") and x + y.assign_coords(...)) emit no warning on 0.10.1 and run on master.
  • pre-commit run --files doc/user-guide/migrating-to-v1.md passes. No mkdocs build was run.

Checklist

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

🤖 Generated with Claude Code

…ntics

On linopy 1.0 a build stops at the first raise. Add a stdlib snippet to the
migration guide that runs a build on linopy 0.10, collects every
LinopySemanticsWarning and lists the user's file:line per site, so all lines
to fix show up in one pass. Follows the docs-helper route agreed in PyPSA#717.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codspeed

codspeed Bot commented Nov 18, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 181 untouched benchmarks
⏩ 181 skipped benchmarks1


Comparing MaykThewessen:docs/v1-migration-alignment-trace (372ed3b) with master (ac3eaf7)

Open in CodSpeed

Footnotes

  1. 181 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

This branch has not been deployed

No deployments
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.

1 participant