Open calebshibu opened 6 months ago
This branch fails only on the same test for which the current main
branch fails on MacOS (which it passed 3 months ago!) in the same place -- presumably this is due to a change in the base suite2p that's already being distributed? Would love to see this PR merged so that I can migrate to newer Python versions and still use suite2p
proper and not a separate fork.
When I run the test suite on MacOS, the error occurs in the 'F' value of one image in 5 pixels which differ by a factor of 2.5e-4 (causing the test to fail), with all other components of the test passing.. so the difference is very subtle.
Hello,
It seems like Suite2p fails to import for Python 3.11 and Python 3.12 because of the following error:
I have suggested a small fix to avoid this error during import, by avoiding the ValueError caused by using a mutable default value in your dataclass, where you should use the default_factory argument of the field function. This ensures that each instance of the dataclass gets its own separate instance of the mutable object.