Skip to content

Commit

Permalink
Merge branch 'develop' into feature/device-status
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ristè committed Jan 13, 2020
2 parents b5735df + 8228014 commit 136a7fc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions QGL/ChannelLibraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,14 @@ def iter_diff(value_iter1, value_iter2, ct, label=''):
return table_code

table_code = ''
for chan, value in dict_1.items():
this_dict = value.__dict__
for chan in set(list(dict_1.keys()) + list(dict_2.keys())):
if chan not in dict_1 or chan not in dict_2: # don't display differences of unique channels
continue
this_dict1 = dict_1[chan].__dict__
this_dict2 = dict_2[chan].__dict__
ct = 0
table_code += iter_diff(this_dict, dict_2[chan].__dict__, ct, chan)
display(IPHTML(f"<table><tr><th>Object</th><th>Parameter</th><th>{name1}</th><th>{name2}</th></tr><tr>{table_code}</tr></table>"))
table_code += iter_diff(this_dict1, this_dict2, ct, chan)
display(HTML(f"<table><tr><th>Object</th><th>Parameter</th><th>{name1}</th><th>{name2}</th></tr><tr>{table_code}</tr></table>"))

def receivers(self):
return self.ent_by_type(Channels.Receiver)
Expand Down

0 comments on commit 136a7fc

Please sign in to comment.