Skip to content

Commit

Permalink
Merge pull request #490 from analogdevicesinc/fix-map_to_dict-ad9081-…
Browse files Browse the repository at this point in the history
…ad9084

adi/ad908[1|4]_mc.py: Fix label parsing in _map_to_dict()
  • Loading branch information
tfcollins authored Oct 26, 2023
2 parents c2cc93b + 3aec7b7 commit 7c3d411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adi/ad9081_mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def _map_to_dict(paths, ch, dev_name):
if "label" in ch.attrs and "buffer_only" in ch.attrs["label"].value:
if "->" not in ch.attrs["label"].value:
return paths, False
fddc, cddc, adc = ch.attrs["label"].value.split("->")
if dev_name not in paths.keys():
Expand Down
2 changes: 1 addition & 1 deletion adi/ad9084_mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def _map_to_dict(paths, ch, dev_name):
if "label" in ch.attrs and "buffer_only" in ch.attrs["label"].value:
if "->" not in ch.attrs["label"].value:
return paths, False
side, fddc, cddc, adc = ch.attrs["label"].value.replace(":", "->").split("->")
if dev_name not in paths.keys():
Expand Down

0 comments on commit 7c3d411

Please sign in to comment.