From 2451da7b3ed69314fd8f36a1029b11a308b7f775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Thu, 20 Jul 2017 15:57:36 +0300 Subject: [PATCH] Additional test, exception output Former-commit-id: f976b87dae8c38dcfdd810b187fd0089a8287667 --- qpms/lattices2d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qpms/lattices2d.py b/qpms/lattices2d.py index a2f915b..8e3768c 100644 --- a/qpms/lattices2d.py +++ b/qpms/lattices2d.py @@ -245,7 +245,7 @@ def change_basis(srcbasis, destbasis, srccoords, srccoordsaxis=-1, lattice=True) trmatrix = np.round(trmatrix) if not np.all(np.isclose(trmatrix, otrmatrix)): raise ValueError("Given srcbasis and destbasis are not bases" - "of the same lattice", srcbasis, destbasis) + "of the same lattice", srcbasis, destbasis, trmatrix-otrmatrix) destcoords = np.tensordot(srccoords, trmatrix, axes=(srccoordsaxis, -1)) return destcoords