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)