-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manual annotation in the VolPy GUI. problem #1451
Comments
Hello, |
Hi there, Yes it is looks same even if I drag the window wider and I don't see the options in 'images, display, and mode'. I am using Mac M3 |
I've rarely used that GUI and am currently working on getting it working on my system; as soon as I do I'll look into these UI issues. Hopefully this won't take too long. |
@caichangjia Giving you a heads-up on this as well |
@Vignesh-786 I just ported the volpy gui to use PyQt6 through the pyside6 package; I'm wondering if this might be better-behaved. Do you mind grabbing this, making sure pyside6 is in your environment (it may already be), and giving it another go? |
I'll have to do more testing on OSX then; this was the result of a quick porting effort today on my Linux workstation, where it seems to launch okay. Will get back to you after I try it, hopefully later tonight, on a mac laptop I keep at home. |
I would like to express my sincere gratitude for your diligent efforts and prompt responses. |
Based on a stackoverflow thing, changing the import order may actually make a difference here; I made a quick revision to the script here that may solve the issue (really unsure without testing, but I won't be able to test until I get home); if you want to try it earlier, see: |
@Vignesh-786 After digging into it further, I filed an issue with pyqtgraph, where it appears to be a bug that's been open for a few years(!). Fortunately, there looks to be a workaround or two; unfortunately, because it's been an open bug for a few years, I doubt it'll be fixed very quickly. pyqtgraph/pyqtgraph#3227 I'll give the workarounds a go and try to get back to you soon when I've picked one. |
While workarounds (that I'm working on) should hopefully address the button-display issue, I wasn't able to reproduce the crash last nmight. I'll need to experiment with that a bit more. If you have the time, if you can pastebin the output of |
Hi Pgunn, Attached is the output of conda list for the caiman environment . |
Thanks; when I get home tonight I'll do my best to replicate that and see if I can reproduce (and then fix, if I can) the crash. My theory is that it's a package list issue and that we can adjust the environment not to have the issue. I'll also hopefully be able to get you a solution to the messed-up buttons; I looked over the pyqtgraph issues and think I've (probably) translated it to something that might work - just need to try it. (I realise that the volpy part of caiman is underdocumented; I'm hoping we can find a way to better document it soon, but I need to get some help from developers on the team who've used it and they're fairly busy with other things; I've never used it myself) Cheers |
I'm trying to poke the pyqtgraph devs on the overlaid buttons issue, but in the meantime, I think the crash may be due to the unusual mix of packages and where they came from in this environment; a fair number of your installs come from pip, and you probably don't need both pyqt6 and pyside6. This may relate to mesmerize-core though, which I'm less familiar with in terms of its dependencies. Do you know where your pyqt6 install came from? I don't see it on the dependencies list for either mezmerise-core or fastplotlib. |
So I have a solution for the duplicated buttons issue:
(this may or may not translate down into a pyqt call) |
Hello Pat,
The button issue has been resolved. However, I am still unable to access
the ‘image, display, and mode’ parameters. I greatly appreciate your
efforts in resolving this matter.
best regards
Vignesh
…On Mon, Jan 27, 2025 at 8:01 PM Pat Gunn ***@***.***> wrote:
So I have a solution for the duplicated buttons issue:
https://github.com/flatironinstitute/CaImAn/blob/d1236ec54b0e3df6f26b57597a73776b818d031c/caiman/source_extraction/volpy/volpy_gui.py#L300
https://github.com/flatironinstitute/CaImAn/blob/d1236ec54b0e3df6f26b57597a73776b818d031c/caiman/source_extraction/volpy/volpy_gui.py#L301
(this may or may not translate down into a pyqt call)
—
Reply to this email directly, view it on GitHub
<#1451 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4THZCIKYIAHOLBDMDDTGZ32MZ7BTAVCNFSM6AAAAABVKI2IXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJWGY2TGOBTGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Dr.rer.nat. Vignesh Sakthivelu, PhD
Department of Internal Medicine I &
Department of Translational Genomics &
Mildred Scheel School of Oncology &
University Hospital Cologne
Weyertal 115B
50931, Cologne, Germany
E.mail: ***@***.***
Phone: +49 (0) 221-478-96700
|
Unfortunately, now we're hitting the point where it's not clear to me if the code is working as expected and we're just not using it right, or if we've found a bug. I might guess that one needs to load data and load ROIs before those parts of the UI become functional, but I don't know that for sure. |
I attempted to replicate that process as well, but it resulted in no
success. Perhaps I should reinstall the environment specifically required
for Caiman without installing any additional packages.
…On Mon, Jan 27, 2025 at 8:24 PM Pat Gunn ***@***.***> wrote:
Unfortunately, now we're hitting the point where it's not clear to me if
the code is working as expected and we're just not using it right, or if
we've found a bug.
I might guess that one needs to load data and load ROIs before those parts
of the UI become functional, but I don't know that for sure.
@caichangjia <https://github.com/caichangjia>
—
Reply to this email directly, view it on GitHub
<#1451 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4THZCKAT4ZUMQHD6R2ADI32M2BXZAVCNFSM6AAAAABVKI2IXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJWG4YDEOBSHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Dr.rer.nat. Vignesh Sakthivelu, PhD
Department of Internal Medicine I &
Department of Translational Genomics &
Mildred Scheel School of Oncology &
University Hospital Cologne
Weyertal 115B
50931, Cologne, Germany
E.mail: ***@***.***
Phone: +49 (0) 221-478-96700
|
I'm hoping Cai might be able to illuminate how this is supposed to work (he wrote that code). |
Looking more at the code, I think we're hitting another bug in pyqtgraph, and a lot of the sample code for dropdown lists I can find on the internet doesn't work for me. Looking into whether I can put a QComboBox into a pyqtgraph; using that widget on its own seems to work fine. |
I have a potential solution. Give me a moment to update the PR. I don't have a great way to test it though. |
@Vignesh-786 Ok, give this version a try; I have confirmed that you will need to load the data before using those menus, but the menus otherwise work now. |
I am experiencing difficulties with custom data manual annotation in the VolPy GUI. The user interface that I see is reflected in the image. Kindly provide me with some suggestions to overcome this issue.
The text was updated successfully, but these errors were encountered: