def getSensorByName(self, name):
        try:
            idx = self.getSensorNames().index(name)
        except __HOLE__:
            warnings.warn('sensor ' + name + ' is not in sensor list.')
            return []

        return self.sensors[idx].getValues()
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/ode/environment.py/ODEEnvironment.getSensorByName