Too many indices

Discussion in 'Python' started by satish, Jan 26, 2004.

  1. satish

    satish Guest

    Hi all,

    I tried to run a small script when I got the following IndexError. Can someone
    help me in explaining this error ?

    Traceback (most recent call last):
    File "satish.py", line 36, in ?
    mesh = Mesh(db['x'], db['y'], db['z'])
    File "/usr/lib/python2.2/site-packages/LESTool/CFD_database.py", line 208,
    in __getitem__
    self.readCoords()
    File "/usr/lib/python2.2/site-packages/LESTool/CFD_database.py", line 239,
    in readCoords
    self.data[cgns.x] = MA.array(self.data['coordinates'][0,:,:,:])
    IndexError: too many indices

    Thanks

    Regards,
    Satish


    --
    SATISH KUMAR CHIMAKURTHI
    Graduate Teaching Assistant
    CFD GROUP
    UNIVERSITY OF KENTUCKY
    LEXINGTON
    KENTUCKY - 40508
    Email:
    Mobile: 859-312-8425
     
    satish, Jan 26, 2004
    #1
    1. Advertisements

  2. satish

    Amy G Guest

    Posting your script would be helpful.

    Hi all,

    I tried to run a small script when I got the following IndexError. Can
    someone
    help me in explaining this error ?

    Traceback (most recent call last):
    File "satish.py", line 36, in ?
    mesh = Mesh(db['x'], db['y'], db['z'])
    File "/usr/lib/python2.2/site-packages/LESTool/CFD_database.py", line 208,
    in __getitem__
    self.readCoords()
    File "/usr/lib/python2.2/site-packages/LESTool/CFD_database.py", line 239,
    in readCoords
    self.data[cgns.x] = MA.array(self.data['coordinates'][0,:,:,:])
    IndexError: too many indices

    Thanks

    Regards,
    Satish


    --
    SATISH KUMAR CHIMAKURTHI
    Graduate Teaching Assistant
    CFD GROUP
    UNIVERSITY OF KENTUCKY
    LEXINGTON
    KENTUCKY - 40508
    Email:
    Mobile: 859-312-8425
     
    Amy G, Jan 27, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.