MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / _assert_complex_close

Function _assert_complex_close

tests/test_potential_step2a.py:20–22  ·  view source on GitHub ↗
(value: complex, expected: complex, tol: float = 1e-12)

Source from the content-addressed store, hash-verified

18
19
20def _assert_complex_close(value: complex, expected: complex, tol: float = 1e-12) -> None:
21 assert abs(value.real - expected.real) < tol
22 assert abs(value.imag - expected.imag) < tol
23
24
25def _extract_pp_local_ry_values(path: Path) -> list[float]:

Calls

no outgoing calls

Tested by

no test coverage detected