Skip to content

Commit 839020a

Browse files
committed
MNT: docstring typos, prefer module-wide import
1 parent 47e7598 commit 839020a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/diffpy/structure/tests/testsymmetryutilities.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"""
1818

1919
import sys
20+
import re
2021
import unittest
2122
import numpy
2223

@@ -222,7 +223,6 @@ def test_signedRatStr(self):
222223
def test_positionFormula(self):
223224
"""check GeneratorSite.positionFormula()
224225
"""
225-
import re
226226
# 117c
227227
self.assertEqual([], self.g117c.pparameters)
228228
self.assertEqual([("x", self.x)], self.g117h.pparameters)
@@ -247,10 +247,9 @@ def test_positionFormula(self):
247247

248248

249249
def test_positionFormula_sg209(self):
250-
"""check positionFormula at [x, 1-x, -x] site or F432 space group.
251-
"""
250+
"check positionFormula at [x, 1-x, -x] site of the F432 space group."
252251
sg209 = GetSpaceGroup('F 4 3 2')
253-
xyz = [0.05198, 0.94802, -0.05198]
252+
xyz = [0.05198, 0.94802, -0.05198]
254253
g209e = GeneratorSite(sg209, xyz)
255254
pfm = g209e.positionFormula(xyz)
256255
self.assertEqual('x', pfm['x'])

0 commit comments

Comments
 (0)