This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
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 1234_robot_load
- Loading branch information
Showing
31 changed files
with
318 additions
and
422 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
25 changes: 0 additions & 25 deletions
25
src/hyperion/external_interaction/callbacks/abstract_plan_callback_collection.py
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
src/hyperion/external_interaction/callbacks/common/callback_util.py
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,31 @@ | ||
from typing import Callable, Tuple | ||
|
||
from bluesky.callbacks import CallbackBase | ||
|
||
from hyperion.external_interaction.callbacks.rotation.ispyb_callback import ( | ||
RotationISPyBCallback, | ||
) | ||
from hyperion.external_interaction.callbacks.rotation.nexus_callback import ( | ||
RotationNexusFileCallback, | ||
) | ||
from hyperion.external_interaction.callbacks.xray_centre.ispyb_callback import ( | ||
GridscanISPyBCallback, | ||
) | ||
from hyperion.external_interaction.callbacks.xray_centre.nexus_callback import ( | ||
GridscanNexusFileCallback, | ||
) | ||
from hyperion.external_interaction.callbacks.zocalo_callback import ZocaloCallback | ||
|
||
CallbacksFactory = Callable[[], Tuple[CallbackBase, CallbackBase]] | ||
|
||
|
||
def create_gridscan_callbacks() -> ( | ||
Tuple[GridscanNexusFileCallback, GridscanISPyBCallback] | ||
): | ||
return (GridscanNexusFileCallback(), GridscanISPyBCallback(emit=ZocaloCallback())) | ||
|
||
|
||
def create_rotation_callbacks() -> ( | ||
Tuple[RotationNexusFileCallback, RotationISPyBCallback] | ||
): | ||
return (RotationNexusFileCallback(), RotationISPyBCallback(emit=ZocaloCallback())) |
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
31 changes: 0 additions & 31 deletions
31
src/hyperion/external_interaction/callbacks/rotation/callback_collection.py
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
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
Oops, something went wrong.