File: spglib-compatibility.patch

package info (click to toggle)
python-symfc 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,004 kB
  • sloc: python: 10,795; makefile: 12
file content (50 lines) | stat: -rw-r--r-- 1,750 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Description: Adjust to an API change in spglib.
Author: Andrius Merkys <merkys@debian.org>
Bug-Debian: https://bugs.debian.org/1126234
--- a/tests/utils/test_utils.py
+++ b/tests/utils/test_utils.py
@@ -38,7 +38,7 @@
     """Test compute_sg_permutations."""
     pytest.importorskip("spglib")
     import spglib
-    from spglib.spglib import Cell as SpgCell
+    from spglib import Cell as SpgCell
 
     supercell, _, _ = ph_gan_222
     primitive = cell_gan_111
@@ -83,7 +83,7 @@
     """Test compute_sg_permutations and compare with compute_sg_permutations_stable."""
     pytest.importorskip("spglib")
     import spglib
-    from spglib.spglib import Cell as SpgCell
+    from spglib import Cell as SpgCell
 
     axis = np.array([[0.0, 1.0, 1.0], [7.0, 6.0, 7.0], [8.0, 8.0, 8.0]])
     positions = np.array(
@@ -223,7 +223,7 @@
     """Test of compute_sg_permutations for NaCl."""
     pytest.importorskip("spglib")
     import spglib
-    from spglib.spglib import Cell as SpgCell
+    from spglib import Cell as SpgCell
 
     supercell, _, _ = ph_nacl_222
     dataset = spglib.get_symmetry_dataset(cast(SpgCell, supercell.totuple()))
@@ -249,7 +249,7 @@
     """Test of compute_sg_permutations for SiO2."""
     pytest.importorskip("spglib")
     import spglib
-    from spglib.spglib import Cell as SpgCell
+    from spglib import Cell as SpgCell
 
     supercell, _, _ = ph_sio2_221
     dataset = spglib.get_symmetry_dataset(cast(SpgCell, supercell.totuple()))
@@ -273,7 +273,7 @@
     """Test compute_sg_permutations for BaAl2O4."""
     pytest.importorskip("spglib")
     import spglib
-    from spglib.spglib import Cell as SpgCell
+    from spglib import Cell as SpgCell
 
     types = np.zeros(8, dtype=int)
     axis = np.array(