-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into config-2d-table
- Loading branch information
Showing
116 changed files
with
3,875 additions
and
1,246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from contextlib import suppress | ||
|
||
import useq | ||
from pymmcore_plus import CMMCorePlus | ||
from qtpy.QtWidgets import QApplication | ||
|
||
from pymmcore_widgets import StageWidget | ||
|
||
with suppress(ImportError): | ||
from rich import print | ||
|
||
from pymmcore_widgets.hcs import HCSWizard | ||
|
||
app = QApplication([]) | ||
mmc = CMMCorePlus.instance() | ||
mmc.loadSystemConfiguration() | ||
w = HCSWizard() | ||
w.show() | ||
w.accepted.connect(lambda: print(w.value())) | ||
s = StageWidget("XY", mmcore=mmc) | ||
s.show() | ||
|
||
|
||
plan = useq.WellPlatePlan( | ||
plate=useq.WellPlate.from_str("96-well"), | ||
a1_center_xy=(1000, 1500), | ||
rotation=0.3, | ||
selected_wells=slice(0, 8, 2), | ||
) | ||
w.setValue(plan) | ||
|
||
app.exec() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import useq | ||
from pymmcore_plus import CMMCorePlus | ||
from qtpy.QtWidgets import QApplication | ||
|
||
from pymmcore_widgets import StageWidget | ||
from pymmcore_widgets.hcs._plate_calibration_widget import PlateCalibrationWidget | ||
|
||
mmc = CMMCorePlus.instance() | ||
mmc.loadSystemConfiguration() | ||
|
||
app = QApplication([]) | ||
|
||
s = StageWidget("XY") | ||
s.show() | ||
|
||
plan = useq.WellPlatePlan( | ||
plate=useq.WellPlate.from_str("96-well"), | ||
a1_center_xy=(1000, 1500), | ||
rotation=0.3, | ||
) | ||
|
||
wdg = PlateCalibrationWidget(mmcore=mmc) | ||
wdg.setValue(plan) | ||
wdg.show() | ||
|
||
app.exec() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from pymmcore_plus import CMMCorePlus | ||
from qtpy.QtWidgets import QApplication | ||
|
||
from pymmcore_widgets import StageWidget | ||
from pymmcore_widgets.hcs._well_calibration_widget import WellCalibrationWidget | ||
|
||
mmc = CMMCorePlus.instance() | ||
mmc.loadSystemConfiguration() | ||
|
||
app = QApplication([]) | ||
|
||
s = StageWidget("XY") | ||
s.show() | ||
c = WellCalibrationWidget(mmcore=mmc) | ||
|
||
|
||
@c.calibrationChanged.connect | ||
def _on_calibration_changed(calibrated: bool) -> None: | ||
if calibrated: | ||
print("Calibration changed! New center:", c.wellCenter()) | ||
|
||
|
||
c.setCircularWell(True) | ||
c.show() | ||
|
||
app.exec() |
Oops, something went wrong.