473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Too many indices

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: sk*****@engr.uky.edu
Mobile: 859-312-8425

Jul 18 '05 #1
1 5420
Posting your script would be helpful.

"satish" <sk*****@engr.uky.edu> wrote in message
news:ma**************************************@pyth on.org...
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: sk*****@engr.uky.edu
Mobile: 859-312-8425
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: dan | last post by:
I was recently surprised, and quite shocked in fact, to find that Python treats negative indices into sequence types as if they were mod(length-of-sequence), at least up to -len(seq). This fact...
8
by: Steven Bethard | last post by:
I have a list of strings that looks something like: lst = The parentheses in the labels indicate where an "annotation" starts and ends. So for example, the label '(*)' at index 2 of the list...
5
by: Ross MacGregor | last post by:
I have a very simple yet complicated problem. I want to generate a random list of indices (int's) for a container. Let's say I have a container with 10 items and I want a list of 3 random...
7
by: Bart Torbert | last post by:
Hello, I am starting to examine using SQLServer instead of Oracle. I went through the SQLServer import utility to copy tables from Oracle into SQLServer. I then checked the size of the...
9
by: Richard A. DeVenezia | last post by:
Can someone explain why JavaScript arrays are not allowed to have objects as indices ? Would solve many a hashtable lookup problems.... -- Richard A. DeVenezia
9
by: Randell D. | last post by:
Folks, I can program fairly comfortably in PHP and can, for the most part using these skills and others that I've picked up over the years manage to read/understand most code in Javascript... so...
8
by: Bernard Dhooghe | last post by:
Environment: DB2 UDB LUW. The be able to use on-line reorg, indices must be of type-2. 1. How to migrate a 8.1 database that was created on 7.1 (with type-1 indices)at once to type-2 indices ...
4
by: Sujeet | last post by:
Hey guys, I want to import a database from SQL Server 2000 to MS Access with all indices and keys along with the tables. DTS does not export indices and keys, only the structure and the data. ...
3
by: GavinCrooks | last post by:
The indices method of slice doesn't seem to work quite how I would expect when reversing a sequence. For example : '43210' '43210' So a slice with a negative step (and nothing else) reverses...
2
by: smichr | last post by:
It seems to me that the indices() method for slices is could be improved. Right now it gives back concrete indices for a range of length n. That is, it does not return any None values. Using an...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.