Skip to content

Commit

Permalink
update to latest changes in bfabricPy
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Oct 2, 2024
1 parent 098fe53 commit 242d9c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/depiction_targeted_preproc/app_interface/dispatch_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)


Expand Down

0 comments on commit 242d9c1

Please sign in to comment.