only multiple pulses in random run

This commit is contained in:
Sakimori 2025-08-08 11:20:30 -04:00
parent 0ce2e92adc
commit 66886fac71
No known key found for this signature in database

View file

@ -140,7 +140,10 @@ def addBurst(values):
#get bandpass and store in bpWeights
bpWeights = create.filter_weights(spectra)
pulseNum = rng.integers(1, high=MAX_BURSTS, endpoint=True)
if values.rsamp:
pulseNum = rng.integers(1, high=MAX_BURSTS, endpoint=True)
else:
pulseNum = 1
logger.info(f"{basename} loaded. Injecting {pulseNum} pulses.")
starts = np.linspace(samples//4, 3*(samples//4), num=pulseNum, dtype=int)
for run in range(pulseNum):