[Tutor] Python Code Error

Jude Mudannayake Jude.Mudannayake at nccuk.com
Thu May 29 11:48:05 CEST 2014


Dear Sir/Madam

I am currently having some trouble with a python script that I developed and I would like to know if you could have a look. I basically am attaching the script as part of .py file in this email. The script in its essence is set up to take a set of data from a CSV file (containing x,y points) and then arrange them into coordinates points i.e. gather the two sets of x and y to form coordinates (x1,y1) and (x2, y2) etc... to be plotted as a sketch within ABAQUS FE software.. As I run the script I get an error stating the following:

'TypeError: point1; found int, expecting tuple' - This is referring to line 57 of the code which is essentially the critical command. It is a command that instructs to join coordinate points thus creating a line.

The thing is I am pretty sure I have  changed inputs into tuples from line 16 of the code to 19.

I am not too sure what the issue is here. Could you get back to me with what I should look to do in this case.

Thanks in Advance


Jude Mudannayake MSc BEng DIC
Stress Engineer
The National Composites Centre
Feynman Way Central,
Bristol & Bath Science Park,
Emersons Green,
Bristol,
BS16 7FS


Project part financed by the European Union with £9M from the European Regional Development Fund 2007-2013, through the South West Regional Development Agency under the Competitiveness Operating Programme.

---------------------------------------------------------------------------------------------------
This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of the National Composites Centre (NCC), the National Composites Centre Operations Limited (NCCOL) or any of its members or associates.
If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone.  Please contact the sender if you believe you have received this email in error.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140529/f6a04bd1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csv_coordinatesgen_part.py
Type: application/octet-stream
Size: 1901 bytes
Desc: csv_coordinatesgen_part.py
URL: <http://mail.python.org/pipermail/tutor/attachments/20140529/f6a04bd1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trial.csv
Type: application/octet-stream
Size: 137 bytes
Desc: trial.csv
URL: <http://mail.python.org/pipermail/tutor/attachments/20140529/f6a04bd1/attachment-0001.obj>


More information about the Tutor mailing list