Skip to content

Commit

Permalink
Change filename prefix for StaticDirectoryProvider to include group_n…
Browse files Browse the repository at this point in the history
…ame from config
  • Loading branch information
Rose Yemelyanova committed Oct 27, 2023
1 parent 3290f3f commit 4d0042f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/bl38p.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ env:
module: dls_bluesky_core.stubs
data_writing:
visit_directory: /dls/p38/data/2023/cm33874-1
group_name: BL38P
1 change: 0 additions & 1 deletion src/blueapi/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class BlueskyContext:
plans: Dict[str, Plan] = field(default_factory=dict)
devices: Dict[str, Device] = field(default_factory=dict)
plan_functions: Dict[str, PlanGenerator] = field(default_factory=dict)
directory_provider: Optional[DirectoryProvider] = field(default=None)
sim: bool = field(default=False)

_reference_cache: Dict[Type, Type] = field(default_factory=dict)
Expand Down
2 changes: 1 addition & 1 deletion src/blueapi/service/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def setup_handler(

if config:
provider = StaticDirectoryProvider(
filename_prefix="blueapi",
filename_prefix=f"{config.env.data_writing.group_name}-blueapi",
directory_path=str(config.env.data_writing.visit_directory),
)

Expand Down

0 comments on commit 4d0042f

Please sign in to comment.