ImageD11.parameters | index /sware/exp/fable/standalone/redhate4-a64/lib/python2.5/site-packages/ImageD11/parameters.py

`Class to handle groups of parameters to be saved in and out
of files and edited in guis with the fixed/varied info etc`

Modules
`` |  |
logging |  |  |

Classes
`` |  | par parameters
class par
`` | `Represents a thing which can vary`
| Methods defined here: __init__(self, name, value, helpstring=None, vary=False, can_vary=False, stepsize=None) `name : unique key used as keyword arg to some functions value : value of the parameter helpstring : optional string to help user vary : value should be optimised can_vary : value is not fixed stepsize : guessestimated ball park step size (eg not 1e99!)` fromstringlist(self, sl) `to send to Java` tostringlist(self) `to catch from Java`
class parameters
`` | `Class to hold a set of named parameters`
| Methods defined here: __init__(self, **kwds) `name=value style arg list` addpar(self, par) `add a parameter object` dumbtypecheck(self) `Eventually parameter types (and units and fixed/varied to be specifieable For now it just tries to coerce to float, then does nothing` get(self, name) get_parameters(self) `Returns a dictionary of parameters` get_variable_list(self) get_variable_stepsizes(self) `stepsizes for optimisers` get_variable_values(self) `values of the parameters` loadparameters(self, filename) `Load parameters from a file` saveparameters(self, filename) `Write parameters to a file` set(self, name, value) set_parameters(self, d) `Updates the values of parameters` set_variable_values(self, values) `set values of the parameters` set_varylist(self, vl) update_other(self, other) `Synchronise an object with the values in this object` update_yourself(self, other) `Sychronise this parameter objects list of values with another object`