File tree Expand file tree Collapse file tree 3 files changed +10
-16
lines changed
src/diffpy/srfit/equation Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ import subprocess
1111import sys
1212import tarfile
1313
14+ from setup import FALLBACK_VERSION , versiondata
15+
1416BASEDIR = os .path .dirname (os .path .dirname (os .path .realpath (__file__ )))
1517sys .path .insert (0 , BASEDIR )
1618
17- from setup import FALLBACK_VERSION , versiondata
18-
1919timestamp = versiondata .getint ("DEFAULT" , "timestamp" )
2020
2121vfb = versiondata .get ("DEFAULT" , "version" ).split (".post" )[0 ] + ".post0"
Original file line number Diff line number Diff line change 1616import sys
1717import time
1818
19+ from setup import versiondata
20+
1921# If extensions (or modules to document with autodoc) are in another directory,
2022# add these directories to sys.path here. If the directory is relative to the
2123# documentation root, use os.path.abspath to make it absolute, like shown here.
6163# |version| and |release|, also used in various other places throughout the
6264# built documents.
6365sys .path .insert (0 , os .path .abspath ("../../.." ))
64- from setup import versiondata
66+
6567
6668fullversion = versiondata .get ("DEFAULT" , "version" )
6769# The short X.Y version.
Original file line number Diff line number Diff line change 9393# right-side over its arguments. This results in an array of BaseBuilder
9494# instances, not an BaseBuilder that contains an array.
9595
96- _builders = {}
97-
98-
9996import inspect
10097import numbers
10198
106103from diffpy .srfit .equation .equationmod import Equation
107104from diffpy .srfit .equation .literals .literal import Literal
108105
106+ _builders = {}
107+
109108
110109class EquationFactory (object ):
111110 """A Factory for equations.
@@ -364,16 +363,9 @@ def _getUndefinedArgs(self, eqstr):
364363 # generated.
365364 for tok in set (args ):
366365 # Move genuine varibles to the eqargs dictionary
367- if (
368- # Check registered builders
369- tok in self .builders
370- or
371- # Check symbols
372- tok in EquationFactory .symbols
373- or
374- # Check ignored characters
375- tok in EquationFactory .ignore
376- ):
366+ if (tok in self .builders or # Check registered builders
367+ tok in EquationFactory .symbols or # Check symbols
368+ tok in EquationFactory .ignore ): # Check ignored characters
377369 args .remove (tok )
378370
379371 return args
You can’t perform that action at this time.
0 commit comments