Re: [Yade-users] [Question #696055]: O.load: Input stream error

2021-03-15 Thread Huang peilun
Question #696055 on Yade changed:
https://answers.launchpad.net/yade/+question/696055

Huang peilun posted a new comment:
Thanks a lot.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #696055]: O.load: Input stream error

2021-03-15 Thread Jan Stránský
Question #696055 on Yade changed:
https://answers.launchpad.net/yade/+question/696055

Jan Stránský posted a new comment:
Not updating often is one approach.
Re-saving the files for next version is another approach.

Yet another approach, IMO preferable, is not to O.save :-) E.g. if you only 
need packing (and you create O.engines, materials etc. from scratch), then you 
can export.text / ymport.text particle positions.
But it depends on specific use case (which is not described much here), there 
are cases where O.save might be really needed..

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #696055]: O.load: Input stream error

2021-03-15 Thread Huang peilun
Question #696055 on Yade changed:
https://answers.launchpad.net/yade/+question/696055

Status: Answered => Solved

Huang peilun confirmed that the question is solved:
Thanks Jan Stránský, that solved my question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #696055]: O.load: Input stream error

2021-03-15 Thread Huang peilun
Question #696055 on Yade changed:
https://answers.launchpad.net/yade/+question/696055

Huang peilun posted a new comment:
Thanks. Now I understand. I saved the files with the old version. But in
this case if I want to repeat the simulation or try some other
conditions, I should not update Yade often?

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #696055]: O.load: Input stream error

2021-03-15 Thread Jan Stránský
Question #696055 on Yade changed:
https://answers.launchpad.net/yade/+question/696055

Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

how did you saved the files you want to load? With the same version you
load it, or with the older version of Yade? If the older version, this
behavior is expected [1] ("The file should be saved in the same version
of Yade, otherwise compatibility is not guaranteed")

cheers
Jan

[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Omega.load

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp