-
Notifications
You must be signed in to change notification settings - Fork 18
Exp server test #203
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
Exp server test #203
Conversation
Make into shared fixtureLines 26 to 31 in 170a9dd
This comment was generated by todo based on a
|
Make into sequenceRigbox/tests/fixtures/util/KbQueueCheck.m Lines 44 to 49 in 170a9dd
This comment was generated by todo based on a
|
Call this from calibrate_testRigbox/tests/fixtures/util/mockRig.m Lines 20 to 25 in 170a9dd
This comment was generated by todo based on a
|
Make into FixtureRigbox/tests/fixtures/util/mockRig.m Lines 21 to 26 in 170a9dd
This comment was generated by todo based on a
|
| end | ||
|
|
||
| function c = calibration(obj, dev, lightIn, clockIn, clockOut) | ||
| function c = calibration(obj, dev, lightIn, clockIn, clockOut, makePlot) |
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.
how would you feel about something like this?
function c = calibration(obj, dev, lightIn, varargin)
% Creates a file that specifies gamma calibration for a screen.
% This function requires a user to hold a photodiode, connected to a NI-DAQ, against a screen in order
% to perform gamma calibration, and save the calibration settings to a file.
%
% Inputs:
% dev (int) : NI DAQ device ID to which the photodiode is
% connected
% lightIn (char) : analogue input channel name to which the
% photodiode is connected
%
% Optional Inputs:
% clockIn (char) : analogue input channel name for clocking pulse
% clockOut (char) : digital output channel name for clocking pulse
% makePlot (bool) : flag for making photodiode signal plot
%
% Outputs:
% c (struct) : calibration struct containing refresh rate and
% gamma tables
%
% Examples:
%
% See also: `calibrationStruct`
I think having varargin and those optional inputs is clarifying here, and then an args struct could be used to specify default input args in the function body, which I like better than the if nargin < n
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.
fine
|
|
||
| stimWindow = rig.stimWindow; | ||
|
|
||
| % Parameters for calibration |
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 you add comments for all the following variable declarations that serve as calibration parameters?
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.
The log should make these clear enough, otherwise it should be changed. What would you propose it say?
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.
something like 'port to connect photodiode', 'first port to connect hook-up wire for chrono' 'second port to connect hook-up wire for chrono', 'synonomous port for clockOut'
|
|
||
| % 2013-03 CB created | ||
|
|
||
| properties |
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.
Where is this class used? Is it used in anything not in a test?
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.
following up on this
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 used in a test on another branch that is not yet finished.
* Started expServer tests * Added more tests; bug fix for older versions * Removed validation functions for old MATLAB versions; added documentation * More coverage, documentation * Draws text to screen during calibration #128 * Fix for #4 * Added structAssign test; rewardId tests * Typo fix in structAssign_test * Finished tests for expServer * #156 * Returned listener delete to cleanup * Stricter tolerance in AlyxPanel_test; bug fix for rounding negative numbers * Update alyx-matlab submodule * Minor changes to documentation * Update CHANGELOG.md * Typo fix; 'off' -> false for safety
* Started expServer tests * Added more tests; bug fix for older versions * Removed validation functions for old MATLAB versions; added documentation * More coverage, documentation * Draws text to screen during calibration #128 * Fix for #4 * Added structAssign test; rewardId tests * Typo fix in structAssign_test * Finished tests for expServer * #156 * Returned listener delete to cleanup * Stricter tolerance in AlyxPanel_test; bug fix for rounding negative numbers * Update alyx-matlab submodule * Minor changes to documentation * Update CHANGELOG.md * Typo fix; 'off' -> false for safety
Uh oh!
There was an error while loading. Please reload this page.