Repository navigation
Release 0.5.0 - #152
Merged
Merged
Release 0.5.0#152
Conversation
Feature release covering main since 0.4.1: PowerFactory contingency and EvEMTBench tools, pandapower audit and operating-point validation, PSS/E dynamic output, PSCAD run-to-completion, and bug fixes for pandapower, Egret, OpenDSS and GenX. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Bumps the version to 0.5.0 in the three places
test_package_versions_matchchecks:pyproject.toml,powermcp/__init__.pyandtests/test_registry.py. Nothing else changes. The branch is currentmainplus that one commit.0.5.0, not 0.4.2: main adds 15 MCP tools since 0.4.1 and removes or renames none, and the 0.4.1 notes said main's work would ship in the next minor release. #122's tool consolidation only touched tools added after 0.4.1 (#108), so no released client has anything to migrate.
Tests: full CI suite locally on Python 3.12 with powerio 0.11.11: 766 passed, 23 skipped, 0 failed.
After merge: tag
v0.5.0on the merge commit and publish a GitHub release with the notes below.publish.ymlthen uploads to PyPI. Wait for #150 first, because PyPI shows the README from the tagged commit.Draft release notes
The first feature release since 0.4.0, with about 150 commits. It adds 15 MCP tools and fixes several bugs. No MCP tool shipped in 0.4.x has been removed or renamed, and existing calls keep working.
0.4.1 was a security-only release. Its HOPE Julia-injection fix (#130) is included here too.
PowerFactory
Contingency analysis covers the full workflow now (#83, #84, #88, #89, #95).
get_contingency_configurationreads the activeComSimoutagesettings.run_contingency_analysistakes an optionalcalculation_method:ac,dc,ac_linearisedorlinearised_screening. The default,configured, keeps the old behaviour.create_contingencycreates idempotent switch-event fault cases.add_contingency_result_variablesandremove_contingency_result_variablescontrol which results are recorded.configure_contingency_screeningsets the study case's screening method and loading criteria, and keeps them.get_contingency_summarysummarises existing results against voltage and loading limits, without running a calculation.EvEMTBench equipment and grid building (#108, #109, #113, #122, #138).
list_evemtbench_componentsandcreate_evemtbench_component. Catalog listing works offline, with no PowerFactory licence.create_grid_with_busesbuilds a new grid from scratch.export_active_grid_pdfexports the active single-line diagram and then restores the diagram that was active before.load_model="zip") and an opt-in YNd11 zero-sequence transformer equivalent (Add opt-in EvEMTBench ZIP loads and YNd11 zero-sequence mapping and address PR #122 follow-ups #138). Constant-power loads remain the default.The equipment tools went through a separate tool per family while on
main(#108). Before this release they were merged into the two tools above (#122). Only clients that ran an unreleasedmainbetween those PRs need to refresh their tool list.pandapower
run_contingency_analysisworks again (Fix pandapower contingency analysis and Egret OPF on unrated branches #137, closes pandapower run_contingency_analysis fails: no attribute 'deepcopy' #127). Every call failed with'pandapowerNet' instance has no attribute 'deepcopy'.audit_network(Feat/deterministic network audit final #79) runs structural pre-flight checks without a solver. It flags bad voltage limits, bad line and transformer parameters or ratings, and unsupplied buses.validate_operating_point(feat: add deterministic operating-point security validation #86) checks a converged result against voltage and loading limits. It reports extrema, losses, near-limit conditions and violations, without re-solving or changing the network.Egret
solve_dc_opfhandles unrated branches (Fix pandapower contingency analysis and Egret OPF on unrated branches #137, closes egret: solve_dc_opf fails on cases with unrated branches ('rating_long_term') #128). A MATPOWER branch withrateA = 0(unlimited) used to raiseKeyError: 'rating_long_term'. Such branches are now read as unlimited.PSS/E
list_dynamic_output_channelsandread_dynamic_outputread dynamic simulation.outfiles (feat: add PSS/E dynamic output reading #97).max_pointssets a lower cap (feat: bound PSS/E dynamic output responses #98). Larger outputs are downsampled evenly, with both endpoints kept, and the response says when this happened.PSCAD
run_project_to_completionstarts a run, reports MCP progress while it runs, and tells apart completion, build failure, idle-before-run and timeout (feat(pscad): add run-to-completion tool with MCP progress #105, addresses PSCAD: one run-to-completion tool with MCP progress reporting #76).not_completed(Tolerate coarse filesystem mtimes when confirming a short PSCAD run #142).OpenDSS
redirectnamedIEEELineCodes.dss, but the shipped file isIEEELineCodes.DSS(Match the 13-bus redirect to IEEELineCodes.DSS so it compiles on Linux #136).HOPE
hope_holistic_statussurvives client reconnects. Optional solvers are checked before a run starts, and output paths stay inside the case.GenX
Installing
powermcp installshows the extras in its pip hints again (Keep pip extras and long hints intact in installer output #149). Rich read[andes,ltspice]as a markup tag and dropped it, so a copied hint such aspip install powermcpinstalled none of the selected tools. The install the wizard runs itself was never affected.llms-install.mdwalks a coding agent such as Claude Code or Codex through creating a venv, choosing extras, storing vendor paths, writing the client config and checking withpowermcp doctor. The README links a prompt to paste and adds a table of supported tools.Tooling
powermcp doctorchecks that each configured path is the right type, file or directory (Fix/doctor config path types upstream #99). Before, any existing path counted as configured.powermcp.validationmodule compares power-flow results across engines, with per-metric tolerances (Feat/cross engine validation clean #103). Adapters reject duplicate element IDs.Full changelog: v0.4.1...v0.5.0
🤖 Generated with Claude Code