-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved HidraConstants into separate file refs #219
- Loading branch information
1 parent
d310134
commit c0e923d
Showing
12 changed files
with
77 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# flake8: noqa | ||
from .constants import HidraConstants | ||
|
||
__all__ = ['HidraConstants'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
class HidraConstants(object): | ||
""" | ||
Constants used for Hidra project file, workspace and related dictionary | ||
""" | ||
RAW_DATA = 'raw data' | ||
REDUCED_DATA = 'reduced diffraction data' | ||
REDUCED_MAIN = 'main' # default reduced data | ||
SUB_RUNS = 'sub-runs' | ||
CALIBRATION = 'calibration' | ||
SAMPLE_LOGS = 'logs' | ||
INSTRUMENT = 'instrument' | ||
GEOMETRY_SETUP = 'geometry setup' | ||
DETECTOR_PARAMS = 'detector' | ||
TWO_THETA = '2theta' | ||
L2 = 'L2' | ||
|
||
MONO = 'monochromator setting' | ||
WAVELENGTH = 'wave length' | ||
|
||
# Efficiency | ||
DETECTOR_EFF = 'efficiency calibration' | ||
RUN = 'run number' | ||
|
||
# Masks | ||
MASK = 'mask' # main entry name of mask | ||
DETECTOR_MASK = 'detector' | ||
SOLID_ANGLE_MASK = 'solid angle' | ||
|
||
# constants about peak fitting | ||
PEAK_PROFILE = 'peak profile' | ||
PEAKS = 'peaks' # main entry for fitted peaks' parameters | ||
PEAK_FIT_CHI2 = 'chi2' | ||
PEAK_PARAMS = 'parameters' # peak parameter values | ||
PEAK_PARAMS_ERROR = 'fitting error' # peak parameters' fitting error | ||
PEAK_PARAM_NAMES = 'parameter names' # peak parameter names | ||
PEAK_COM = 'C.O.M' # peak's center of mass | ||
BACKGROUND_TYPE = 'background type' | ||
|
||
# Special sample logs | ||
SUB_RUN_DURATION = 'sub-run duration' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters