Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yrkim98 committed Feb 14, 2024
1 parent 2557a98 commit 934d6cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/allencell_ml_segmenter/prediction/file_input_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
from allencell_ml_segmenter.prediction.model import (
PredictionModel,
PredictionInputMode,

)
from allencell_ml_segmenter.prediction.service import extract_num_channels_from_image
from allencell_ml_segmenter.prediction.service import (
extract_num_channels_from_image,
)

from allencell_ml_segmenter.widgets.check_box_list_widget import (
CheckBoxListWidget,
Expand Down
3 changes: 2 additions & 1 deletion src/allencell_ml_segmenter/prediction/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def _determine_input_selection_type(self, path: Path):
elif path.suffix == ".csv":
return self.extract_num_channels_from_csv(path)


def extract_num_channels_from_image(path: Path):
img: AICSImage = AICSImage(str(path))
return img.dims.C
return img.dims.C
2 changes: 1 addition & 1 deletion src/allencell_ml_segmenter/services/training_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from allencell_ml_segmenter.core.subscriber import Subscriber
from allencell_ml_segmenter.core.event import Event

# from cyto_dl.api.model import CytoDLModel
from cyto_dl.api.model import CytoDLModel

# from lightning.pytorch.callbacks import Callback

Expand Down

0 comments on commit 934d6cf

Please sign in to comment.