Skip to content

Commit 6d60489

Browse files
committed
_get_float
1 parent 606728d commit 6d60489

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/diffpy/srfit/structure/sgconstraints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ def _makeconstraint(parname, formula, scatterer, idx, ns={}):
801801
return par
802802

803803
# Check to see if it is a constant
804-
fval = _getFloat(formula)
804+
fval = _get_float(formula)
805805
if fval is not None:
806806
par.setConst()
807807
return
@@ -813,7 +813,7 @@ def _makeconstraint(parname, formula, scatterer, idx, ns={}):
813813
return
814814

815815

816-
def _getFloat(formula):
816+
def _get_float(formula):
817817
"""Get a float from a formula string, or None if this is not possible."""
818818
try:
819819
return eval(formula)

0 commit comments

Comments
 (0)