iodata.test.test_wfx module¶
Test iodata.formats.wfn module.
- check_load_dump_consistency(fn, tmpdir)[source]¶
Check if data is preserved after dumping and loading a Wfx file.
- compare_mulliken_charges(fname, tmpdir, rtol=1e-07, atol=0.0, match=None, allow_changes=False)[source]¶
Check if charges are computed correctly after dumping and loading WFX file format.
- Parameters:
fname (
str
) – The filename to be load.tmpdir (
str
) – The temporary directory to dump and load the file.rtol (
float
) – Relative tolerance when comparing charges. (optional)atol (
float
) – Absolute tolerance when comparing charges. (optional)match (
Optional
[str
]) – When given, loading the file is expected to raise a warning whose message string contains match.
- helper_load_data_wfx(fn_wfx)[source]¶
Load a testing WFX file with iodata.formats.wfx.load_data_wfx.