Skip to content

Commit

Permalink
expose missing API options (and hints) for ephemeris query
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Oct 17, 2024
1 parent 17c36be commit bd09649
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions lcviz/plugins/ephemeris/ephemeris.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ def user_api(self):
'add_component', 'remove_component', 'rename_component',
'times_to_phases', 'phases_to_times', 'get_data',
'dataset', 'method', 'period_at_max_power',
'adopt_period_at_max_power', 'query_for_ephemeris',
'query_result', 'create_ephemeris_from_query'
'adopt_period_at_max_power',
'query_name', 'query_ra', 'query_dec', 'query_radius',
'query_for_ephemeris', 'query_result', 'create_ephemeris_from_query'
]
return PluginUserApi(self, expose=expose)

Expand Down
12 changes: 8 additions & 4 deletions lcviz/plugins/ephemeris/ephemeris.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@
<v-text-field
ref="query_name"
type="string"
label="Object name"
:label="api_hints_enabled ? 'plg.query_name =' : 'Object name'"
:class="api_hints_enabled ? 'api-hint' : null"
v-model.number="query_name"
hint="Object name."
persistent-hint
Expand All @@ -202,7 +203,8 @@
<v-text-field
ref="query_ra"
type="number"
label="RA (degrees)"
:label="api_hints_enabled ? 'plg.query_ra =' : 'RA (degrees)'"
:class="api_hints_enabled ? 'api-hint' : null"
v-model.number="query_ra"
:step="ra_dec_step"
hint="Object right ascension."
Expand All @@ -213,7 +215,8 @@
<v-text-field
ref="query_dec"
type="number"
label="Dec (degrees)"
:label="api_hints_enabled ? 'plg.query_dec =' : 'Dec (degrees)'"
:class="api_hints_enabled ? 'api-hint' : null"
v-model.number="query_dec"
:step="ra_dec_step"
hint="Object declination."
Expand All @@ -224,7 +227,8 @@
<v-text-field
ref="query_radius"
type="number"
label="Radius (arcseconds)"
:label="api_hints_enabled ? 'plg.query_radius =' : 'Radius (arcseconds)'"
:class="api_hints_enabled ? 'api-hint' : null"
v-model.number="query_radius"
:step="1"
hint="Radius around the query coordinate."
Expand Down

0 comments on commit bd09649

Please sign in to comment.