def test_add_snapshot2(self): conf_file = 'tests/test_datasets/mu.conf' offline = Offline(output_name='Pressure', dformat='point') offline.init_database_from_file(conf_file) offline.add_snapshot([-0.29334384, -0.2312056], "tests/test_datasets/matlab_04.vtk") assert offline.snapshots.values.shape == (2500, 5)
def test_add_snapshot2(self): conf_file = 'tests/test_datasets/mu.conf' offline = Offline(output_name='Pressure', dformat='point') offline.init_database_from_file(conf_file) offline.add_snapshot([-0.29334384, -0.2312056], "tests/test_datasets/matlab_04.vtk") assert offline.snapshots.values.shape == (2500, 5)
def test_add_snapshot(self): conf_file = 'tests/test_datasets/mu.conf' offline = Offline(output_name='Pressure', dformat='point') offline.init_database_from_file(conf_file) offline.add_snapshot([-0.29334384, -0.2312056], "tests/test_datasets/matlab_04.vtk") expected_mu = np.array([[-.5, .5, .5, -.5, -0.29334384], [-.5, -.5, .5, .5, -0.2312056]]) np.testing.assert_array_almost_equal(expected_mu, offline.mu.values)
def test_add_snapshot(self): conf_file = 'tests/test_datasets/mu.conf' offline = Offline(output_name='Pressure', dformat='point') offline.init_database_from_file(conf_file) offline.add_snapshot([-0.29334384, -0.2312056], "tests/test_datasets/matlab_04.vtk") expected_mu = np.array([[-.5, .5, .5, -.5, -0.29334384], [-.5, -.5, .5, .5, -0.2312056]]) np.testing.assert_array_almost_equal(expected_mu, offline.mu.values)