Skip to content

Conversation

Wegatriespython
Copy link
Contributor

Fix for issue #404

This PR fixes the issues outline in #404:

  • fix loop exit conditions
  • add missing IO for techs
  • increases test coverage to ensure the bug is properly detected and there is no inadvertent regression.

How to review

  • Double check the mode value correspondences for M1 an Mf and the raw data source file.
  • Read the diff and verify tests pass.

PR checklist

  • Continuous integration checks all ✅
  • Add or expand tests; coverage checks both ✅

@Wegatriespython Wegatriespython self-assigned this Aug 14, 2025
@Wegatriespython Wegatriespython added the water MESSAGEix-Nexus (water) variant label Aug 14, 2025
- Input level at water_avail_basin
- Input commodity surfacewater_basin

- output level water_supply
- output commodity freshwater
consolidate return logic
Now water return flows follow a single path:
cooling techs -> water_return commodity -> reg_to_basin tech ->
surfacewater_basin
Bound = histroical cap at last historical year.
- Code was very messy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
water MESSAGEix-Nexus (water) variant
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant