Repository navigation
Conversation
|
@ethanbb would it be possible to run the tests on this PR? Thanks! |
|
Hi, OK, I got the tests to run on Windows. There was one failure - I don't have time at the moment to investigate whether it's related, but I'm pasting the log below. I'm also going to give it a try on Linux. pytest output, win32, Python 3.12(C:\DataDrive\Ethan\conda_envs\caiman-dev) Z:\code\CalciumImaging\suite2p>pytest -vs ========================================================================= test session starts ========================================================================= platform win32 -- Python 3.12.12, pytest-9.0.2, pluggy-1.6.0 -- C:\DataDrive\Ethan\conda_envs\caiman-dev\python.exe cachedir: .pytest_cache PySide6 6.9.2 -- Qt runtime 6.9.2 -- Qt compiled 6.9.2 rootdir: Z:\code\CalciumImaging\suite2p plugins: anyio-4.11.0, jaxtyping-0.3.9, cov-7.0.0, qt-4.5.0, zarr-3.1.5 collected 26 items |
|
Some different errors in the Linux run: pytest output, linux, Python 3.11(suite2p-test) ethan@treachery:/synology/code/CalciumImaging/suite2p$ pytest -vs ========================================================================= test session starts ========================================================================== platform linux -- Python 3.11.18, pytest-9.2.0, pluggy-1.7.0 -- /home/ethan/mambaforge/envs/suite2p-test/bin/python3.11 cachedir: .pytest_cache PyQt6 6.12.0 -- Qt runtime 6.12.0 -- Qt compiled 6.12.0 rootdir: /synology/code/CalciumImaging/suite2p plugins: qt-4.5.0 collected 26 items |
|
No problem! I'm glad it helped make the tests more robust as well. |
This implements
temporal_smoothfor thesmooth_sigma_timeregistration option, which is currently broken since it doesn't handle torch input. To get the same reflect-padding behavior as the scipy default (technically this matches the 'mirror' mode), and to avoid depending on torchimage, I first pad and then convolve with a Gaussian kernel usingconv1d.