Skip to content

Commit c162226

Browse files
authored
move constant (#157)
1 parent 0bc90dc commit c162226

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

EasyReflectometry/calculators/wrapper_base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33

44
import numpy as np
55

6+
from EasyReflectometry.experiment import DEFAULT_RESOLUTION_FWHM_PERCENTAGE
67
from EasyReflectometry.experiment import percentage_fhwm_resolution_function
78

8-
DEFAULT_RESOLUTION_FWHM_PERCENTAGE = 5.0
9-
109

1110
class WrapperBase:
1211
def __init__(self):

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,

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)