widgets.time_series_fixed_resolution_editor

Contains logic for the fixed step time series editor widget.

author:
  1. Soininen (VTT)
date:

14.6.2019

Module Contents

widgets.time_series_fixed_resolution_editor._resolution_to_text(resolution)[source]

Converts a list of durations into a string of comma-separated durations.

widgets.time_series_fixed_resolution_editor._text_to_resolution(text)[source]

Converts a comma-separated string of durations into a resolution array.

class widgets.time_series_fixed_resolution_editor.TimeSeriesFixedResolutionEditor(parent=None)[source]

Bases: PySide2.QtWidgets.QWidget

A widget for editing time series data with a fixed time step.

parent

a parent widget

Type:QWidget
_resolution_changed(self)[source]

Updates the models after resolution change.

_show_table_context_menu(self, pos)[source]

Shows the table’s context menu.

_select_date(self, selected_date)[source]
set_value(self, value)[source]

Sets the parameter value for editing in this widget.

_show_calendar(self)[source]
_start_time_changed(self)[source]

Updates the model due to start time change.

_update_plot(self, topLeft=None, bottomRight=None, roles=None)[source]

Updated the plot.

value(self)[source]

Returns the parameter value currently being edited.