Closed ghost closed 6 years ago
I fixed by:
`peaks_binary_1 = np.nonzero(peaks_binary)[1]`
`peaks_binary_2 = np.nonzero(peaks_binary)[0]`
`length1 = len(peaks_binary_1)`
` length2 = len(peaks_binary_2)`
`if length1 > length2:`
`len_peak = length2`
` else:`
`len_peak = length1`
`peaks_with_score = []`
`for i in range(0, len_peak):`
`peaks_with_score.append(`
` (peaks_binary_1[i], peaks_binary_2[i]) + (map_ori[peaks_binary_2[i], peaks_binary_1[i]],)`
` )`
I debug and got
peaks_with_score = []
len(peaks)
throw a error, I fixed bylen(list(peaks))
. andfor x in peaks
not work with zip. I want to know "what x[1] and x[0] are" to convert for it work in python 3.6.5Anyone tell me ? Thank.