Add flipper log delay correction
Unit Testing / test (3.10) (push) Successful in 54s
Unit Testing / test (3.12) (push) Successful in 51s
Unit Testing / test (3.11) (push) Successful in 58s
Unit Testing / test (3.8) (push) Successful in 53s
Unit Testing / test (3.9) (push) Successful in 50s

This commit is contained in:
glavic_a committed 2026-09-09 14:37:17 +02:00
1 parent ae49f3cb53
commit c8791a616c
2 files changed
+12 -1

No files matched your search

+9
View File
@@ -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"
+3 -1
View File
@@ -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)