mailThe relax status singleton object.


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Edward d'Auvergne on February 25, 2010 - 14:40:
Hi Michael,

I have now created the status singleton object
(https://mail.gna.org/public/relax-devel/2010-01/msg00094.html).  To
have access to this you will need, on a clean copy of the branch (svn
st shows nothing), to type:

$ svnmerge.py merge

Then check that there are no conflicts (if so, ask me about this
before doing anything else!), and finally:

$ svn ci -F svnmerge-commit-message.txt

You can then import as:

from status import Status

And then instantiate somewhere in the code with:

status = Status()

For the relax controller updating, you will then be able to access the
following:

status.mc_number = None    # The MC sim number.
status.dAuvergne_protocol.round = None    # The round of optimisation,
i.e. the global iteration.
status.dAuvergne_protocol.diff_model = None    # The global diffusion model.
status.dAuvergne_protocol.mf_models = None         # The list of
model-free models for optimisation, i.e. the global iteration.
status.dAuvergne_protocol.local_mf_models = None   # The list of
model-free local tm models for optimisation, i.e. the global
iteration.
status.dAuvergne_protocol.current_model = None     # The current
model-free model.
status.dAuvergne_protocol.convergence = False      # The convergence
of the global model.

Have a play with this and see if you can work out how to use this.
The '=' here shows the default value when not in use.  Note that
cdp.sim_number is the total number of Monte Carlo simulations, you
should be able to access this without imports.

Regards,

Edward



Related Messages


Powered by MHonArc, Updated Fri Feb 26 00:20:56 2010