Skip to content

Commit

Permalink
converting tests from latest changes on master
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Meisrimel authored and Peter Meisrimel committed Nov 14, 2024
1 parent dcd393f commit 54f3935
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,6 @@ def test_get_variables_data_values2(self):
for index, test_data in test_data_sets.items():
np.testing.assert_array_almost_equal(test_data['J4.phi'].x, reference_data[index])

@testattr(stddist = True)
def test_get_variables_data_values3(self):
""" Verifying values from get_variables_data, and only asking for diagnostic variables. """
vars_to_test = ['@Diagnostics.step_time', '@Diagnostics.nbr_steps']
Expand All @@ -1848,7 +1847,6 @@ def test_get_variables_data_values3(self):
np.testing.assert_array_almost_equal(test_data['@Diagnostics.step_time'].x, reference_data['@Diagnostics.step_time'][index])
np.testing.assert_array_almost_equal(test_data['@Diagnostics.nbr_steps'].x, reference_data['@Diagnostics.nbr_steps'][index])

@testattr(stddist = True)
def test_get_variables_data_values4(self):
""" Verifying values from get_variables_data, partial trajectories and checking both time and diagnostic data."""
vars_to_test = ['time', '@Diagnostics.nbr_steps']
Expand All @@ -1875,7 +1873,6 @@ def test_get_variables_data_values4(self):
np.testing.assert_array_almost_equal(test_data['time'].x, reference_data['time'][index])
np.testing.assert_array_almost_equal(test_data['@Diagnostics.nbr_steps'].x, reference_data['@Diagnostics.nbr_steps'][index])

@testattr(stddist = True)
def test_stop_index_near_bounds(self):
""" Verify that we get expected results near the end of the result file, including
stop_index out of range.
Expand Down Expand Up @@ -1903,7 +1900,6 @@ def test_stop_index_near_bounds(self):
np.array([0.37268813, 0.37194424, 0.37120184, 0.37046092, 0.36972148, 0.36898351]))


@testattr(stddist = True)
def test_trajectory_lengths(self):
""" Verify lengths of trajectories are expected for a bunch of different inputs. """
fmu = Dummy_FMUModelME2([], os.path.join(file_path, "files", "FMUs", "XML", "ME2.0", "bouncingBall.fmu"), _connect_dll=False)
Expand Down

0 comments on commit 54f3935

Please sign in to comment.