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

Eliminating Pyomo 6 deprecation warning #232

Merged
merged 1 commit into from
Jun 1, 2021

Conversation

bknueven
Copy link
Collaborator

IndexedComponent.itervalues() was deprecated in Pyomo 6; this PR eliminates calls to it from Egret. I believe this implementation should have the same performance on older versions of Pyomo, while bypassing creating an itermediate list like the value method does in older (and current) versions of Pyomo.

One incongruity I caught in current Pyomo: the keys(), values(), and items() methods on IndexedComponent document returning an iterator, but instead return a list.

@michaelbynum michaelbynum merged commit 9d3c6cc into grid-parity-exchange:main Jun 1, 2021
@bknueven bknueven deleted the itervalues branch June 1, 2021 14:04
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