-
Notifications
You must be signed in to change notification settings - Fork 17
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
Adapt GUI to latest changes #9
Comments
It seems that this issue depends on #12 |
my attempts so far (on the fix-GUI branch) failed. The simulation runs, but I'm still getting errors from the GUI. I'm not sure if the approach I'm following for #12 can be of help here, unless we use the app to write a parameter struct to pass to the struct2celes function. |
What are the errors that you get? |
I've never used the GUI so far so I'm not sure I'm even launching it correctly. Am I just supposed to double-click on the .mlapp file? If so, then the GUI starts throwing this error `Error using matlab.ui.control.internal.model.AbstractNumericComponent/set.Value (line 110) Error in CELES_model_wizard/UpdateIncomingPower (line 173) Error in CELES_model_wizard/startupFcn (line 275) Error in CELES_model_wizard (line 1172) if I then click the run button, the simulation runs correctly but then throws another error at the end due to the fact that I have moved the app2output function inside app2simulation. When I click on these errors to see where they are, the App Designer is launched but fails with this generic error message: Error loading 'CELES_model_wizard.mlapp'. |
Shit, I have the same. It seems that the app designer cannot load the GUI since d3a0eb1. Unfortunately, I cannot remember with what Matlab version I did that change then, maybe it has to do with the version. |
No, I don't see the 4. That's strange |
Do you have Matlab 2016b available? It seems that there, the app designer would open the GUI. |
Right now, we have the unfavourable situation that during the startup of the GUI, a simulation object is initialized (in the method That didn't use to be a problem, but since the lookups are computed already during the initialization of the simulation object, this means that the lookups are computed during the startup of the GUI. This is not ideal, as the lookups need to be recomputed after the user has set his input. There are two options - either changge the function |
Right now I don't have a R2016b installation. Regarding the options you propose, I think using temporary structs might work, which we could then turn into a simulation instance using the |
Sounds good! |
To me, it seems more appropriate that On the contrary, is it necessary to have an editable field showing already some value at the GUI startup? Could we just remove this field, or maybe let the user specify |
The only thing that Yes, in principle we could remove the beam power field. The idea was to allow the user to either specify the beam strength through the field amplitude or to the initial power. So, if one changes the one, also the other needs to update ... this is where that callback is for. |
Ah sorry now I get what you mean with derived property. Well, then we might need to find another solution (like removing the field as you suggested). |
The GUI is broken since d0263ba. In order to fix it, the routines celes/src/gui/app2simulation.m
and celes/src/gui/simulation2app.m must be adapted to the new constructor and data structure of the celes_simulation class.
The text was updated successfully, but these errors were encountered: