diff --git a/flopy/mf6/utils/codegen/ref.py b/flopy/mf6/utils/codegen/ref.py index 178d6b77d..e03c1a512 100644 --- a/flopy/mf6/utils/codegen/ref.py +++ b/flopy/mf6/utils/codegen/ref.py @@ -103,8 +103,8 @@ def _subpkg(): def _parent(): line = lines["parent"] - _, param_name, _ = line.split() - return param_name + split = line.split() + return split[1] return ( cls(**_subpkg(), parent=_parent())