Skip to content

Commit

Permalink
fix(core): remove duplicate initializations (#72)
Browse files Browse the repository at this point in the history
This fixes duplicate inits (see lines adjacent to those removed) that
were introduced somewhere along the way.

Tested by: just visual verification that the same inits with same args
do occur immediately nearby, and that the sim still launches and runs.
  • Loading branch information
ianohara authored Jan 20, 2025
1 parent 35d2d3d commit ea72d5b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions software/control/gui_hcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,14 +561,9 @@ def loadWidgets(self):
self.displacementMeasurementWidget = widgets.DisplacementMeasurementWidget(
self.displacementMeasurementController, self.waveformDisplay
)
self.laserAutofocusControlWidget = widgets.LaserAutofocusControlWidget(self.laserAutofocusController)

self.laserAutofocusControlWidget: widgets.LaserAutofocusControlWidget = widgets.LaserAutofocusControlWidget(self.laserAutofocusController)
self.imageDisplayWindow_focus = core.ImageDisplayWindow(draw_crosshairs=True)
self.waveformDisplay = widgets.WaveformDisplay(N=1000, include_x=True, include_y=False)
self.displacementMeasurementWidget = widgets.DisplacementMeasurementWidget(
self.displacementMeasurementController, self.waveformDisplay
)
self.laserAutofocusControlWidget = widgets.LaserAutofocusControlWidget(self.laserAutofocusController)


self.imageDisplayTabs = QTabWidget()
if self.live_only_mode:
Expand Down

0 comments on commit ea72d5b

Please sign in to comment.