|
25 | 25 | import numpy |
26 | 26 | import six |
27 | 27 |
|
28 | | -from diffpy.structure import Atom, Lattice, Structure, StructureFormatError |
| 28 | +from diffpy.structure import Atom, Lattice, Structure |
29 | 29 | from diffpy.structure.parsers import StructureParser |
| 30 | +from diffpy.structure.structureerrors import StructureFormatError |
30 | 31 |
|
31 | 32 | # ---------------------------------------------------------------------------- |
32 | 33 |
|
@@ -460,7 +461,7 @@ def _parse_atom_site_aniso_label(self, block): |
460 | 461 | break |
461 | 462 | idx = self.labelindex[lb] |
462 | 463 | a = self.stru[idx] |
463 | | - if not lb in self.anisotropy: |
| 464 | + if lb not in self.anisotropy: |
464 | 465 | a.anisotropy = True |
465 | 466 | self.anisotropy[lb] = True |
466 | 467 | for fset, val in zip(prop_setters, values): |
@@ -544,7 +545,7 @@ def _expandAsymmetricUnit(self, block): |
544 | 545 | # setup anisotropy according to symmetry requirements |
545 | 546 | # unless it was already explicitly set |
546 | 547 | for ca, uisotropy in zip(self.stru, self.eau.Uisotropy): |
547 | | - if not ca.label in self.anisotropy: |
| 548 | + if ca.label not in self.anisotropy: |
548 | 549 | ca.anisotropy = not uisotropy |
549 | 550 | self.anisotropy[ca.label] = ca.anisotropy |
550 | 551 | # build a nested list of new atoms: |
|
0 commit comments