Skip to content

Commit

Permalink
shallow copy bug when masking overlapping segments
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuod committed Jul 23, 2021
1 parent 022c8e1 commit d1f3bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AviaNZ_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -4029,7 +4029,7 @@ def detectShapes(self):
# instantaneous frequency
spstart = math.floor(self.convertAmpltoSpec(segm[0]))
spend = math.ceil(self.convertAmpltoSpec(segm[1]))
sg = self.sp.sg[spstart:spend]
sg = np.copy(self.sp.sg[spstart:spend,:])
# mask freqs outside the currently marked segment
if segm[3]>0:
markedylow = math.floor(self.convertFreqtoY(segm[2]))
Expand Down

0 comments on commit d1f3bef

Please sign in to comment.