Skip to content

Commit

Permalink
remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Feb 2, 2018
1 parent 0a69eec commit 6243683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/util/getColorScale.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
5 changes: 2 additions & 3 deletions src/util/localBranchingIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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');
};

0 comments on commit 6243683

Please sign in to comment.