-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use new load for panda setup * Add updated panda settings yaml file * Link to issue in comments
- Loading branch information
1 parent
aa5f360
commit 5533d56
Showing
13 changed files
with
1,140 additions
and
1,003 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from ophyd_async.core import YamlSettingsProvider | ||
from ophyd_async.fastcs.panda import HDFPanda | ||
from ophyd_async.plan_stubs import apply_panda_settings, retrieve_settings | ||
|
||
|
||
def load_panda_from_yaml(yaml_directory: str, yaml_file_name: str, panda: HDFPanda): | ||
provider = YamlSettingsProvider(yaml_directory) | ||
settings = yield from retrieve_settings(provider, yaml_file_name, panda) | ||
yield from apply_panda_settings(settings) |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import os | ||
|
||
# Change once Python<3.12 is dropped - see https://github.com/DiamondLightSource/mx-bluesky/issues/798 | ||
ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) |
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.