API Reference
- class runviewer.__main__.ColourDelegate(view, *args, **kwargs)[source]
Bases:
QItemDelegate
- createEditor(self, parent: QWidget | None, option: QStyleOptionViewItem, index: QModelIndex) QWidget | None [source]
- setEditorData(self, editor: QWidget | None, index: QModelIndex)[source]
- setModelData(self, editor: QWidget | None, model: QAbstractItemModel | None, index: QModelIndex)[source]
- updateEditorGeometry(self, editor: QWidget | None, option: QStyleOptionViewItem, index: QModelIndex)[source]
- class runviewer.__main__.RunViewer(exp_config)[source]
Bases:
object
- resample(data_x, data_y, xmin, xmax, stop_time, num_pixels)[source]
This is a function for downsampling the data before plotting it. Unlike using nearest neighbour interpolation, this method preserves the features of the plot. It chooses what value to use based on what values within a region are most different from the values it’s already chosen. This way, spikes of a short duration won’t just be skipped over as they would with any sort of interpolation.
- class runviewer.__main__.ScaleHandler(input_times, target_positions, stop_time)[source]
Bases:
object
- class runviewer.__main__.Shot(path)[source]
Bases:
object
- property channels
- property markers
- property shutter_times
- property traces
- runviewer.__main__.int_to_enum(enum_list, value)[source]
stupid hack to work around the fact that PySide screws with the type of a variable when it goes into a model. Enums are converted to ints, which then can’t be interpreted by QColor correctly (for example) unfortunately Qt doesn’t provide a python list structure of enums, so you have to build the list yourself.