diff --git a/sigmf/__init__.py b/sigmf/__init__.py index 982e14a..95b1542 100644 --- a/sigmf/__init__.py +++ b/sigmf/__init__.py @@ -5,7 +5,7 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # version of this python module -__version__ = "1.2.4" +__version__ = "1.2.5" # matching version of the SigMF specification __specification__ = "1.2.0" diff --git a/sigmf/sigmffile.py b/sigmf/sigmffile.py index 3c616e9..1b6f28c 100644 --- a/sigmf/sigmffile.py +++ b/sigmf/sigmffile.py @@ -287,9 +287,9 @@ def set_metadata(self, metadata): def set_global_info(self, new_global): """ - Overwrite the global info with a new dictionary. + Recursively override existing global metadata with new global metadata. """ - self._metadata[self.GLOBAL_KEY] = new_global.copy() + self._metadata[self.GLOBAL_KEY] = dict_merge(self._metadata[self.GLOBAL_KEY], new_global) def get_global_info(self): """