limits
SLD_LIMITS = (-1.0, 10.0)
module-attribute
SCALE_LIMITS = (0.0, 10.0)
module-attribute
apply_default_limits(parameter, kind)
Apply default min/max to a parameter if current bounds are infinite.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parameter
|
Parameter
|
The parameter to adjust. |
required |
kind
|
str
|
One of 'thickness', 'roughness', 'sld', 'isld', 'rho_m', 'scale'. |
required |
Source code in src/easyreflectometry/limits.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | |
_apply_percentage_limits(parameter)
Set min to 50% and max to 200% of the current value, only if current bounds are inf.
Source code in src/easyreflectometry/limits.py
34 35 36 37 38 39 40 41 42 | |
_apply_fixed_limits(parameter, low, high)
Set fixed min/max, only if current bounds are inf.
Source code in src/easyreflectometry/limits.py
45 46 47 48 49 50 | |