

def lookup_bus_index(self, bus_name):
    for (index, bus) in enumerate(self.valid_buses()):
        if (bus_name == bus.name):
            return index
    return None

dataset/ETHPy150Open openxc/openxc-python/openxc/generator/message_sets.py MessageSet.lookup_bus_index/original