Skip to content

Commit

Permalink
Added set params call to ipc_message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgdls authored and GDYendell committed Jan 24, 2023
1 parent 59fe018 commit 94cc19d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/python/odin_data/ipc_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ def set_param(self, param_name, param_value):

self.attrs['params'][param_name] = param_value

def set_params(self, params):
if "params" not in self.attrs:
self.attrs['params'] = {}

self.attrs['params'].update(params)

def encode(self):
return json.dumps(self.attrs)

Expand Down

0 comments on commit 94cc19d

Please sign in to comment.