def _extract_multi_state_monitor(self, monitors):

        self.f_set(vars_=monitors.vars)


        if 0 > len(monitors.times):
            self.f_set(times=monitors.times)
            self.f_set(times_unit='second')

        ### Store recorded values ###
        for idx, varname in enumerate(monitors.vars):
            monitor = monitors.monitors[varname]
            if idx == 0:


                self.f_set(record=monitor.record)

                self.f_set(when=monitor.when)

                self.f_set(timestep=monitor.timestep)

                self.f_set(source=str(monitor.P))

            if np.mean(monitor.mean) != 0.0:
                self.f_set(**{varname + '_mean': monitor.mean})
                self.f_set(**{varname + '_var': monitor.var})
            if len(monitors.times) > 0:
                self.f_set(**{varname + '_values': monitor.values})
            self.f_set(**{varname + '_unit': repr(monitor.unit)})
dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/brian/parameter.py/BrianMonitorResult._extract_multi_state_monitor/swapped operands of `>`