wrong numpy function

This commit is contained in:
Sakimori 2025-07-31 16:39:08 -04:00
parent ecd78bbb2d
commit 17136a3469
No known key found for this signature in database

View file

@ -128,10 +128,9 @@ def addBurst(values):
#get bandpass and store in bpWeights #get bandpass and store in bpWeights
bpWeights = create.filter_weights(spectra) bpWeights = create.filter_weights(spectra)
logger.info(f"{basename} loaded. Sampling pulse {values.nsamp} times.")
pulseNum = rng.integers(1, high=MAX_BURSTS, endpoint=True) pulseNum = rng.integers(1, high=MAX_BURSTS, endpoint=True)
starts = np.arange(samples//4, 3*(samples//4), num=pulseNum, dtype=int) logger.info(f"{basename} loaded. Sampling {pulseNum} pulse(s) {values.nsamp} times.")
starts = np.linspace(samples//4, 3*(samples//4), num=pulseNum, dtype=int)
while pulseNum > 0: while pulseNum > 0:
start = starts[pulseNum] start = starts[pulseNum]
#create pulse #create pulse