Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'cellfinder-merge' of github.com:brainglobe/cellfinder-c…
Browse files Browse the repository at this point in the history
…ore into cellfinder-merge
  • Loading branch information
willGraham01 committed Aug 24, 2023
2 parents dfcedf7 + 1e7829b commit 6466455
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: tests
on:
# Only run on pushes to main, or when version tags are pushed
push:
branches:
branches:
- "main"
tags:
- "v**"
Expand Down
3 changes: 0 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ repos:
args: [--config-file, pyproject.toml]
exclude:
- benchmarks/benchmarks/tools/IO.py
- examples/*
- resources/*
- cellfinder/napari*
additional_dependencies:
- types-setuptools
- types-requests
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ graft cellfinder
prune benchmarks
prune examples
prune resources
prune tests
prune tests
2 changes: 1 addition & 1 deletion cellfinder/napari/detect/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from typing import Optional

import napari
from cellfinder.core.classify.cube_generator import get_cube_depth_min_max
from magicgui import magicgui
from magicgui.widgets import FunctionGui, ProgressBar
from napari.utils.notifications import show_info
from qtpy.QtWidgets import QScrollArea

from cellfinder.core.classify.cube_generator import get_cube_depth_min_max
from cellfinder.napari.utils import (
add_layers,
header_label_widget,
Expand Down
3 changes: 2 additions & 1 deletion cellfinder/napari/detect/thread_worker.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from cellfinder.core.main import main as cellfinder_run
from napari.qt.threading import WorkerBase, WorkerBaseSignals
from qtpy.QtCore import Signal

from cellfinder.core.main import main as cellfinder_run

from .detect_containers import (
ClassificationInputs,
DataInputs,
Expand Down
2 changes: 1 addition & 1 deletion cellfinder/napari/train/train.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from pathlib import Path
from typing import Optional

from cellfinder.core.train.train_yml import run as train_yml
from magicgui import magicgui
from magicgui.widgets import FunctionGui, PushButton
from napari.qt.threading import thread_worker
from napari.utils.notifications import show_info

from cellfinder.core.train.train_yml import run as train_yml
from cellfinder.napari.utils import (
header_label_widget,
html_label_widget,
Expand Down
4 changes: 2 additions & 2 deletions cellfinder/napari/train/train_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from pathlib import Path
from typing import Optional

from cellfinder.core.download.models import model_weight_urls
from cellfinder.core.train.train_yml import models
from magicgui.types import FileDialogMode

from cellfinder.core.download.models import model_weight_urls
from cellfinder.core.train.train_yml import models
from cellfinder.napari.input_container import InputContainer
from cellfinder.napari.utils import html_label_widget

Expand Down
2 changes: 1 addition & 1 deletion tests/napari/test_train_containers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from inspect import signature

import pytest
from cellfinder.core.train.train_yml import run

from cellfinder.core.train.train_yml import run
from cellfinder.napari.train.train_containers import (
MiscTrainingInputs,
OptionalNetworkInputs,
Expand Down

0 comments on commit 6466455

Please sign in to comment.