Skip to content

Commit

Permalink
remove unecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Feb 18, 2025
1 parent cceccc5 commit f3158d8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions notebooks/PhonemeAnalysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1252,9 +1252,6 @@
" seq1_vectors = list(range(len(seq1)))\n",
" seq2_vectors = list(range(len(seq2)))\n",
" \n",
" if not seq1_vectors or not seq2_vectors:\n",
" raise ValueError(\"One or both sequences could not be converted to feature vectors.\")\n",
" \n",
" distance, path = fastdtw(seq1_vectors, seq2_vectors, dist=lambda x, y: 0 if seq1[int(x)] == seq2[int(y)] else 1)\n",
" \n",
" aligned_seq1 = []\n",
Expand Down

0 comments on commit f3158d8

Please sign in to comment.