goldpan.operations¶
Operations: pulses in, new (modified) pulses out – same pulse-shaped family.
Every function takes an array shaped (..., n_samples) and returns an array
of the same leading shape (trailing/sample axis may shrink, e.g. trim_glitch),
never a scalar or boolean – that’s what distinguishes an operation from a
quantity or a cut. None of these mutate their input in place.
Functions
|
Subtract each pulse's own pretrigger mean (see |
|
Clip every sample to |
|
Drop the leading |
- goldpan.operations.baseline_subtract(pulses, config)[source]¶
Subtract each pulse’s own pretrigger mean (see
goldpan.quantities.pretrigger_mean).- Parameters:
config (PulseConfig)
- goldpan.operations.trim_glitch(pulses, config)[source]¶
Drop the leading
config.glitch_samplessamples from every pulse.Shortens the sample axis by
glitch_samples– downstream sample indices (e.g. fromgoldpan.quantities.rise_sample) computed on the untrimmed array will no longer line up after this.- Parameters:
config (PulseConfig)