Ephemeris#

class lcviz.plugins.ephemeris.ephemeris.Ephemeris(*args, **kwargs)[source]#

Bases: PluginTemplateMixin, DatasetSelectMixin

See the Ephemeris Plugin Documentation for more details.

Only the following attributes and methods are available through the public plugin API:

Public constructor

Attributes Summary

component_edit_value

A trait for unicode strings.

component_items

An instance of a Python list.

component_mode

A trait for unicode strings.

component_selected

A trait for unicode strings.

default_phase_viewer

dpdt

Mixin to handle empty floating point field.

dpdt_step

A float trait.

ephemerides

ephemeris

method_err

A trait for unicode strings.

method_items

An instance of a Python list.

method_selected

A trait for unicode strings.

method_spinner

A boolean (True, False) trait.

nasa_exoplanet_archive

period

Mixin to handle empty floating point field.

period_at_max_power

A float trait.

period_from_catalog

Mixin to handle empty floating point field.

period_step

A float trait.

phase_comp_lbl

phase_viewer_exists

A boolean (True, False) trait.

query_dec

Mixin to handle empty floating point field.

query_name

A trait for unicode strings.

query_ra

Mixin to handle empty floating point field.

query_radius

Mixin to handle empty floating point field.

query_result_items

An instance of a Python list.

query_result_selected

A trait for unicode strings.

query_spinner

A boolean (True, False) trait.

ra_dec_step

A float trait.

reference_time

t0

Mixin to handle empty floating point field.

t0_from_catalog

Mixin to handle empty floating point field.

t0_step

A float trait.

template_file

user_api

wrap_at

Mixin to handle empty floating point field.

Methods Summary

add_component(lbl[, set_as_selected])

adopt_period_at_max_power()

create_ephemeris_from_query(*args)

create_phase_viewer([ephem_component])

Create a new phase viewer corresponding to component and populate the phase arrays with the current ephemeris, if necessary.

get_data(dataset[, ephem_component])

phases_to_times(phases[, ephem_component])

query_for_ephemeris()

remove_component(lbl)

rename_component(old_lbl, new_lbl)

times_to_phases(times[, ephem_component])

update_ephemeris([ephem_component, t0, ...])

Update the ephemeris for a given component.

vue_adopt_period_at_max_power(*args)

vue_create_ephemeris_from_query(*args)

vue_create_phase_viewer(*args)

vue_period_double(*args)

vue_period_halve(*args)

vue_query_for_ephemeris(*args)

Attributes Documentation

component_edit_value#

A trait for unicode strings.

component_items#

An instance of a Python list.

component_mode#

A trait for unicode strings.

component_selected#

A trait for unicode strings.

default_phase_viewer#
dpdt#

Mixin to handle empty floating point field.

dpdt_step#

A float trait.

ephemerides#
ephemeris#
method_err#

A trait for unicode strings.

method_items#

An instance of a Python list.

method_selected#

A trait for unicode strings.

method_spinner#

A boolean (True, False) trait.

nasa_exoplanet_archive#
period#

Mixin to handle empty floating point field.

period_at_max_power#

A float trait.

period_from_catalog#

Mixin to handle empty floating point field.

period_step#

A float trait.

phase_comp_lbl#
phase_viewer_exists#

A boolean (True, False) trait.

query_dec#

Mixin to handle empty floating point field.

query_name#

A trait for unicode strings.

query_ra#

Mixin to handle empty floating point field.

query_radius#

Mixin to handle empty floating point field.

query_result_items#

An instance of a Python list.

query_result_selected#

A trait for unicode strings.

query_spinner#

A boolean (True, False) trait.

ra_dec_step#

A float trait.

reference_time = None#
t0#

Mixin to handle empty floating point field.

t0_from_catalog#

Mixin to handle empty floating point field.

t0_step#

A float trait.

template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/lcviz/envs/stable/lib/python3.11/site-packages/lcviz/plugins/ephemeris/ephemeris.py', 'ephemeris.vue')#
user_api#
wrap_at#

Mixin to handle empty floating point field.

Methods Documentation

add_component(lbl, set_as_selected=True)[source]#
adopt_period_at_max_power()[source]#
create_ephemeris_from_query(*args)[source]#
create_phase_viewer(ephem_component=None)[source]#

Create a new phase viewer corresponding to component and populate the phase arrays with the current ephemeris, if necessary.

Parameters:

ephem_component (str, optional) – label of the component. If not provided or None, will default to plugin value.

get_data(dataset, ephem_component=None)[source]#
phases_to_times(phases, ephem_component=None)[source]#
query_for_ephemeris()[source]#
remove_component(lbl)[source]#
rename_component(old_lbl, new_lbl)[source]#
times_to_phases(times, ephem_component=None)[source]#
update_ephemeris(ephem_component=None, t0=None, period=None, dpdt=None, wrap_at=None)[source]#

Update the ephemeris for a given component.

Parameters:
  • ephem_component (str, optional) – label of the component. If not provided or None, will default to plugin value.

  • t0 (float, optional) – value of t0 to replace

  • period (float, optional) – value of period to replace

  • dpdt (float, optional) – value of dpdt to replace

  • wrap_at (float, optional) – value of wrap_at to replace

Return type:

dictionary of ephemeris corresponding to component

vue_adopt_period_at_max_power(*args)[source]#
vue_create_ephemeris_from_query(*args)[source]#
vue_create_phase_viewer(*args)[source]#
vue_period_double(*args)[source]#
vue_period_halve(*args)[source]#
vue_query_for_ephemeris(*args)[source]#