Skip to content

Repair Norway PyPSA-Earth and NeqSim notebook - #83

Draft
EvenSol wants to merge 2 commits into
masterfrom
automation/repair-pypsa-earth-norway
Draft

Repair Norway PyPSA-Earth and NeqSim notebook#83
EvenSol wants to merge 2 commits into
masterfrom
automation/repair-pypsa-earth-norway

Conversation

@EvenSol

@EvenSol EvenSol commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • repair the catalog-linked Norway PyPSA-Earth example without removing any of its 15 original cells or two workflows
  • replace nonexistent and obsolete PyPSA-Earth calls with an executable PyPSA 1.2.4 / HiGHS teaching network
  • correct the 100 MW offshore-link capacity/efficiency inconsistency
  • add a real NeqSim 3.16.0 Stream–Compressor–Cooler–Separator–ProcessSystem application and couple calculated power into fresh PyPSA dispatch cases
  • add five retained technical figures, engineering interpretation, equations, checks, limitations, references, and exercises
  • record the complete validation in the maintenance ledger

Validation

  • fresh online-new-snapshot environment from 99 hash-verified public-PyPI wheels
  • NeqSim 3.16.0; Python 3.12.13; OpenJDK 17.0.19; PyPSA 1.2.4; HiGHS 1.15.1
  • 14 code and 25 Markdown cells; all 14 code cells executed sequentially from cleared outputs
  • zero exceptions, error outputs, or notebook stderr
  • 10/10 engineering checks passed
  • exact 100 MW offshore delivery from 105.263158 MW cable input
  • 0.0 MWh integrated baseline electrical residual
  • maximum NeqSim mass residual 2.0e-30
  • code maximum line length 74; no semicolons, shell magics, or compressed compound bodies
  • five display equations and two inline expressions passed Colab-safe source and visual rendering checks
  • all five figures extracted and visually inspected for units, labels, legends, scale, clipping, overlap, and numerical consistency

Preservation

  • original cells: 15/15
  • original code cells: 4/4
  • substantive original workflows: 2/2
  • original figures: 0
  • catalog link remains unique and unchanged

Documentation impact

The notebook is now the user-facing guide for the PyPSA-Earth workflow boundary, current PyPSA optimization API, NeqSim process-power handoff, assumptions, validation, and limitations. No NeqSim library defect or public API change was found.

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