Closed landoskape closed 8 months ago
FYI - the same bug will cause an issue with the "roi_text" checkbox and the "zoom to ROI" checkbox.
exact same issue here !
@Andrianarivelo good to know it's just not an idiosyncrasy of my setup... but for the record if you want to get it to work before it's fixed, my PR (#1029) solves it! Only a few lines in one file need to be changed.
Which lines exactly do I have to change ?
This page shows the lines. Alternatively you could clone from my fork which is up to date with all the edits in the master/main branch.
Then install using the developers instructions in the README file. Note that you have to make sure to specify you're in a python 3.9 environment, so change the following line in the instructions:
# don't use this one:
# conda env create --name suite2p
# use this instead:
conda env create --name suite2p python=3.9
Thanks, the issue is fixed for me :)
Woot!
Hi all, glad to hear that @landoskape's solution worked for you, @Andrianarivelo! Do y'all by chance both have Windows machines? We're having trouble replicating this on a Mac & Linux machine.
Yes I'm on windows, I also use Linux and don't have this issue.
I am on windows also
@chriski777 does my suggested fix not work on linux or mac machines? Happy to test something else on Windows to make sure the suite2p code works on every OS
Thanks for your responses, everyone! @landoskape, ah no, it's not that. The problem was just not reproducible on a linux/Mac machine so just wanted to confirm it's machine-specific before validating your fix!
Describe the issue:
Toggling ROIs off and on does not work due to a bug in evaluating the state of the
ROIs_on
checkbox.Reproduce the code example:
The code that generates the warning (and failure to reload the ROIs) is here:
state
is an integer, with 0 corresponding to unchecked and 2 corresponding to checked. However,QtCore.Qt.Checked
is an enum, so the if statement always evalutates to False.This issue is fixed by converting
state
to an enum as follows:QtCore.Qt.CheckState(state)
. I opened pull request #1029 to resolve it.Warning message:
(An error isn't generated, but the code fails to replot the ROIs).
Version information:
v0.14.2
Context for the issue:
This issue prevents the user from being able to look at the images behind the ROIs while doing QC!