Original index offset was right

marketstore_backup
Tyler Goodlet 2022-03-11 13:24:07 -05:00
parent d7c41ef406
commit 35fd39d769
1 changed files with 3 additions and 2 deletions

View File

@ -59,9 +59,9 @@ def hl2mxmn(
mxmn = np.empty(2*hls.size, dtype=np.float64) mxmn = np.empty(2*hls.size, dtype=np.float64)
x = np.empty(2*hls.size, dtype=np.float64) x = np.empty(2*hls.size, dtype=np.float64)
trace_hl(hls, mxmn, x, index[0]) trace_hl(hls, mxmn, x, index[0])
x = x + index[0] - 1 x = x + index[0]
if not downsample_by > 2: if downsample_by < 2:
return mxmn, x return mxmn, x
dsx, dsy = downsample( dsx, dsy = downsample(
@ -70,6 +70,7 @@ def hl2mxmn(
bins=downsample_by, bins=downsample_by,
) )
log.info(f'downsampling by {downsample_by}') log.info(f'downsampling by {downsample_by}')
print(f'downsampling by {downsample_by}')
return dsy, dsx return dsy, dsx