Skip to content

rename Context to WorkspaceComponent - #542

Merged
wpbonelli merged 1 commit into
modflowpy:developfrom
wpbonelli:workspace-component
Nov 5, 2026
Merged

wpbonelli merged 1 commit into
modflowpy:developfrom
wpbonelli:workspace-component

Conversation

@wpbonelli

@wpbonelli wpbonelli commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

The Context class was badly named, it means "a component with a workspace (i.e. folder)", so name it WorkspaceComponent and move it to component.py. Makes it clearer that RowContext, LoadContext, WriteContext etc are unrelated. Context is everything!

A workspace is what the class adds to Component. It moves to component.py,
since there's no context left in flopy4/mf6/context.py, which is gone.
RowContext, LoadContext, WriteContext and the like are unrelated.
simulation.py is from codegen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wpbonelli wpbonelli added this to the MMP milestone Nov 5, 2026
@wpbonelli
wpbonelli marked this pull request as ready for review November 5, 2026 19:12
@wpbonelli
wpbonelli merged commit db63d4d into modflowpy:develop Nov 5, 2026
18 checks passed
@wpbonelli
wpbonelli deleted the workspace-component branch November 5, 2026 19:26
wpbonelli added a commit to wpbonelli/pyphoenix-project that referenced this pull request Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant