General Framework Tests
Aggregator Tests
Creating simple aggregator input |
|
Tests data transfer through the Aggregator |
|
Data Representation Tests
Tests that a dataframe with vertical vectors has multiple values of i and only 1 value of j. |
|
Tests that a vertically created dataframe is read as vertical vectors. |
|
Tests that going to dataframe and back is unity. |
|
Tests that |
|
|
Tests that |
Tests for states and dataframes.
- test_dataframe_of_vertical_vector_has_multiple_i_single_j()[source]
Tests that a dataframe with vertical vectors has multiple values of i and only 1 value of j.
- Return type:
None
- test_solution_to_statetimeseries_and_back_is_same_by_example(mock_agr)[source]
Tests that
solution_from_statesis the inverse ofsolution_from_states.- Return type:
None
- test_state_of_vertical_vector_is_vertical()[source]
Tests that a vertically created dataframe is read as vertical vectors.
- Return type:
None
- test_state_to_dataframe_and_back_is_same()[source]
Tests that going to dataframe and back is unity.
- Return type:
None
- test_statetimeseries_to_dataframe_and_back_is_same()[source]
Tests that
state_timeseries_from_dataframeis the inverse ofstate_timeseries_to_dataframe- Return type:
None
Calculation (Framework) Tests
|
|
Solver Backend Tests
|
This is an example given by the Scikits.Odes developers for a simple usage case: A planar pendulum. |
|
This test constructs a calculation in which one variable is free, meaning its algebraic equation returns 0 for any input. |
Testing the possibility of working with an all algebraic set of equations in scikits.odes. |
- test_dae_solver_accepts_all_algebraic_calculations()[source]
Testing the possibility of working with an all algebraic set of equations in scikits.odes.
Utilities Tests
- test_cosine_extrapolation_endpoints_are_zero_for_high_resolution()[source]
This test ensures that the underlying cosine function nullifies at its extrapolation points.
The test needs high resolution because the return value is cell-integrated, so it never truly nullifies in a cell, unless a cell goes beyond the extrapolation points.
- Return type:
None
- test_cosine_shape_max_is_like_ppf_for_high_resolution()[source]
This test ensures that the underlying cosine shape’s max to mean ratio meets the desired PPF value.
Since the function returns cell-integrated values, in order to approximate the ppf value we need a high enough resolution.
- Return type:
None