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
11
11
import sys
12
12
import tarfile
13
13
14
+ from setup import FALLBACK_VERSION , versiondata
15
+
14
16
BASEDIR = os .path .dirname (os .path .dirname (os .path .realpath (__file__ )))
15
17
sys .path .insert (0 , BASEDIR )
16
18
17
- from setup import FALLBACK_VERSION , versiondata
18
-
19
19
timestamp = versiondata .getint ("DEFAULT" , "timestamp" )
20
20
21
21
vfb = versiondata .get ("DEFAULT" , "version" ).split (".post" )[0 ] + ".post0"
Original file line number Diff line number Diff line change 16
16
import sys
17
17
import time
18
18
19
+ from setup import versiondata
20
+
19
21
# If extensions (or modules to document with autodoc) are in another directory,
20
22
# add these directories to sys.path here. If the directory is relative to the
21
23
# documentation root, use os.path.abspath to make it absolute, like shown here.
61
63
# |version| and |release|, also used in various other places throughout the
62
64
# built documents.
63
65
sys .path .insert (0 , os .path .abspath ("../../.." ))
64
- from setup import versiondata
66
+
65
67
66
68
fullversion = versiondata .get ("DEFAULT" , "version" )
67
69
# The short X.Y version.
Original file line number Diff line number Diff line change 93
93
# right-side over its arguments. This results in an array of BaseBuilder
94
94
# instances, not an BaseBuilder that contains an array.
95
95
96
- _builders = {}
97
-
98
-
99
96
import inspect
100
97
import numbers
101
98
106
103
from diffpy .srfit .equation .equationmod import Equation
107
104
from diffpy .srfit .equation .literals .literal import Literal
108
105
106
+ _builders = {}
107
+
109
108
110
109
class EquationFactory (object ):
111
110
"""A Factory for equations.
@@ -364,16 +363,9 @@ def _getUndefinedArgs(self, eqstr):
364
363
# generated.
365
364
for tok in set (args ):
366
365
# 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
377
369
args .remove (tok )
378
370
379
371
return args
You can’t perform that action at this time.
0 commit comments