remove debug
Browse files- dist/main.bundle.js +0 -0
- dist/main.bundle.js.map +0 -0
- src/plotting.js +2 -8
- webpack.config.js +0 -1
dist/main.bundle.js
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
dist/main.bundle.js.map
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
src/plotting.js
CHANGED
@@ -288,13 +288,11 @@ const createTraces = (data, settings, colorsMapping, sliderValue) => {
|
|
288 |
if (!data) {
|
289 |
return []
|
290 |
}
|
291 |
-
const res = Array.from(Object.entries(data)
|
292 |
const y = rollingWindow(traceData.y, sliderValue);
|
293 |
-
console.log(y)
|
294 |
const x = traceData.x.slice(0, y.length);
|
295 |
const plotSettings = settings?.type === "bar" ? BAR_SETTINGS : LINE_SETTINGS;
|
296 |
const traceColor = traceData.color ?? getColorForTrace(key, colorsMapping, index)
|
297 |
-
console.log(traceColor)
|
298 |
const trace = _.merge({}, {
|
299 |
x: x,
|
300 |
y: y,
|
@@ -308,7 +306,7 @@ const createTraces = (data, settings, colorsMapping, sliderValue) => {
|
|
308 |
yaxis: traceData.yaxis ?? "y1"
|
309 |
}, plotSettings);
|
310 |
return trace
|
311 |
-
})
|
312 |
return res
|
313 |
}
|
314 |
|
@@ -354,9 +352,6 @@ export const init_ablation_plot = function () {
|
|
354 |
).then((response) => response.json());
|
355 |
const traces = (metricData?.traces ?? []).concat(createTraces(metricData.data, settings, colorsMapping, sliderValue))
|
356 |
const width = plot.parentElement.offsetWidth;
|
357 |
-
if (plotName == "plot-synth_data_contamination") {
|
358 |
-
console.log(metricData.layout, DEFAULT_LAYOUT, emptyData)
|
359 |
-
}
|
360 |
const layout = _.merge(
|
361 |
{},
|
362 |
DEFAULT_LAYOUT,
|
@@ -369,7 +364,6 @@ export const init_ablation_plot = function () {
|
|
369 |
},
|
370 |
metricData.layout
|
371 |
);
|
372 |
-
console.log(traces)
|
373 |
Plotly.react(plot, traces, layout);
|
374 |
|
375 |
window.addEventListener("resize", () => {
|
|
|
288 |
if (!data) {
|
289 |
return []
|
290 |
}
|
291 |
+
const res = Array.from(Object.entries(data)).map(([key, traceData], index) => {
|
292 |
const y = rollingWindow(traceData.y, sliderValue);
|
|
|
293 |
const x = traceData.x.slice(0, y.length);
|
294 |
const plotSettings = settings?.type === "bar" ? BAR_SETTINGS : LINE_SETTINGS;
|
295 |
const traceColor = traceData.color ?? getColorForTrace(key, colorsMapping, index)
|
|
|
296 |
const trace = _.merge({}, {
|
297 |
x: x,
|
298 |
y: y,
|
|
|
306 |
yaxis: traceData.yaxis ?? "y1"
|
307 |
}, plotSettings);
|
308 |
return trace
|
309 |
+
});
|
310 |
return res
|
311 |
}
|
312 |
|
|
|
352 |
).then((response) => response.json());
|
353 |
const traces = (metricData?.traces ?? []).concat(createTraces(metricData.data, settings, colorsMapping, sliderValue))
|
354 |
const width = plot.parentElement.offsetWidth;
|
|
|
|
|
|
|
355 |
const layout = _.merge(
|
356 |
{},
|
357 |
DEFAULT_LAYOUT,
|
|
|
364 |
},
|
365 |
metricData.layout
|
366 |
);
|
|
|
367 |
Plotly.react(plot, traces, layout);
|
368 |
|
369 |
window.addEventListener("resize", () => {
|
webpack.config.js
CHANGED
@@ -83,7 +83,6 @@ module.exports = {
|
|
83 |
{ from: "src/index.html", to: "index.html" },
|
84 |
],
|
85 |
}),
|
86 |
-
new BundleAnalyzerPlugin()
|
87 |
],
|
88 |
devtool: process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map',
|
89 |
devServer: {
|
|
|
83 |
{ from: "src/index.html", to: "index.html" },
|
84 |
],
|
85 |
}),
|
|
|
86 |
],
|
87 |
devtool: process.env.NODE_ENV === 'production' ? 'source-map' : 'eval-source-map',
|
88 |
devServer: {
|