From 7e3ad71171b001dedef608a4210c3d59fdc558ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eneko=20Uru=C3=B1uela?= Date: Fri, 11 Mar 2022 15:51:47 +0100 Subject: [PATCH] Added manual classification rationale to output table --- .env | 2 +- package.json | 2 +- src/Plots/Plots.js | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 13e4368..d4a5628 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ INLINE_RUNTIME_CHUNK=false GENERATE_SOURCEMAP=false SKIP_PREFLIGHT_CHECK=true -REACT_APP_VERSION=1.0.10 +REACT_APP_VERSION=1.0.11 diff --git a/package.json b/package.json index 0c4113f..d2ad1a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rica", - "version": "1.0.10", + "version": "1.0.11", "private": true, "dependencies": { "@blueprintjs/core": "^3.53.0", diff --git a/src/Plots/Plots.js b/src/Plots/Plots.js index 3646f0f..76ba245 100644 --- a/src/Plots/Plots.js +++ b/src/Plots/Plots.js @@ -122,6 +122,12 @@ class Plots extends React.Component { origData[i].original_classification = origData[i].classification; origData[i].classification = this.state.variance.datasets[0].classification[pieIndex]; + + // Change rationale of components that have different values in + // original_classification and classification + if (origData[i].classification !== origData[i].original_classification) { + origData[i].rationale = "I001"; + } } console.log(origData);