mirror of https://github.com/Nonannet/pyhoff.git
non-functional spaces added
This commit is contained in:
parent
db3bf0d7de
commit
258e9e858f
|
@ -44,7 +44,7 @@ class BusTerminal():
|
||||||
def select(cls, bus_coupler: 'BusCoupler', terminal_number: int = 0):
|
def select(cls, bus_coupler: 'BusCoupler', terminal_number: int = 0):
|
||||||
terminal_list = [bt for bt in bus_coupler.bus_terminals if isinstance(bt, cls)]
|
terminal_list = [bt for bt in bus_coupler.bus_terminals if isinstance(bt, cls)]
|
||||||
assert terminal_list, f'No instance of {cls.__name__} configured at this BusCoupler'
|
assert terminal_list, f'No instance of {cls.__name__} configured at this BusCoupler'
|
||||||
assert 0 <= terminal_number < len(terminal_list), f'Out of range, select in range: 0..{len(terminal_list)-1}'
|
assert 0 <= terminal_number < len(terminal_list), f'Out of range, select in range: 0..{len(terminal_list) - 1}'
|
||||||
return terminal_list[terminal_number]
|
return terminal_list[terminal_number]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue