Skip to content

Commit

Permalink
Merge pull request #529 from xylar/fix-config-append-prepend
Browse files Browse the repository at this point in the history
Fix append and prepend for the `MpasConfigParser`
  • Loading branch information
xylar authored Sep 29, 2023
2 parents d7dd750 + e38b706 commit b4d884c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conda_package/mpas_tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ def append(self, other):
self._configs.update(other._configs)
self._user_config.update(other._user_config)
self._comments.update(other._comments)
self.combined = None
self.combined_comments = None
self.sources = None

def prepend(self, other):
"""
Expand All @@ -455,6 +458,9 @@ def prepend(self, other):
comments = dict(other._comments)
comments.update(self._comments)
self._comments = comments
self.combined = None
self.combined_comments = None
self.sources = None

def __getitem__(self, section):
"""
Expand Down

0 comments on commit b4d884c

Please sign in to comment.