Skip to content

Commit

Permalink
Format Python code with psf/black push (#106)
Browse files Browse the repository at this point in the history
There appear to be some python formatting errors in
e42012f. This pull request
uses the [psf/black](https://github.com/psf/black) formatter to fix
these issues.
  • Loading branch information
rhoadesScholar authored Feb 15, 2024
2 parents 74e2e39 + 2f65cd6 commit eebe748
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dacapo/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def apply_run(
run: Run,
parameters: PostProcessorParameters,
input_array: Array,
prediction_array_identifier: 'LocalArrayIdentifier',
output_array_identifier: 'LocalArrayIdentifier',
prediction_array_identifier: "LocalArrayIdentifier",
output_array_identifier: "LocalArrayIdentifier",
roi: Optional[Roi] = None,
num_cpu_workers: int = 30,
output_dtype: Optional[np.dtype] = np.uint8, # type: ignore
Expand Down
4 changes: 2 additions & 2 deletions dacapo/blockwise/argmax_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def start_worker(


def spawn_worker(
input_array_identifier: 'LocalArrayIdentifier',
output_array_identifier: 'LocalArrayIdentifier',
input_array_identifier: "LocalArrayIdentifier",
output_array_identifier: "LocalArrayIdentifier",
compute_context: ComputeContext = LocalTorch(),
):
"""Spawn a worker to predict on a given dataset.
Expand Down
4 changes: 2 additions & 2 deletions dacapo/blockwise/predict_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def start_worker(
def spawn_worker(
run_name: str,
iteration: int,
raw_array_identifier: 'LocalArrayIdentifier',
prediction_array_identifier: 'LocalArrayIdentifier',
raw_array_identifier: "LocalArrayIdentifier",
prediction_array_identifier: "LocalArrayIdentifier",
compute_context: ComputeContext = LocalTorch(),
):
"""Spawn a worker to predict on a given dataset.
Expand Down
4 changes: 2 additions & 2 deletions dacapo/blockwise/threshold_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def start_worker(


def spawn_worker(
input_array_identifier: 'LocalArrayIdentifier',
output_array_identifier: 'LocalArrayIdentifier',
input_array_identifier: "LocalArrayIdentifier",
output_array_identifier: "LocalArrayIdentifier",
threshold: float = 0.0,
compute_context: ComputeContext = LocalTorch(),
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def set_prediction(self, prediction_array_identifier):
def process(
self,
parameters: WatershedPostProcessorParameters,
output_array_identifier: 'LocalArrayIdentifier',
output_array_identifier: "LocalArrayIdentifier",
):
output_array = ZarrArray.create_from_array_identifier(
output_array_identifier,
Expand Down
2 changes: 1 addition & 1 deletion dacapo/store/array_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def validation_input_arrays(
pass

@abstractmethod
def remove(self, array_identifier: 'LocalArrayIdentifier') -> None:
def remove(self, array_identifier: "LocalArrayIdentifier") -> None:
"""Remove an array by its identifier."""
pass

Expand Down
2 changes: 1 addition & 1 deletion dacapo/store/local_array_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def validation_container(self, run_name: str) -> LocalContainerIdentifier:
Path(self.__get_run_dir(run_name), "validation.zarr")
)

def remove(self, array_identifier: 'LocalArrayIdentifier') -> None:
def remove(self, array_identifier: "LocalArrayIdentifier") -> None:
container = array_identifier.container
dataset = array_identifier.dataset

Expand Down

0 comments on commit eebe748

Please sign in to comment.