paramagpy.metal.Metal.set_params

Metal.set_params(paramValues)[source]

Set tensor parameters that have been scaled appropriately

This is the inverse of the method <get_params>

Parameters

paramValues (list of tuple) – each element is a tuple (variable, value) where ‘variable’ is the string indentifying the attribute to be set, and ‘value’ is the corresponding value

Examples

>>> metal = Metal()
>>> metal.set_params([('ax',20.0),('rh',3.0)])
>>> metal.axrh
[2.e-31 3.e-32]