iodata.test.test_wfn module

Test iodata.formats.wfn module.

check_load_dump_consistency(fn, tmpdir, atol=1e-06, allow_changes=False)[source]

Check if data is preserved after dumping and loading a WFN file.

Parameters:
  • fn (str) – The filename to load

  • tmpdir (str) – The temporary directory to dump and load the file.

  • atol (float) – The absolute tolerance on the numerical comparisons.

check_wfn(fn_wfn, nbasis, energy, charges_mulliken)[source]

Check that MO are orthonormal & energy and charges match expected values.

helper_load_wfn_low(fn_wfn)[source]

Load a testing Gaussian log file with iodata.formats.wfn.load_wfn_low.

test_dump_one_pure_functions(tmpdir)[source]
test_generalized_orbitals()[source]
test_load_dump_consistency(path, tmpdir)[source]
test_load_dump_consistency_from_fchk_h2o(tmpdir)[source]
test_load_dump_consistency_from_molden_nh3(tmpdir)[source]
test_load_one_cah110_hf_sto3g_g09()[source]
test_load_one_lih_cation_cisd()[source]
test_load_one_lih_cation_rohf()[source]
test_load_one_lih_cation_uhf()[source]
test_load_wfn_h2_ccpvqz_virtual()[source]
test_load_wfn_h2o_sto3g()[source]
test_load_wfn_h2o_sto3g_decontracted()[source]
test_load_wfn_li_sp()[source]
test_load_wfn_li_sp_virtual()[source]
test_load_wfn_lif_fci()[source]
test_load_wfn_lih_cation_fci()[source]
test_load_wfn_low_h2o()[source]
test_load_wfn_low_he_s()[source]
test_load_wfn_o2()[source]
test_load_wfn_o2_virtual()[source]