Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
506 commits
Select commit Hold shift + click to select a range
cd0082a
make new branch for ome hcs writer
camFoltz Sep 9, 2021
3744581
create stable hcs/non-hcs writing conformations
camFoltz Sep 11, 2021
f9f3db6
fix small bug
camFoltz Sep 13, 2021
c1b1b81
cleanup
camFoltz Sep 13, 2021
269f676
update example notebook
camFoltz Sep 14, 2021
c86a851
writer update
camFoltz Sep 14, 2021
78c3adf
update metadata checks and provide default values
camFoltz Sep 14, 2021
bd7007a
Automatically choose regularization parameters with L-curve (#35)
tiffchien Sep 14, 2021
7bd03d0
update zarr reader + do refactoring
camFoltz Sep 15, 2021
112353f
remove pychache
camFoltz Sep 15, 2021
0655d25
update zarr reader
camFoltz Sep 15, 2021
801b2cc
add docstrings
camFoltz Sep 15, 2021
fbde83f
add generation of hcs metadata
camFoltz Sep 16, 2021
feb6dbc
add tests
camFoltz Sep 17, 2021
eea07e3
add top level docstring
camFoltz Sep 17, 2021
a3c5993
fix bugs and simplify API
camFoltz Sep 17, 2021
ebb686e
update tests
camFoltz Sep 17, 2021
3b6016d
update simulator to allow polarization state in BF and PH illuminatio…
lihaoyeh Sep 17, 2021
eda34b3
add functionality from converter
camFoltz Sep 20, 2021
fcd0a06
Merge pull request #37 from mehta-lab/writer_omezarr
camFoltz Sep 20, 2021
8ed8bff
Merge pull request #38 from mehta-lab/zarr_reader
camFoltz Sep 20, 2021
0a7e418
Merge branch 'master' of https://github.com/mehta-lab/waveorder into …
camFoltz Sep 20, 2021
0b78c5d
add full functionality
camFoltz Sep 21, 2021
f6e0698
small changes to the writer
camFoltz Sep 21, 2021
d1faefc
fix bug in shape setting
camFoltz Sep 21, 2021
8a0f671
fix another bug in dimension finding
camFoltz Sep 21, 2021
e31f7f3
add docstrings
camFoltz Sep 21, 2021
650d7b2
refactor
camFoltz Sep 22, 2021
82060a5
fix tests and update notebook
camFoltz Sep 22, 2021
a085cb4
add opencv to test dependencies
camFoltz Sep 22, 2021
de8a37b
remove opencv dependency from test
camFoltz Sep 22, 2021
6c354da
change byte offset check to metadata parsing
camFoltz Sep 22, 2021
9e8651b
Merge pull request #39 from mehta-lab/multipagetiff_optmization
camFoltz Sep 22, 2021
fe63641
add updates and pull from master
camFoltz Sep 22, 2021
212a336
finish upti reader structure
camFoltz Sep 22, 2021
8cc77aa
update main reader
camFoltz Sep 22, 2021
ab77938
fix bugs
camFoltz Sep 22, 2021
91c6aae
update docstrings
camFoltz Sep 23, 2021
a855b4f
allowed complex permittivity tensor in simulation
lihaoyeh Sep 24, 2021
f80a0ac
quick updates:
camFoltz Sep 28, 2021
66a5b9b
fix bug in MM meta
camFoltz Sep 28, 2021
fdfbaa9
Merge pull request #40 from mehta-lab/zarr_reader_fix
camFoltz Sep 28, 2021
ab4a5ad
add specific catch
camFoltz Sep 28, 2021
dce1a37
Merge pull request #41 from mehta-lab/zarr_reader_fix
camFoltz Sep 29, 2021
c53067f
add updates to zarrfile to accomodate non MM zarrfiles
camFoltz Sep 29, 2021
d2b8a5b
change up the API such that get_zarr returns zarr array and get_array…
camFoltz Sep 29, 2021
8a0e85b
update tests for new zarrfile api
camFoltz Sep 29, 2021
6156411
expose the auto-regularization search range to the deconvolution func…
lihaoyeh Sep 30, 2021
24201f9
update documentation
camFoltz Sep 30, 2021
cd39f84
Merge branch 'master' into upti_reader
camFoltz Sep 30, 2021
aabaa39
small change
camFoltz Oct 1, 2021
4cd30c2
Merge remote-tracking branch 'origin/upti_reader' into upti_reader
camFoltz Oct 1, 2021
625095d
make small change in API
camFoltz Oct 1, 2021
9204b2c
small change
camFoltz Oct 11, 2021
5bf3876
Merge pull request #43 from mehta-lab/upti_reader
camFoltz Oct 11, 2021
a61664f
Merge branch 'master' of https://github.com/mehta-lab/waveorder into …
camFoltz Oct 11, 2021
9892c20
Merge pull request #46 from mehta-lab/multipage_reader
camFoltz Oct 13, 2021
feeb3c6
Fix bug in reading data with channels that don't have z stack
ieivanov Dec 14, 2021
7ed3873
fix zarrfile google drive link
camFoltz Dec 14, 2021
55a54d7
Merge pull request #48 from mehta-lab/debug_multipagetiff
camFoltz Dec 14, 2021
3b8058c
get ready for pypi release
camFoltz Dec 14, 2021
c1316e3
remove bad dirs
camFoltz Dec 14, 2021
0ddb60d
remove version file
camFoltz Dec 14, 2021
4158770
add pypi testing
camFoltz Dec 15, 2021
830279f
fix extra require
camFoltz Dec 16, 2021
61cba30
remove egg
camFoltz Dec 16, 2021
edd06c8
move scipy to full flag
camFoltz Dec 16, 2021
844bcef
restructure packages
camFoltz Dec 16, 2021
9e8c03d
remove eggs
camFoltz Dec 16, 2021
e9a8b77
add blank install_requires
camFoltz Dec 16, 2021
8dc98fa
add check for powerpc
camFoltz Dec 16, 2021
9b23cd3
remove dependencies if on IBM
camFoltz Dec 16, 2021
f24afe8
new version
camFoltz Dec 16, 2021
83630b6
remove test criteria and revert back to original version
camFoltz Dec 16, 2021
f07f15f
Merge pull request #49 from mehta-lab/pypi_prep
camFoltz Dec 16, 2021
e76c9af
add instrument tensor algebra
Dec 29, 2021
c6cfde0
update instrument tensor algebra
Dec 29, 2021
b1a12ae
bug fixes
Dec 29, 2021
5864427
add axes parameter to wavelet_softThreshold
Dec 30, 2021
a7f968c
Update Stokes_recon for recon of z stacks
Jan 3, 2022
f2f4a1e
Reformat Stokes_recon
Jan 3, 2022
2966abc
demo notebooks developed for peer review
mattersoflight Jan 4, 2022
8234158
update colormap, add first_channel display, and change base array to …
camFoltz Jan 6, 2022
a5db7a7
change specification of save dimensions to int and slice
camFoltz Jan 6, 2022
4747863
close tifffiles and change float --> float64
camFoltz Jan 7, 2022
626497c
refactor reader base and implement get_image for zarrfile
camFoltz Jan 7, 2022
bdcb090
add automatic datatype detection, update contrast limit setting in wr…
camFoltz Jan 7, 2022
9b1a068
update example notebook
camFoltz Jan 7, 2022
9d3815c
fix extra print statement
Jan 12, 2022
321cce2
add default get_array, get_zarr p=0
camFoltz Jan 12, 2022
c388626
Updated units for uPTI reconstructions, merged example notebooks (#62)
lihaoyeh Jan 20, 2022
efbc171
wrap up stitching-relavant functions and some compute functions (#63)
lihaoyeh Jan 28, 2022
f4e5499
add catch to see if the user entered in one of the tiff files and not…
camFoltz Feb 2, 2022
e6dd0df
Change default wavelet_softThreshold level to None
ieivanov Feb 2, 2022
f55fb6a
Fix bug in level=None
ieivanov Feb 2, 2022
9e2ce34
Fix bug
ieivanov Feb 2, 2022
a6d08b2
rework Stokes_recon
ieivanov Feb 3, 2022
51dd578
Revert "Fix bug"
ieivanov Feb 4, 2022
cf646f6
Revert "Fix bug in level=None"
ieivanov Feb 4, 2022
e6eaf62
Revert "Change default wavelet_softThreshold level to None"
ieivanov Feb 4, 2022
26e2a94
add fluorescence anisotropy reconstruction
ieivanov Feb 4, 2022
d79f224
Added a function to compute 3D orientation continuity map (#64)
lihaoyeh Feb 4, 2022
afc0cd1
Added notebooks that process the corresponding data reported in the u…
lihaoyeh Feb 7, 2022
163d1f5
add deconv mode to fluorescence microscopy attributes
camFoltz Feb 8, 2022
da3853d
Merge remote-tracking branch 'origin/instrument_tensor' into instrume…
camFoltz Feb 8, 2022
6066564
Merge pull request #66 from mehta-lab/master
ieivanov Feb 15, 2022
ab77ea1
added trivial spacer to rerun the test
lihaoyeh Feb 15, 2022
c1f3089
refresh zarr test data
camFoltz Feb 16, 2022
55b51e3
attempt fix of zarr data for tests
camFoltz Feb 16, 2022
74780a4
attempt manual unzip of zarr test data
camFoltz Feb 16, 2022
5cc11b8
add attempt at different unzip method
camFoltz Feb 16, 2022
0732f05
fix pytests
camFoltz Feb 16, 2022
3dbcd0e
remove gdown
camFoltz Feb 16, 2022
642dd3a
add writer clim fix
camFoltz Feb 16, 2022
3eb8257
create tests with smaller zarr data
camFoltz Feb 16, 2022
c579a17
add even smaller test zarr dataset
camFoltz Feb 16, 2022
a577a99
fix test data
camFoltz Feb 16, 2022
1673dfa
make every clim float by default
camFoltz Feb 16, 2022
95f7c5c
Merge pull request #55 from mehta-lab/instrument_tensor
ieivanov Feb 16, 2022
a30f5e9
merge master into this branch
lihaoyeh Feb 16, 2022
41ab852
Merge pull request #60 from mehta-lab/reader_writer_fixes
camFoltz Feb 17, 2022
4cdebd6
update uPTI example notebooks (#67)
lihaoyeh Feb 17, 2022
e673107
add updated tests
camFoltz Feb 23, 2022
71d2f08
add updated tests
camFoltz Feb 23, 2022
cbe5f49
add spacing
camFoltz Feb 23, 2022
1a81330
remove gdd from test reqs
camFoltz Feb 23, 2022
1519ded
Merge pull request #68 from mehta-lab/test_updates
mattersoflight Feb 24, 2022
7b3274a
convert the fluorescence data into floats
lihaoyeh Mar 17, 2022
1b3b2dd
Script conversion (#71)
lihaoyeh Mar 25, 2022
0c91d59
added example notebooks for QLIPP recon using waveorder
lihaoyeh Mar 30, 2022
7e978b3
moved the multiprocessing scripts to waveOrder repo
mattersoflight Mar 30, 2022
f5d09f9
multiprocess script refactoring, set default to run full job
JohannaRahm Apr 5, 2022
867bfc7
Merge pull request #73 from mehta-lab/waveorder_scripts_multiprocessing
JohannaRahm Apr 5, 2022
683bcea
add multiprocess for QLIPP 4 states & deconvolution
JohannaRahm Apr 7, 2022
6e30c4a
Merge pull request #75 from mehta-lab/waveorder_scripts_multiprocessing
talonchandler Apr 7, 2022
8e7bbe5
updated documentation of waveorder_microscopy (#74)
lihaoyeh Apr 18, 2022
17c88d1
Merge branch 'master' into waveorder_scripts
talonchandler Apr 19, 2022
5670347
Merge pull request #76 from mehta-lab/waveorder_scripts
talonchandler Apr 24, 2022
9857eb3
Write channel names correctly even for MM 'beta' versions.
talonchandler Jun 28, 2022
39d1acf
Merge pull request #77 from mehta-lab/zarr-converter-position-bug
talonchandler Jul 11, 2022
f5f6e1e
Update ReaderBase with required attributes
ieivanov Jul 11, 2022
9816e5f
move shape to reader_base
ieivanov Jul 11, 2022
96fc35d
Add pycromanager reader
ieivanov Jul 11, 2022
78c5505
Update pycromanager.py
ieivanov Jul 11, 2022
9ef2ec1
fix shape bug
ieivanov Jul 11, 2022
a18ab5f
Restructure reader data_type guessing
ieivanov Jul 11, 2022
3c962c4
Add PycromanagerReader to WaveorderReader
ieivanov Jul 11, 2022
3c65a07
Reorder reader checks
ieivanov Jul 12, 2022
4268905
add pycromanager requirement
ieivanov Jul 12, 2022
882776b
Fix pycromanager metadata reading
ieivanov Jul 12, 2022
e74eb30
Add reader dtype
ieivanov Jul 12, 2022
3b39341
update pycromanager reader metadata
ieivanov Jul 12, 2022
6349b81
fix z-step_um bug
ieivanov Jul 12, 2022
bc0f93a
update pycromanager reader metadata parsing
ieivanov Jul 13, 2022
f613e38
update stage position parsing
ieivanov Jul 13, 2022
ecd6140
add data_type to reader class
ieivanov Jul 13, 2022
01be48e
Update .gitignore
ieivanov Jul 13, 2022
013dc05
fix data_type guessing
ieivanov Jul 13, 2022
89bf6b3
fix writer test folder formatting
ieivanov Jul 13, 2022
a869388
update tifffile requirements
ieivanov Jul 13, 2022
f2c89e8
Update tifffile requirements and ometiff checker
ieivanov Jul 13, 2022
08198a1
fix file path parsing
ieivanov Jul 14, 2022
c6350f7
update file path parsing
ieivanov Jul 14, 2022
a190be8
update get_zarr and axes parsing
ieivanov Jul 15, 2022
f182030
Update waveorder_reconstructor.py
mattersoflight Jul 19, 2022
df89a0b
Merge pull request #80 from mehta-lab/doc_updates
mattersoflight Jul 19, 2022
af0e270
change 'z-step_um' in metadata to float
ieivanov Jul 25, 2022
e84f9e3
add pycromanager data tests
ieivanov Jul 26, 2022
34487af
update tests with new test data url
ieivanov Aug 4, 2022
ebeae3e
Update README.md
mattersoflight Aug 6, 2022
cbdba70
Update and rename LICENSE.txt to LICENSE
mattersoflight Aug 6, 2022
ee8d0ab
update test data location and data cleanup bug
ieivanov Aug 12, 2022
3228d4b
Fix `python_requires` typo
talonchandler Aug 12, 2022
11a867a
Update contact info to match `recOrder`
talonchandler Aug 12, 2022
709f26e
Merge pull request #79 from mehta-lab/pycromanager_reader
ieivanov Aug 17, 2022
0b46428
Merge pull request #81 from mehta-lab/setup-fix
ieivanov Aug 17, 2022
7c5b7fd
Update setup.py
ieivanov Aug 20, 2022
260490a
Move setup.py to setup.cfg
talonchandler Aug 23, 2022
44277cd
Keep all requirements in setup.cfg
talonchandler Aug 23, 2022
014b78f
Update pyproject.toml to match recOrder
talonchandler Aug 23, 2022
1d207aa
Change version path
talonchandler Aug 23, 2022
2783180
Merge pull request #82 from mehta-lab/bump_version
talonchandler Aug 25, 2022
995119f
Don't delete test data
talonchandler Aug 29, 2022
37939af
BSD 3-clause
talonchandler Aug 29, 2022
411509e
Merge pull request #84 from mehta-lab:bsd3
mattersoflight Sep 7, 2022
0c3d282
Merge pull request #83 from mehta-lab/keep-test-data
mattersoflight Sep 7, 2022
6a048ab
sympy computation of OTFs
mattersoflight Sep 7, 2022
4ab439d
update 2D QLIPP forward simulation and reconstruction
mattersoflight Sep 7, 2022
d10d20e
update 3D QLIPP reconstruction notebook
mattersoflight Sep 21, 2022
5f60f0a
Merge pull request #85 from mehta-lab/update_docs
mattersoflight Sep 21, 2022
f92e61f
estimate_brightfield_focus function
talonchandler Nov 22, 2022
64db547
unit tests
talonchandler Nov 22, 2022
7ba9ff7
simplify rule slightly
talonchandler Nov 22, 2022
8b7d374
typo
talonchandler Nov 22, 2022
b5ee26d
Improve focus finder
talonchandler Dec 5, 2022
1940a3a
Add literals for mode argument
talonchandler Dec 6, 2022
941f3bb
typo
talonchandler Dec 6, 2022
00e15dc
is -> ==
talonchandler Dec 6, 2022
cc66a6a
Drop 3.7 and add 3.8, 3.9, 3.10
talonchandler Dec 6, 2022
a42198d
Minor docs + checking improvement
talonchandler Dec 6, 2022
6cebe20
Tab -> spaces
talonchandler Dec 7, 2022
bfc8491
Merge pull request #99 from mehta-lab/drop-37
talonchandler Dec 7, 2022
10b1bd4
Squashed commit of the following:
talonchandler Dec 7, 2022
d72be3c
Merge pull request #92 from mehta-lab/find-focus
talonchandler Dec 8, 2022
9e9d469
Improve README.md (#101)
talonchandler Feb 18, 2023
07517c3
uPTI -> PTI; black formatting; improved comments (#104)
talonchandler Feb 22, 2023
bebf12d
README copy edits (#105)
talonchandler Feb 22, 2023
5df743d
Replace OpenCV with pillow (#108)
ziw-liu Feb 23, 2023
4b3b133
Add .git-blame-ignore-revs (#109)
talonchandler Feb 23, 2023
5e05b1c
Prepare for `waveorder==1.0.0` release (#114)
talonchandler Apr 18, 2023
e7abed3
Fix link to example (#115)
talonchandler Apr 19, 2023
afc7750
Pin README links (#116)
talonchandler Apr 19, 2023
60284f7
Remove `__init__` imports (#134)
talonchandler Jul 12, 2023
24385e0
Add optional parameters `plot_path` and `threshold_FWHM` to `focus_fr…
talonchandler Jul 17, 2023
b9b4b6e
Fix threshold-free focus-finding edge case (#135)
talonchandler Jul 18, 2023
4473462
close figure after saving (#136)
ieivanov Jul 18, 2023
43aace8
`alg-dev` branch merge to `main` (#121)
talonchandler Jul 25, 2023
41be1b2
Specify meshgrid indexing order (#138)
talonchandler Jul 25, 2023
8463155
Fix readme figure (#141)
talonchandler Jul 26, 2023
9983ba6
Simplify dependencies (#147)
talonchandler Aug 9, 2023
2218417
Add rotate and flip orientation options to `waveorder` options (#148)
talonchandler Aug 14, 2023
366ef1b
`waveorder` handles all rotational quantities (including retardance) …
talonchandler Aug 17, 2023
8f1f65c
Device agnostic compute for polarization (#150)
ziw-liu Jan 6, 2024
109fd7b
Document order-dependent scripts (#155)
talonchandler Feb 27, 2024
d7ef5ae
M1 installation documentation (#156)
talonchandler Feb 27, 2024
952fc25
Prepare README for 2.0.0 (#157)
talonchandler Feb 27, 2024
9b19392
Link BIA data next to examples (#158)
talonchandler Feb 28, 2024
83bf24a
Update a single PTI example notebook (#159)
talonchandler Mar 4, 2024
af3afeb
PTI example jupyter notebook to script and .html (#160)
talonchandler Mar 12, 2024
d08f296
fix bug finding focus in stack with only one slice (#162)
ieivanov Mar 22, 2024
be20c8f
Authorship and release updates (#165)
talonchandler May 27, 2024
c691f2f
Bump Python (#168)
ziw-liu Jun 13, 2024
45514b8
Merge `alg-dev` into main ahead of release (#171)
talonchandler Jul 5, 2024
3573180
Pin numpy <2 (#173)
ziw-liu Jul 12, 2024
a7ac036
Bump torch to unpin numpy (#176)
ziw-liu Oct 29, 2024
cbda81d
Wrap-safe transfer functions (#175)
talonchandler Nov 9, 2024
1451bf1
Vector-optics birefringence reconstruction prototype (#170)
talonchandler Dec 22, 2024
ec47bfb
debug jigs - revert before merging
talonchandler Feb 11, 2025
1f84072
Styling (#182)
talonchandler Feb 20, 2025
aa7050f
Calculate transfer functions on grids smaller than data (#180)
talonchandler Feb 21, 2025
63b4be8
Merge remote-tracking branch 'recorder/main' into recorder-merge
talonchandler Feb 21, 2025
bce393f
Fix installation (#184)
talonchandler Feb 21, 2025
2ada656
style
talonchandler Feb 21, 2025
9293f1a
run action on all prs
talonchandler Feb 21, 2025
f98b4e7
ignore style changes
talonchandler Feb 21, 2025
f682c31
Fix non-example pytests (#186)
talonchandler Feb 23, 2025
3e2abb8
Clean up examples and temp files (#187)
talonchandler Feb 24, 2025
b5a7a25
Remove recorder image references (#189)
talonchandler Mar 6, 2025
9c311e7
debug jigs - revert before merging
talonchandler Feb 11, 2025
830cd31
Merge branch 'debug-3d-to-2d' of https://github.com/mehta-lab/recOrde…
talonchandler Mar 7, 2025
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
8 changes: 6 additions & 2 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# .git-blame-ignore-revs
# created as described in: https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
# black-format all `.py` files except recorder_ui.py
82f6df5ed34460374ce7c0fdca089d8caa570b9f

# black-format files
07517c3353c392106cabae003d589946ea25918a
82f6df5ed34460374ce7c0fdca089d8caa570b9f
aa7050f973f36dc204ea495e105b5432223dc68d
a3dd7e5e9bc0bed404792e9b241f1639ade76f33
99 changes: 99 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: lint, style, and tests

on:
pull_request:

jobs:
style:
name: Style Check
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black==25.1.0
- name: Check code styling with Black
run: |
black --diff -S -t py310 waveorder
black --check -S -t py310 waveorder

# lint:
# name: Lint Check
# runs-on: ubuntu-latest

# strategy:
# matrix:
# python-version: ["3.10"]

# steps:
# - uses: actions/checkout@v3
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install flake8
# - name: Check code with Flake8
# # E203 conflicts with black
# run: |
# flake8 waveorder --extend-ignore=E203

isort:
name: isort Check
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install isort
- name: Check code with isort
run: |
isort --check waveorder

# needs: [style, isort] # lint
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.10", "3.11", "3.12"]

# steps:
# - uses: actions/checkout@v3

# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install ".[all,dev]"

# - name: Test with pytest
# run: |
# pytest -v
# pytest -v --cov=./ --cov-report=xml
47 changes: 0 additions & 47 deletions .github/workflows/pytests.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: test

on: [push]

jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11"]

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

# these libraries enable testing on Qt on linux
- uses: tlambert03/setup-qt-libs@v1

# strategy borrowed from vispy for installing opengl libs on windows
- name: Install Windows OpenGL
if: runner.os == 'Windows'
run: |
git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
powershell gl-ci-helpers/appveyor/install_opengl.ps1

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools tox tox-gh-actions

# https://github.com/napari/cookiecutter-napari-plugin/commit/cb9a8c152b68473e8beabf44e7ab11fc46483b5d
- name: Test
uses: aganders3/headless-gui@v1
with:
run: python -m tox

- name: Coverage
uses: codecov/codecov-action@v3
88 changes: 0 additions & 88 deletions .github/workflows/test_and_deploy.yml

This file was deleted.

8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,15 @@ dmypy.json

# written by setuptools_scm
*/_version.py
recOrder/_version.py
waveorder/_version.py
*.autosave

# images
*.npz
*.png
*.tif[f]
*.pdf

# example data
/examples/data_temp/*
/logs/*
37 changes: 31 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
repos:
- repo: https://github.com/python/black
rev: 21.6b0
# basic pre-commit
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: black
language_version: python3
pass_filenames: false
args: [.]
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-yaml
- id: check-toml
- id: detect-private-key
# sorting imports
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
# syntax linting and formatting
- repo: https://github.com/myint/autoflake
rev: v2.1.1
hooks:
- id: autoflake
args: [--in-place, --remove-all-unused-imports,
--ignore-init-module-imports]
# - repo: https://github.com/PyCQA/flake8
# rev: 6.0.0
# hooks:
# - id: flake8
# args: [--ignore, "E203,W503", --min-python-version, '3.10']
# additional_dependencies: [flake8-typing-imports==1.12.0]
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
Loading
Loading