paramagpy.metal.Metal.get_params

Metal.get_params(params)[source]

Get tensor parameters that have been scaled appropriately

This is often used to get parameter values during fitting where floating point errors would otherwise occur on the small values encountered.

Parameters

params (list of str) – each element of the list is a string that corresponds to an attribute of the Metal to be retrieved.

Returns

scaled_params – a list with respective scaled parameter values from the input.

Return type

list

Examples

>>> metal = Metal(axrh=[20E-32, 3E-32],position=[0.0,10E-10,-5E-10])
>>> metal.get_params(['ax','rh','x','y','z'])
[20.0, 3.0, 0.0, 10.0, -5.0]