Skip to content

fix(xpress): migrate remaining deprecated Xpress 9.8 API calls - #880

Merged
FabianHofmann merged 1 commit into
PyPSA:masterfrom
brunoficoxpress:fix/xpress-deprecated-api-calls
Aug 7, 2026
Merged

fix(xpress): migrate remaining deprecated Xpress 9.8 API calls#880
FabianHofmann merged 1 commit into
PyPSA:masterfrom
brunoficoxpress:fix/xpress-deprecated-api-calls

Conversation

@brunoficoxpress

Copy link
Copy Markdown
Contributor

Changes proposed in this Pull Request

Several Xpress API calls used by the direct api path were still on the
lowercase API deprecated in Xpress 9.8, with no fallback to the new camelCase
names. Fixed those, and added a small test for the direct API.

Checklist

  • AI-generated content is marked (see AGENTS.md).
  • [n.a. ] 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).
  • [n.a. ] 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.

@codspeed-hq

codspeed-hq Bot commented Aug 4, 2026

Copy link
Copy Markdown

Merging this PR will regress 2 benchmarks

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 3 improved benchmarks
❌ 2 regressed benchmarks
✅ 170 untouched benchmarks
⏩ 175 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Memory test_to_lp[rolling-severity=0] 2.1 MB 2.9 MB -28.17%
Memory test_to_lp[storage-n=250] 30.7 MB 36.3 MB -15.54%
Memory test_to_lp[merge_balance-severity=0] 3.2 MB 2.1 MB +49.86%
Memory test_to_lp[rolling-severity=50] 429.7 MB 319.5 MB +34.51%
Memory test_to_lp[masked-n=100] 2.7 MB 2 MB +33.08%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing brunoficoxpress:fix/xpress-deprecated-api-calls (89ec178) with master (d610692)

Open in CodSpeed

Footnotes

  1. 175 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.

@FabianHofmann FabianHofmann left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FabianHofmann
FabianHofmann merged commit 0f6cdad into PyPSA:master Aug 7, 2026
21 of 24 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.

2 participants