def test_energy_conservation_tsang(): em = setup_func_em() em.ft_even_phase = em.ft_even_phase_tsang with pytest.raises(SMRTError) as e_info: commontest.test_energy_conservation(em, tolerance_pc)
def test_energy_conservation(): em = setup_func_em() commontest.test_energy_conservation(em, tolerance_pc)
def test_energy_conservation_shs_active(): shs_pack = setup_func_shs() em = setup_func_active(testpack=shs_pack) commontest.test_energy_conservation(em, tolerance_pc, npol=2)
def test_energy_conservation_indep_active(): indep_pack = setup_func_indep() em = setup_func_active(testpack=indep_pack) commontest.test_energy_conservation(em, tolerance_pc, npol=2)
def test_energy_conservation_exp_active(): em = setup_func_active() commontest.test_energy_conservation(em, tolerance_pc, npol=2)
def test_energy_conservation_shs(): shs_pack = setup_func_shs() em = setup_func_em(testpack=shs_pack) commontest.test_energy_conservation(em, tolerance_pc)
def test_energy_conservation_indep(): indep_pack = setup_func_indep() em = setup_func_em(testpack=indep_pack) commontest.test_energy_conservation(em, tolerance_pc)
def test_energy_conservation_jin(): em = setup_func_em() em.ft_even_phase = em.ft_even_phase_basedonJin commontest.test_energy_conservation(em, tolerance_pc)