Skip to content

Commit

Permalink
Fix bug, make sure pi is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Ruiz committed Feb 8, 2022
1 parent 0bcd474 commit e01cd66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynq_composable/composable.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _default_paths(self):
self._default_ip[kk] = c_dict[k].copy()
if 'cpath' not in self._default_ip[kk].keys():
self._default_ip[kk]['cpath'] = dict()
key, delkey = ('pi', 'ci') if pi else ('ci', 'pi')
key, delkey = ('ci', 'pi') if pi is None else ('pi', 'ci')
if c_dict[k].get(delkey):
c_dict[k].pop(delkey)
self._default_ip[kk]['cpath'][key] = k
Expand Down

0 comments on commit e01cd66

Please sign in to comment.