Skip to content

Commit 434f618

Browse files
author
mmatera
committed
rename plot_compile as lambdify_compile, and move it close to other code conversion functions
1 parent 1f5dbb2 commit 434f618

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CompileError(Exception):
4343
pass
4444

4545

46-
def plot_compile(evaluation, expr, names, debug=0):
46+
def lambdify_compile(evaluation, expr, names, debug=0):
4747
"""Compile the specified expression as a function of the given names"""
4848

4949
if debug >= 2:

mathics/eval/drawing/plot3d_vectorized.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from mathics.core.systemsymbols import SymbolNone, SymbolRGBColor
1414
from mathics.timing import Timer
1515

16-
from .plot_compile import plot_compile
16+
from mathics.core.convert.lambdify import lambdify_compile as plot_compile
1717
from .util import GraphicsGenerator
1818

1919

test/builtin/drawing/test_plot_compile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from mathics.core.convert.python import from_python
2121
from mathics.core.expression import Expression
22-
from mathics.eval.drawing.plot_compile import plot_compile
22+
from mathics.core.convert.lambdify import lambdify_compile
2323

2424
#
2525
# Each test specifies:
@@ -36,7 +36,7 @@
3636
# not registered Bultin is not registered
3737
# Try making it a subclass of SympyFunction.
3838
# '...' is not defined Sympy expects function '...' to be defined.
39-
# Look into adding it in plot_compile.py
39+
# Look into adding it in lambdify_compile.py
4040
# TypeError Look into builtin.to_sympy where it catches TypeError
4141

4242
# common test case for Round, Floor, Ceiling, IntegerPart, FractionalPart
@@ -421,7 +421,7 @@ def failure(name, msg):
421421
# compile function
422422
try:
423423
expr = session.parse(def_expr)
424-
fun = plot_compile(session.evaluation, expr, parms, debug)
424+
fun = lambdify_compile(session.evaluation, expr, parms, debug)
425425
except Exception as oops:
426426
failure(name, f"compilaton failed: {oops}")
427427

0 commit comments

Comments
 (0)