Skip to content

Errors when running the npm test #20

Description

@Spatial-R

AIL: test_make_C_term_extra_terms (main.TestCmodel)

Traceback (most recent call last):
File "test_Cmodel.py", line 113, in test_make_C_term_extra_terms
self.assertEqual(self.m.make_C_term(t['x'], False, human=False), t['c'])
AssertionError: '//NotsupportedinC:\n//heaviside\nheaviside(t-gsl_vector_get(par,ORDER_v))' != 'heaviside(t-gsl_vector_get(par,ORDER_v))'

======================================================================
FAIL: test_make_C_term_nested (main.TestCmodel)

Traceback (most recent call last):
File "test_Cmodel.py", line 74, in test_make_C_term_nested
self.assertEqual(self.m.make_C_term('correct_rate(correct_rate(x))', False, human=False), 'ssm_correct_rate(ssm_correct_rate(x,dt),dt)')
AssertionError: '//NotsupportedinC:\n//correct_rate\ncorrect_rate(ssm_correct_rate(x,dt))' != 'ssm_correct_rate(ssm_correct_rate(x,dt),dt)'

======================================================================
FAIL: test_make_C_term_skip_correct_rate (main.TestCmodel)

Traceback (most recent call last):
File "test_Cmodel.py", line 95, in test_make_C_term_skip_correct_rate
self.assertEqual(self.m.make_C_term(x, True, human=False), c)
AssertionError: '//NotsupportedinC:\n//correct_rate\nmu_b_paris*((gsl_vector_get(par,ORDER_v))sin(gsl_spline_eval(calc->spline[ORDER_mu_b_paris],t,calc->acc[ORDER_mu_b_paris])+(gsl_vector_get(par,ORDER_v))/gsl_spline_eval(calc->spline[ORDER_N_paris],t,calc->acc[ORDER_N_paris]))+1.0)+diffed[ORDER_diff__r0_paris]' != 'gsl_spline_eval(calc->spline[ORDER_mu_b_paris],t,calc->acc[ORDER_mu_b_paris])((gsl_vector_get(par,ORDER_v))*sin(gsl_spline_eval(calc->spline[ORDER_mu_b_paris],t,calc->acc[ORDER_mu_b_paris])+(gsl_vector_get(par,ORDER_v))/gsl_spline_eval(calc->spline[ORDER_N_paris],t,calc->acc[ORDER_N_paris]))+1.0)+diffed[ORDER_diff__r0_paris]'


Ran 17 tests in 0.072s

FAILED (failures=3)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions