Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for creation of box object from non-triangular matrices (#…
…1769) * from_box accepts general cell matrices now * add tests for non upper triangular matrices for box from_matrix * remove dimensions argument * linters * change box matrix for the test * add tolerance for box test and add test for 2D boxes * flake8 function name ignore * Change test function name Co-authored-by: Joshua A. Anderson <joaander@umich.edu> * update docstring to reflect differences wrt to_matrix * add from matrix back * return quaternion alongside box object * change tests for new api * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert "Merge branch 'trunk-patch' into feat/non_triangular_box_matrices_for_box_from_matrix" This reverts commit 0d08f36, reversing changes made to 487359e. * linting * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * support 2D lattice vectors * swap matrices for rotation determination * add valueerror when 2d box is not properly set * return rotation matrix instead of quaternion * change and add more tests * update docstrings * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix lines too long * small update to docstring * fix 2D incorrect numpy function * fix 2d box logic * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Restore dependabot.yaml and .pre-commit-config.yaml * Retore more files. * Update hoomd/box.py * Switch box_matrix initialization to explicitly use default (np.float64) * Switch to more explicit variable naming of box matrix * Parametrize test_from_basis_vectors_non_triangular tests --------- Co-authored-by: Joshua A. Anderson <joaander@umich.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jen Bradley <55467578+janbridley@users.noreply.github.com> Co-authored-by: janbridley <bradleyjenj@gmail.com>
- Loading branch information