diff --git a/EasyReflectometry/calculators/refl1d/wrapper.py b/EasyReflectometry/calculators/refl1d/wrapper.py index 92c775b3..68ae5ed4 100644 --- a/EasyReflectometry/calculators/refl1d/wrapper.py +++ b/EasyReflectometry/calculators/refl1d/wrapper.py @@ -166,7 +166,7 @@ def calculate(self, q_array: np.ndarray, model_name: str) -> np.ndarray: dq_vector = self._resolution_function(q_array) if is_constant_resolution_function(self._resolution_function): - # Compute percentage of Q and normalize + # Get percentage of Q and change from sigma to FWHM dq_vector = dq_vector * q_array / 100 / (2 * np.sqrt(2 * np.log(2))) q = names.QProbe( diff --git a/EasyReflectometry/calculators/refnx/wrapper.py b/EasyReflectometry/calculators/refnx/wrapper.py index 40d9082d..14d562bf 100644 --- a/EasyReflectometry/calculators/refnx/wrapper.py +++ b/EasyReflectometry/calculators/refnx/wrapper.py @@ -132,7 +132,8 @@ def calculate(self, q_array: np.ndarray, model_name: str) -> np.ndarray: dq_vector = self._resolution_function(q_array) if is_constant_resolution_function(self._resolution_function): - # For a constant resolution percentage refnx supports just to pass a float + # FWHM Percentage resolution is constant given as + # For a constant resolution percentage refnx supports to pass a scalar value rather than a vector dq_vector = dq_vector[0] return model(x=q_array, x_err=dq_vector)