Skip to content

Commit 7abbfa1

Browse files
committed
MAINT: clean up issues reported by pyflakes.
1 parent 3c8f54d commit 7abbfa1

22 files changed

+63
-20
lines changed

src/pyobjcryst/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,9 @@ def loadCrystal(filename):
8787
with open(filename) as fp:
8888
rv = CreateCrystalFromCIF(fp)
8989
return rv
90+
91+
92+
# silence the pyflakes syntax checker
93+
assert ObjCrystException is not None
94+
assert __version__ or True
95+
assert pyobjcryst.zscatterer

src/pyobjcryst/atom.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@
2323
will cause segmentation faults, even if it is printed.
2424
"""
2525

26+
__all__ = ["Atom"]
27+
2628
from pyobjcryst._pyobjcryst import Atom

src/pyobjcryst/crystal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
method accepts a python file rather than a CIF object.
3030
"""
3131

32+
__all__ = ["Crystal", "BumpMergePar", "CreateCrystalFromCIF"]
33+
3234
from pyobjcryst._pyobjcryst import Crystal
3335
from pyobjcryst._pyobjcryst import BumpMergePar
3436
from pyobjcryst._pyobjcryst import CreateCrystalFromCIF

src/pyobjcryst/diffractiondatasinglecrystal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
2020
Changes from ObjCryst::DiffractionDataSingleCrystal::
2121
In development !
22-
2322
"""
2423

24+
__all__ = ["DiffractionDataSingleCrystal"]
25+
2526
from pyobjcryst._pyobjcryst import DiffractionDataSingleCrystal

src/pyobjcryst/general.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
"""Python wrapping of things from General.h.
1717
1818
See the online ObjCryst++ documentation (http://vincefn.net/ObjCryst/).
19-
2019
"""
2120

21+
__all__ = ["RadiationType", "ObjCrystException"]
22+
2223
from pyobjcryst._pyobjcryst import RadiationType
2324
from pyobjcryst._pyobjcryst import ObjCrystException

src/pyobjcryst/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
2020
Changes from ObjCryst::XMLCrystTag
2121
- The istream constructor of XMLCrystTag is not wrapped.
22-
2322
"""
2423

24+
__all__ = ["XMLCrystTag"]
25+
2526
from pyobjcryst._pyobjcryst import XMLCrystTag

src/pyobjcryst/molecule.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@
8282
methods.
8383
"""
8484

85+
__all__ = ["Molecule", "GetBondLength", "GetBondAngle",
86+
"GetDihedralAngle", "MolAtom", "MolBond",
87+
"MolBondAngle", "MolDihedralAngle", "Quaternion",
88+
"RigidGroup", "StretchMode", "StretchModeBondLength",
89+
"StretchModeBondAngle", "StretchModeTorsion", "StretchModeTwist"]
90+
8591
# TODO - MolRing
8692

8793
from pyobjcryst._pyobjcryst import Molecule

src/pyobjcryst/polyhedron.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
"""Python wrapping of Polyhedron.h
1717
1818
See the online ObjCryst++ documentation (http://vincefn.net/ObjCryst/).
19-
2019
"""
2120

21+
__all__ = ["MakeTetrahedron", "MakeOctahedron", "MakeSquarePlane",
22+
"MakeCube", "MakeAntiPrismTetragonal", "MakePrismTrigonal",
23+
"MakeIcosahedron", "MakeTriangle"]
24+
2225
from pyobjcryst._pyobjcryst import MakeTetrahedron
2326
from pyobjcryst._pyobjcryst import MakeOctahedron
2427
from pyobjcryst._pyobjcryst import MakeSquarePlane

src/pyobjcryst/powderpattern.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
1717
Changes from ObjCryst::PowderPattern::
1818
In development !
19-
2019
"""
2120

21+
__all__ = ["PowderPattern", "CreatePowderPatternFromCIF",
22+
"PowderPatternBackground", "PowderPatternComponent",
23+
"PowderPatternDiffraction", "ReflectionProfileType"]
24+
2225
from pyobjcryst._pyobjcryst import PowderPattern
2326
from pyobjcryst._pyobjcryst import CreatePowderPatternFromCIF
2427
from pyobjcryst._pyobjcryst import PowderPatternBackground

src/pyobjcryst/refinableobj.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
- XML input/output are not exposed.
6565
"""
6666

67+
__all__ = ["RefinableObjClock", "RefinableObj", "RefObjOpt",
68+
"RefinableObjRegistry", "RefParType", "RefParDerivStepModel",
69+
"RefinablePar", "Restraint", "ScattererRegistry",
70+
"ScatteringPowerRegistry", "ZAtomRegistry"]
71+
6772
from pyobjcryst._pyobjcryst import RefinableObjClock
6873
from pyobjcryst._pyobjcryst import RefinableObj
6974
from pyobjcryst._pyobjcryst import RefObjOpt

0 commit comments

Comments
 (0)