From 242d9c1e755c1732641f986662bff1fc838b10dc Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Wed, 2 Oct 2024 10:23:54 +0200 Subject: [PATCH] update to latest changes in bfabricPy --- .../app_interface/dispatch_app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/depiction_targeted_preproc/app_interface/dispatch_app.py b/src/depiction_targeted_preproc/app_interface/dispatch_app.py index 1313156..c5ea358 100644 --- a/src/depiction_targeted_preproc/app_interface/dispatch_app.py +++ b/src/depiction_targeted_preproc/app_interface/dispatch_app.py @@ -8,11 +8,11 @@ from bfabric import Bfabric from bfabric.entities import Resource -from bfabric.experimental.app_interface.workunit.definition import WorkunitDefinition from bfabric.experimental.app_interface.dispatch.dispatch_individual_resources import ( DispatchIndividualResources, - DispatchIndividualResourcesConfig, + config_msi_imzml, ) +from bfabric.experimental.app_interface.workunit.definition import WorkunitDefinition from depiction_targeted_preproc.pipeline.prepare_inputs import write_inputs_spec from depiction_targeted_preproc.pipeline.prepare_params import parse_params @@ -35,7 +35,7 @@ def dispatch_job(self, resource: Resource, params: dict[str, Any]) -> Path: def dispatch_app(workunit_ref: int | Path, work_dir: Path) -> None: client = Bfabric.from_config() workunit_definition = WorkunitDefinition.from_ref(workunit_ref, client) - dispatcher = DispatchApp(client=client, config=DispatchIndividualResourcesConfig(), out_dir=work_dir) + dispatcher = DispatchApp(client=client, config=config_msi_imzml(), out_dir=work_dir) dispatcher.dispatch_workunit(definition=workunit_definition)