Skip to content

Update ABBA.py #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ABBA.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def get_patches(self, ts, pieces, string, centers):
for j in range(len(pieces)):
let = string[j] # letter
lab = ord(string[j])-97 # label (integer)
lgt = round(centers[lab,0]) # patch length
lgt = int(round(centers[lab,0])) # patch length
inc = centers[lab,1] # patch increment
inde = inds + int(pieces[j,0]);
tsp = ts[inds:inde+1] # time series patch
Expand Down Expand Up @@ -901,7 +901,7 @@ def plot_patches(self, patches, string, centers, ts0=0, xoffset=0): # pragma: no
for j in range(len(string)):
let = string[j] # letter
lab = ord(string[j])-97 # label (integer)
lgt = int(centers[lab,0]) # patch length
lgt = int(round(centers[lab,0])) # patch length
inc = centers[lab,1] # patch increment
inde = inds + lgt
xp = np.arange(inds,inde+1,1) # time series x-vals
Expand All @@ -915,7 +915,7 @@ def plot_patches(self, patches, string, centers, ts0=0, xoffset=0): # pragma: no
for j in range(len(string)):
let = string[j] # letter
lab = ord(string[j])-97 # label (integer)
lgt = round(centers[lab,0]) # patch length
lgt = int(round(centers[lab,0])) # patch length
inc = centers[lab,1] # patch increment
inde = inds + lgt
xp = np.arange(inds,inde+1,1) # time series x-vals
Expand Down