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
+ 5
3
@@ -145,9 +145,11 @@ self.onmessage = async (event) => {
const top5 = Object.fromEntries(Object.entries(sortedSimDict).slice(0, 10));
let result = [];
Object.keys(top5).forEach((key) => {
if (key === "basic,charged: : ") {return;} // This is a workaround until we implement a fix in Analysis (and correponsind DaVinci release)
let description = key.substring(key.indexOf(":")+2)
let variable = key.substring(0, key.indexOf(":")-1)
if (key === "basic,charged: : ") {
return;
} // This is a workaround until we implement a fix in Analysis (and correponsind 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) {
Loading