From 99fb0333b1b1e1602616af9c0932636722e543d9 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 14 Apr 2020 07:53:44 -0400 Subject: [PATCH] fix: replaced late & early for lightcurve & stamp --- src/components/results/cards/cardBasicInformation.vue | 4 ++-- src/components/results/cards/cardProbabilities.vue | 4 +++- src/components/results/cards/overviewCards.vue | 4 ++-- src/store/modules/results.js | 8 ++++---- src/store/modules/search.js | 4 ++-- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/components/results/cards/cardBasicInformation.vue b/src/components/results/cards/cardBasicInformation.vue index 35bae5e9..bddd14cf 100644 --- a/src/components/results/cards/cardBasicInformation.vue +++ b/src/components/results/cards/cardBasicInformation.vue @@ -213,13 +213,13 @@ export default { : null, this.ztf_object.classrf ? { - column: "LateClassifier", + column: "Light Curve Classifier", value: this.getLateClass(this.ztf_object.classrf) } : null, this.ztf_object.classearly ? { - column: "EarlyClassifier", + column: "Stamp Classifier", value: this.getEarlyClass(this.ztf_object.classearly) } : null, diff --git a/src/components/results/cards/cardProbabilities.vue b/src/components/results/cards/cardProbabilities.vue index 8ea3c4f3..43e14258 100644 --- a/src/components/results/cards/cardProbabilities.vue +++ b/src/components/results/cards/cardProbabilities.vue @@ -40,7 +40,9 @@ export default { let probabilities = this.$store.state.results.objectDetails.probabilities; let ret = {}; probabilities ? Object.keys(probabilities).forEach(key => { - let cleaned_key = key.replace("_", " ") + let cleaned_key = key.replace("early", "stamp") + cleaned_key = cleaned_key.replace("late", "light curve") + cleaned_key = cleaned_key.replace("_", " ") if (Object.keys(probabilities[key]).length > 0) { ret[cleaned_key] = probabilities[key]; } diff --git a/src/components/results/cards/overviewCards.vue b/src/components/results/cards/overviewCards.vue index f6b4988a..444368f7 100644 --- a/src/components/results/cards/overviewCards.vue +++ b/src/components/results/cards/overviewCards.vue @@ -51,7 +51,7 @@ {{rfCount}} -

(Late Classifier)

+

(Light Curve Classifier)

@@ -65,7 +65,7 @@ {{earlyCount}} -

(Early Classifier)

+

(Stamp Classifier)

diff --git a/src/store/modules/results.js b/src/store/modules/results.js index 899c6fe7..09f057c8 100644 --- a/src/store/modules/results.js +++ b/src/store/modules/results.js @@ -53,25 +53,25 @@ export const state = { { value: "classearly", sortable: false, - text: "Early Classifier Class", + text: "Stamp Classifier Class", show: true }, { value: "pclassearly", sortable: true, - text: "Early Classifier Probability", + text: "Stamp Classifier Probability", show: true }, { value: "classrf", sortable: false, - text: "Late Classifier Class", + text: "Light Curve Classifier Class", show: true }, { value: "pclassrf", sortable: true, - text: "Late Classifier Probability", + text: "Light Curve Classifier Probability", show: true }, { diff --git a/src/store/modules/search.js b/src/store/modules/search.js index 7fb24ec2..6f787e47 100644 --- a/src/store/modules/search.js +++ b/src/store/modules/search.js @@ -160,11 +160,11 @@ export const state = { value: "classxmatch" }, */ { - text: "Late Classifier", + text: "Light Curve Classifier", value: "classrf" }, { - text: "Early Classifier", + text: "Stamp Classifier", value: "classearly" } ],