Skip to content
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

Editing option panel for MEM #5

Open
Edouard2laire opened this issue Jun 7, 2023 · 4 comments
Open

Editing option panel for MEM #5

Edouard2laire opened this issue Jun 7, 2023 · 4 comments
Assignees

Comments

@Edouard2laire
Copy link
Member

Edouard2laire commented Jun 7, 2023

Hello

Describe the bug
When using the process, Sources > Compute sources: BEst, we can open the panel to enter the MEM option using the Edit button. After entering all the parameters, and closing it by clicking "ok". If we try to reopen the panel using again the Edit button, an error appears.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Sources > Compute sources: BEst
  2. Click on Edit and enter some parameters
  3. Click on Ok.
  4. Click again on Edit and see the error

Screenshot

(1)
Capture d’écran 2023-06-07 à 10 06 04

(2)
Capture d’écran 2023-06-07 à 10 13 30

(4)
Capture d’écran 2023-06-07 à 10 05 54

Expected behavior
When clicking again on Edit, the previously entered parameter should appear in the edit panel.

Additional context
The error also appears for NIRS

@ftadel, I am tagging you in case you have any idea on how to solve this bug :)

@Edouard2laire
Copy link
Member Author

Edouard2laire commented Mar 11, 2024

hi @rcassani

I started to work again on that issue and reorganized the panel so its easier to debug and it is almost fully functional:
https://github.com/Edouard2laire/best-brainstorm/blob/new_panel/gui/panel_brainentropy.m#L124-L159

However, I have some issues with the display and how vfill / hfill works

First, the reference panel gets all squished although I specified a minimum size then when I hide some components, the other components don't move to fill the blank but leave a gap in the window which looks quite weird:

image
image
image
image

Do you think you could have time to help me on that?

Thanks a lot,
Edouard

@rcassani
Copy link

Hi @Edouard2laire, a panel that behaves more or less as you wish is panel_inverse_2018

Do you think you could have time to help me on that?

Could you generate mock-ups for the three options?
Also, which branch is the one to test those changes?

@Edouard2laire
Copy link
Member Author

Hi.

The branch is new_panel from my fork: https://github.com/Edouard2laire/best-brainstorm/tree/new_panel

here is an illustration showing left what the code is producing vs what I am trying to achieve:

image

Basically on the left, all the blank spaces correspond to options that are only shown during wMEM or rMEM.

I looked at the example and at the panel we did for nirstorm; but I am still not sure about why the hidden panel still take room in the main panel, creating those blank spaces.

@Edouard2laire
Copy link
Member Author

hi @rcassani ,

I know you are very busy, but I was wondering if you had a bit of time to look into that issue? We will soon be able to merge #13 in Best, so I would like to fix those panel issue at the same time so we can announce the new panel at the same time of the release :)

Let me know if you would like us to meet to check that together.
Edouard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants