-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Upgrade to pywr-v1-schema v0.8.0. #66
Conversation
Required implementing several new parameters: - InterpolatedParameter - DiscountFactorParameter - DataFrameParameter Conversion from Storage, Deficit and Flow parameters is now returns an error as these should become metrics in pywr-next. Todos are left for HydropowerTarget, RollingMeanFlowNode and ScenarioWrapper parameter. Also the control curve interpolated parameter was renamed due to a naming conflict with InterpolatedParameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of queries but otherwise this looks good
}) | ||
.collect::<Result<_, TableError>>()?; | ||
|
||
Ok(LoadedScalarTable::Three(ScalarTableThree { values })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this return a LoadedScalarTable::Two
and another function added to create a LoadedScalarTable::Three
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm yes. Not sure how this is compiling!
.collect::<Result<_, TableError>>()?; | ||
|
||
Ok(LoadedVecTable::Two(tbl)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this missing a load_csv_row3_vec_table_one
function?
This was a bit broken. I've fixed the |
77639b8
to
f73def3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes look good
Required implementing several new parameters:
Conversion from Storage, Deficit and Flow parameters is now returns an error as these should become metrics in pywr-next.
Todos are left for HydropowerTarget, RollingMeanFlowNode and ScenarioWrapper parameter.
Also the control curve interpolated parameter was renamed due to a naming conflict with InterpolatedParameter.