From 8f942f95a020ed81766f47ffef3fd32d40f76e91 Mon Sep 17 00:00:00 2001 From: Henry Pinkard <7969470+henrypinkard@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:03:20 -0400 Subject: [PATCH] change to relative import --- docs/_static/exengine_bigpicture.svg | 4 ++-- docs/_static/tokenization.svg | 4 ++-- src/exengine/examples/implicit_vs_explicit_excutor.py | 6 +++++- src/exengine/kernel/notification_base.py | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/_static/exengine_bigpicture.svg b/docs/_static/exengine_bigpicture.svg index 536e65b..1efb8d6 100644 --- a/docs/_static/exengine_bigpicture.svg +++ b/docs/_static/exengine_bigpicture.svg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:04766fb288bcc938371067e3edb3e90c87532ec28573d4eed8af956efc3982af -size 10337528 +oid sha256:719799206d70f54ae412138691cafc347b5d659c4a6af9c963857e122793fc9b +size 10335093 diff --git a/docs/_static/tokenization.svg b/docs/_static/tokenization.svg index c4ab2af..0e1c310 100644 --- a/docs/_static/tokenization.svg +++ b/docs/_static/tokenization.svg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:540099a4fa9fa2d6a204364c1519356f7b1b09f5110409b31937044cfcffb1d9 -size 3181107 +oid sha256:6bca86284be246b6c8d09f8749c888a12f5911e48eb7eee2402741eee3df7f90 +size 770001 diff --git a/src/exengine/examples/implicit_vs_explicit_excutor.py b/src/exengine/examples/implicit_vs_explicit_excutor.py index 1741bc0..4fafe2e 100644 --- a/src/exengine/examples/implicit_vs_explicit_excutor.py +++ b/src/exengine/examples/implicit_vs_explicit_excutor.py @@ -13,11 +13,15 @@ # This occurs on the executor thread. The event is submitted to the executor and its result is awaited, # meaning the call will block until the method is executed. -z_stage.set_position(100) +z_stage.set_position(100, thread='device_setting_thread') # it is equivalent to: executor.submit(SetPosition1DEvent(position=100, device=z_stage)).await_execution() +executor.submit(SetPosition1DEvent(position=100, device=z_stage), thread='device_setting_thread') +executor.submit(ReadoutImages(), thread='readout_thread') + + executor.shutdown() \ No newline at end of file diff --git a/src/exengine/kernel/notification_base.py b/src/exengine/kernel/notification_base.py index 0db1f87..5500798 100644 --- a/src/exengine/kernel/notification_base.py +++ b/src/exengine/kernel/notification_base.py @@ -5,7 +5,7 @@ from datetime import datetime from dataclasses import field import uuid -from exengine.kernel.data_coords import DataCoordinates +from kernel.data_coords import DataCoordinates TNotificationPayload = TypeVar('TNotificationPayload')