Add flipper log delay correction
This commit is contained in:
1 parent
ae49f3cb53
commit
c8791a616c
2 files changed
+12
-1
No files matched your search
@@ -499,6 +499,15 @@ class ReflectivityReductionConfig(ArgParsable):
|
||||
},
|
||||
)
|
||||
|
||||
flipperMaxDelay: int = field(
|
||||
default=4,
|
||||
metadata={
|
||||
'short': 'fmd',
|
||||
'group': 'data manicure',
|
||||
'help': 'Remove all neutron pulses that are within flipperMaxDelay of a change in spin state',
|
||||
},
|
||||
)
|
||||
|
||||
class OutputFomatOption(StrEnum):
|
||||
Rqz_ort = "Rqz.ort"
|
||||
Rqz_orb = "Rqz.orb"
|
||||
|
||||
@@ -185,7 +185,9 @@ class ReflectivityReduction:
|
||||
for pi in pols:
|
||||
plabel = const.polarizationLabels[pi]
|
||||
pol_filter = FilterByLog(f'polarization_config_label=={pi}',
|
||||
remove_switchpulse=True) | ApplyMask()
|
||||
remove_switchpulse=True,
|
||||
pre_switch=self.config.reduction.flipperMaxDelay
|
||||
) | ApplyMask()
|
||||
logging.info(f' filter {plabel} using polarization_config_label=={pi}')
|
||||
pol_filter(self.dataset)
|
||||
self.dataset.update_header(self.header)
|
||||
|
||||
Reference in new issue
Block a user