Skip to content

feat: DifferenceParameter phase updates - #757

Open
LaurenPetch1 wants to merge 6 commits into
mainfrom
parameter-phase-updates
Open

feat: DifferenceParameter phase updates#757
LaurenPetch1 wants to merge 6 commits into
mainfrom
parameter-phase-updates

Conversation

@LaurenPetch1

Copy link
Copy Markdown
Contributor

add phase options to DifferenceParameter. Also add parameter to schema

@LaurenPetch1
LaurenPetch1 force-pushed the parameter-phase-updates branch from b878e92 to b4ff847 Compare August 19, 2026 12:34
@LaurenPetch1
LaurenPetch1 requested a review from jetuk August 19, 2026 12:34

@jetuk jetuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Implementation looks good. One comment about variable names.

Comment thread pywr-core/src/parameters/difference.rs Outdated
let built = match self.phase {
MetricConsumerPhase::Before => {
// We can make a simple version if all metrics can be simplified
let asimple: Result<SimpleMetricF64, _> = a.clone().try_into();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Real pedantic comment. I would prefer a_simple here, and for the following variables.

@LaurenPetch1
LaurenPetch1 requested a review from jetuk August 20, 2026 13:12
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