Skip to content

Commit 910bdec

Browse files
committed
clean. Fix Hash
1 parent 35521b8 commit 910bdec

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

mathics/builtin/numeric.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ def __init__(self, *args, **kwargs):
467467
self.methods["Internal"] = (_internal_adaptative_simpsons_rule, False)
468468
try:
469469
from scipy.integrate import (romberg, quad, nquad)
470-
print("Using scipy.integrate for numeric integration")
471470
self.methods["NQuadrature"] = (
472471
_scipy_interface(nquad,
473472
{},
@@ -491,7 +490,6 @@ def __init__(self, *args, **kwargs):
491490
)
492491
self.methods["Automatic"] = self.methods["Quadrature"]
493492
except Exception:
494-
print("Scipy not available. Using internal integrator")
495493
self.methods["Automatic"] = self.methods["Internal"]
496494
self.methods["Simpson"] = self.methods["Internal"]
497495

@@ -1841,9 +1839,7 @@ def compute(user_hash, py_hashtype, py_format):
18411839
if py_format == "DecimalString":
18421840
return from_python(str(res))
18431841
elif py_format == "ByteArray":
1844-
print("Not implemented. Return a string")
1845-
return from_python(str(res))
1846-
# Default: Integer
1842+
return from_python(bytearray(res))
18471843
return from_python(res)
18481844

18491845
def apply(self, expr, hashtype, outformat, evaluation):

0 commit comments

Comments
 (0)