-
Notifications
You must be signed in to change notification settings - Fork 16
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
Param ui #119
Param ui #119
Conversation
k1o0
commented
Mar 11, 2019
•
edited
Loading
edited
- Added new integrated parameter editor
- Added test class for editor
- Added test class for Parameters
- Added performance test
- Comment the ParamEditor, FieldPanel and ConditionTable classes
- Deleted ParamEditor_old
- Restored param description and unit functionality
- Restored label formatting
Add sort by columnLines 5 to 10 in 9babd51
This comment was generated by todo based on a
|
Add set condition idxLines 6 to 11 in 9babd51
This comment was generated by todo based on a
|
. See also EXP.PARAMETERS.Lines 3 to 8 in 9babd51
This comment was generated by todo based on a
|
Maybe use exp.Parameters/uiLines 38 to 43 in 29266f0
This comment was generated by todo based on a
|
Still left to do for another day:
|
+eui/ConditionPanel.m
Outdated
% See also EUI.PARAMEDITOR, EUI.FIELDPANEL | ||
obj.ParamEditor = ParamEditor; | ||
obj.UIPanel = uix.VBox('Parent', f); | ||
% obj.UIPanel.BackgroundColor = 'white'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may recall that the editor was originally white, which I think looks nicer. MC is still all grey by default. I can't be arsed to change everything to white so the short answer is yes, let's remove all of these BackgroundColor lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha hmm well you're right the white background does look nicer...
@@ -0,0 +1,229 @@ | |||
classdef FieldPanel < handle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why call this 'FieldPanel' instead of something like 'GlobalPanel'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what Chris originally called it. It's a panel that generates UI fields. I suppose it's more functionally clear than 'global' which is a less concrete name
+eui/MControl.m
Outdated
@@ -247,10 +247,11 @@ function saveParamProfile(obj) % Called by 'Save...' button press, save a new pa | |||
end | |||
|
|||
function loadParamProfile(obj, profile) | |||
tic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can the 'tic' and subsequent 'toc' be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shit, yes. I think there's a toc at the bottom of the script. This was done before I wrote the performance test class
tests/ParamEditorPerfTest.m
Outdated
% Loads validation data | ||
% Graph data is a cell array where each element is the graph number | ||
% (1:3) and within each element is a cell of X- and Y- axis values | ||
% respecively |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, yeah just really minor fixes for you as commented above. Also, did you not want to include tests specifically for 'ConditionPanel' and 'FieldPanel' ? and can we keep the '_test' convention even for class tests?
also, 'ParamEditorTest' and its perf test failed. I put them the test results variable in your 'zserver' 'share' folder. The first 15 elements of the variable are the ones that failed.
|
Before merging, let's make sure the tests run on a real rig, double-check everything works properly within mc and also delete the +eui/ParamEditor_old.m file. |
Oh and the .github/config.yml didn't seem to do anything. I suppose we just delete it, unless I made a typo somewhere? |
Ok, I may have time to test it on the behaviour rigs after upgrading the hardware, while I'm installing the new MATLABs. Would late afternoon work for you? Yeah the .yml file looks right... I'll also look into it |
end | ||
|
||
methods | ||
function obj = ConditionPanel(f, ParamEditor, varargin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is there a varargin arg here?
I've reorganized the test folder structure and think I found a way to safely test with "dat.paths" (and any other folder/file we may need to shadow"). Let me know what you think |
Example of shared fixtures. All it really affords you is fewer lines of code as you don't have to manually add the taredown routine. |
ok, i will merge this now, but keep parameditor_old around, and keep this branch open |