This isn't just a Numpy issue. You are interested in Python's eval().
Keep in mind that any programming language that blurs the line between code
and data (many do not) has a potential security vulnerability. What if
your user doesn't type
"x = 2*np.sin(2*np.pi*44100*t+np.pi/2)"
but instead
Thank you Juan, I've just joined GitHub and I've submitted the description
of the bug.
On Tue, Jul 19, 2016 at 2:55 PM, Juan Nunez-Iglesias <jni.s...@gmail.com>
wrote:
> https://github.com/numpy/numpy/issues
>
>
> From: John Ladasky <jlada...@itu.edu> <jlada...@i
016 at 10:41 PM, John Ladasky <jlada...@itu.edu> wrote:
>
> > Should this be considered a Numpy bug, or is there some reason that
> set_printoptions would legitimately need to accept a dictionary as a single
> argument?
>
> There is no such reason. One could certainly ad
Hi there,
I've been using Numpy for several years and appreciate it very much.
The following minimal code has been tried on Python 3.4 and 3.5, with Numpy
1.8 and Numpy 1.11, respectively. I want to temporarily change the way
that a Numpy array is printed, then change it back.
import numpy as
On 08/22/2014 11:14 PM, Cleo Drakos wrote:
How can I convert this numpy array so that its first element belongs
to (49.875N,179.625W), i.e., upper left latitude and longitude
respectively; and the last element belong to (49.625S,179.875E), i.e.,
lower right latitute and longitude