You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
There's probably a way to do what I'd like to do, but the documentation is very confusing, and I'm not seeing a way to do this.
What I'd like to do is diff two dictionaries, and instead of the report telling me "root['key']", I'd like to be able to get JUST the key where the change was found not including the "root" part.
What I'm trying to ultimately do is run a program to get the differences, then send those differences off to another program that will update a GUI based on the changes. But I would like to format the message that will be sent to the GUI like this:
You end up with a result like: ['1', 'tx_data_rate']
You just need to grab the keys from the differences object first, like list(differences.get('values_changed').keys()) then use the regex on each key to get the keys out of it, if you understand my meaning?
Describe the solution you'd like
There's probably a way to do what I'd like to do, but the documentation is very confusing, and I'm not seeing a way to do this.
What I'd like to do is diff two dictionaries, and instead of the report telling me "root['key']", I'd like to be able to get JUST the key where the change was found not including the "root" part.
What I'm trying to ultimately do is run a program to get the differences, then send those differences off to another program that will update a GUI based on the changes. But I would like to format the message that will be sent to the GUI like this:
To be more clear, if I had a diff result that gave me the following:
How can I strip just the 'tx_data_rate' key out instead of "root[1]['tx_data_rate']"?
The text was updated successfully, but these errors were encountered: