Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override global info instead of replace on __init__ #77

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sigmf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions sigmf/sigmffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
Loading