wrong numpy function
This commit is contained in:
parent
ecd78bbb2d
commit
17136a3469
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue