Skip to content

Commit

Permalink
Minor fix to createJunkPlots() to actually show window
Browse files Browse the repository at this point in the history
  • Loading branch information
ahotovec committed Jan 6, 2023
1 parent 745b038 commit d2174b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions redpy/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2016,9 +2016,7 @@ def createJunkPlots(jtable, opt):

for s in range(opt.nsta):
waveformc = r['waveform'][s*opt.wshape:(s+1)*opt.wshape]
tmpc = waveformc[max(0, r['windowStart']-int(
opt.ptrig*opt.samprate)):min(opt.wshape,
r['windowStart']+int(opt.atrig*opt.samprate))]
tmpc = waveformc[r['windowStart']:r['windowStart']+opt.wshape]
datc = tmpc[int(opt.ptrig*opt.samprate - opt.winlen*0.5):int(
opt.ptrig*opt.samprate + opt.winlen*1.5)]
datc = datc/np.max(np.abs(datc)+1.0/1000)
Expand Down

0 comments on commit d2174b1

Please sign in to comment.