def test_simple_ascii_density_reader_data(): time_model, velocity, density = io.read_simple_ascii_density( data_path('tardis_simple_ascii_density_test.dat')) assert velocity.unit == u.Unit('cm/s') npt.assert_allclose(velocity[3].value, 1.3e4 * 1e5)
def test_simple_ascii_density_reader_data(): time_model, index, v_inner, v_outer, density = io.read_simple_ascii_density(data_path('tardis_simple_ascii_density_test.dat')) assert index[0] == 0 assert v_inner.unit == u.Unit('cm/s') npt.assert_allclose(v_inner[3].value, 1.3e4*1e5)
def test_simple_ascii_density_reader_time(): time_model, velocity, density = io.read_simple_ascii_density( data_path("tardis_simple_ascii_density_test.dat") ) assert time_model.unit.physical_type == "time" npt.assert_almost_equal(time_model.to(u.day).value, 1.0)
def test_simple_ascii_density_reader_time(): time_model, index, v_inner, v_outer, density = io.read_simple_ascii_density( data_path('tardis_simple_ascii_density_test.dat')) assert time_model.unit.physical_type == 'time' assert_almost_equal(time_model.to(u.day).value, 1.0)
def test_simple_ascii_density_reader_time(): time_model, index, v_inner, v_outer, density = io.read_simple_ascii_density(data_path('tardis_simple_ascii_density_test.dat')) assert time_model.unit.physical_type == 'time' npt.assert_almost_equal(time_model.to(u.day).value, 1.0)
def test_simple_ascii_density_reader_data(): time_model, velocity, density = io.read_simple_ascii_density(data_path('tardis_simple_ascii_density_test.dat')) assert velocity.unit == u.Unit('cm/s') npt.assert_allclose(velocity[3].value, 1.3e4*1e5)