Skip to content

Commit bc60822

Browse files
committed
Enable basic plotting functions
1 parent b2861de commit bc60822

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

autogen/generator.py

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -61,36 +61,9 @@
6161
"uninline", # idem
6262
"local", # idem
6363
"my", # idem
64-
"plot", # Graphical function undeclared in pari public headers
65-
"plotbox", # idem
66-
"plotclip", # idem
67-
"plotcursor", # idem
68-
"plotcolor", # idem
69-
"plotcopy", # idem
70-
"plotdraw", # idem
71-
"plothsizes", # idem
72-
"plotinit", # idem
73-
"plotkill", # idem
74-
"plotlines", # idem
75-
"plotlinetype", # idem
76-
"plotmove", # idem
77-
"plotpoints", # idem
78-
"plotpointsize", # idem
79-
"plotpointtype", # idem
80-
"plotrbox", # idem
81-
"plotrecth", # idem
82-
"plotrecthraw", # idem
83-
"plotrline", # idem
84-
"plotrmove", # idem
85-
"plotrpoint", # idem
86-
"plotscale", # idem
87-
"plotstring", # idem
88-
"ploth", # idem
89-
"plothraw", # idem
90-
"psdraw", # idem
91-
"psplothraw", # idem
9264
}
9365

66+
9467
class PariFunctionGenerator(object):
9568
"""
9669
Class to auto-generate ``auto_gen.pxi`` and ``auto_instance.pxi``.
@@ -127,9 +100,9 @@ def can_handle_function(self, function, cname="", **kwds):
127100
return False
128101
cls = kwds.get("class", "unknown")
129102
sec = kwds.get("section", "unknown")
130-
if cls not in ("basic", "highlevel"):
103+
if cls != "basic":
131104
# Different class: probably something technical or
132-
# gp2c-specific
105+
# specific to gp or gp2c
133106
return False
134107
if sec == "programming/control":
135108
# Skip if, return, break, ...

0 commit comments

Comments
 (0)