Skip to content

Commit

Permalink
Bugfix when port is not passe d on cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Lippeveld committed May 22, 2024
1 parent 216b0c5 commit c24ca27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scip/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def __enter__(self):
elif self.mode == "local":
from dask.distributed import LocalCluster
with dask.config.set({"distributed.worker.resources.cellpose": 1}):
self.port = self.port or "8787"
self.cluster = LocalCluster(
n_workers=self.n_workers, threads_per_worker=self.threads_per_process,
processes=True, dashboard_address=f":{self.port}"
Expand Down

0 comments on commit c24ca27

Please sign in to comment.