Skip to content
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
3 changes: 2 additions & 1 deletion pyfv3/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ def from_f90nml(
use when initializing the DynamicalCoreConfig. If None, all
groups will be used. (Default: DEFAULT_DYCORE_NML_GROUPS)
"""
nml_dict = f90nml_as_dict(nml, flatten=True, target_groups=target_groups)
groups = list(target_groups) if target_groups is not None else None
nml_dict = f90nml_as_dict(nml, flatten=True, target_groups=groups)
nml_dict["target_nml_groups"] = target_groups
return cls.from_dict(nml_dict)

Expand Down