Skip to content

Conversation

@bknueven
Copy link
Collaborator

No description provided.

@bknueven
Copy link
Collaborator Author

bknueven commented Sep 2, 2025

I am not certain I want to merge this. Need more testing.

@bknueven
Copy link
Collaborator Author

bknueven commented Sep 2, 2025

I am not certain I want to merge this. Need more testing.

I am now more certain. But I wonder if we can do something better and defer the import of a given class until its creation. That could end up being cleaner as well because we could avoid having imports in the middle of modules as this PR proposes. As-is, every rank needs to load every class that ends up being used, but in reality they only need their cylinder-local code.

@bknueven bknueven merged commit 5b9c06f into Pyomo:main Sep 2, 2025
19 checks passed
@bknueven bknueven deleted the defer_import branch September 2, 2025 20:42
bknueven added a commit that referenced this pull request Dec 3, 2025
This reverts commit 5b9c06f, reversing
changes made to 2649a26.
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