Update GPR and SAR3D processing
This commit is contained in:
@@ -130,6 +130,27 @@ class _ProcessorTestCase(unittest.TestCase):
|
||||
|
||||
|
||||
class FedBackSweepsTest(_ProcessorTestCase):
|
||||
def test_mean_history_is_not_limited_by_transport_ring_capacity(self) -> None:
|
||||
self._live.processor_mode = "gpr"
|
||||
self._live.gpr_input_positions = self._live.gpr_output_positions = [0]
|
||||
self._live.gpr_background_subtract_enabled = True
|
||||
self._live.gpr_background_mean_count = 60
|
||||
self._live.gpr_min_depth_m, self._live.gpr_max_depth_m = .1, 1.5
|
||||
self._live.gpr_bp_ground_depth_m = 0.
|
||||
self._live_writer.write(self._live)
|
||||
start = time.monotonic_ns()
|
||||
for cid in range(1, 61):
|
||||
sweep = _sweep(cid, start + cid*1_000_000)
|
||||
sweep.traces[0].s21 *= (-1.)**np.arange(len(sweep.traces[0].s21))
|
||||
self._push([sweep])
|
||||
self._result_for_revision(0, cid)
|
||||
current = _sweep(61, start + 61_000_000)
|
||||
current.traces[0].s21[:] = 30.5 * (-1.)**np.arange(len(current.traces[0].s21))
|
||||
self._push([current])
|
||||
result = self._result_for_revision(0, 61)
|
||||
image = next(payload.image for payload in result.collection_payloads if payload.processing_name == "gpr_accumulator")
|
||||
self.assertFalse(np.any(image)) # Exact cancellation of the 60 preceding spectra (1…60).
|
||||
|
||||
def test_remove_targets_exact_sweep_with_reused_ids_and_preserves_missing_targets(self) -> None:
|
||||
start_ns = time.monotonic_ns()
|
||||
sweeps = [_sweep(cid, start_ns + index * 1_000_000)
|
||||
|
||||
Reference in New Issue
Block a user