Skip to content

Commit

Permalink
remove pdb line
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jan 17, 2025
1 parent 4488e48 commit 3e40372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions modflow_devtools/dfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ def _fields() -> Vars:
if not var.get("in_record", False)
}

# import pdb; pdb.set_trace()

# group variables by block
blocks = {
name: {v["name"]: v for v in block}
Expand Down
5 changes: 3 additions & 2 deletions modflow_devtools/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,9 @@ def set_env(*remove, **update):

def filter_recursive(d: Any, pred: Callable) -> Any:
"""
If the object is a mapping, recursively drop any,
`None` values, otherwise return it unchanged.
If the object is a mapping, recursively apply
the predicate, keeping passing entries. Return
other objects unchanged.
"""
if isinstance(d, Mapping):
return {k: filter_recursive(v, pred) for k, v in d.items() if pred(v)}
Expand Down

0 comments on commit 3e40372

Please sign in to comment.