Skip to content
Snippets Groups Projects

Include variable names in tuple tool search

Merged Dillon Scott Fitzgerald requested to merge ttoolsearch_include_variables into master
2 files
+ 8
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 7
2
@@ -145,11 +145,16 @@ self.onmessage = async (event) => {
const top5 = Object.fromEntries(Object.entries(sortedSimDict).slice(0, 10));
let result = [];
Object.keys(top5).forEach((key) => {
let varpath = paths[vars.indexOf(key)];
if (key === "basic,charged: : ") {
return;
} // This is a workaround until we implement a fix in Analysis (and corresponding DaVinci release)
let description = key.substring(key.indexOf(":") + 2);
let variable = key.substring(0, key.indexOf(":") - 1);
let varpath = paths[vars.indexOf(description)];
let tupletool = dataKeys[varpath.split(".")[0]];
if (top5[key] > 0.86) {
if (result.length < 5) {
result.push([key, varpath.split(".").slice(-1), tupletool]);
result.push([description, variable, tupletool]);
}
}
});
Loading