From 62436830bf22b346b02c0f969458c09fd3088786 Mon Sep 17 00:00:00 2001 From: James Hadfield Date: Fri, 2 Feb 2018 14:04:16 -0800 Subject: [PATCH] remove console.logs --- src/util/getColorScale.js | 1 - src/util/localBranchingIndex.js | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/util/getColorScale.js b/src/util/getColorScale.js index 873befd86..efe7385e7 100644 --- a/src/util/getColorScale.js +++ b/src/util/getColorScale.js @@ -140,7 +140,6 @@ const getColorScale = (colorBy, tree, geneLength, colorOptions, version, absolut } } } else if (colorBy === "lbi") { - console.log("lbi", colorOptions[colorBy]) try { setLBI(tree.nodes, absoluteDateMaxNumeric, colorOptions.lbi.tau, colorOptions.lbi.timeWindow); // colorScale = minMaxAttributeScale(tree.nodes, "lbi", colorOptions.lbi); /* colour ramp over all values */ diff --git a/src/util/localBranchingIndex.js b/src/util/localBranchingIndex.js index ce4bee1df..86b27e598 100644 --- a/src/util/localBranchingIndex.js +++ b/src/util/localBranchingIndex.js @@ -69,8 +69,7 @@ Side effects: adds the following to nodes: Clealy n.attr.lbi is useful, but can we avoid storing those other values? */ export const setLBI = (nodes, maxDateInTree, LBItau, LBItimeWindow) => { - console.log("making LBI color scale") - console.time('LBI'); + // console.time('LBI'); const LBIcutoff = maxDateInTree - LBItimeWindow; nodes.forEach((d) => { if (d.children) { @@ -96,5 +95,5 @@ export const setLBI = (nodes, maxDateInTree, LBItau, LBItimeWindow) => { }); // normalize the LBI to range [0,1] nodes.forEach((d) => {d.attr.lbi /= maxLBI;}); - console.timeEnd('LBI'); + // console.timeEnd('LBI'); };