From d5f8301e62b278cfda3759ec99cbdb8e8c51526a Mon Sep 17 00:00:00 2001 From: She Zhang Date: Mon, 5 Feb 2024 12:01:23 -0700 Subject: [PATCH] YAMLConfig fix for creating nested entries (#376) Co-authored-by: She Zhang --- src/westpa/core/yamlcfg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/westpa/core/yamlcfg.py b/src/westpa/core/yamlcfg.py index 274a480ca..812c9f183 100644 --- a/src/westpa/core/yamlcfg.py +++ b/src/westpa/core/yamlcfg.py @@ -142,6 +142,7 @@ def __setitem__(self, key, value): val = val[keypart] except KeyError: val[keypart] = {} + val = val[keypart] try: val = val[key[-1]] except KeyError: