-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6319e60
commit c8bf7e6
Showing
12 changed files
with
357 additions
and
189 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
import numpy as np | ||
from useq import MDAEvent, MDASequence, TIntervalLoops | ||
|
||
from pymmcore_remote.client import MMCoreProxy | ||
from pymmcore_remote import MMCorePlusProxy | ||
|
||
with MMCoreProxy() as core: | ||
print(core) | ||
with MMCorePlusProxy() as core: | ||
core.loadSystemConfiguration() | ||
|
||
@core.mda.events.frameReady.connect | ||
def _onframe(frame: np.ndarray, event: MDAEvent, meta: dict) -> None: | ||
print(frame.shape, event, meta) | ||
|
||
core.loadSystemConfiguration() | ||
print(core.getLoadedDevices()) | ||
print(f"received frame shape {frame.shape}, index {event.index}") | ||
|
||
core.mda.run(MDASequence(time_plan=TIntervalLoops(interval=0.2, loops=8))) |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
__author__ = "Talley Lambert" | ||
__email__ = "[email protected]" | ||
|
||
from .client import MMCoreProxy | ||
from .client import MMCorePlusProxy | ||
from .server import serve, server_process | ||
|
||
__all__ = ["MMCoreProxy"] | ||
__all__ = ["MMCorePlusProxy", "serve", "server_process"] |
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 was deleted.
Oops, something went wrong.
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,21 @@ | ||
"""Server module for pymmcore_remote.""" | ||
|
||
from ._server import ( | ||
CORE_NAME, | ||
DEFAULT_HOST, | ||
DEFAULT_PORT, | ||
DEFAULT_URI, | ||
RemoteCMMCorePlus, | ||
serve, | ||
server_process, | ||
) | ||
|
||
__all__ = [ | ||
"DEFAULT_HOST", | ||
"DEFAULT_PORT", | ||
"DEFAULT_URI", | ||
"serve", | ||
"server_process", | ||
"CORE_NAME", | ||
"RemoteCMMCorePlus", | ||
] |
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,3 @@ | ||
from ._server import main | ||
|
||
main() |
Oops, something went wrong.