Skip to content

Commit

Permalink
change to relative import
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Aug 19, 2024
1 parent c0652a8 commit 8f942f9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/_static/exengine_bigpicture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/_static/tokenization.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/exengine/examples/implicit_vs_explicit_excutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion src/exengine/kernel/notification_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 8f942f9

Please sign in to comment.