Skip to content
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

Resolve Pyomo deprecation warnings #11

Closed
wants to merge 6 commits into from

Conversation

lbianchi-lbl
Copy link
Contributor

Resolves: #10

@lbianchi-lbl lbianchi-lbl self-assigned this Jun 14, 2024
@lbianchi-lbl
Copy link
Contributor Author

lbianchi-lbl commented Jun 14, 2024

@bknueven when you have time, could you take a look at the test failures? e.g.
image

I suspect it might be due to me doing the naive switch between pyomo.core.base._VarData (now deprecated) to pyomo.core.base.VarData (and the same for ExpressionData and ParamData). The error is that component is None in that scope, but I'm not sure what could be causing this. I tried poking around with pytest -k test_parameter_sweep --pdb but without much success:

image

(the code is slightly different in that I extracted self._get_object() to its own line)

@lbianchi-lbl
Copy link
Contributor Author

Replaced by #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.

Deprecation warnings from pyomo on import
1 participant