Skip to content

Commit

Permalink
🎨 Format Python code with psf/black
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink authored Apr 15, 2024
1 parent 054367d commit 7e0b870
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion dacapo/experiments/datasplits/datasets/raw_gt_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def __init__(self, dataset_config):
else None
)
except Exception as e:
raise Exception(f"Error loading arrays for dataset {self.name}: {e} \n {dataset_config}")
raise Exception(
f"Error loading arrays for dataset {self.name}: {e} \n {dataset_config}"
)
self.sample_points = dataset_config.sample_points
self.weight = dataset_config.weight
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
2 changes: 1 addition & 1 deletion tests/fixtures/architectures.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
def dummy_architecture():
yield DummyArchitectureConfig(
name="dummy_architecture", num_in_channels=1, num_out_channels=12
)
)

0 comments on commit 7e0b870

Please sign in to comment.