yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13865
[Question #407555]: read Parameters from external file (non batch mode)
New question #407555 on Yade:
https://answers.launchpad.net/yade/+question/407555
Hello everyone,
this is a pretty simple question, at least that is what I supposed until I have not found anything after searching for over 1,5 hours. I am hoping someone can help me. To be mentioned: I am neither the fittest in Python nor am I an advanced yade user.
My problem: how to load/read parameter values from an external file, when calling the actual script.py file which contains all the other normal simulation orders and parameters. I just want to have my main script.py file, and in order to not having to open it everytime and scrolling around until all the parameters were adjusted, I would like to have a seperate small file which contains selected variables and their values, that will be most often changed due to experimentation.
I explicitly DO NOT want to run it in batch mode. I am very well aware of that option, but it doesnt suit my needs.
I did also stumble across this question: https://answers.launchpad.net/yade/+question/244203
It is a very similar question (at least from the title), though it doesnt seem to answer my question at all. It is being mentioned to take a look at the ymport module for loading files into yade, though it is only for geometry and position of spheres as far as I understand? So not what I am looking for.
So is there any python or yade command/module which allows to read variable values from external (text)-files?
--
You received this question notification because your team yade-users is
an answer contact for Yade.