trelis python problems

General topics about Trelis/Cubit, such as localization, GUI, etc.

trelis python problems

Postby dorsar » Thu Apr 03, 2014 7:13 pm

Recently installed trelis 14.0.4.
I have two problems :
1. command 'import numarray' gives import error 'no module named numarray'.
2. index error 'tuple index out of range' for my python script line :
'txt=='%10i %10i %10i %10i %10i\n' % (h,nodes[0],\
nodes[1],nodes[2],nodes[3])'
There was no problem when i was running it with Cubit13.0.
Please help me.
dorsar
 
Posts: 1
Joined: Thu Apr 03, 2014 6:59 pm

Re: trelis python problems

Postby csimsoft Moderator » Mon Apr 21, 2014 4:09 pm

1. numarray is a python extension that does not come standard in python. For more details, see the following links:

http://structure.usc.edu/numarray/node11.html
http://structure.usc.edu/numarray/node12.html

2. Try printing out 'nodes' before executing that script line to make sure your array is four deep. The python tab in Trelis will let you print out tuples like so: print nodes
csimsoft
csimsoft Moderator
 
Posts: 249
Joined: Tue Feb 14, 2012 5:59 pm
Location: American Fork, UT


Return to General Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Search / Mark

User Control Panel

Login

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 58 on Mon Jun 26, 2017 4:19 pm

Users browsing this forum: No registered users and 1 guest