Skip to content

Commit

Permalink
balck format
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Apr 16, 2024
1 parent 690da60 commit 0b443d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
5 changes: 2 additions & 3 deletions dacapo/experiments/datasplits/datasets/arrays/zarr_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def __init__(self, array_config):
self._attributes = self.data.attrs
self._axes = array_config._axes
self.snap_to_grid = array_config.snap_to_grid


def __str__(self):
"""
Expand Down Expand Up @@ -144,7 +143,7 @@ def __repr__(self):
"""
return f"ZarrArray({self.file_name}, {self.dataset})"

@property
def mode(self):
if not hasattr(self, "_mode"):
Expand Down Expand Up @@ -421,7 +420,7 @@ def create_from_array_identifier(
num_channels,
voxel_size,
dtype,
mode = "a",
mode="a",
write_size=None,
name=None,
overwrite=False,
Expand Down
4 changes: 2 additions & 2 deletions dacapo/experiments/datasplits/datasplit_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def get_right_resolution_array_config(
file_name=container,
dataset=str(current_dataset_path),
snap_to_grid=target_resolution,
mode = "r"
mode="r",
)
zarr_array = ZarrArray(zarr_config)
while (
Expand All @@ -138,7 +138,7 @@ def get_right_resolution_array_config(
file_name=container,
dataset=str(Path(dataset, f"s{level}")),
snap_to_grid=target_resolution,
mode = "r"
mode="r",
)

zarr_array = ZarrArray(zarr_config)
Expand Down
5 changes: 3 additions & 2 deletions dacapo/experiments/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def __init__(self, run_config, load_starter_model: bool = True):

# lazy load datasplit
self._datasplit = None


# combined pieces
self.model = self.task.create_model(self.architecture)
Expand Down Expand Up @@ -156,7 +155,9 @@ def datasplit(self):
def validation_scores(self):
if self._validation_scores is None:
self._validation_scores = ValidationScores(
self.task.parameters, self.datasplit.validate, self.task.evaluation_scores
self.task.parameters,
self.datasplit.validate,
self.task.evaluation_scores,
)
return self._validation_scores

Expand Down

0 comments on commit 0b443d4

Please sign in to comment.