-
Notifications
You must be signed in to change notification settings - Fork 11
Modified for running in Linux and New stage driver #1045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
62e86e6
6d8ef3d
81f27a8
49607a6
1b6cefa
6cf04d5
92ed481
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -450,7 +450,6 @@ def load_stages( | |
stage_devices = [] | ||
|
||
stages = configuration["configuration"]["hardware"]["stage"] | ||
|
||
if type(stages) != ListProxy: | ||
stages = [stages] | ||
|
||
|
@@ -461,7 +460,6 @@ def load_stages( | |
|
||
else: | ||
stage_type = stage_config["type"] | ||
|
||
if stage_type == "PI" and platform.system() == "Windows": | ||
from navigate.model.devices.stages.pi import build_PIStage_connection | ||
from pipython.pidevice.gcserror import GCSError | ||
|
@@ -511,8 +509,18 @@ def load_stages( | |
exception=TLFTDICommunicationError, | ||
) | ||
) | ||
|
||
elif stage_type == "KST101": | ||
elif stage_type == "KINESIS" and platform.system() == "Linux": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is now obsolete with the latest PR. |
||
from navigate.model.devices.stages.tl_kinesis_steppermotor import ( | ||
build_KINESIS_Stage_connection | ||
) | ||
stage_devices.append( | ||
auto_redial( | ||
build_KINESIS_Stage_connection, | ||
(stage_config["serial_number"],), | ||
exception=Exception | ||
) | ||
) | ||
elif stage_type == "KST101" and platform.system=="Windows": | ||
from navigate.model.devices.stages.tl_kcube_steppermotor import ( | ||
build_TLKSTStage_connection, | ||
) | ||
|
@@ -562,12 +570,8 @@ def load_stages( | |
) | ||
) | ||
|
||
elif stage_type == "MS2000" and platform.system() == "Windows": | ||
"""Filter wheel can be controlled from the same Controller. If | ||
so, then we will load this as a shared device. If not, we will create the | ||
connection to the Controller. | ||
|
||
TODO: Evaluate whether MS2000 should be able to operate as a shared device. | ||
elif stage_type == "MS2000": | ||
"""Stage and filter wheel are independent and should not be a shared device | ||
""" | ||
|
||
from navigate.model.devices.stages.asi_MSTwoThousand import ( | ||
|
@@ -705,7 +709,10 @@ def start_stage( | |
from navigate.model.devices.stages.tl_kcube_inertial import TLKIMStage | ||
|
||
return TLKIMStage(microscope_name, device_connection, configuration, id) | ||
|
||
elif device_type == "KINESIS": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This device should also be added to the configuration wizard. |
||
from navigate.model.devices.stages.tl_kinesis_steppermotor import TLKINStage | ||
|
||
return TLKINStage(microscope_name, device_connection, configuration, id) | ||
elif device_type == "KST101": | ||
from navigate.model.devices.stages.tl_kcube_steppermotor import TLKSTStage | ||
|
||
|
@@ -1265,7 +1272,6 @@ def start_lasers( | |
modulation = "analog" | ||
elif digital == "NI": | ||
modulation = "digital" | ||
|
||
return LaserNI( | ||
microscope_name=microscope_name, | ||
device_connection=device_connection, | ||
|
@@ -1416,7 +1422,6 @@ def start_galvo( | |
Galvo : GalvoBase | ||
Galvo scanning class. | ||
""" | ||
|
||
if plugin_devices is None: | ||
plugin_devices = {} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should discuss this. I'm hesitant to make the change immediately, but we can consider a better way to communicate the origin.