gui.widget_delay_file_editor module

This widget contains the functionality of a simple delay file editor. The widget can be executed as a standalone version.

Functionalities provided in this widget:

  1. Loading and saving of delay files from/in txt format

  2. Provides text editor panel which can be modified by the user.

  3. Clearing of editor panel.

  4. Generating of delay file by setting the start point (fs), end point (fs), number of time points, the spacing of time points (fs)

  5. An additional post-offset (fs) can be applied to the already generated delay file.

  6. It is possible to set a -4000 fs reference point

  7. The spacing can be done linearly or logarithmically

class WidgetDFE(*args, **kwargs)[source]

Bases: PyQt5.QtWidgets.QWidget, ui_delayfile.Ui_Widget_delayfile

apply_poffset()[source]

Reads the text field and adds the given offset to the first item in each line if it is a number

clear_delay_list()[source]
fill_spacing_delay()[source]

Spacing and Steps depend on each other. This function calculates the delay for a given spacing.

fill_steps_delay()[source]

Spacing and Steps depend on each other. This function calculates the spacing for a given delay.

generate_delay_list()[source]
open_delay_file_dialog()[source]
save_delay_file_dialog()[source]
set_default_paths(hw)[source]

Add defaults paths from hardware config file.

Parameters

hw (object) – Hardware properties object that holds all the relevant paths.