diff --git a/f90nml/namelist.py b/f90nml/namelist.py index 879fdce..7fcd4ec 100644 --- a/f90nml/namelist.py +++ b/f90nml/namelist.py @@ -1061,6 +1061,13 @@ def __delitem__(self, index): # Finally, remove from this list super(Cogroup, self).__delitem__(index) + def update(self, args): + if isinstance(args, dict): + for key in self.keys: + self.nml[key].update(args) + else: + raise NotImplementedError + @property def keys(self): """Return the namelist keys in the cogroup."""