Skip to content
murmot

Results for “python numpy array example problem error pdf code site:mail.python.org format”

  • mail.python.org

    [Numpy-discussion] NEP: array API standard adoption (NEP 47)

    The array object ~~~~~~~~~~~~~~~~ Regarding the array object implementation, we plan to start with a regular Python class that wraps a ``numpy.ndarray`` instance. Attributes and methods can forward to that wrapped instance, applying input validation and implementing changed behaviour as needed.

  • mail.python.org

    [Numpy-discussion] Numpy 2D array from a list error

    Previous message (by thread): [Numpy-discussion] Numpy 2D array from a list error.Between you you seem to be right, it's a problem with loading the array of strings. There must be some large strings in the first 'rowname' column. If this column is left out, it works fine (even as strings).

  • mail.python.org

    [Numpy-discussion] Numpy 2D array from a list error

    Previous message (by thread): [Numpy-discussion] Numpy 2D array from a list error.apps/python/2.5.4/rhel4/lib/python2.5/site-packages/numpy/lib/io.py", line 505, in loadtxt X = np.array(X, dtype) ValueError: setting an array element with a sequence " @.

  • mail.python.org

    Old matplotlib animation now fails - mail.python.org

    I don't really know where to start > looking for information on how to correct my code. Hence, this > call for help. > > Any ideas? > This is from the help: """ Help on function set_data in module matplotlib.lines: set_data (self, *args) Set the x and y data.

  • mail.python.org

    [Numpy-discussion] Strange error taking log of PyObject array

    For object arrays the ufuncs look to the > objects themselves for implementation. In this case. The ufunc tries > to call the log method of each entry in the array. The first entry is a > float (which as the error shows) does not have a log attribute and so > you get a failure. >

  • mail.python.org

    [SciPy-user] optimize.fmin_l_bfgs_b and 'ABNORMAL ... - Python

    On 10/29/07, Ryan Krauss < ryanlists at gmail.com > wrote: > I am using optimize.fmin_l_bfgs_b and getting the following output: > > (array ( [ 8142982.47310469, 0. , 614438.11725001]), > 1.58474444864e+12, > {'funcalls': 21, > 'grad': array ( [ 0. , 952148.4375, 24414.0625]), > 'task': 'ABNORMAL_TERMINATION_IN_LNSRCH', > 'warnflag': 2}) > > What does this mean? I am trying to do a least ...

  • mail.python.org

    [AstroPy] Moving Ahead with Raw Image Conversion

    Now, the problem is that what I've done is to create a Python array of *integers*, then converted it to numpy form. In your example code, you've created a Python array of hexadecimal-valued bytes -- which I guess is what you get reading in your "raw" image, so that's OK.

  • mail.python.org

    Mailman 3 Search results for "closing csv file in numpy ...

    My original usecase for these was dealing with output data from Matlab where those users would use `squeeze ()` quite liberally. In addition, there was the problem of the implicit squeeze () in the numpy's loadtxt () for which I added the ndmin kwarg for in case an input CSV file had just one row or no rows. np.atleast_1d () is used in matplotlib in a bunch of places where inputs are allowed ...