def build_tvb_model(hypothesis, variables_of_interest=["y3 - y0", "y2"], zmode="lin"): x0_transformed = _rescale_x0(hypothesis.y0, hypothesis.Iext1) model_instance = models.Epileptor( x0=x0_transformed, Iext=hypothesis.Iext1, Ks=hypothesis.K, c=hypothesis.y0, variables_of_interest=variables_of_interest) return model_instance
def test_epileptor(self): """ """ model = models.Epileptor() self._validate_initialization(model, 6)
def test_expr_tim(self): sim, ys = self._run_sim(5, models.Epileptor(), Raw(pre_expr='-y0+y3;y2', post_expr='mon;mon')) self.assertTrue(hasattr(sim.monitors[0], '_transforms')) lfp, slow = ys.transpose((1, 0, 2, 3))