spinetoolbox.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

Classes

TimeSeriesFixedResolutionEditor

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

Functions

_resolution_to_text(resolution)

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

_text_to_resolution(text)

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

spinetoolbox.widgets.time_series_fixed_resolution_editor._resolution_to_text(resolution)[source]

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

spinetoolbox.widgets.time_series_fixed_resolution_editor._text_to_resolution(text)[source]

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

class spinetoolbox.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.

Parameters

parent (QWidget) – a parent widget

_resolution_changed(self)[source]

Updates the models after resolution change.

_show_table_context_menu(self, position)[source]

Shows the table’s context menu.

Parameters

position (QPoint) – menu’s position in table view’s coordinates

_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.