Skip to content

Commit 5fe0ee4

Browse files
[pre-commit.ci] auto fixes from pre-commit hooks
1 parent de50055 commit 5fe0ee4

File tree

4 files changed

+45
-48
lines changed

4 files changed

+45
-48
lines changed

src/diffpy/srfit/equation/builder.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,7 @@ def getBuilder(name):
708708

709709
def __wrapNumpyOperators():
710710
"""Export all numpy operators as OperatorBuilder instances in the module
711-
namespace.
712-
"""
711+
namespace."""
713712
for name in dir(numpy):
714713
op = getattr(numpy, name)
715714
if isinstance(op, numpy.ufunc):
@@ -724,8 +723,7 @@ def __wrapNumpyOperators():
724723
def __wrapSrFitOperators():
725724
"""Export all non-base operators from the
726725
diffpy.srfit.equation.literals.operators module as OperatorBuilder
727-
instances in the module namespace.
728-
"""
726+
instances in the module namespace."""
729727
opmod = literals.operators
730728
excluded_types = set((opmod.CustomOperator, opmod.UFuncOperator))
731729

src/diffpy/srfit/pdf/characteristicfunctions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,7 @@ def __init__(self, name, model):
400400

401401
def __call__(self, r):
402402
"""Calculate the characteristic function from the transform of the
403-
BaseModel.
404-
"""
403+
BaseModel."""
405404

406405
# Determine q-values.
407406
# We want very fine r-spacing so we can properly normalize f(r). This

src/diffpy/srfit/structure/diffpyparset.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,20 @@ def _latsetter(par):
174174
class DiffpyLatticeParSet(ParameterSet):
175175
"""A wrapper for diffpy.structure.Lattice.
176176
177-
This class derives from diffpy.srfit.fitbase.parameterset.ParameterSet. See
178-
this class for base attributes.
177+
This class derives from diffpy.srfit.fitbase.parameterset.ParameterSet. See
178+
this class for base attributes.
179179
180-
Attributes
181-
----------
182-
lattice
183-
The diffpy.structure.Lattice this is adapting
184-
name
185-
Always "lattice"
186-
angunits
187-
"deg", the units of angle
188-
189-
Managed Parameters
190-
------------------
180+
Attributes
181+
----------
182+
lattice
183+
The diffpy.structure.Lattice this is adapting
184+
name
185+
Always "lattice"
186+
angunits
187+
"deg", the units of angle
188+
189+
Managed Parameters
190+
------------------
191191
"""
192192

193193
def __init__(self, lattice):

src/diffpy/srfit/structure/objcrystparset.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,36 +1658,36 @@ def getValue(self):
16581658
class ObjCrystCrystalParSet(SrRealParSet):
16591659
"""A adaptor for pyobjcryst.crystal.Crystal instance.
16601660
1661-
This class derives from diffpy.srfit.fitbase.parameterset.ParameterSet. See
1662-
this class for base attributes.
1661+
This class derives from diffpy.srfit.fitbase.parameterset.ParameterSet. See
1662+
this class for base attributes.
16631663
1664-
Attributes
1665-
----------
1666-
stru
1667-
The adapted pyobjcryst.Crystal.
1668-
scatterers
1669-
The list of aggregated ScattererParSets (either
1670-
ObjCrystAtomParSet or ObjCrystMoleculeParSet), provided for
1671-
convenience.
1672-
_sgpars
1673-
A BaseSpaceGroupParameters object containing free structure
1674-
Parameters. See the diffpy.srfit.structure.sgconstraints
1675-
module.
1676-
sgpars
1677-
property that creates _sgpars when it is needed.
1678-
angunits
1679-
"rad", the units of angle
1680-
1681-
Managed Parameters
1682-
------------------
1683-
1684-
Managed ParameterSets
1685-
---------------------
1686-
<sname>
1687-
A ObjCrystScattererParSet (either ObjCrystAtomParSet or
1688-
ObjCrystMoleculeParSet), where <sname> is the name of the
1689-
adapted pyobjcryst.atom.Atom or
1690-
pyobjcryst.molecule.Molecule.
1664+
Attributes
1665+
----------
1666+
stru
1667+
The adapted pyobjcryst.Crystal.
1668+
scatterers
1669+
The list of aggregated ScattererParSets (either
1670+
ObjCrystAtomParSet or ObjCrystMoleculeParSet), provided for
1671+
convenience.
1672+
_sgpars
1673+
A BaseSpaceGroupParameters object containing free structure
1674+
Parameters. See the diffpy.srfit.structure.sgconstraints
1675+
module.
1676+
sgpars
1677+
property that creates _sgpars when it is needed.
1678+
angunits
1679+
"rad", the units of angle
1680+
1681+
Managed Parameters
1682+
------------------
1683+
1684+
Managed ParameterSets
1685+
---------------------
1686+
<sname>
1687+
A ObjCrystScattererParSet (either ObjCrystAtomParSet or
1688+
ObjCrystMoleculeParSet), where <sname> is the name of the
1689+
adapted pyobjcryst.atom.Atom or
1690+
pyobjcryst.molecule.Molecule.
16911691
"""
16921692

16931693
def __init__(self, name, cryst):

0 commit comments

Comments
 (0)