docs(pypsa): the pypsa line references point at pypsa master - #806
Merged
Merged
Conversation
…e commitment rows, as in pypsa master
# Conflicts: # CHANGELOG.md
Documentation build overview
21 files changed ·
|
# Conflicts: # CHANGELOG.md
# Conflicts: # docs/examples/pypsa.md # docs/examples/pypsa/settings.md # examples/pypsa.yaml # examples/pypsa/settings.yaml
# Conflicts: # CHANGELOG.md
This was referenced Oct 1, 2026
# Conflicts: # CHANGELOG.md
…ocs/pypsa-cites-02bdcbba
FabianHofmann
force-pushed
the
docs/pypsa-fixed-modular
branch
from
October 2, 2026 09:06
df7f835 to
34af2a0
Compare
…cbba # Conflicts: # CHANGELOG.md # docs/examples/pypsa.md # docs/examples/pypsa/link.md
15 of 44 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
The following content was generated by AI.
Every PyPSA line cite in
pypsa.yaml,pypsa_linearized_uc.yamland the hand-written parts ofdocs/examples/pypsa*.mdnow points at PyPSA master02bdcbba. Five cites that were already wrong on1.3.0are fixed.Stacks on #787 and #786. Part of #783 (step 2, "Re-anchor every PyPSA line cite").
Method, gate output, alternatives
Method. A script scanned every cite (
file.py:N,file.py:N-M, and the bare`:N`or`N-M`that follows one) inexamples/pypsa.yaml,examples/pypsa_linearized_uc.yaml, anddocs/examples/pypsa.mdanddocs/examples/pypsa_linearized_uc.mdoutside theirreference:andgallery:blocks. No other hand-written file underdocs/orexamples/cites PyPSA lines. For each cite it mapped the 1.3.0 line to 02bdcbba withdifflibover the two versions of the file, and refused any cite that falls in a changed hunk. Each mapped line has the same text as the old one. Then I read each cite's 1.3.0 code against the sentence that cites it. 98 cites changed. The fragments and gallery pages are regenerated (tools.pypsa_split split examples/pypsa,tools.gallery), not edited.The shift table in #783 is right for
constraints.pyandoptimize.py. One correction:networks.pymoves +2 after line 1250. The cycle-basis cite is nownetworks.py:1356-1363.Cites that were already wrong on 1.3.0, fixed here:
components/array.py:332-395:332-386_as_xarrayends at 386constraints.py:2411(Refusals):2522raise ValueErroris two lines onconstraints.py:2518(Refusals):2629constraints.py:2561(Refusals):2669raise RuntimeErroris one line upconstraints.py:2545(secant breakpoints step):2661-2666max(k/(k-1), …)is the loopChecked by running PyPSA 02bdcbba on rungs 55-58 and reading the last PyPSA frame of each traceback:
constraints.py:1660(55,KeyError),abstract.py:427(56,ValueError),constraints.py:1817(57,TypeError),constraints.py:1981(58,KeyError). The spec cites match these. #783 itself citesconstraints.py:1820for #1942 andconstraints.py:556for #1913; the tracebacks give 1817 and 1981. I did not edit #783.Prose. The two sentences that said the line numbers are still
1.3.0(intro and Refusals) are gone. The Refusals sentence now says line numbers and records are from master at02bdcbba.Gates.
pixi run lintandpixi run cipass (2604 tests, docs build, 55 TeX documents). I did not runreference.py --check: no rung or record changed.Not done. No test: a cite checker would need a PyPSA checkout in the suite, and the task said not to invent one. The cites in #783 are not touched. No box in #783 is ticked.