Using the sum method of a numpy array raises a KeyError
EtienneDesticourt opened this issue · 0 comments
EtienneDesticourt commented
Hi,
Installed from the master branch in a virtual environment using python 3.8 on Linux.
How to replicate:
- Type in the mathinspector console:
import numpy as np
x = np.array([1, 2, 3])
x.sum()
A KeyError is raised:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/***/MathInspector/venv/lib/python3.8/site-packages/mathinspector/util/vdict.py", line 37, in __getitem__
return self.store[key]
KeyError: '__builtins__'
np.sum(x)
and sum(x)
both work without errors.
Thank you.