Skip to content

Commit

Permalink
bugfix for small files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nirosha201 committed Aug 20, 2020
1 parent d32ca09 commit f37f2c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions WaveletSegment.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,11 @@ def detectCalls(self, wf, nodelist, subfilter, rf=True, annotation=None, window=
# nw=int(np.ceil(N / inc_sr))
# detected = np.zeros(nw)

# Compute the energy curve (a la Jinnai et al. 2012)
E = ce.EnergyCurve(C, M)
if len(C) > 2*M+1:
# Compute the energy curve (a la Jinnai et al. 2012)
E = ce.EnergyCurve(C, M)
else:
break
# Compute threshold using mean & sd from non-call sections
# Virginia: changed the base. I'm using resol_sr as a base. Cause I'm looking for detections on windows.
#This step is not so clear for me
Expand Down

0 comments on commit f37f2c5

Please sign in to comment.