wrong numpy function
This commit is contained in:
parent
ecd78bbb2d
commit
17136a3469
|
@ -126,12 +126,11 @@ def addBurst(values):
|
|||
spectra = filterbankObj.get_data(0, samples)
|
||||
|
||||
#get bandpass and store in bpWeights
|
||||
bpWeights = create.filter_weights(spectra)
|
||||
|
||||
logger.info(f"{basename} loaded. Sampling pulse {values.nsamp} times.")
|
||||
bpWeights = create.filter_weights(spectra)
|
||||
|
||||
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:
|
||||
start = starts[pulseNum]
|
||||
#create pulse
|
||||
|
|
Loading…
Reference in a new issue