-
Notifications
You must be signed in to change notification settings - Fork 35
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
Update Examples to track IDAES deprecation warnings #9
Comments
Which model is this? Is it imported from idaes-pse or all in the example? |
The example is from idaes.power_generation.unit_models.boiler_heat_exchanger import (
BoilerHeatExchanger,
TubeArrangement,
DeltaTMethod
) |
Ok, so it's the notebook that needs to be updated. I assume you are working on this now, so I need to wait to update it. |
When debugging notebooks and writing new examples, I encounter many deprecation warnings concerning missing scaling factors or not specifying an equation form for Perry's liquid density methods. The second one is from one of my PR's to add a second equation form and default to the first/original equation form is no flag is provided. @andrewlee94 would it be best to update our examples so these warnings do not appear, and if so would you support catching these warnings via tests as @jsiirola suggests above? |
@bpaul4 Yes, we should be fixing these deprecation warnings and it would be good to have a check for them. This will be especially important over the next few months as we begin the transition to IDAES v2.0. |
The scaling factors aren't deprecation warnings. Just warnings. By popular request, I'm planning to add an option to silence the scaling warnings. |
As John noted those the scaling factor messages are warning, but the correct path here is to fix these rather than silence them - we need to show users how to use the scaling tools and this is the prefect opportunity. |
PR IDAES/idaes-pse#822 can turn deprecation warnings into exceptions, which can help track down the exact location of deprecation warnings being generated, and help us make sure we get them all. |
I think we should have fixed all the deprecations that were being raised, so now it should just be a matter of adding a test to warn us when new deprecations appear. |
|
fwiw, in this (examples) repository, we could implement this check by using the same function used in the pre-processing step to find all notebooks (ie |
Summarizing the discussion from the dev call:
|
This is still relevant. I might be able to make some progress on this before the Feb release. |
While putting together IDAES/examples-pse#102, I ran across a ton of deprecation warnings in the example, e.g.:
and
We should revisit the examples and update them to track the current recommended API.
We should also consider updating the examples tests to fail on (unexpected) warnings.
The text was updated successfully, but these errors were encountered: