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

Cellfinder merge #218

Closed
wants to merge 268 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
5e4dc4b
update links
adamltyson Apr 27, 2021
2aba436
Update readme
adamltyson Apr 27, 2021
a928520
Bump version: 0.0.6 → 0.0.7-rc0
adamltyson Apr 27, 2021
c1ae264
Bump version: 0.0.7-rc0 → 0.0.7
adamltyson Apr 27, 2021
fc98c14
Create cell layer metadata for I/O
adamltyson Apr 27, 2021
cb2eca4
Bump version: 0.0.7 → 0.0.8-rc0
adamltyson Apr 27, 2021
f7176a8
Bump version: 0.0.8-rc0 → 0.0.8
adamltyson Apr 27, 2021
4e28f2c
tooltips
adamltyson Apr 27, 2021
f9bfb22
tooltip instruction
adamltyson Apr 27, 2021
fd80e41
Bump version: 0.0.8 → 0.0.9-rc0
adamltyson Apr 27, 2021
371f997
Bump version: 0.0.9-rc0 → 0.0.9
adamltyson Apr 27, 2021
9bb4263
update readme
adamltyson Apr 28, 2021
bfd2b8f
Update README.md
adamltyson May 7, 2021
2e5decc
Add logo to manifest (#17)
adamltyson May 8, 2021
c822373
Bump version: 0.0.10-rc5 → 0.0.10
adamltyson May 8, 2021
21b5ae2
update manifest
adamltyson May 8, 2021
262a54c
update supported python versions
adamltyson Jun 10, 2021
4bc4daa
update cellfinder-core version
adamltyson Jun 10, 2021
49c846a
update citation
adamltyson Jun 10, 2021
dbb6d39
Bump version: 0.0.10 → 0.0.11-rc0
adamltyson Jun 10, 2021
a1ad844
Bump version: 0.0.11-rc0 → 0.0.11
adamltyson Jun 10, 2021
b832395
Update use of deprecated napari API to viewer.layers.selection
adamltyson Jun 16, 2021
2cc4a92
allow overwrite of training data layers
adamltyson Jun 16, 2021
8fddcaa
Bump version: 0.0.11 → 0.0.12-rc0
adamltyson Jun 16, 2021
cf446f9
Bump version: 0.0.12-rc0 → 0.0.12
adamltyson Jun 16, 2021
f6e96e6
run tests on PR
adamltyson Jun 21, 2021
45ac981
update twitter
adamltyson Jun 22, 2021
6a65c54
Update URL
adamltyson Jun 28, 2021
3f78470
Bump version: 0.0.12 → 0.0.13-rc0
adamltyson Jun 29, 2021
39b58bb
Bump version: 0.0.13-rc0 → 0.0.13
adamltyson Jun 29, 2021
2b35a9f
update setup.py
adamltyson Jun 29, 2021
969f61b
Bump version: 0.0.13 → 0.0.14-rc0
adamltyson Jun 29, 2021
6b0b1ef
Bump version: 0.0.14-rc0 → 0.0.14
adamltyson Jun 29, 2021
bd01cbc
update license
adamltyson Jun 29, 2021
6072989
Bump version: 0.0.14 → 0.0.15-rc0
adamltyson Jun 29, 2021
3818e6f
Bump version: 0.0.15-rc0 → 0.0.15
adamltyson Jun 29, 2021
528f89d
update license
adamltyson Jun 29, 2021
51cdbca
Bump version: 0.0.15 → 0.0.16-rc0
adamltyson Jun 29, 2021
fb11d54
Bump version: 0.0.16-rc0 → 0.0.16
adamltyson Jun 29, 2021
0a3b890
add user support
adamltyson Jun 29, 2021
3566e9c
Bump version: 0.0.16 → 0.0.17-rc0
adamltyson Jun 29, 2021
4a1a99c
Bump version: 0.0.17-rc0 → 0.0.17
adamltyson Jun 29, 2021
7a5e181
revert url changes
adamltyson Jun 29, 2021
70d8757
bump vesion
adamltyson Jun 29, 2021
d97f6e9
Bump version: 0.0.17 → 0.0.18-rc0
adamltyson Jun 29, 2021
99409b5
Bump version: 0.0.18-rc0 → 0.0.18
adamltyson Jun 29, 2021
02cdd20
Fix tooltip typo
adamltyson Aug 4, 2021
c87916b
Update README.md
adamltyson Sep 22, 2021
0a9a7db
Update README.md
adamltyson Sep 22, 2021
5e096d3
Fix typo
adamltyson Sep 22, 2021
6b82927
Update README.md
adamltyson Sep 22, 2021
9a58a3b
Update README.md
adamltyson Sep 22, 2021
641f729
Add categories and preview page workflow for the napari hub (#30)
neuromusic Dec 21, 2021
e262077
Migrate to napari plugin engine 2 (#33)
alessandrofelder Jan 20, 2022
6c74c38
improve tooltip
alessandrofelder Feb 2, 2022
31428fd
Merge pull request #50 from brainglobe/improve-trained-model-tooltip
alessandrofelder Feb 2, 2022
75b43cf
include missing YAML files in sdist
alessandrofelder Feb 2, 2022
5d4218c
Update README.md
adamltyson Feb 15, 2022
5659ce6
reorder imports with isort
alessandrofelder Feb 11, 2022
fc829cc
move add_layers to separate python file
alessandrofelder Feb 11, 2022
b5c7f1a
move threadworker to separate file
alessandrofelder Feb 11, 2022
1516275
move default parameters to separate file
alessandrofelder Feb 11, 2022
ae0682c
possible way to reduce number of arguments - dataclass for inputs
alessandrofelder Feb 11, 2022
00d5e10
create detection input class to shorten code
alessandrofelder Feb 11, 2022
d482194
pass data inputs as dict
alessandrofelder Feb 11, 2022
f4a83ef
restore defaults doesn't need event value argument
alessandrofelder Feb 11, 2022
c6fc6c6
consistently use lowercase variable names internally
alessandrofelder Feb 11, 2022
e9d4500
Merge pull request #51 from brainglobe/fix-manifest
dpshelio Feb 17, 2022
c562926
add base class for inputs
alessandrofelder Feb 17, 2022
8e6f240
Run `pre-commit`
paddyroddy Feb 18, 2022
ddb315f
Expand the `pre-commit` checks to other useful options
paddyroddy Feb 18, 2022
169d6cc
Add separate linting CI
paddyroddy Feb 18, 2022
b3587c8
Run `pre-commit` and fix besides `mypy`
paddyroddy Feb 18, 2022
2c7235e
Run future `pre-commit` hooks, `mypy` still fails
paddyroddy Feb 18, 2022
b998960
Merge pull request #60 from brainglobe/run-pre-commit
paddyroddy Feb 18, 2022
53e898f
Merge pull request #58 from brainglobe/expand-pre-commit-checks-add-ci
paddyroddy Feb 18, 2022
cd264ab
Move badges (#61)
paddyroddy Feb 21, 2022
4015c46
Merge main into `reformat-structure` branch (#64)
paddyroddy Feb 23, 2022
5d827fe
Change to linting, manifest, test (#66)
paddyroddy Feb 23, 2022
865aa4a
address review comments
alessandrofelder Feb 24, 2022
da85b74
format with black
alessandrofelder Feb 25, 2022
336455a
add some return types
alessandrofelder Feb 25, 2022
a384b3d
make numerical widget rep private, and make step adapt to type if uns…
alessandrofelder Feb 25, 2022
52461a3
small stylistic improvements
alessandrofelder Feb 25, 2022
c6a7524
fix small bug, fix step size for ints
alessandrofelder Feb 25, 2022
2c50b89
Merge remote-tracking branch 'origin/reformat-restructure' into refor…
alessandrofelder Feb 25, 2022
0bef462
fix botched merge
alessandrofelder Feb 25, 2022
2a24c54
Merge branch 'main' into reformat-restructure
alessandrofelder Feb 25, 2022
777e622
Merge pull request #54 from brainglobe/reformat-restructure
alessandrofelder Mar 3, 2022
82082d9
Fix `isort`
paddyroddy Mar 3, 2022
4463b61
Fix `setuptools`
paddyroddy Mar 3, 2022
8638523
Fix `Optional[Path]` typing
paddyroddy Mar 3, 2022
c4f9c64
Fix missing `Optional[Path]`
paddyroddy Mar 3, 2022
b37970e
Missed type in `ClassificationInputs` `dataclass`
paddyroddy Mar 3, 2022
e3974b2
Function has erroneous return type
paddyroddy Mar 3, 2022
c77588b
Ignore line due to `mypy` thinking its a list and a `Path`
paddyroddy Mar 3, 2022
fee16f4
Merge pull request #68 from brainglobe/fix-issue-59
paddyroddy Mar 4, 2022
c411efb
Open error box if both images not specified
dstansby Mar 4, 2022
3ae901b
Add option to use pre-trained weights
dstansby Mar 8, 2022
f1e1baf
Merge pull request #70 from dstansby/use-default-model
dstansby Mar 8, 2022
f1271e8
Merge pull request #69 from dstansby/no-data-error
dstansby Mar 8, 2022
a24481a
Add progress bar to detection
dstansby Mar 9, 2022
b56cb5f
Update codecov action to v2
dstansby Mar 11, 2022
2462a46
Merge pull request #73 from dstansby/progress-bars
dstansby Mar 11, 2022
eeef58c
Merge pull request #78 from dstansby/codecov
paddyroddy Mar 11, 2022
6fa6502
Add scroll bars to widget
dstansby Mar 11, 2022
9ff68c4
correct voxel size y default
alessandrofelder Mar 11, 2022
7976ae2
Merge pull request #81 from brainglobe/correct-voxel-size-y
paddyroddy Mar 11, 2022
66e1fe1
Merge pull request #79 from dstansby/scroll
alessandrofelder Mar 15, 2022
735f5e4
Add a basic widget test (#82)
dstansby Mar 15, 2022
eadafe9
Bump version: 0.0.18 → 0.0.19-rc0
adamltyson Mar 17, 2022
0acf4d2
Bump version: 0.0.19-rc0 → 0.0.19
adamltyson Mar 18, 2022
d9e7627
Bump pre-commit black version to fix pre-commit (#89)
dstansby Mar 29, 2022
5fa63f1
Update QT setup on github actions
dstansby Mar 29, 2022
bd0fd90
Merge pull request #90 from dstansby/qt-setup
paddyroddy Mar 29, 2022
2ac36a8
Add sample data as plugin
dstansby Mar 29, 2022
650c347
Move detection files to sub-folder
dstansby Mar 29, 2022
963cabe
Merge pull request #85 from dstansby/sample-data
paddyroddy Mar 29, 2022
b74a0d4
Merge pull request #91 from dstansby/detect-folder
paddyroddy Mar 29, 2022
76c8f8f
Add more docstrings and typing (#93)
dstansby Apr 5, 2022
b3cfd2d
Use BrainGlobe composite actions to run tests (#94)
dstansby Apr 6, 2022
eec193c
Add signature typing to curation.py (#101)
dstansby Apr 6, 2022
6dd663b
Use napari show_info to communicate messages to users (#100)
dstansby Apr 7, 2022
4a59add
Add smoke test for curation widget (#102)
dstansby Apr 11, 2022
23adfb4
Drop Python 3.7 tests, add 3.10 tests
dstansby Apr 22, 2022
7564864
Run linting and manifest jobs in parallel
dstansby Apr 22, 2022
8842910
Fix os/platform variable name
dstansby Apr 22, 2022
fa4a0d6
Add Python 3.10 to tox.ini
dstansby Apr 22, 2022
f2f40f5
Remove platform specific tox config
dstansby Apr 25, 2022
4bcb1a4
Remove python 3.10 tests for now
dstansby Apr 25, 2022
ad03d62
Merge pull request #104 from dstansby/test-py310
paddyroddy Apr 25, 2022
0311b35
Add simple smoke test for the main worker
dstansby Mar 29, 2022
29f396c
Bump cellfinder-core requirement
dstansby Apr 25, 2022
1883d4a
Merge pull request #92 from dstansby/worker-test
paddyroddy Apr 26, 2022
6d3cae3
Update development dependencies
dstansby Apr 26, 2022
4b2554a
Merge pull request #107 from dstansby/dev-dep
paddyroddy Apr 26, 2022
cb62407
Test adding new training layers for cell curation (#105)
dstansby Apr 26, 2022
6cabda9
Test adding cells and non-cells during curation. (#106)
dstansby Apr 28, 2022
dcc0f41
Add tests for cube extraction
dstansby Apr 26, 2022
4ea4540
Speed up detection test
dstansby Apr 29, 2022
c988314
Remove old plugin engine v1 file
dstansby Apr 29, 2022
8e0ce7a
De-duplicate widget header
dstansby Apr 29, 2022
60f2523
Swap order detection sample data is loaded
dstansby Apr 29, 2022
6900c61
Add example to load napari and show detection sample data/widget
dstansby Apr 29, 2022
c51fd49
Merge pull request #109 from dstansby/cube-extract-test
alessandrofelder May 4, 2022
94e3d96
Merge pull request #110 from dstansby/detect-test-speed
alessandrofelder May 4, 2022
965789c
Merge pull request #111 from dstansby/remove-npe1
alessandrofelder May 4, 2022
35ad580
Merge pull request #113 from dstansby/dedup-header
alessandrofelder May 4, 2022
c8f926f
Update examples/show_detection_sample.py
dstansby May 5, 2022
f3b97dd
Merge pull request #114 from dstansby/detect-example
alessandrofelder May 5, 2022
fd300ed
separate abstract input class to own file
alessandrofelder May 24, 2022
7313df4
implement training modularly
alessandrofelder May 24, 2022
3522a5b
add training smoke test; update detection tests
alessandrofelder May 24, 2022
226c13e
Add link to contributing guide
adamltyson May 31, 2022
a42233f
Fix deprecated image saving function
dstansby May 20, 2022
57a60e4
Add progress bar for saving curated data
dstansby May 20, 2022
2b998b6
Apply minor suggestions from review
dstansby Jun 13, 2022
99ec0a9
Merge pull request #103 from dstansby/curate-progress
dstansby Jun 13, 2022
86272d4
Apply suggestions from code review
alessandrofelder Jun 20, 2022
423880e
address more review comments
alessandrofelder Jun 20, 2022
c702b62
use FileDialogMode for clarity
alessandrofelder Jun 21, 2022
0462126
Apply suggestions from second round code review
alessandrofelder Jun 21, 2022
2144dc7
move import statement to top
alessandrofelder Jun 21, 2022
9b77a0c
enforce kwargs for html_label
alessandrofelder Jun 21, 2022
59e8dd2
enforce kwargs for html_label
alessandrofelder Jun 21, 2022
144cacb
Merge branch 'modularise-inputs' of https://github.com/brainglobe/cel…
alessandrofelder Jun 21, 2022
9c0e03d
Merge pull request #121 from brainglobe/modularise-inputs
alessandrofelder Jun 21, 2022
37804b3
Bump2version fix whitespace
paddyroddy Jun 23, 2022
2a44950
Merge pull request #123 from brainglobe/fix-issue-84
paddyroddy Jun 23, 2022
7e8cf61
Propagate errors from the worker to main thread
dstansby Jun 23, 2022
d6e9f54
Give the user more feedback when running detection
dstansby Jun 23, 2022
7d2495a
Merge pull request #125 from dstansby/propagate-errors
paddyroddy Jun 23, 2022
31d5879
correct default model_depth value
alessandrofelder Jun 24, 2022
3d77c9c
add test for training reset button
alessandrofelder Jun 24, 2022
de7e244
Reset progress bar when setting up classification
dstansby Jun 24, 2022
d5c94b6
Merge pull request #126 from dstansby/detect-feedback
dstansby Jun 24, 2022
4467957
rename train() to training_widget()
alessandrofelder Jun 27, 2022
b1a5346
add tests for reset and run buttons
alessandrofelder Jun 27, 2022
6d78fa0
add tests for training container core args
alessandrofelder Jun 27, 2022
2e43520
add docstrings to training tests
alessandrofelder Jun 27, 2022
501e924
fix typo
alessandrofelder Jun 27, 2022
ccf1729
rename detect() to detect_widget()
alessandrofelder Jun 27, 2022
98ed41c
increase detection test coverage
alessandrofelder Jun 27, 2022
b96931e
add smoke/unit tests for utils
alessandrofelder Jun 27, 2022
fd34d4c
remove debug print statement
alessandrofelder Jun 28, 2022
19c0a5e
add smoke tests for add_combobox and add_button utils
alessandrofelder Jun 28, 2022
fc3ffcf
add test for show_info() in detect
alessandrofelder Jun 28, 2022
e8fbf78
add tests for some curation functionality
alessandrofelder Jun 28, 2022
34dbb8a
update renamed refs to detect_widget in YAML
alessandrofelder Jun 28, 2022
924ea2d
add test widgets to viewer via napari.yaml names
alessandrofelder Jun 28, 2022
64b4253
additional test for show_info message
alessandrofelder Jun 28, 2022
3026bf1
use set to check core_args are pass as expected.
alessandrofelder Jun 28, 2022
6764f95
remove explicit checks (now implicitly checked elsewhere)
alessandrofelder Jun 28, 2022
79b568d
add assertion to add_layers test
alessandrofelder Jun 28, 2022
35c5780
Simplify test parametrisation logic
alessandrofelder Jun 28, 2022
706b675
Merge pull request #128 from brainglobe/expand-training-tests
dstansby Jun 28, 2022
e2d73a3
Update website badge
adamltyson Jul 27, 2022
a0feac2
Use official scrollable widget (#136)
adamltyson Oct 14, 2022
11b451b
Bump version: 0.0.19 → 0.0.20-rc0
adamltyson Oct 14, 2022
8c7a5e0
Bump version: 0.0.20-rc0 → 0.0.20
adamltyson Oct 21, 2022
cb30211
Update requirements (#143)
adamltyson Oct 24, 2022
83a9390
Remove patch version of plugin preview action (#144)
adamltyson Dec 6, 2022
a390f8f
Update .pre-commit-config.yaml (#145)
adamltyson Dec 6, 2022
11e4c8a
Fix tests (#149)
dstansby Feb 3, 2023
ef1ef89
Use standard pre-commit config (#150)
dstansby Feb 21, 2023
f0799f6
Update yaml filter
adamltyson Mar 9, 2023
c1e62ea
Merge pull request #152 from brainglobe/update-yaml-filter
alessandrofelder Mar 13, 2023
d66f030
Use pyproject (#151)
dstansby Mar 14, 2023
46e0c67
Update README.md
adamltyson Apr 24, 2023
a4ecac0
Merge pull request #154 from brainglobe/readme-update
dstansby Apr 24, 2023
a0f58a3
Update links (#156)
adamltyson Jun 19, 2023
6a31e05
[pre-commit.ci] pre-commit autoupdate (#158)
pre-commit-ci[bot] Jun 20, 2023
5dbfab2
Update dependency (imlib -> brainglobe-utils) (#159)
adamltyson Jun 26, 2023
73e83d7
[pre-commit.ci] pre-commit autoupdate (#160)
pre-commit-ci[bot] Jun 27, 2023
9425a82
[pre-commit.ci] pre-commit autoupdate (#161)
pre-commit-ci[bot] Jul 4, 2023
2005651
[pre-commit.ci] pre-commit autoupdate (#162)
pre-commit-ci[bot] Jul 11, 2023
31a5369
Update links (#163)
adamltyson Jul 13, 2023
a989125
[pre-commit.ci] pre-commit autoupdate (#164)
pre-commit-ci[bot] Jul 18, 2023
d3b760b
[pre-commit.ci] pre-commit autoupdate (#165)
pre-commit-ci[bot] Jul 25, 2023
63bc952
[pre-commit.ci] pre-commit autoupdate (#166)
pre-commit-ci[bot] Aug 1, 2023
832bbed
[pre-commit.ci] pre-commit autoupdate (#167)
pre-commit-ci[bot] Aug 8, 2023
ed7383d
[pre-commit.ci] pre-commit autoupdate (#169)
pre-commit-ci[bot] Aug 17, 2023
16444e7
Update CI deployment to use NI unit actions (#168)
willGraham01 Aug 21, 2023
5fab318
[pre-commit.ci] pre-commit autoupdate (#170)
pre-commit-ci[bot] Aug 22, 2023
c229629
Restructure under cellfinder umbrella
willGraham01 Aug 23, 2023
1ec39bf
Rename most of the cellfinder_core to cellfinder.core
willGraham01 Aug 23, 2023
574e624
cellfinder_core tests now just in core
willGraham01 Aug 23, 2023
9ffee87
Separate cellfinder-core config files in prep for merge
willGraham01 Aug 23, 2023
b6c99fb
Merge cellfinder-napari into cellfinder-core
willGraham01 Aug 23, 2023
7e8d44e
Rename cellfinder-napari to cellfinder.napari
willGraham01 Aug 23, 2023
058eeb7
Move cellfinder.napari tests into test directory
willGraham01 Aug 23, 2023
a57c5dd
Move cellfinder napari config files into temporary subdirectory
willGraham01 Aug 23, 2023
7c32862
Reconcile licenses
willGraham01 Aug 23, 2023
3263080
Reconcile pre-commits
willGraham01 Aug 23, 2023
f115785
Reconcile pyproject.tomls
willGraham01 Aug 23, 2023
52b872b
Reconcile manifests
willGraham01 Aug 24, 2023
b84bd24
Reinstate cellfinder-core changelog
willGraham01 Aug 24, 2023
6075227
Reinstate .codedov
willGraham01 Aug 24, 2023
0fdefea
Reinstate plugin preview workflow
willGraham01 Aug 24, 2023
0dec9bc
Reconcile tox
willGraham01 Aug 24, 2023
a14889f
Reconcile READMEs temporarily
willGraham01 Aug 24, 2023
d907858
Reconcile CI workflows
willGraham01 Aug 24, 2023
1e7829b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 24, 2023
dfcedf7
mypy to ignore things
willGraham01 Aug 24, 2023
3627c62
Merge branch 'cellfinder-merge' of github.com:brainglobe/cellfinder-c…
willGraham01 Aug 24, 2023
f18f840
Disable mypy for time being
willGraham01 Aug 24, 2023
3bc4f4e
Fix plugin things by moving to non-flat directory struture
willGraham01 Aug 24, 2023
e276749
Move to flat directory structure.
willGraham01 Aug 29, 2023
67dec4c
Explicitly add napari.yaml to MANIFEST
willGraham01 Aug 29, 2023
9fe13ff
Make napari functionality optional
willGraham01 Aug 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ comment: false
flags:
numba:
paths:
- src/cellfinder_core/detect/filters/plane/tile_walker.py
- src/cellfinder_core/detect/filters/volume/ball_filter.py
- src/cellfinder_core/detect/filters/volume/structure_detection.py
- cellfinder/core/detect/filters/plane/tile_walker.py
- cellfinder/core/detect/filters/volume/ball_filter.py
- cellfinder/core/detect/filters/volume/structure_detection.py
carryforward: true
19 changes: 19 additions & 0 deletions .github/workflows/plugin_preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: napari hub Preview Page # we use this name to find your preview page artifact, so don't change it!
# For more info on this action, see https://github.com/chanzuckerberg/napari-hub-preview-action/blob/main/action.yml

on:
pull_request:

jobs:
preview-page:
name: Preview Page Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: napari hub Preview Page Builder
uses: chanzuckerberg/[email protected]
with:
hub-ref: main
30 changes: 23 additions & 7 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
name: tests

on:
# Only run on pushes to main, or when version tags are pushed
push:
branches: [ main ]
branches:
- "main"
tags:
- '*'
- "v**"
# Run on all pull-requests
pull_request:
branches: [ '*' ]
# Allow workflow dispatch from GitHub
workflow_dispatch:

concurrency:
# Cancel this workflow if it is running,
# and then changes are applied on top of the HEAD of the branch,
# triggering another run of the workflow
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
linting:
Expand All @@ -22,6 +33,7 @@ jobs:

test:
needs: [linting, manifest]
name: Run package tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -31,20 +43,25 @@ jobs:
# Include one windows, one macos run
include:
- os: macos-latest
python-version: "3.9"
python-version: "3.10"
- os: windows-latest
python-version: "3.9"
python-version: "3.10"

steps:
# Cache the tensorflow model so we don't have to remake it every time
- name: Cache tensorflow model
uses: actions/cache@v3
with:
path: "~/.cellfinder"
key: models-${{ hashFiles('~/.cellfinder/**') }}
# Setup pyqt libraries
- name: Setup qtpy libraries
uses: tlambert03/setup-qt-libs@v1
# Run all tests
- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: ${{ matrix.python-version }}

use-xvfb: true

# Run cellfinder tests to make sure cellfinder is still compatible
# with cellfinder-core
Expand Down Expand Up @@ -77,7 +94,6 @@ jobs:
# Install checked out copy of cellfinder
python -m pip install .[dev]


- name: Run cellfinder tests
run: |
python -m pytest --color=yes -v
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test_include_guard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ name: Test Tensorflow include guards
on:
pull_request:
push:
branches: [main]
branches:
- main

jobs:
tensorflow_guards:
Expand All @@ -31,7 +32,8 @@ jobs:
with:
fail-on-error: true
script: |
import cellfinder_core
import cellfinder.core
import cellfinder.napari

- name: Uninstall tensorflow
run: python -m pip uninstall -y tensorflow
Expand All @@ -42,7 +44,7 @@ jobs:
with:
fail-on-error: false
script: |
import cellfinder_core
import cellfinder.core

# exit 1 will force an actions exit with a failure reported
- name: Flag error thrown by broken import
Expand Down
17 changes: 15 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
*.conf.custom

# Byte-compiled / optimized / DLL files
__pycache__/
**/__pycache__/
*.py[cod]
*$py.class

Expand All @@ -15,6 +15,7 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
Expand Down Expand Up @@ -53,6 +54,7 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/
.napari_cache/

# Translations
*.mo
Expand All @@ -77,10 +79,13 @@ doc/build/
_build/
mkdocs.yml

# MkDocs documentation
/site/

# PyBuilder
target/

# Jupyter Notebook
# IPython Notebook
.ipynb_checkpoints

# pyenv
Expand Down Expand Up @@ -130,3 +135,11 @@ mprofile*.dat
benchmarks/results
benchmarks/html
benchmarks/env

# OS
.DS_Store

# written by setuptools_scm
*/_version.py

.idea/
14 changes: 14 additions & 0 deletions .napari/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Add labels from the EDAM Bioimaging ontology
labels:
ontology: EDAM-BIOIMAGING:alpha06
terms:
- Image feature detection
- 3D image
- Image registration
- Multi-photon microscopy
- Light-sheet microscopy
- Image segmentation
- Image thresholding
- Image annotation
- Object classification
- Object feature extraction
12 changes: 0 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,3 @@ repos:
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
hooks:
- id: mypy
args: [--config-file, pyproject.toml]
exclude: benchmarks/benchmarks/tools/IO.py
additional_dependencies:
- types-setuptools
- types-requests
- types-tqdm
- dask
- numpy
Loading
Loading