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

fix(dfn): mark transient blocks #178

Merged
merged 1 commit into from
Jan 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modflow_devtools/dfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,12 @@ def _fields() -> Vars:
for block_name, block in groupby(vars_.values(), lambda v: v["block"])
}

# mark transient blocks
transient_index_vars = flat.getlist("iper")
for transient_index in transient_index_vars:
transient_block = transient_index["block"]
blocks[transient_block]["transient"] = True

# remove unneeded attributes
def remove_attrs(path, key, value):
if key in ["block", "in_record", "tagged", "preserve_case"]:
Expand Down
Loading