def test_atomic_h5_readin(): data = atomic.read_basic_atom_data(atomic.default_atom_h5_path) assert data['atomic_number'][13] == 14 assert data['symbol'][13] == "Si" si_mass = data['mass'][13] testing.assert_almost_equal(si_mass, 28.085, decimal=4) pass
def test_atomic_h5_readin(): data = atomic.read_basic_atom_data() assert data['atomic_number'][13] == 14 assert data['symbol'][13] == "Si" si_mass = units.Unit('g').to('u', data['mass'][13]) testing.assert_almost_equal(si_mass, 28.085, decimal=4) pass
def test_read_basic_atom_data(default_atom_h5_path): data = atomic.read_basic_atom_data(default_atom_h5_path) assert data['atomic_number'][13] == 14 assert data['symbol'][13] == "Si" testing.assert_almost_equal(data['mass'][13], 28.085, decimal=4)