Skip to content

Commit d8d2feb

Browse files
authored
Update internal get_BZ() usage to resolve UserWarnings (#117)
1 parent b05f463 commit d8d2feb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_brillouinzone.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_cubic(self):
110110
b1 = [1, 0, 0]
111111
b2 = [0, 1, 0]
112112
b3 = [0, 0, 1]
113-
bz = brillouinzone.get_BZ(b1=b1, b2=b2, b3=b3)
113+
bz = brillouinzone.BZ(b1=b1, b2=b2, b3=b3)
114114

115115
expected_faces = [
116116
[
@@ -162,7 +162,7 @@ def test_cubic(self):
162162

163163
# The definition of triangles is not unique. I check directly the
164164
# faces (that should be obtained from the triangles
165-
faces = bz['faces']
165+
faces = bz.faces
166166

167167
# theFaces = [Face(f) for f in faces]
168168
# theExpectedFaces = [Face(f) for f in expected_faces]
@@ -177,7 +177,7 @@ def test_2(self):
177177
b1 = [1, 0, 0]
178178
b2 = [0, 1, 0]
179179
b3 = [0.2, 0.2, 1]
180-
bz = brillouinzone.get_BZ(b1=b1, b2=b2, b3=b3)
180+
bz = brillouinzone.BZ(b1=b1, b2=b2, b3=b3)
181181

182182
expected_faces = [
183183
[
@@ -264,7 +264,7 @@ def test_2(self):
264264

265265
# The definition of triangles is not unique. I check directly the
266266
# faces (that should be obtained from the triangles
267-
faces = bz['faces']
267+
faces = bz.faces
268268

269269
# To print the actual output
270270
# print "["

0 commit comments

Comments
 (0)