-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7058109
commit 0c96559
Showing
5 changed files
with
136 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
from typing import NewType, TypeVar | ||
|
||
import sciline | ||
import scipp as sc | ||
|
||
Reference = NewType('Reference', str) | ||
Sample = NewType('Sample', str) | ||
Run = TypeVar('Run', Reference, Sample) | ||
|
||
|
||
class Filename(sciline.Scope[Run, str], str): | ||
"""Filename of the raw data""" | ||
|
||
|
||
class Raw(sciline.Scope[Run, sc.DataArray], sc.DataArray): | ||
"""Raw data""" | ||
|
||
|
||
class WavelengthData(sciline.Scope[Run, sc.DataArray], sc.DataArray): | ||
"""Raw data transformed to wavelength""" | ||
|
||
|
||
class ThetaData(sciline.Scope[Run, sc.DataArray], sc.DataArray): | ||
"""Wavelength data transformed to theta""" | ||
|
||
|
||
class Experiment(sciline.Scope[Run, sc.DataArray], sc.DataArray): | ||
"""Experiment data with added coordinates: | ||
wavelength, incidence angle, and momentum transfer""" | ||
|
||
|
||
class FootprintCorrected(sciline.Scope[Run, sc.DataArray], sc.DataArray): | ||
"""Experiment data corrected by footprint on sample""" | ||
|
||
|
||
CalibratedReference = NewType('CalibratedReference', sc.DataArray) | ||
WithQResolution = NewType('WithQResolution', sc.DataArray) | ||
Normalized = NewType('Normalized', sc.DataArray) | ||
CountsByMomentumTransfer = NewType('CountsByMomentumTransfer', sc.DataArray) | ||
|
||
''' Parameters for the workflow ''' | ||
MomentumTransferBins = NewType('MomentumTransferBins', sc.Variable) | ||
WavelengthBins = NewType('WavelengthBins', sc.Variable) | ||
ThetaBins = NewType('ThetaBins', sc.Variable) | ||
|
||
|
||
class Rotation(sciline.Scope[Run, sc.Variable], sc.Variable): | ||
"""The rotation of the sample / the reference sample""" | ||
|
||
|
||
SpecularReflectionCoordTransformGraph = NewType( | ||
'SpecularReflectionCoordTransformGraph', dict | ||
) |