Exemple #1
0
 def test_mul_ivar(self, ivar1, ivar2, value1, value2, value_prod12,
                   expected):
     ivar = Map._mul_ivar(ivar1, ivar2, value1, value2, value_prod12)
     ivar[np.isnan(ivar)] = 0
     ivar[np.isinf(ivar)] = 0
     assert ivar == pytest.approx(expected)
Exemple #2
0
 def test_mul_ivar(self, ivar1, ivar2, value1, value2, value_prod12,
                   expected):
     assert pytest.approx(
         Map._mul_ivar(ivar1, ivar2, value1, value2, value_prod12),
         expected)