Skip to content

Make model.<node_type>.node.df read-only#2995

Draft
visr wants to merge 1 commit intomainfrom
read-only-node-table
Draft

Make model.<node_type>.node.df read-only#2995
visr wants to merge 1 commit intomainfrom
read-only-node-table

Conversation

@visr
Copy link
Copy Markdown
Member

@visr visr commented Mar 24, 2026

I don't intend for this to be merged, but want to use it to find remaining errors in Ribasim-NL.

Blocks: .df = ..., df["col"] = ..., del df["col"], df.loc[...] = ..., df.iloc[...] = ..., df.at[...] = ..., df.iat[...] = ..., df.columns = ...
Allows: all read operations (column access, indexing, .loc/.iloc reads, len(), repr(), iteration, etc.)
Error message: directs the user to modify model.node.df instead

…ataFrameProxy that:

Blocks: .df = ..., df["col"] = ..., del df["col"], df.loc[...] = ..., df.iloc[...] = ..., df.at[...] = ..., df.iat[...] = ..., df.columns = ...
Allows: all read operations (column access, indexing, .loc/.iloc reads, len(), repr(), iteration, etc.)
Error message: directs the user to modify model.node.df instead
visr added a commit to Deltares/Ribasim-NL that referenced this pull request Mar 24, 2026
visr added a commit to Deltares/Ribasim-NL that referenced this pull request Mar 26, 2026
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.

1 participant