Skip to content

Commit

Permalink
Merge pull request #343 from hoskv/numexpr-3.0
Browse files Browse the repository at this point in the history
Added local_dict to NumExpr constructor call in evaluate.
  • Loading branch information
robbmcleod authored Aug 6, 2023
2 parents 59c65e8 + 1bf054e commit 59650ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions numexpr3/ne3compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ def evaluate(expr: str, name: str=None, lib: int=LIB_STD,
# need to assemble a new NumExpr object
pass

neObj = NumExpr(expr, lib=lib, casting=casting, stackDepth=stackDepth+1)
neObj = NumExpr(expr, lib=lib, casting=casting, stackDepth=stackDepth+1,
local_dict=local_dict)
return neObj.run(verify=False)
# End of ne3.evaluate()

Expand Down Expand Up @@ -1551,4 +1552,4 @@ def dump(self, wisdomFile: Optional[str]=None) -> None:
with open(wisdomFile, 'wb') as fh:
pickle.dump(self, fh)

wisdom = _WisdomBankSingleton()
wisdom = _WisdomBankSingleton()

0 comments on commit 59650ec

Please sign in to comment.