Skip to content

Commit

Permalink
added avro information
Browse files Browse the repository at this point in the history
  • Loading branch information
dirodriguezm committed Aug 26, 2019
1 parent b9e0b91 commit aeb247c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/results/tabData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</v-alert>
</v-flex>

<v-flex xs12 v-else-if="$store.state.search.query_status === 200">
<v-flex xs12 v-else-if="$store.state.search.query_status === 200 && $store.state.results.total" >
<v-toolbar flat color="white">
<v-toolbar-title>
<v-layout column pt-3>
Expand Down
34 changes: 22 additions & 12 deletions src/components/results/tabs/TabGeneral.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,28 @@ export default {
this.mjdToDate(this.ztf_object.lastmjd).slice(0, -3) +
"UT"
},
{
column: "PanSTARRS ID",
value: this.$store.state.results.avroInfo.objectidps1
},
{
column: "Distance (arcsec)",
value: this.$store.state.results.avroInfo.distpsnr1.toFixed(4)
},
{
column: "Star Galaxy Score",
value: this.$store.state.results.avroInfo.sgscore1.toFixed(4)
}
this.$store.state.results.avroInfo.objectidps1
? {
column: "PanSTARRS ID",
value: this.$store.state.results.avroInfo.objectidps1
}
: null,
this.$store.state.results.avroInfo.distpsnr1
? {
column: "Distance (arcsec)",
value: this.$store.state.results.avroInfo.distpsnr1.toFixed(
4
)
}
: null,
this.$store.state.results.avroInfo.sgscore1
? {
column: "Star Galaxy Score",
value: this.$store.state.results.avroInfo.sgscore1.toFixed(
4
)
}
: null
];
let filtered = info.filter(function(el) {
return el != null;
Expand Down

0 comments on commit aeb247c

Please sign in to comment.