Flatten#
- class lcviz.plugins.flatten.flatten.Flatten(*args, **kwargs)[source]#
Bases:
PluginTemplateMixin,FluxColumnSelectMixin,DatasetSelectMixinSee the Flatten Plugin Documentation for more details.
Only the following attributes and methods are available through the public plugin API:
show_live_previewboolWhether to show the live-preview of the (unnormalized) flattened light curve
show_trend_previewboolWhether to show the live-preview of the trend curve used to flatten the light curve
dataset(DatasetSelect): Dataset to flatten.window_length: intpolyorder: intbreak_tolerance: intniters: intsigma: floatunnormalize: boolflux_label(AutoTextField): Label for the resulting flux column added todatasetand automatically selected as the new flux column (origin).
Public constructor
Attributes Summary
Mixin to handle empty integer field.
A trait for unicode strings.
A boolean (True, False) trait.
A trait for unicode strings.
A trait for unicode strings.
A trait for unicode strings.
A boolean (True, False) trait.
Mixin to handle empty integer field.
Mixin to handle empty integer field.
A boolean (True, False) trait.
A boolean (True, False) trait.
Mixin to handle empty floating point field.
A boolean (True, False) trait.
A boolean (True, False) trait.
Mixin to handle empty integer field.
Methods Summary
flatten([add_data])Flatten the input light curve (
dataset) using lightkurve.flatten.vue_apply(*args, **kwargs)Attributes Documentation
- break_tolerance#
Mixin to handle empty integer field.
- flatten_err#
A trait for unicode strings.
- flux_label_auto#
A boolean (True, False) trait.
- flux_label_default#
A trait for unicode strings.
- flux_label_invalid_msg#
A trait for unicode strings.
- flux_label_label#
A trait for unicode strings.
- flux_label_overwrite#
A boolean (True, False) trait.
- marks#
- niters#
Mixin to handle empty integer field.
- polyorder#
Mixin to handle empty integer field.
- show_live_preview#
A boolean (True, False) trait.
- show_trend_preview#
A boolean (True, False) trait.
- sigma#
Mixin to handle empty floating point field.
- template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/lcviz/envs/v2.0.0/lib/python3.11/site-packages/lcviz/plugins/flatten/flatten.py', 'flatten.vue')#
- unnormalize#
A boolean (True, False) trait.
- user_api#
- uses_active_status#
A boolean (True, False) trait.
- window_length#
Mixin to handle empty integer field.
Methods Documentation
- flatten(add_data=True)[source]#
Flatten the input light curve (
dataset) using lightkurve.flatten.- Parameters:
add_data (bool) – Whether to add the resulting light curve as a flux column and select that as the new flux column (origin) for that data entry.
- Returns:
output_lc (
LightCurve) – The flattened light curve.trend_lc (
LightCurve) – The trend used to flatten the light curve.