timingWidget.rst 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. .. This is a autogemerated documentation from python docstrings. It was generated using DStrings2Doc.
  2. .. module:: timingWidget
  3. .. _timingWidget:
  4. Module timingWidget
  5. ===================
  6. This Module Is the Timingsettings subWindow.
  7. .. py:class:: timingPlotWidget(kcgw.KCGWidgets)
  8. The Timescan result plot subwindow.
  9. .. py:method:: __init__(self, unique_id, board_id, parent=None)
  10. Initialises the timing plot window
  11. :param unique_id: the id for this window
  12. :param parent: parent object
  13. .. py:method:: switch(self)
  14. Switch Plot types
  15. .. py:method:: colour_plot(self)
  16. Initialize Color Plot
  17. .. py:method:: remove_colour_plot(self)
  18. Remove the color plot elements
  19. .. py:method:: line_plot_axis_strings(self, values, scale, spacing)
  20. Plot to format the strings for the line plot
  21. This is used to override the default tickStrings method of pyqtgraph.AxisItem
  22. :param values: See pyqtgraph.AxisItem.tickStrings
  23. :param scale: See pyqtgraph.AxisItem.tickStrings
  24. :param spacing: See pyqtgraph.AxisItem.tickStrings
  25. :return: See pyqtgraph.AxisItem.tickStrings
  26. .. py:method:: spacing(self, minVal, maxVal, size)
  27. Calculate spacing between ticks
  28. This is used to override the default tickSpacing method of pyqtgraph.AxisItem
  29. :param minVal: See pyqtgraph.AxisItem.tickSpacing
  30. :param maxVal: See pyqtgraph.AxisItem.tickSpacing
  31. :param size: See pyqtgraph.AxisItem.tickSpacing
  32. :return: See pyqtgraph.AxisItem.tickSpacing
  33. .. py:method:: y_axis_strings(self, values, scale, spacing)
  34. Sets the strings for the y axis
  35. :param values:
  36. :param scale:
  37. :param spacing:
  38. .. py:method:: line_plot(self)
  39. Initialise the Line Plot
  40. .. py:method:: setInputs(self, coarse_input, fine_inputs)
  41. Register the Inputfields for timing in the timingsettings window
  42. :param coarse_input: (QSpinBox) Spinbox for coarse timing settings
  43. :param fine_inputs: (list) List of (QSpinBox)es for fine timing settings
  44. .. py:method:: click(self, adc, event)
  45. Handler for the click event in color plots
  46. :param adc: (str) The ADC plot that was clicked on
  47. :param event: (QEvent) the event
  48. .. py:method:: plot(self, data=None, levels=None, newTitle=None, maxima=None)
  49. Plot Data
  50. :param data: (numpy 4d array) data to plot
  51. :param levels: (tuple) Min and Max Values for color plot
  52. :param newTitle: (str) The title for the window
  53. :param maxima: (list) Maximum for each adc
  54. .. py:method:: closeEvent(self, event)
  55. Event handler for closing this window
  56. .. py:class:: timingPart(kcgw.KCGWidgets)
  57. The actual timing settings window
  58. .. py:method:: __init__(self, board_id, parent=None)
  59. Initialise the timing settings window
  60. :param unique_id:
  61. :param parent:
  62. .. py:method:: toggleAdc1IndividualDelay(self)
  63. Toggle to use an individual delay for adc1 or not
  64. .. py:method:: showTimeScan(self)
  65. Show the time scan part of this window
  66. .. py:method:: time_scan(self)
  67. Toggle timescan and create timingPlotWidget if it doesn't exist
  68. .. py:method:: setValueSilent(self, element, value)
  69. Set Values to inputs without notifying observers
  70. :param element: the input
  71. :param value: the value
  72. .. py:method:: setValues(self)
  73. Set Values to inputs (initially)
  74. .. py:method:: closeEvent(self, event)
  75. Event handler when this window is closed
  76. .. py:method:: on_adc_delay_changed(self)
  77. Handler that gets called when an adc delay gets changed
  78. .. py:class:: timingWidget(kcgw.KCGWidgets)
  79. This is the container that holds the tab widget which contains the timing widgets for each board
  80. .. py:method:: __init__(self, unique_id, parent=None)
  81. .. py:method:: adjustSizeForTimeScan(self)
  82. Adjust the size of the widget to accomodate the time_scan part
  83. .. py:method:: closeEvent(self, event)
  84. .. py:method:: addTimingWidget()
  85. Add this widget to the gui.
  86. This function will actually open the subwindow.