Skip to content

Commit

Permalink
Format Python code with psf/black push (#336)
Browse files Browse the repository at this point in the history
There appear to be some python formatting errors in
e69bba2. This pull request
uses the [psf/black](https://github.com/psf/black) formatter to fix
these issues.
  • Loading branch information
mzouink authored Nov 13, 2024
2 parents e69bba2 + 9c4c789 commit fc4a5e6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dacapo/experiments/datasplits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .train_validate_datasplit import TrainValidateDataSplit
from .train_validate_datasplit_config import TrainValidateDataSplitConfig
from .datasplit_generator import DataSplitGenerator, DatasetSpec
from .simple_config import SimpleDataSplitConfig
from .simple_config import SimpleDataSplitConfig
2 changes: 1 addition & 1 deletion dacapo/experiments/datasplits/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .dummy_dataset_config import DummyDatasetConfig
from .raw_gt_dataset import RawGTDataset
from .raw_gt_dataset_config import RawGTDatasetConfig
from .simple import SimpleDataset
from .simple import SimpleDataset
1 change: 0 additions & 1 deletion dacapo/experiments/datasplits/datasets/dummy_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class DummyDataset(Dataset):
Notes:
This class is used to create a dataset with raw data.
"""


raw: Array

Expand Down
5 changes: 2 additions & 3 deletions dacapo/experiments/datasplits/datasets/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from pathlib import Path
import numpy as np


@attr.s
class SimpleDataset(DatasetConfig):

path: Path = attr.ib()
weight: int = attr.ib(default=1)
raw_name: str = attr.ib(default="raw")
Expand Down Expand Up @@ -54,7 +54,6 @@ def mask(self) -> Array | None:
@property
def sample_points(self) -> None:
return None


def __eq__(self, other) -> bool:
return isinstance(other, type(self)) and self.name == other.name
Expand All @@ -66,4 +65,4 @@ def __repr__(self) -> str:
return self.name

def __str__(self) -> str:
return self.name
return self.name
1 change: 1 addition & 0 deletions dacapo/experiments/datasplits/simple_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import glob


@attr.s
class SimpleDataSplitConfig(DataSplitConfig):
"""
Expand Down

0 comments on commit fc4a5e6

Please sign in to comment.