

def lookup_bus(self, name=None, controller=None):
    if (name is not None):
        return self.buses.get(self, None)
    else:
        for bus in self.buses.values():
            if (bus.controller == controller):
                return bus

dataset/ETHPy150Open openxc/openxc-python/openxc/generator/message_sets.py MessageSet.lookup_bus/VarMisuse@35/39 `name`->`self`