Skip to content

Commit 3c69cce

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents 88a7309 + c162226 commit 3c69cce

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/easyreflectometry/calculators/wrapper_base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
import numpy as np
55

6-
from easyreflectometry.experiment import percentage_fhwm_resolution_function
7-
8-
DEFAULT_RESOLUTION_FWHM_PERCENTAGE = 5.0
6+
from EasyReflectometry.experiment import DEFAULT_RESOLUTION_FWHM_PERCENTAGE
7+
from EasyReflectometry.experiment import percentage_fhwm_resolution_function
98

109

1110
class WrapperBase:

src/easyreflectometry/experiment/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from .model import Model
22
from .model_collection import ModelCollection
3+
from .resolution_functions import DEFAULT_RESOLUTION_FWHM_PERCENTAGE
34
from .resolution_functions import linear_spline_resolution_function
45
from .resolution_functions import percentage_fhwm_resolution_function
56

67
__all__ = (
8+
DEFAULT_RESOLUTION_FWHM_PERCENTAGE,
79
percentage_fhwm_resolution_function,
810
linear_spline_resolution_function,
911
Model,

src/easyreflectometry/experiment/resolution_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
import numpy as np
1212

13+
DEFAULT_RESOLUTION_FWHM_PERCENTAGE = 5.0
14+
1315

1416
def percentage_fhwm_resolution_function(constant: float) -> Callable[[np.array], np.array]:
1517
"""Create a resolution function that is constant across the q range.

0 commit comments

Comments
 (0)