Skip to content

Commit ef9e546

Browse files
authored
Merge pull request #54 from scikit-hep/fix-print
Remove unnecessary print statements
2 parents 95df5d4 + e3dfdf9 commit ef9e546

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/formulate/AST.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ def __str__(self):
221221
)
222222

223223
def to_numexpr(self):
224-
print(str(self.function))
225224
match str(self.function):
226225
case "pi":
227226
return "arccos(-1)"
@@ -385,7 +384,6 @@ def to_root(self):
385384

386385

387386
def to_python(self):
388-
print(str(self.function))
389387
match str(self.function):
390388
case "pi":
391389
return "np.pi"

src/formulate/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212

1313
from ._version import __version__
1414

15-
# print("======================")
16-
# print(__version__.__repr__())
17-
# print("======================")
18-
19-
# __all__ = ("__version__",)
20-
21-
2215

2316
def from_root(exp : str, **kwargs) -> AST :
2417
"""Evaluate ttreformula expressions."""

src/formulate/toast.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111

112112
def _get_func_names(func_names):
113113
children = []
114-
print(func_names)
115114
if len(func_names.children) > 1:
116115
children.extend(_get_func_names(func_names.children[1]))
117116
children.append(func_names.children[0])
@@ -172,7 +171,6 @@ def toast(ptnode: matching_tree.ptnode, nxp : bool):
172171
index=func_names[0].start_pos,
173172
)
174173
for elem in trailer.children[0].children:
175-
print(elem)
176174
func_arguments = [toast(elem,nxp) for elem in trailer.children[0].children]
177175

178176
funcs = root_to_common(func_names, func_names[0].start_pos)
@@ -184,7 +182,6 @@ def toast(ptnode: matching_tree.ptnode, nxp : bool):
184182
var_name = _get_func_names(children[0])[0]
185183
else:
186184
var_name = children[0]
187-
print(var_name)
188185
temp_symbol = AST.Symbol(str(var_name), index=var_name.start_pos)
189186
# if temp_symbol.check_CNAME() is not None:
190187
return temp_symbol

0 commit comments

Comments
 (0)