spinetoolbox.widgets.time_series_fixed_resolution_editor

Contains logic for the fixed step time series editor widget.

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: PySide6.QtWidgets.QWidget

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

Parameters

parent (QWidget) – a parent widget

_resolution_changed()[source]

Updates the models after resolution change.

_show_table_context_menu(position)[source]

Shows the table’s context menu.

Parameters

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

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

Sets the parameter_value for editing in this widget.

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

Updates the model due to start time change.

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

Updated the plot.

value()[source]

Returns the parameter_value currently being edited.

_open_header_editor(column)[source]