def test_sj2d(self): """ """ model = models.ReducedSetFitzHughNagumo() history_shape = (1, model._nvar, 1, model.number_of_modes) model_ic = model.initial(dt, history_shape) self.assertEqual(model._nvar, 4) self.assertEqual(model.number_of_modes, 3)
def test_sj2d(self): """ """ model = models.ReducedSetFitzHughNagumo() self._validate_initialization(model, 4, 3) fp = numpy.array([[-1.228146, 0.677939, 1.541479], [-0.953419, 0.384293, 0.907564], [-1.346946, -0.351683, 1.762915], [-1.03536, -0.293471, 0.536003]]) self._test_steady_state(model, fp)
def test_sj2d(self): """ """ model = models.ReducedSetFitzHughNagumo() history_shape = (1, model._nvar, 1, model.number_of_modes) model_ic = model.initial(dt, history_shape) self.assertEqual(model._nvar, 4) self.assertEqual(model.number_of_modes, 3) self.assertTrue(ArrayAlmostEqual(model_ic, numpy.array([[[[ 0.81113082, 0.22578466, 1.05767095]], [[ 2.15388948, 0.33114288, 0.33111966]], [[ 2.57884373, 1.25321566, 0.76664846]], [[ 0.76729577, 0.65537159, 0.65864133]]]])) is None)
def test_sj2d(self): """ """ model = models.ReducedSetFitzHughNagumo() history_shape = (1, model._nvar, 1, model.number_of_modes) model_ic = model.initial(dt, history_shape) self.assertEqual(model._nvar, 4) self.assertEqual(model.number_of_modes, 3) assert_array_almost_equal( model_ic, numpy.array([[[[-0.02763104, 0.14269546, 0.0534609]], [[-0.02392918, 0.12357789, 0.0462985]], [[-0.02763104, 0.14269546, 0.0534609]], [[-0.02392918, 0.12357789, 0.0462985]]]]))
def test_sj2d(self): """ """ model = models.ReducedSetFitzHughNagumo() self._validate_initialization(model, 4, 3)