Cannot open the file 'gts.coarse.gts'

Asked by lully

Hi,all
     I tried to follow the example 'gts-horse.py'. There is an error to open the GTS file( 'gts.coarse.gts'):RuntimeError: expecting a number (z coordinate).

Thanks for your help
lully

the details:
~$ yade gts-horse.py

Running script gts-horse.py
Traceback (most recent call last):
  File "/usr/bin/yade", line 183, in runScript
    execfile(script,globals())
  File "gts-horse.py", line 29, in <module>
    surf=gts.read(open('horse.coarse.gts'))
RuntimeError: expecting a number (z coordinate)

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Anton Gladky
Solved:
Last query:
Last reply:
Revision history for this message
Best Anton Gladky (gladky-anton) said :
#1

Hi,

I have just checked the script using yade-daily [1] and it works.

Cheers,

Anton

[1] https://answers.launchpad.net/yade/+faq/1727

Revision history for this message
lully (lullywood) said :
#2

I have changed my Yade version to yade-daily.But problems still exist.
I think the problem is caused the 'gts.coarse.gts' file (trunk\examples\gts-horse, getting by 'git clone git://github.com/yade/trunk.git' and without compliation). So, I found another "gts.coarse.gts" file in the folder "/usr/share/doc/yade/example/gts-horse", and it work really.
I tried to compare the differences between the two 'gts.coarse.gts' using the software 'meld'. However, the result shows that the two file is same. Then, I checked the attribute of the two ones, the sizes of good one was 30 kb and the bad one was 32 KB.
Finally, I used the 'notepad'(in windows xp) to open the two files and found the 'line Break' was identifiably different.

Revision history for this message
lully (lullywood) said :
#3

Thanks Anton Gladky, that solved my question.