Browse Source

Fix count_analysis

feature/find_holes
Figg 9 months ago
parent
commit
8e74ec6a91
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      million/analyze/count_analysis.py

+ 5
- 3
million/analyze/count_analysis.py View File

1
+import million.analyze.message_evaluation as msg_val
2
+
1
 def check_extra_or_missing_letter(word, reference):
3
 def check_extra_or_missing_letter(word, reference):
2
     len_word = len(word)
4
     len_word = len(word)
3
     len_ref = len(reference)
5
     len_ref = len(reference)
32
 
34
 
33
 def check_typo(word, reference):
35
 def check_typo(word, reference):
34
     if len(reference) == len(word):
36
     if len(reference) == len(word):
35
-        return _check_single_letter_differ(word, reference) or \
36
-            _check_letter_swap(word, reference)
37
+        return check_single_letter_differ(word, reference) or \
38
+            check_letter_swap(word, reference)
37
     else:
39
     else:
38
-        return _check_extra_or_missing_letter(word, reference)
40
+        return check_extra_or_missing_letter(word, reference)
39
 
41
 
40
 
42
 
41
 def find_value_around_index(messages, value, idx, amplitude) -> int:
43
 def find_value_around_index(messages, value, idx, amplitude) -> int:

Loading…
Cancel
Save