File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def get_available_algorithms() -> list[str]:
56
56
file_path = os .path .join (folder_path , filename )
57
57
with open (file_path ) as file :
58
58
searcher_config = yaml .safe_load (file )
59
- algorithm = searcher_config [ "searcher_init" ] .get ("algorithm " )
59
+ algorithm = searcher_config .get ("strategy " )
60
60
if algorithm :
61
61
prev_algorithms .add (algorithm )
62
62
@@ -81,7 +81,7 @@ def get_searcher_from_algorithm(algorithm: str) -> list[str]:
81
81
file_path = os .path .join (folder_path , filename )
82
82
with open (file_path ) as file :
83
83
searcher_config = yaml .safe_load (file )
84
- if searcher_config [ "searcher_init" ] .get ("algorithm " ) == algorithm :
84
+ if searcher_config .get ("strategy " ) == algorithm :
85
85
searchers .append (os .path .splitext (filename )[0 ])
86
86
87
87
return searchers
You can’t perform that action at this time.
0 commit comments