Skip to content

Commit

Permalink
fix: replaced late & early for lightcurve & stamp
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoRiveraEstefano committed Apr 14, 2020
1 parent 5fce1c9 commit 99fb033
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/components/results/cards/cardBasicInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion src/components/results/cards/cardProbabilities.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/results/cards/overviewCards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>
<v-card-text class="text-center">
<v-chip disabled color="header" text-color="white">{{rfCount}}</v-chip>
<p>(Late Classifier)</p>
<p>(Light Curve Classifier)</p>
</v-card-text>
</v-card>
</v-flex>
Expand All @@ -65,7 +65,7 @@
</div>
<v-card-text class="text-center">
<v-chip disabled color="header" text-color="white">{{earlyCount}}</v-chip>
<p>(Early Classifier)</p>
<p>(Stamp Classifier)</p>
</v-card-text>
</v-card>
</v-flex>
Expand Down
8 changes: 4 additions & 4 deletions src/store/modules/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/store/modules/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
],
Expand Down

0 comments on commit 99fb033

Please sign in to comment.