gui.widget_polarizer module

This widget contains the functionality of the polarizer hardware class provided in polarizer.py. The widget can be executed as a standalone version if the correct National Instruments adc is connected and the correct port/settings are chosen.

Functionalities provided in this widget:

  1. Choose the polarizer which you want to control via a comboBox

  2. Set the polarization either to parallel or perpendicular

class WidgetPolarizer(*args, obj=None, polarizer: dict = {}, **kwargs)[source]

Bases: PyQt5.QtWidgets.QGroupBox, ui_polarizer.Ui_GroupBox_polarizer

current_polarizer()[source]

Create method which holds information about which combobox item is currently selected.

Returns

Returns key to currently active polarizer.

Return type

str

update_combobox()[source]
update_polarizer()[source]
update_values()[source]