forked from spacetelescope/lcviz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinning.vue
83 lines (76 loc) · 2.51 KB
/
binning.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<template>
<j-tray-plugin
description='Bin in time or phase-space.'
:link="'https://lcviz.readthedocs.io/en/'+vdocs+'/plugins.html#binning'"
:uses_active_status="uses_active_status"
@plugin-ping="plugin_ping($event)"
:keep_active.sync="keep_active"
:popout_button="popout_button">
<v-row>
<v-expansion-panels popout>
<v-expansion-panel>
<v-expansion-panel-header v-slot="{ open }">
<span style="padding: 6px">Settings</span>
</v-expansion-panel-header>
<v-expansion-panel-content>
<v-row>
<v-switch
v-model="show_live_preview"
label="Show live preview"
hint="Whether to show live preview of binning options."
persistent-hint
></v-switch>
</v-row>
</v-expansion-panel-content>
</v-expansion-panel>
</v-expansion-panels>
</v-row>
<plugin-dataset-select
:items="dataset_items"
:selected.sync="dataset_selected"
:show_if_single_entry="false"
label="Data"
hint="Select the light curve as input."
/>
<plugin-ephemeris-select
:items="ephemeris_items"
:selected.sync="ephemeris_selected"
:show_if_single_entry="false"
label="Ephemeris"
hint="Select the phase-folding as input."
/>
<v-row>
<v-text-field
label="N Bins"
type="number"
v-model.number="n_bins"
:step="10"
:rules="[() => n_bins !== '' || 'This field is required',
() => n_bins > 0 || 'Number of bins must be positive']"
hint="Number of bins."
persistent-hint
>
</v-text-field>
</v-row>
<plugin-previews-temp-disabled
:previews_temp_disabled.sync="previews_temp_disabled"
:previews_last_time="previews_last_time"
:show_live_preview.sync="show_live_preview"
/>
<plugin-add-results
:label.sync="results_label"
:label_default="results_label_default"
:label_auto.sync="results_label_auto"
:label_invalid_msg="results_label_invalid_msg"
:label_overwrite="results_label_overwrite"
label_hint="Label for the binned data."
:add_to_viewer_items="add_to_viewer_items"
:add_to_viewer_selected.sync="add_to_viewer_selected"
action_label="Bin"
action_tooltip="Bin data"
:action_disabled="!bin_enabled"
:action_spinner="spinner"
@click:action="apply"
></plugin-add-results>
</j-tray-plugin>
</template>