.xml file

Asked by frankie

Hello,

I did a simulation with Yade of a bed packing and save it with o.save(finalstate.xml).
When I want to open it with yade (>yade finalestate.xml) , no particle is detected by
 Yade, there is a blank screen instead on the qt screen.
It used to work correctly with an older version of Yade.
I can't understand this behavior.

Frankie

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1

Did you try with .yade save files ? (You have to re-create new saved files obviously)

Revision history for this message
Jérôme Duriez (jduriez) said :
#2

Or using O.load() from Yade prompt ?

(in fact I never load saved files the same way you did - directly with yade savedFile from terminal - and, on my PC it does not work with .yade either)

Revision history for this message
frankie (rioualfrancois) said :
#3

Hello,

I tried with .yade saved files. the same thing happens.

Frankie

Revision history for this message
frankie (rioualfrancois) said :
#4

Hello Jerome,

I used O.load() from yade prompt.
the answer is: name 'finalstate' is not defined.
whereas the file exists and is not empty.

Frankie

Revision history for this message
Jérôme Duriez (jduriez) said :
#5

You got this answer directly after O.load('finalstate.xml') or O.load('finalstate.yade') ?

Here if I try:
Yade [3]: O.load('nonExisting.yade')

I got another message, namely:
RuntimeError: Simulation file to load doesn't exist: nonExisting.yade

Revision history for this message
frankie (rioualfrancois) said :
#6

...When I do O.load(finalstate.xml) or O.load(finalstate.yade), I got the same answer:

name 'finalstate' is not defined.

 it doesn't say indeed that the file does not exist.
I can't understand.

Frankie

Revision history for this message
Jérôme Duriez (jduriez) said :
#7

Then, you would have to state what yade (/ Linux ?) version you're using, and perhaps consider to open a bug report ? (see "Bugs" top of this web page)

Before that, you may try to save from different simulations (nothing, one sphere, two spheres..) as further investigations. I do not understand either your problem...

Revision history for this message
Anton Gladky (gladky-anton) said :
#8

2015-06-10 21:46 GMT+02:00 frankie <email address hidden>:
> frankie is still having a problem:
> ...When I do O.load(finalstate.xml) or O.load(finalstate.yade), I got
> the same answer:
>
> name 'finalstate' is not defined.

Try O.load("finalstate.xml"), if finalstate.xml in your current directory.

Anton

Revision history for this message
frankie (rioualfrancois) said :
#9

if I do O.load("finalstate.xml"), the message is:

Runtime error: input stream error

I can't understand it.

Frankie

Revision history for this message
frankie (rioualfrancois) said :
#10

here is a copy of my file finale_state2.xml:

https://drive.google.com/file/d/0Bx8LbbJQTUKRd2R1YjhTMWhxYXc/view?usp=sharing

Frankie

Revision history for this message
frankie (rioualfrancois) said :
#11

here is a copy of my file finale_state2.xml:
https://drive.google.com/file/d/0Bx8LbbJQTUKRd2R1YjhTMWhxYXc/view?usp=sharing

can you open it normally with your version of yade ?

thanks frankie

Revision history for this message
Jan Stránský (honzik) said :
#12

Hello,
did you use the same Yade version for both saving and loading, or you did
some update in the meantime?
Jan

2015-06-16 13:31 GMT+02:00 frankie <email address hidden>:

> Question #267956 on Yade changed:
> https://answers.launchpad.net/yade/+question/267956
>
> frankie gave more information on the question:
>
> here is a copy of my file finale_state2.xml:
>
> https://drive.google.com/file/d/0Bx8LbbJQTUKRd2R1YjhTMWhxYXc/view?usp=sharing
>
> can you open it normally with your version of yade ?
>
> thanks frankie
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
frankie (rioualfrancois) said :
#13

Hello,

It's the same Yade version (precompiled last yade version on ubuntu )

frankie

Revision history for this message
Launchpad Janitor (janitor) said :
#14

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jan Stránský (honzik) said :
#15

Hello Frankie,

what version of Yade do you use?

could you also provide the script where you save the file?

Thanks
Jan