def test_init_database2(self): mu_values = [[-.5, -.5], [.5, -.5], [.5, .5], [-.5, .5]] files = [ "tests/test_datasets/matlab_00.vtk", "tests/test_datasets/matlab_01.vtk", "tests/test_datasets/matlab_02.vtk", "tests/test_datasets/matlab_03.vtk" ] offline = Offline(output_name='Pressure', dformat='point') offline.init_database(mu_values, files) assert offline.snapshots.values.shape == (2500, 4)
def test_init_database2(self): mu_values = [[-.5, -.5], [.5, -.5], [.5, .5], [-.5, .5]] files = [ "tests/test_datasets/matlab_00.vtk", "tests/test_datasets/matlab_01.vtk", "tests/test_datasets/matlab_02.vtk", "tests/test_datasets/matlab_03.vtk" ] offline = Offline(output_name='Pressure', dformat='point') offline.init_database(mu_values, files) assert offline.snapshots.values.shape == (2500, 4)
def test_init_database(self): mu_values = [[-.5, -.5], [.5, -.5], [.5, .5], [-.5, .5]] files = [ "tests/test_datasets/matlab_00.vtk", "tests/test_datasets/matlab_01.vtk", "tests/test_datasets/matlab_02.vtk", "tests/test_datasets/matlab_03.vtk" ] offline = Offline(output_name='Pressure', dformat='point') offline.init_database(mu_values, files) expected_mu = np.array([[-.5, .5, .5, -.5], [-.5, -.5, .5, .5]]) np.testing.assert_array_almost_equal(expected_mu, offline.mu.values)
def test_init_database(self): mu_values = [[-.5, -.5], [.5, -.5], [.5, .5], [-.5, .5]] files = [ "tests/test_datasets/matlab_00.vtk", "tests/test_datasets/matlab_01.vtk", "tests/test_datasets/matlab_02.vtk", "tests/test_datasets/matlab_03.vtk" ] offline = Offline(output_name='Pressure', dformat='point') offline.init_database(mu_values, files) expected_mu = np.array([[-.5, .5, .5, -.5], [-.5, -.5, .5, .5]]) np.testing.assert_array_almost_equal(expected_mu, offline.mu.values)