-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using full equality (
==
) to compare float, avoid `assert_arra…
…y_equal` compare float array (#4159) * replace some float equality check * explicit encoding * charge is also float * enhance types * access gcd via math namespace as math is already imported * put dunder method to top * fix typo * tweak _proj implementation * support array like * add arg and return type * tweak type * avoid more == for float comparison * replace some == in test, more left to do * replace more in core test * replace more in test * replace even more * replace last batch * clean up assert approx * replace pytest.approx with approx * also fix membership check * replace some equality check of list * replace some sequences * fix test * replace float comparison as dict * fix test * replace more float compare, mostly for VASP * fix test * fix approx in condition block * replace sci notation * suppress buggy ruff sim300 * number_of_permutations to int * revert change for formula_double_format, in favor of another PR * c_indices seems to be int * use sci notation for crazily large int * simplify numpy.testing usage * set tol as pos arg * avoid array equal for list of str * assert_array_equal should not be used on float array * fix module level var name * more assert_array_equal on complex number * simplify approx on dict value * avoid module level var when it's used only 3 times * pytext.approx to approx * fix approx on nested dict * avoid unnecessary convert to np.array * array_equal to all close for float array * assert all close for float array * capital class attrib is treated as constant
- Loading branch information
1 parent
5f744f2
commit 7e7756e
Showing
90 changed files
with
1,222 additions
and
1,139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.