From 3b0a865a7736713910b19da90f625bfa5d2a7f64 Mon Sep 17 00:00:00 2001 From: Janice Kim Date: Wed, 22 Oct 2025 09:33:45 -0400 Subject: [PATCH] type fix: tuple to list --- pyfv3/_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyfv3/_config.py b/pyfv3/_config.py index e037493c..2ef6fbe5 100644 --- a/pyfv3/_config.py +++ b/pyfv3/_config.py @@ -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)