Skip to content
murmot

Results for “python numpy array example problem error site:mail.python.org 2”

  • 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] Create numpy array from a list error

    Next message (by thread): [Numpy-discussion] Create numpy array from a list error.It seems like a memory problem to me. This was reinforced when I tried to > break the dataset into 3 chunks and stack the resulting arrays - I got an > error message saying "memory error". >

  • mail.python.org

    [Numpy-discussion] glibc error - mail.python.org

    Also, make sure you're using ATLAS 3.8.x, as I had problems with the 3.9 series (don't know if that would be an issue still). --Hoyt On Sat, Jan 24, 2009 at 8:47 PM, Gideon Simpson < simpson at math.toronto.edu > wrote: > Having built an up to date lapack and ATLAS against gcc 4.3.2, I tried > installing numpy 1.2.1 on Python 2.5.4.

  • mail.python.org

    [Numpy-discussion] np.fromstring and Python 3

    The following example illustrates a problem I'm encountering a problem with the np.fromstring function in Python 3The array 'a' should have the same size as 'string' since I'm using a 1-byte datatype. Is this a bug, or do I need to change the way I use this function in Python 3?

  • mail.python.org

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

    I ran the tests using the `runtests.py` script: *seed+1000, using 'python runtests.py -n' in the source directory:* 236 failed, 12881 passed, 1248 skipped, 585 deselected, 84 xfailed, 7 xpassed Most of the failures are in scipy.stats: *seed+1000, using 'python runtests.py -n -s stats' in the source directory:* 203 failed, 1034 passed, 4 skipped ...

  • mail.python.org

    [Numpy-discussion] A random.normal function with stdev as array

    It looks like some-kind of error is not being caught correctly. You should not get a segfault. Could you provide a stack-trace when the problem occurs? One issue is that vectorize is using object arrays under the covers which is consuming roughly 2x the memory than you may think.

  • mail.python.org

    [Tutor] Coin Toss Problems - Python

    Oct 1, 2010 · Dear Tutors, I have an assignment for class due in about 6 hours and I've been working on it for about 3 hours already, getting nowhere. My assignment is as follows: In this exercise, you will write several functions and use them in different ways. Follow the specifications; I insist. First, write a function that simulates flipping a coin. This function needs no parameters. When called, it ...

  • mail.python.org

    [Tutor] User input question - Python

    Aug 8, 2002 · I decided to follow up on myself and show an example of unexpected side-effects of the use of input (): >>> def silliness (): for i in range (1,4): print i >>> myInt = input ("Please input an integer: ") Please input an integer: silliness () 1 2 3 In this case, the programmer had a function called silliness (), which has nothing to do with the request for an integer to be input from the user ...

  • mail.python.org

    [Tutor] python: can't open file 'test.py' : [Errno 2] No such ...

    On Tue, Sep 30, 2008 at 2:58 PM, Pierre Dagenais < pierre.dagenais at ncf.ca >wrote: > The file test.py is in I:\Python25\MyCode, > if I enter: > > C:\>Python25\MyCode\python25 test.py at the DOS prompt, everything works > as I would expect. > > However when I enter the same command from any other directory I get this > error: > > C:\>python test.py > python: can't open file 'test.py' : [Errno ...