mirror of
https://github.com/correl/dejavu.git
synced 2024-11-23 19:19:53 +00:00
Update fingerprint.py
This commit is contained in:
parent
375189cf70
commit
a97ab6d35c
1 changed files with 2 additions and 2 deletions
|
@ -5,6 +5,7 @@ from scipy.ndimage.filters import maximum_filter
|
|||
from scipy.ndimage.morphology import (generate_binary_structure,
|
||||
iterate_structure, binary_erosion)
|
||||
import hashlib
|
||||
from operator import itemgetter
|
||||
|
||||
|
||||
IDX_FREQ_I = 0
|
||||
|
@ -97,7 +98,6 @@ def generate_hashes(peaks, fan_value=DEFAULT_FAN_VALUE):
|
|||
"""
|
||||
fingerprinted = set() # to avoid rehashing same pairs
|
||||
|
||||
from operator import itemgetter
|
||||
peaks.sort(key=itemgetter(1))
|
||||
|
||||
for i in range(len(peaks)):
|
||||
|
|
Loading…
Reference in a new issue