Skip to contents

Recompute the processing pipeline for a specific batch index or time, including statistics and coincidence analysis. This is useful when the pipeline stores only the latest `proc` due to memory constraints.

Usage

reproduce(
  batch_set,
  batch_at = NULL,
  batch_num = NULL,
  result,
  window_size = NULL,
  overlap = NULL
)

Arguments

batch_set

A list of batch Rist objects per detector (output of `batching_network()`).

batch_at

Optional numeric. GPS time (in seconds) indicating the batch to be reproduced.

batch_num

Optional integer. Index of the batch to be reproduced.

result

A list returned by stream(), containing res.net, arch_params, and other pipeline results.

window_size

Optional numeric. Coincidence window size (in seconds). If NULL, taken from result$arch_params.

overlap

Optional numeric. Overlap size (in seconds) for coincidence binning. If NULL, taken from result$arch_params.

Value

A list with the following components:

res.net

Updated pipeline result for the specified batch.

coinc.res

Coincidence analysis result for the specified batch.

batch_num

The index of the reproduced batch.

Details

Only one of batch_at or batch_num must be provided. The function reconstructs the previous state of the pipeline up to the selected batch, and re-executes the pipeline and coincidence analysis for that batch.

Examples

if (FALSE) { # \dontrun{
# Reproduce the 3rd batch
out <- reproduce(batch_set = my_batches, batch_num = 3, result = result)

# Or reproduce by time
out <- reproduce(batch_set = my_batches, batch_at = 1126259462.5, result = result)
} # }