gui.widget_main_window module

class GUIActivation[source]

Bases: object

class Signals[source]

Bases: PyQt5.QtCore.QObject

experiment_finished
add(gui_element)[source]
toggle_activation(toggle)[source]

Toggles the deactivation/ reactivation of the GUI elements that should not be accessed during the routine.

Parameters

toggle (bool) – True to enable. False to disable.

class MainWindow(hw, hw_path, *args, username='Tenshinhan', adc=None, pi_stage=None, spectrometer=None, fpas=None, interferometer_counter=None, chopper=None, shutter=None, polarizer=None, mu_screw=None, fabry_perot=None, prl=None, csf=None, obj=None, **kwargs)[source]

Bases: PyQt5.QtWidgets.QMainWindow, ui_main_window.Ui_MainWindow

add_experiments()[source]

Loads experiments from json file into drop down menu.

bb_ir_pump_ir_probe_intl()[source]
bb_viper_intl()[source]
bb_viper_wobbler()[source]
collect_background()[source]

Collects background and saves it to path specified in json file.

create_SaveData(delays, pump_pixels=None)[source]

Creates an instance of SaveData to pass to an experiment with the parameters specified in the GUI. Always call this method before creating an instance of an experiment.

Parameters
  • delays (ndarray) – Delays in the experiment. If this is not applicable to experiment, pass None.

  • pump_pixels (ndarray, optional) – Pump pixels in the experiment. If this is not applicable to experiment, pass None. Defaults to None.

Returns

Instance of SaveData that is handed to an

experiment.

Return type

SaveData

fabry_perot_2d_ir_intl()[source]
fabry_perot_viper_intl()[source]
ft_2d_ir()[source]
ft_viper()[source]
save_t_zero_to_json()[source]

Save new t zero of stage that is currently open/active on GUI to json file.

scan_t_zero_interleaves()[source]
scan_t_zero_wobbler()[source]
set_to_stop_measurement()[source]
setup_experiment()[source]
show_signal_ir_pump()[source]
show_signal_ir_pump_wobbler()[source]
show_signal_vis_pump()[source]
show_spectrum()[source]
show_viper()[source]
show_viper_wobbler()[source]
show_wobbler_states()[source]
stop()[source]
update_experiment_info()[source]
update_values()[source]
vis_pump_ir_probe()[source]
vis_pump_ir_probe_split_sample()[source]
main(hw_path: str, username: str)[source]