Skip to content

Commit 46d429f

Browse files
committed
Remove unused exception IsotropyError.
1 parent cbd4353 commit 46d429f

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/diffpy/Structure/StructureErrors.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,4 @@ class SymmetryError(Exception):
3333
"""
3434
pass
3535

36-
37-
class IsotropyError(Exception):
38-
"""Exception raised for invalid operations on isotropic atoms.
39-
"""
40-
pass
41-
4236
# End of file

src/diffpy/Structure/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,14 @@
2323
StructureFormatError
2424
LatticeError
2525
SymmetryError
26-
IsotropyError
2726
"""
2827

2928
##############################################################################
3029
# interface definitions
3130
##############################################################################
3231

33-
from diffpy.Structure.StructureErrors import (StructureFormatError,
34-
LatticeError, SymmetryError, IsotropyError)
32+
from diffpy.Structure.StructureErrors import (
33+
StructureFormatError, LatticeError, SymmetryError)
3534
from diffpy.Structure.atom import Atom
3635
from diffpy.Structure.lattice import Lattice
3736
from diffpy.Structure.structure import Structure
@@ -61,7 +60,7 @@ def loadStructure(filename, fmt='auto', **kw):
6160

6261
# silence pyflakes checker
6362
assert (StructureFormatError and
64-
LatticeError and SymmetryError and IsotropyError)
63+
LatticeError and SymmetryError)
6564
assert Atom
6665
assert Lattice
6766
assert Structure

0 commit comments

Comments
 (0)