From 62f16c6f10e7fc549fe61af46e0c239fb7601013 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 15 Dec 2017 23:53:05 +0000 Subject: [PATCH 001/515] Weight recordings more complete Now the rig and user are recorded when a weight is submitted --- +eui/AlyxPanel.m | 5 ++++- +eui/MControl.m | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index f64206d7..b7d48efe 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -368,7 +368,7 @@ function changeWaterText(obj, src, ~) end end - function recordWeight(obj, weight, subject) + function recordWeight(obj, weight, subject, weighingScale) % Post a subject's weight to Alyx. If no inputs are provided, % create an input dialog for the user to input a weight. If no % subject is provided, use this object's currently selected @@ -376,6 +376,7 @@ function recordWeight(obj, weight, subject) % % See also VIEWSUBJECTHISTORY, VIEWALLSUBJECTS ai = obj.AlyxInstance; + if nargin < 4; weighingScale = hostname; end if nargin < 3; subject = obj.Subject; end if nargin < 2 prompt = {sprintf('weight of %s:', subject)}; @@ -391,6 +392,8 @@ function recordWeight(obj, weight, subject) weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); d.subject = subject; d.weight = weight; + d.user = ai.user; + d.weighing_scale = weighingScale; if isempty(ai) % if not logged in, save the weight for later obj.QueuedWeights{end+1} = d; obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); diff --git a/+eui/MControl.m b/+eui/MControl.m index 45983bba..9571d559 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -525,7 +525,8 @@ function beginExp(obj) % (i.e. no Alyx token is set), the user is prompted to log in and % the token is stored in the rig object so that EXPPANEL can % later post any events to Alyx (for example the amount of water - % received during the task). + % received during the task). An Alyx Experiment and, if required, Base + % session are also created here. % % See also SRV.STIMULUSCONTROL, EUI.EXPPANEL, EUI.ALYXPANEL set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'off'); % Grey out buttons From db2716f09e27eaf4f482c816aff7445b3b559e2b Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 18 Dec 2017 16:53:09 +0000 Subject: [PATCH 002/515] Removed weigh scale field * weighing_scale field in weighings is not supposed to be a string, removed for the time being. --- +eui/AlyxPanel.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index b7d48efe..e16983fc 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -368,7 +368,7 @@ function changeWaterText(obj, src, ~) end end - function recordWeight(obj, weight, subject, weighingScale) + function recordWeight(obj, weight, subject) % Post a subject's weight to Alyx. If no inputs are provided, % create an input dialog for the user to input a weight. If no % subject is provided, use this object's currently selected @@ -376,7 +376,6 @@ function recordWeight(obj, weight, subject, weighingScale) % % See also VIEWSUBJECTHISTORY, VIEWALLSUBJECTS ai = obj.AlyxInstance; - if nargin < 4; weighingScale = hostname; end if nargin < 3; subject = obj.Subject; end if nargin < 2 prompt = {sprintf('weight of %s:', subject)}; @@ -392,8 +391,7 @@ function recordWeight(obj, weight, subject, weighingScale) weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); d.subject = subject; d.weight = weight; - d.user = ai.user; - d.weighing_scale = weighingScale; + d.user = ai.username; if isempty(ai) % if not logged in, save the weight for later obj.QueuedWeights{end+1} = d; obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); From 08faf099973fcde10b54d7c949eb9b7ebe8555f1 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 18 Dec 2017 17:09:41 +0000 Subject: [PATCH 003/515] Adjuested water resmaining text WaterRemaining now a property of the class rather than a field within the AlyxInstance --- +eui/AlyxPanel.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index e16983fc..5e23a39e 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -49,6 +49,7 @@ WaterRequiredText % Handle to text UI element displaying the water required WaterRemainingText % Handle to text UI element displaying the water remaining LoginTimer % Timer to keep track of how long the user has been logged in, when this expires the user is automatically logged out + WaterRemaining % Holds the current water required for the selected subject end events (NotifyAccess = 'protected') @@ -342,6 +343,7 @@ function dispWaterReq(obj, src, ~) set(obj.WaterRequiredText, 'String', ... sprintf('Subject %s requires %.2f of %.2f today', ... obj.Subject, s.water_requirement_remaining, s.water_requirement_total)); + obj.WaterRemaining = s.water_requirement_remaining; end catch me d = loadjson(me.message); @@ -361,8 +363,8 @@ function changeWaterText(obj, src, ~) % % See also DISPWATERREQ, GIVEWATER ai = obj.AlyxInstance; - if ~isempty(ai) && isfield(ai, 'water_requirement_remaining') && ~isempty(ai.water_requirement_remaining) - rem = ai.water_requirement_remaining; + if ~isempty(ai) && ~isempty(obj.WaterRemaining) + rem = obj.WaterRemaining; curr = str2double(src.String); set(obj.WaterRemainingText, 'String', sprintf('(%.2f)', rem-curr)); end From b3f47efd72937ece2caf62b515cc0203a81e8899 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 18 Dec 2017 19:35:02 +0000 Subject: [PATCH 004/515] add some daq controllers, update daq controls to allow vector commands --- +exp/SignalsExp.m | 2 +- +hw/DaqController.m | 2 +- +hw/DaqLever.m | 129 ++++++++++++++++++++++++++++++++++++++ +hw/DaqLick.m | 131 +++++++++++++++++++++++++++++++++++++++ +hw/DaqPiezo.m | 129 ++++++++++++++++++++++++++++++++++++++ +hw/PulseSwitcher.m | 2 +- +hw/SinePulseGenerator.m | 45 ++++++++++++++ 7 files changed, 437 insertions(+), 3 deletions(-) create mode 100644 +hw/DaqLever.m create mode 100644 +hw/DaqLick.m create mode 100644 +hw/DaqPiezo.m create mode 100644 +hw/SinePulseGenerator.m diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 5ddb002b..81438129 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -215,7 +215,7 @@ function useRig(obj, rig) obj.DaqController.ChannelNames)); % Find matching channel from rig hardware file if id % if the output is present, create callback obj.Listeners = [obj.Listeners - obj.Outputs.(outputNames{m}).onValue(@(v)obj.DaqController.command([zeros(1,id-1) v])) % pad value with zeros in order to output to correct channel + obj.Outputs.(outputNames{m}).onValue(@(v)obj.DaqController.command([zeros(size(v,1),id-1) v])) % pad value with zeros in order to output to correct channel obj.Outputs.(outputNames{m}).onValue(@(v)fprintf('delivering output of %.2f\n',v)) ]; elseif strcmp(outputNames{m}, 'reward') % special case; rewardValve is always first signals generator in list diff --git a/+hw/DaqController.m b/+hw/DaqController.m index 3b0a8c08..cca9f947 100644 --- a/+hw/DaqController.m +++ b/+hw/DaqController.m @@ -154,7 +154,7 @@ function command(obj, varargin) end channelNames = obj.ChannelNames(1:n); analogueChannelsIdx = obj.AnalogueChannelsIdx(1:n); - if any(analogueChannelsIdx)&&any(values(analogueChannelsIdx)~=0) + if any(analogueChannelsIdx)&&any(any(values(:,analogueChannelsIdx)~=0)) queue(obj, channelNames(analogueChannelsIdx), waveforms(analogueChannelsIdx)); if foreground startForeground(obj.DaqSession); diff --git a/+hw/DaqLever.m b/+hw/DaqLever.m new file mode 100644 index 00000000..47c9f3f8 --- /dev/null +++ b/+hw/DaqLever.m @@ -0,0 +1,129 @@ +classdef DaqLever < hw.PositionSensor + %HW.DaqLever Gets output from button + % Adopted from DaqRotaryEncoder + % AP 170629 + + properties + % hardcoded for zgood at the moment, not sure where this is normally changed AP 170629 + DaqSession = [] %DAQ session for input (see session-based interface docs) + DaqId = 'Dev2' %DAQ's device ID, e.g. 'Dev1' + DaqChannelId = 'port0/line3' %DAQ's ID for the counter channel. e.g. 'ctr0' + %DaqChannelId = 'ai3'; + end + + properties (Access = protected) + %Created when listenForAvailableData is called, allowing logging of + %positions during DAQ background acquision + DaqListener + DaqInputChannelIdx %Index into acquired input data matrices for our channel + LastDaqValue %Last value obtained from the DAQ counter + %Accumulated cycle number for position (i.e. when the DAQ's counter has + %over- or underflowed its range, this is incremented or decremented + %accordingly) + Cycle + end + + properties (Dependent) + DaqChannelIdx % index into DaqSession's channels for our data + end + + methods + function value = get.DaqChannelIdx(obj) + inputs = find(strcmpi('input', io.daqSessionChannelDirections(obj.DaqSession))); + value = inputs(obj.DaqInputChannelIdx); + end + + function set.DaqChannelIdx(obj, value) + % get directions of all channels on this session + dirs = io.daqSessionChannelDirections(obj.DaqSession); + % logical array flagging all input channels + inputsUptoChannel = strcmp(dirs(1:value), 'Input'); + % ensure the channel we're setting is an input + assert(inputsUptoChannel(value), 'Channel %i is not an input', value); + % find channel number counting inputs only + obj.DaqInputChannelIdx = sum(inputsUptoChannel); + end + + function createDaqChannel(obj) + % this didn't work - doesn't support timers, and something that I + % don't know never starts on stimserver + [ch, idx] = obj.DaqSession.addDigitalChannel(obj.DaqId, obj.DaqChannelId,'InputOnly'); + %[ch, idx] = obj.DaqSession.addAnalogInputChannel(obj.DaqId, obj.DaqChannelId,'Voltage'); + % quadrature encoding where each pulse from the channel updates + % the counter - ie. maximum resolution (see http://www.ni.com/white-paper/7109/en) + obj.DaqChannelIdx = idx; % record the index of the channel + %initialise LastDaqValue with current counter value + daqValue = obj.DaqSession.inputSingleScan(); + obj.LastDaqValue = daqValue(obj.DaqInputChannelIdx); + %reset cycle number + obj.Cycle = 0; + end + + function msg = wiringInfo(obj) + ch = obj.DaqSession.Channels(obj.DaqChannelIdx); + s1 = sprintf('Terminals: A = %s, B = %s\n', ... + ch.TerminalA, ch.TerminalB); + s2 = sprintf('For KÜBLER 2400 series wiring is:\n'); + s3 = sprintf('GREEN -> %s, GREY -> %s, BROWN -> +5V, WHITE -> DGND\n',... + ch.TerminalA, ch.TerminalB); + msg = [s1 s2 s3]; + end + + function listenForAvailableData(obj) + % adds a listener to the DAQ session that will receive and process + % data when the DAQ is acquiring data in the background (i.e. + % startBackground() has been called on the session). + deleteListeners(obj); + obj.DaqListener = obj.DaqSession.addlistener('DataAvailable', ... + @(src, event) daqListener(obj, src, event)); + end + + function delete(obj) + deleteListeners(obj); + end + + function deleteListeners(obj) + if ~isempty(obj.DaqListener) + delete(obj.DaqListener); + end; + end + + function x = decodeDaq(obj, newValue) + %correct for 32-bit overflow/underflow + d = diff([obj.LastDaqValue; newValue]); + %decrement cycle for 'underflows', i.e. below 0 to a large value + %increment cycle for 'overflows', i.e. past max value to small values + cycle = obj.Cycle + cumsum(d < -0.5*obj.DaqCounterPeriod)... + - cumsum(d > 0.5*obj.DaqCounterPeriod); + x = obj.DaqCounterPeriod*cycle + newValue; + obj.Cycle = cycle(end); + obj.LastDaqValue = newValue(end); + end + end + + methods %(Access = protected) + function [x, time] = readAbsolutePosition(obj) + if obj.DaqSession.IsRunning + disp('waiting for session'); + obj.DaqSession.wait; + disp('done waiting'); + end + preTime = obj.Clock.now; + daqVal = inputSingleScan(obj.DaqSession); + x = daqVal; % AP 170629 straight digital read from lever + %x = decodeDaq(obj, daqVal(obj.DaqInputChannelIdx)); + postTime = obj.Clock.now; + time = 0.5*(preTime + postTime); % time is mean of before & after + end + end + + methods (Access = protected) + function daqListener(obj, src, event) + acqStartTime = obj.Clock.fromMatlab(event.TriggerTime); + values = decode(obj, event.Data(:,obj.DaqInputChannelIdx)) - obj.ZeroOffset; + times = acqStartTime + event.TimeStamps(:,obj.DaqInputChannelIdx); + logSamples(obj, values, times); + end + end +end + diff --git a/+hw/DaqLick.m b/+hw/DaqLick.m new file mode 100644 index 00000000..636c9ca9 --- /dev/null +++ b/+hw/DaqLick.m @@ -0,0 +1,131 @@ +classdef DaqLick < hw.PositionSensor + %HW.DaqLick Gets output from button + % Adopted from DaqRotaryEncoder + % AP 170629 + + properties + % hardcoded for zgood at the moment, not sure where this is normally changed AP 170629 + % (I think the protocol is to hardcode whatever, change manually, and + % save) + DaqSession = [] %DAQ session for input (see session-based interface docs) + DaqId = 'Dev2' %DAQ's device ID, e.g. 'Dev1' + DaqChannelId = 'port0/line2' %DAQ's ID for the counter channel. e.g. 'ctr0' + %DaqChannelId = 'ai3'; + end + + properties (Access = protected) + %Created when listenForAvailableData is called, allowing logging of + %positions during DAQ background acquision + DaqListener + DaqInputChannelIdx %Index into acquired input data matrices for our channel + LastDaqValue %Last value obtained from the DAQ counter + %Accumulated cycle number for position (i.e. when the DAQ's counter has + %over- or underflowed its range, this is incremented or decremented + %accordingly) + Cycle + end + + properties (Dependent) + DaqChannelIdx % index into DaqSession's channels for our data + end + + methods + function value = get.DaqChannelIdx(obj) + inputs = find(strcmpi('input', io.daqSessionChannelDirections(obj.DaqSession))); + value = inputs(obj.DaqInputChannelIdx); + end + + function set.DaqChannelIdx(obj, value) + % get directions of all channels on this session + dirs = io.daqSessionChannelDirections(obj.DaqSession); + % logical array flagging all input channels + inputsUptoChannel = strcmp(dirs(1:value), 'Input'); + % ensure the channel we're setting is an input + assert(inputsUptoChannel(value), 'Channel %i is not an input', value); + % find channel number counting inputs only + obj.DaqInputChannelIdx = sum(inputsUptoChannel); + end + + function createDaqChannel(obj) + % this didn't work - doesn't support timers, and something that I + % don't know never starts on stimserver + [ch, idx] = obj.DaqSession.addDigitalChannel(obj.DaqId, obj.DaqChannelId,'InputOnly'); + %[ch, idx] = obj.DaqSession.addAnalogInputChannel(obj.DaqId, obj.DaqChannelId,'Voltage'); + % quadrature encoding where each pulse from the channel updates + % the counter - ie. maximum resolution (see http://www.ni.com/white-paper/7109/en) + obj.DaqChannelIdx = idx; % record the index of the channel + %initialise LastDaqValue with current counter value + daqValue = obj.DaqSession.inputSingleScan(); + obj.LastDaqValue = daqValue(obj.DaqInputChannelIdx); + %reset cycle number + obj.Cycle = 0; + end + + function msg = wiringInfo(obj) + ch = obj.DaqSession.Channels(obj.DaqChannelIdx); + s1 = sprintf('Terminals: A = %s, B = %s\n', ... + ch.TerminalA, ch.TerminalB); + s2 = sprintf('For KÜBLER 2400 series wiring is:\n'); + s3 = sprintf('GREEN -> %s, GREY -> %s, BROWN -> +5V, WHITE -> DGND\n',... + ch.TerminalA, ch.TerminalB); + msg = [s1 s2 s3]; + end + + function listenForAvailableData(obj) + % adds a listener to the DAQ session that will receive and process + % data when the DAQ is acquiring data in the background (i.e. + % startBackground() has been called on the session). + deleteListeners(obj); + obj.DaqListener = obj.DaqSession.addlistener('DataAvailable', ... + @(src, event) daqListener(obj, src, event)); + end + + function delete(obj) + deleteListeners(obj); + end + + function deleteListeners(obj) + if ~isempty(obj.DaqListener) + delete(obj.DaqListener); + end; + end + + function x = decodeDaq(obj, newValue) + %correct for 32-bit overflow/underflow + d = diff([obj.LastDaqValue; newValue]); + %decrement cycle for 'underflows', i.e. below 0 to a large value + %increment cycle for 'overflows', i.e. past max value to small values + cycle = obj.Cycle + cumsum(d < -0.5*obj.DaqCounterPeriod)... + - cumsum(d > 0.5*obj.DaqCounterPeriod); + x = obj.DaqCounterPeriod*cycle + newValue; + obj.Cycle = cycle(end); + obj.LastDaqValue = newValue(end); + end + end + + methods %(Access = protected) + function [x, time] = readAbsolutePosition(obj) + if obj.DaqSession.IsRunning + disp('waiting for session'); + obj.DaqSession.wait; + disp('done waiting'); + end + preTime = obj.Clock.now; + daqVal = inputSingleScan(obj.DaqSession); + x = daqVal; % AP 170629 straight digital read from lever + %x = decodeDaq(obj, daqVal(obj.DaqInputChannelIdx)); + postTime = obj.Clock.now; + time = 0.5*(preTime + postTime); % time is mean of before & after + end + end + + methods (Access = protected) + function daqListener(obj, src, event) + acqStartTime = obj.Clock.fromMatlab(event.TriggerTime); + values = decode(obj, event.Data(:,obj.DaqInputChannelIdx)) - obj.ZeroOffset; + times = acqStartTime + event.TimeStamps(:,obj.DaqInputChannelIdx); + logSamples(obj, values, times); + end + end +end + diff --git a/+hw/DaqPiezo.m b/+hw/DaqPiezo.m new file mode 100644 index 00000000..c83500f9 --- /dev/null +++ b/+hw/DaqPiezo.m @@ -0,0 +1,129 @@ +classdef DaqPiezo < hw.PositionSensor + %HW.DaqPiezo Gets output from button + % Adopted from DaqRotaryEncoder + % AP 170629 + + properties + % hardcoded for zgood at the moment, not sure where this is normally changed AP 170629 + DaqSession = [] %DAQ session for input (see session-based interface docs) + DaqId = 'Dev2' %DAQ's device ID, e.g. 'Dev1' + DaqChannelId = 'port0/line3' %DAQ's ID for the counter channel. e.g. 'ctr0' + %DaqChannelId = 'ai3'; + end + + properties (Access = protected) + %Created when listenForAvailableData is called, allowing logging of + %positions during DAQ background acquision + DaqListener + DaqInputChannelIdx %Index into acquired input data matrices for our channel + LastDaqValue %Last value obtained from the DAQ counter + %Accumulated cycle number for position (i.e. when the DAQ's counter has + %over- or underflowed its range, this is incremented or decremented + %accordingly) + Cycle + end + + properties (Dependent) + DaqChannelIdx % index into DaqSession's channels for our data + end + + methods + function value = get.DaqChannelIdx(obj) + inputs = find(strcmpi('input', io.daqSessionChannelDirections(obj.DaqSession))); + value = inputs(obj.DaqInputChannelIdx); + end + + function set.DaqChannelIdx(obj, value) + % get directions of all channels on this session + dirs = io.daqSessionChannelDirections(obj.DaqSession); + % logical array flagging all input channels + inputsUptoChannel = strcmp(dirs(1:value), 'Input'); + % ensure the channel we're setting is an input + assert(inputsUptoChannel(value), 'Channel %i is not an input', value); + % find channel number counting inputs only + obj.DaqInputChannelIdx = sum(inputsUptoChannel); + end + + function createDaqChannel(obj) + % this didn't work - doesn't support timers, and something that I + % don't know never starts on stimserver + [ch, idx] = obj.DaqSession.addDigitalChannel(obj.DaqId, obj.DaqChannelId,'InputOnly'); + %[ch, idx] = obj.DaqSession.addAnalogInputChannel(obj.DaqId, obj.DaqChannelId,'Voltage'); + % quadrature encoding where each pulse from the channel updates + % the counter - ie. maximum resolution (see http://www.ni.com/white-paper/7109/en) + obj.DaqChannelIdx = idx; % record the index of the channel + %initialise LastDaqValue with current counter value + daqValue = obj.DaqSession.inputSingleScan(); + obj.LastDaqValue = daqValue(obj.DaqInputChannelIdx); + %reset cycle number + obj.Cycle = 0; + end + + function msg = wiringInfo(obj) + ch = obj.DaqSession.Channels(obj.DaqChannelIdx); + s1 = sprintf('Terminals: A = %s, B = %s\n', ... + ch.TerminalA, ch.TerminalB); + s2 = sprintf('For KÜBLER 2400 series wiring is:\n'); + s3 = sprintf('GREEN -> %s, GREY -> %s, BROWN -> +5V, WHITE -> DGND\n',... + ch.TerminalA, ch.TerminalB); + msg = [s1 s2 s3]; + end + + function listenForAvailableData(obj) + % adds a listener to the DAQ session that will receive and process + % data when the DAQ is acquiring data in the background (i.e. + % startBackground() has been called on the session). + deleteListeners(obj); + obj.DaqListener = obj.DaqSession.addlistener('DataAvailable', ... + @(src, event) daqListener(obj, src, event)); + end + + function delete(obj) + deleteListeners(obj); + end + + function deleteListeners(obj) + if ~isempty(obj.DaqListener) + delete(obj.DaqListener); + end; + end + + function x = decodeDaq(obj, newValue) + %correct for 32-bit overflow/underflow + d = diff([obj.LastDaqValue; newValue]); + %decrement cycle for 'underflows', i.e. below 0 to a large value + %increment cycle for 'overflows', i.e. past max value to small values + cycle = obj.Cycle + cumsum(d < -0.5*obj.DaqCounterPeriod)... + - cumsum(d > 0.5*obj.DaqCounterPeriod); + x = obj.DaqCounterPeriod*cycle + newValue; + obj.Cycle = cycle(end); + obj.LastDaqValue = newValue(end); + end + end + + methods %(Access = protected) + function [x, time] = readAbsolutePosition(obj) + if obj.DaqSession.IsRunning + disp('waiting for session'); + obj.DaqSession.wait; + disp('done waiting'); + end + preTime = obj.Clock.now; + daqVal = inputSingleScan(obj.DaqSession); + x = daqVal; % AP 170629 straight digital read from lever + %x = decodeDaq(obj, daqVal(obj.DaqInputChannelIdx)); + postTime = obj.Clock.now; + time = 0.5*(preTime + postTime); % time is mean of before & after + end + end + + methods (Access = protected) + function daqListener(obj, src, event) + acqStartTime = obj.Clock.fromMatlab(event.TriggerTime); + values = decode(obj, event.Data(:,obj.DaqInputChannelIdx)) - obj.ZeroOffset; + times = acqStartTime + event.TimeStamps(:,obj.DaqInputChannelIdx); + logSamples(obj, values, times); + end + end +end + diff --git a/+hw/PulseSwitcher.m b/+hw/PulseSwitcher.m index e5b0e5f3..4321bf60 100644 --- a/+hw/PulseSwitcher.m +++ b/+hw/PulseSwitcher.m @@ -21,7 +21,7 @@ end function samples = waveform(obj, sampleRate, command) - [dt, npulses, f] = obj.ParamsFun(command); + [dt, npulses, f] = obj.ParamsFun(command(1)); wavelength = 1/f; duty = dt/wavelength; assert(duty <= (1 + 1e-3), 'Pulse width larger than wavelength (duty=%.2f)', duty); diff --git a/+hw/SinePulseGenerator.m b/+hw/SinePulseGenerator.m new file mode 100644 index 00000000..95576183 --- /dev/null +++ b/+hw/SinePulseGenerator.m @@ -0,0 +1,45 @@ +classdef SinePulseGenerator < hw.ControlSignalGenerator + %HW.PULSESWITCHER Generates a train of pulses + % Detailed explanation goes here + + properties + Offset + end + + methods + function obj = SinePulseGenerator(offset) + obj.DefaultValue = 0; + obj.Offset = offset; + end + + function samples = waveform(obj, sampleRate, pars) + dt = pars(1); + + if numel(pars)==3 + f = pars(2); + amp = pars(3); + else + f = 40; + amp = 1; + end + + % first construct one cycle at this frequency + oneCycleDt = 1/f; + t = linspace(0, oneCycleDt - 1/sampleRate, sampleRate*oneCycleDt); + samples = amp/2*(-cos(2*pi*f*t) + 1); + + % if dt is greater than the duration of that cycle, then put zeros in + % the middle + if dt>oneCycleDt + nSamp = round(dt*sampleRate)-numel(samples); + m = round(numel(samples)/2); + samples = [samples(1:m) amp*ones(1,nSamp) samples(m+1:end)]; + end + + % add a zero so it turns off at the end + samples = [samples'; 0]; + end + end + +end + From e78f5e8feb6fea503c3f0c8942de8b7a282c1e89 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 19 Dec 2017 12:21:45 +0000 Subject: [PATCH 005/515] Further Alyx integration and tl fix * Timeline now adds inputs for easier indexing in analysis code * Alyx session created now moved to dat.newExp as this is a more logical place for it * launchSessionURL button should now work on the Alyx panel. If a base session doesn't exist when the button is pressed, one is created. --- +dat/newExp.m | 73 ++++++++++++++++++++++++++++++++++++++++++++---- +eui/AlyxPanel.m | 65 +++++++++++++++++++----------------------- +eui/MControl.m | 64 ++++-------------------------------------- +hw/Timeline.m | 2 +- 4 files changed, 103 insertions(+), 101 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index 035d351e..0e63070a 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -1,6 +1,19 @@ -function [expRef, expSeq] = newExp(subject, expDate, expParams) +function [expRef, expSeq] = newExp(subject, expDate, expParams, AlyxInstance) %DAT.NEWEXP Create a new unique experiment in the database -% [ref, seq] = DAT.NEWEXP(subject, expDate, expParams) TODO +% [ref, seq] = DAT.NEWEXP(subject, expDate, expParams[, AlyxInstance]) +% Create a new experiment by creating the relevant folder tree in the +% local and main data repositories in the following format: +% +% subject/ +% |_ YYYY-MM-DD/ +% |_ expSeq/ +% +% If experiment parameters are passed into the function, they are saved +% here. If an instance of Alyx is passed and a base session for the +% experiment date is not found, one is created in the Alyx database. +% A corresponding subsession is also created. +% +% See also DAT.PATHS % % Part of Rigbox @@ -16,6 +29,11 @@ expParams = []; end +if nargin < 4 + % no instance of Alyx, don't create session on Alyx + AlyxInstance = []; +end + if ischar(expDate) % if the passed expDate is a string, parse it into a datenum expDate = datenum(expDate, 'yyyy-mm-dd'); @@ -29,8 +47,7 @@ [~, dateList, seqList] = dat.listExps(subject); % filter the list by expdate -expDate = floor(expDate); -filterIdx = dateList == expDate; +filterIdx = dateList == floor(expDate); % find the next sequence number expSeq = max(seqList(filterIdx)) + 1; @@ -40,7 +57,7 @@ end % expInfo repository is the reference location for which experiments exist -[expPath, expRef] = dat.expPath(subject, expDate, expSeq, 'expInfo'); +[expPath, expRef] = dat.expPath(subject, floor(expDate), expSeq, 'expInfo'); % ensure nothing went wrong in making a "unique" ref and path to hold assert(~any(file.exists(expPath)), ... sprintf('Something went wrong as experiment folders already exist for "%s".', expRef)); @@ -48,6 +65,52 @@ % now make the folder(s) to hold the new experiment assert(all(cellfun(@(p) mkdir(p), expPath)), 'Creating experiment directories failed'); +if ~strcmp(subject,'default') % Ignore fake subject + % if the Alyx Instance is set, find or create BASE session + expDate = alyx.datestr(expDate); % date in Alyx format + if ~isempty(AlyxInstance) + % Get list of base sessions + sessions = alyx.getData(AlyxInstance,... + ['sessions?type=Base&subject=' subject]); + + %If the date of this latest base session is not the same date as + %today, then create a new base session for today + if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), expDate(1:10)) + d = struct; + d.subject = subject; + d.procedures = {'Behavior training/tasks'}; + d.narrative = 'auto-generated session'; + d.start_time = expDate; + d.type = 'Base'; + + base_submit = alyx.postData(AlyxInstance, 'sessions', d); + assert(isfield(base_submit,'subject'),... + 'Submitted base session did not return appropriate values'); + + %Now retrieve the sessions again + sessions = alyx.getData(AlyxInstance,... + ['sessions?type=Base&subject=' subject]); + end + latest_base = sessions{end}; + else % If not logged in to Alyx... + latest_base.url = []; % set the base url to null + end + + %Now create a new SUBSESSION, using the same experiment number + d = struct; + d.subject = subject; + d.procedures = {'Behavior training/tasks'}; + d.narrative = 'auto-generated session'; + d.start_time = expDate; + d.type = 'Experiment'; + d.parent_session = latest_base.url; + d.number = expSeq; + + subsession = alyx.postData(AlyxInstance, 'sessions', d); + assert(isfield(subsession,'subject'),... + 'Failed to create new sub-session in Alyx for %s', subject); +end + % if the parameters had an experiment definition function, save a copy in % the experiment's folder if isfield(expParams, 'defFunction') diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 5e23a39e..02889e23 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -408,55 +408,46 @@ function recordWeight(obj, weight, subject) end function launchSessionURL(obj) - % Launch the Webpage for the current session in the default Web - % browser. If no session exists for today's date, a new base - % and/or subsession is created accordingly. - % TODO: Do we really want to create a session if one doesn't - % exist? + % Launch the Webpage for the current base session in the + % default Web browser. If no session exists for today's date, + % a new base session is created accordingly. + % + % See also LAUNCHSUBJECTURL ai = obj.AlyxInstance; % determine whether there is a session for this subj and date thisDate = alyx.datestr(now); - sessions = alyx.getData(ai, ['sessions?type=Experiment&subject=' obj.Subject]); + sessions = alyx.getData(ai, ['sessions?type=Base&subject=' obj.Subject]); - % If the date of this latest session is not the same date as - % today, then create a new session for today + % If the date of this latest base session is not the same date + % as today, then create a new one for today if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), thisDate(1:10)) % Ask user whether he/she wants to create new session % Construct a questdlg with three options - choice = questdlg('Would you like to create a new session?', ... - ['No session exists for ' datestr(now, 'yyyy-mm-dd')], ... + choice = questdlg('Would you like to create a new base session?', ... + ['No base session exists for ' datestr(now, 'yyyy-mm-dd')], ... 'Yes','No','No'); % Handle response switch choice case 'Yes' - % Check if base session exists - baseSessions = alyx.getData(ai, ['sessions?type=Experiment&subject=' obj.Subject]); - if isempty(baseSessions) || ~strcmp(baseSessions{end}.start_time(1:10), thisDate(1:10)) - % Create our base session - d = struct; - d.subject = obj.Subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = thisDate; - d.type = 'Base'; - - base_submit = alyx.postData(ai, 'sessions', d); - if ~isfield(base_submit,'subject') % fail - warning('Submitted base session did not return appropriate values'); - warning('Submitted data below:'); - disp(d) - warning('Return values below:'); - disp(base_submit) - return - else % success - obj.log(['Created new base session in Alyx for ' obj.Subject]); - end + % Create our base session + d = struct; + d.subject = obj.Subject; + d.procedures = {'Behavior training/tasks'}; + d.narrative = 'auto-generated session'; + d.start_time = thisDate; + d.type = 'Base'; + + thisSess = alyx.postData(ai, 'sessions', d); + if ~isfield(thisSess,'subject') % fail + warning('Submitted base session did not return appropriate values'); + warning('Submitted data below:'); + disp(d) + warning('Return values below:'); + disp(thisSess) + return + else % success + obj.log(['Created new base session in Alyx for ' obj.Subject]); end - % Now create a new SUBSESSION, using the same experiment number - % d = struct; - % d.subject = obj.Subject; - % d.start_time = alyx.datestr(now); - % d.users = {ai.username}; case 'No' return end diff --git a/+eui/MControl.m b/+eui/MControl.m index 9571d559..0cde0300 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -544,64 +544,12 @@ function beginExp(obj) services = rig.Services(rig.SelectedServices); % Add these services to the parameters obj.Parameters.set('services', services(:),... - 'List of experiment services to use during the experiment'); - [expRef, seq] = dat.newExp(obj.NewExpSubject.Selected, now, obj.Parameters.Struct); % Create new experiment reference - % Set up new session on Alyx - if ~isempty(obj.AlyxPanel.AlyxInstance)&&~strcmp(obj.NewExpSubject.Selected,'default') - %Find/create BASE session, then create subsession - thisDate = alyx.datestr(now); - sessions = alyx.getData(obj.AlyxPanel.AlyxInstance,... - ['sessions?type=Base&subject=' obj.NewExpSubject.Selected]); - - %If the date of this latest base session is not the same date as - %today, then create a new base session for today - if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), thisDate(1:10)) - d = struct; - d.subject = obj.NewExpSubject.Selected; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = thisDate; - d.type = 'Base'; - - base_submit = alyx.postData(obj.AlyxPanel.AlyxInstance, 'sessions', d); - if ~isfield(base_submit,'subject') - warning('Submitted base session did not return appropriate values'); - warning('Submitted data below:'); - disp(d) - warning('Return values below:'); - disp(base_submit) - return - else - obj.log(['Created new base session in Alyx for ' obj.NewExpSubject.Selected]); - end - end - - %Now retrieve the sessions again - sessions = alyx.getData(obj.AlyxPanel.AlyxInstance,... - ['sessions?type=Base&subject=' obj.NewExpSubject.Selected]); - latest_base = sessions{end}; - - %Now create a new SUBSESSION, using the same experiment number - d = struct; - d.subject = obj.NewExpSubject.Selected; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = thisDate; - d.type = 'Experiment'; - d.parent_session = latest_base.url; - d.number = seq; - - subsession = alyx.postData(obj.AlyxPanel.AlyxInstance, 'sessions', d); - if ~isfield(subsession,'subject') - obj.log(['Failed to create new sub-session in Alyx for ' obj.NewExpSubject.Selected]); - disp(d) - end - obj.log(['Created new sub-session in Alyx for ', obj.NewExpSubject.Selected]); - % Add a copy of the AlyxInstance to the rig object for later - % water registration, &c. - rig.AlyxInstance = obj.AlyxPanel.AlyxInstance; - rig.AlyxInstance.subsessionURL = subsession.url; - end + 'List of experiment services to use during the experiment'); + expRef = dat.newExp(obj.NewExpSubject.Selected, now, obj.Parameters.Struct); % Create new experiment reference + % Add a copy of the AlyxInstance to the rig object for later + % water registration, &c. + rig.AlyxInstance = AlyxInstance; + rig.AlyxInstance.subsessionURL = subsession.url; panel = eui.ExpPanel.live(obj.ActiveExpsGrid, expRef, rig, obj.Parameters.Struct); obj.LastExpPanel = panel; diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 5efa5d2f..9d92d5ca 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -522,7 +522,7 @@ function init(obj) inputSession.NotifyWhenDataAvailableExceeds = obj.DaqSamplesPerNotify; % when to process data obj.Sessions('main') = inputSession; for i = 1:length(use) - in = obj.Inputs(idx(i)); % get channel info, etc. + in = inputOptions(strcmp({obj.Inputs.name}, obj.UseInputs(i))); % get channel info, etc. switch in.measurement case 'Voltage' ch = obj.Sessions('main').addAnalogInputChannel(obj.DaqIds, in.daqChannelID, in.measurement); From c082d3018a4f3e2fa81d6ee578d5ebeb6bd5e4fc Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 19 Dec 2017 15:06:48 +0000 Subject: [PATCH 006/515] subsession url assigned properly subsession url is now assigned properly when starting an experiment --- +dat/newExp.m | 9 ++++++--- +eui/MControl.m | 8 +++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index 0e63070a..df5c6ca1 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -1,6 +1,6 @@ -function [expRef, expSeq] = newExp(subject, expDate, expParams, AlyxInstance) +function [expRef, expSeq, url] = newExp(subject, expDate, expParams, AlyxInstance) %DAT.NEWEXP Create a new unique experiment in the database -% [ref, seq] = DAT.NEWEXP(subject, expDate, expParams[, AlyxInstance]) +% [ref, seq, url] = DAT.NEWEXP(subject, expDate, expParams[, AlyxInstance]) % Create a new experiment by creating the relevant folder tree in the % local and main data repositories in the following format: % @@ -82,6 +82,7 @@ d.narrative = 'auto-generated session'; d.start_time = expDate; d.type = 'Base'; +% d.users = {AlyxInstance.username}; base_submit = alyx.postData(AlyxInstance, 'sessions', d); assert(isfield(base_submit,'subject'),... @@ -91,7 +92,7 @@ sessions = alyx.getData(AlyxInstance,... ['sessions?type=Base&subject=' subject]); end - latest_base = sessions{end}; + latest_base = sessions{end}; else % If not logged in to Alyx... latest_base.url = []; % set the base url to null end @@ -105,10 +106,12 @@ d.type = 'Experiment'; d.parent_session = latest_base.url; d.number = expSeq; +% d.users = {AlyxInstance.username}; subsession = alyx.postData(AlyxInstance, 'sessions', d); assert(isfield(subsession,'subject'),... 'Failed to create new sub-session in Alyx for %s', subject); + url = subsession.url; end % if the parameters had an experiment definition function, save a copy in diff --git a/+eui/MControl.m b/+eui/MControl.m index 0cde0300..abf5b918 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -545,11 +545,13 @@ function beginExp(obj) % Add these services to the parameters obj.Parameters.set('services', services(:),... 'List of experiment services to use during the experiment'); - expRef = dat.newExp(obj.NewExpSubject.Selected, now, obj.Parameters.Struct); % Create new experiment reference + % Create new experiment reference + [expRef, ~, url] = dat.newExp(obj.NewExpSubject.Selected, now,... + obj.Parameters.Struct, obj.AlyxPanel.AlyxInstance); % Add a copy of the AlyxInstance to the rig object for later % water registration, &c. - rig.AlyxInstance = AlyxInstance; - rig.AlyxInstance.subsessionURL = subsession.url; + rig.AlyxInstance = obj.AlyxPanel.AlyxInstance; + rig.AlyxInstance.subsessionURL = url; panel = eui.ExpPanel.live(obj.ActiveExpsGrid, expRef, rig, obj.Parameters.Struct); obj.LastExpPanel = panel; From 43aa391e44470bc475c187ce33089623a7ed8dcf Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 19 Dec 2017 16:34:55 +0000 Subject: [PATCH 007/515] Fixed error when running default mouse url output now defined in all circumstances --- +dat/newExp.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/+dat/newExp.m b/+dat/newExp.m index df5c6ca1..ae7a3e76 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -112,6 +112,8 @@ assert(isfield(subsession,'subject'),... 'Failed to create new sub-session in Alyx for %s', subject); url = subsession.url; +else + url = []; end % if the parameters had an experiment definition function, save a copy in From 7e03ec60fbe9a1e000a244f4a1e456dadae0ca7d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 19 Dec 2017 17:40:12 +0000 Subject: [PATCH 008/515] reverted Timeline as 'fix' didn't work --- +hw/Timeline.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 9d92d5ca..7d514568 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -522,7 +522,7 @@ function init(obj) inputSession.NotifyWhenDataAvailableExceeds = obj.DaqSamplesPerNotify; % when to process data obj.Sessions('main') = inputSession; for i = 1:length(use) - in = inputOptions(strcmp({obj.Inputs.name}, obj.UseInputs(i))); % get channel info, etc. + in = obj.Inputs(idx(i)); % get channel info, etc. switch in.measurement case 'Voltage' ch = obj.Sessions('main').addAnalogInputChannel(obj.DaqIds, in.daqChannelID, in.measurement); From 7882a77ad53a69f6356c60a081e96420f25f5c8a Mon Sep 17 00:00:00 2001 From: nsteinme Date: Sun, 7 Jan 2018 18:27:17 +0000 Subject: [PATCH 009/515] modernize mpep listener - incomplete --- +hw/Timeline.m | 6 +++- cortexlab/+tl/bindMpepServerWithWS.m | 50 ++++++++++++++++++---------- 2 files changed, 38 insertions(+), 18 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 7d514568..f6f141e5 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -522,7 +522,9 @@ function init(obj) inputSession.NotifyWhenDataAvailableExceeds = obj.DaqSamplesPerNotify; % when to process data obj.Sessions('main') = inputSession; for i = 1:length(use) - in = obj.Inputs(idx(i)); % get channel info, etc. + in = obj.Inputs(idx(i)); % get channel info, etc. + fprintf(1, 'adding channel %s on %s\n', in.name, in.daqChannelID); + switch in.measurement case 'Voltage' ch = obj.Sessions('main').addAnalogInputChannel(obj.DaqIds, in.daqChannelID, in.measurement); @@ -603,7 +605,9 @@ function process(obj, ~, event) fwrite(obj.DataFID, datToWrite', obj.AquiredDataType); % Write to file end % if plotting the channels live, plot the new data + if obj.LivePlot; obj.livePlot(event.Data); end + end function livePlot(obj, data) diff --git a/cortexlab/+tl/bindMpepServerWithWS.m b/cortexlab/+tl/bindMpepServerWithWS.m index 33d8996b..187583cf 100644 --- a/cortexlab/+tl/bindMpepServerWithWS.m +++ b/cortexlab/+tl/bindMpepServerWithWS.m @@ -45,6 +45,12 @@ communicator.EventMode = false; communicator.open(); +%% initialize timeline + +rig = hw.devices([], false); +tlObj = rig.timeline; +tls.tlObj = tlObj; + %% Helper functions function closeConns() @@ -61,10 +67,10 @@ function process() function processListener(listener) sz = pnet(listener.socket, 'readpacket', 1000, 'noblock'); if sz > 0 - t = tl.time(false); % save the time we got the UDP packet + t = tlObj.time(false); % save the time we got the UDP packet msg = pnet(listener.socket, 'read'); - if tl.running - tl.record([listener.name 'UDP'], msg, t); % record the UDP event in Timeline + if tlObj.IsRunning + tlObj.record([listener.name 'UDP'], msg, t); % record the UDP event in Timeline end listener.callback(listener, msg); % call special handling function end @@ -77,6 +83,10 @@ function processMpep(listener, msg) log('%s: ''%s'' from %s:%i', listener.name, msg, ipstr, port); % parse the message info = dat.mpepMessageParse(msg); + + % !!! Get alyx instance here!! + ai = []; + failed = false; % flag for preventing UDP echo %% Experiment-level events start/stop timeline switch lower(info.instruction) @@ -85,10 +95,10 @@ function processMpep(listener, msg) try % start Timeline communicator.send('status', { 'starting', info.expRef}); - tl.start(info.expRef); + tlObj.start(info.expRef, ai); % re-record the UDP event in Timeline since it wasn't started % when we tried earlier. Treat it as having arrived at time zero. - tl.record('mpepUDP', msg, 0); + tlObj.record('mpepUDP', msg, 0); catch ex % flag up failure so we do not echo the UDP message back below failed = true; @@ -96,11 +106,11 @@ function processMpep(listener, msg) end case 'expend' - tl.stop(); % stop Timeline + tlObj.stop(); % stop Timeline communicator.send('status', { 'completed', info.expRef}); case 'expinterrupt' - tl.stop(); % stop Timeline + tlObj.stop(); % stop Timeline communicator.send('status', { 'completed', info.expRef}); end if ~failed @@ -135,20 +145,26 @@ function listen() if firstPress(quitKey) running = false; end - if firstPress(manualStartKey) && ~tl.running - [mouseName, ~] = dat.subjectSelector(); + if firstPress(manualStartKey) && ~tlObj.IsRunning + + % first get an alyx instance + ai = alyx.loginWindow(); + + [mouseName, ~] = dat.subjectSelector([],ai); + if ~isempty(mouseName) clear expParams; expParams.experimentType = 'timelineManualStart'; - newExpRef = dat.newExp(mouseName, now, expParams); + newExpRef = dat.newExp(mouseName, now, expParams, ai); %[subjectRef, expDate, expSequence] = dat.parseExpRef(newExpRef); %newExpRef = dat.constructExpRef(mouseName, now, expNum); communicator.send('status', { 'starting', newExpRef}); - tl.start(newExpRef); + tlObj.start(newExpRef, ai); end - elseif firstPress(manualStartKey) && tl.running && ~isempty(newExpRef) - - tl.stop(); + KbQueueFlush; + elseif firstPress(manualStartKey) && tlObj.IsRunning && ~isempty(newExpRef) + fprintf(1, 'stopping timeline\n'); + tlObj.stop(); communicator.send('status', { 'completed', newExpRef}); newExpRef = []; end @@ -172,8 +188,8 @@ function handleMessage(id, data, host) % client disconnected log('WS: ''%s'' disconnected', host); else - command = data{1}; - args = data(2:end); + command = data{1} + args = data(2:end) if ~strcmp(command, 'status') % log the command received log('WS: Received ''%s''', command); @@ -181,7 +197,7 @@ function handleMessage(id, data, host) switch command case 'status' % status request - if ~tl.running + if ~tlObj.IsRunning communicator.send(id, {'idle'}); else communicator.send(id, {'running'}); From 3b1fe577bd5155fa97072717d9b059951082ee95 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Sun, 7 Jan 2018 18:36:19 +0000 Subject: [PATCH 010/515] fix channel ordering bug --- +dat/findNextSeqNum.m | 24 +++++++++++ +dat/subjectSelector.m | 98 ++++++++++++++++++++++++++++++++++++++++++ +hw/Timeline.m | 5 ++- 3 files changed, 125 insertions(+), 2 deletions(-) create mode 100644 +dat/findNextSeqNum.m create mode 100644 +dat/subjectSelector.m diff --git a/+dat/findNextSeqNum.m b/+dat/findNextSeqNum.m new file mode 100644 index 00000000..45450073 --- /dev/null +++ b/+dat/findNextSeqNum.m @@ -0,0 +1,24 @@ + + +function expSeq = findNextSeqNum(subject, varargin) +% function expSeq = findNextSeqNum(subject[, date]) +if isempty(varargin) + expDate = now; +else + expDate = varargin{1}; +end + + +% retrieve list of experiments for subject +[~, dateList, seqList] = dat.listExps(subject); + +% filter the list by expdate +expDate = floor(expDate); +filterIdx = dateList == expDate; + +% find the next sequence number +expSeq = max(seqList(filterIdx)) + 1; +if isempty(expSeq) + % if none today, max will have returned [], so override this to 1 + expSeq = 1; +end \ No newline at end of file diff --git a/+dat/subjectSelector.m b/+dat/subjectSelector.m new file mode 100644 index 00000000..8437dad5 --- /dev/null +++ b/+dat/subjectSelector.m @@ -0,0 +1,98 @@ +function [subjectName, expNum] = subjectSelector(varargin) +% function [subjectName, expNum] = subjectSelector([parentFig], [alyxInstance]) +% make a popup window that will allow selection of a subject and expNum +% +% If you provide an alyxInstance, it will populate with a list of subjects +% from alyx; otherwise, from dat.listSubjects + +subjectName = []; +expNum = 1; + +f = figure(); +set(f, 'MenuBar', 'none', 'Name', 'Select subject', 'NumberTitle', 'off','Resize', 'off', ... + 'WindowStyle', 'modal'); +w = 300; +h = 50; + +if nargin>0 && ~isempty(varargin{1}) + parentPos = get(varargin{1}, 'Position'); +else + parentPos = get(f, 'Position'); +end + +newPos = [parentPos(1)+parentPos(3)/2-w/2, parentPos(2)+parentPos(4)/2-h/2, w, h]; +set(f, 'Position', newPos); + +txtChooseSubject = uicontrol('Style', 'text', 'Parent', f, ... + 'Position',[10 h-30 90 25], ... + 'String', 'Choose subject:', 'HorizontalAlignment', 'right'); + +txtChooseExpNum = uicontrol('Style', 'text', 'Parent', f, ... + 'Position',[10 h-55 90 25], ... + 'String', 'Choose exp num:', 'HorizontalAlignment', 'right'); + +subjectDropdown = uicontrol('Style', 'popupmenu', 'Parent', f, ... + 'Position',[110 h-25 90 25], ... + 'Background', [1 1 1], 'Callback', @pickExpNum); + +if nargin>1 + ai = varargin{2}; + + s = alyx.getData(ai, 'subjects?stock=False&alive=True'); + + respUser = cellfun(@(x)x.responsible_user, s, 'uni', false); + subjNames = cellfun(@(x)x.nickname, s, 'uni', false); + + thisUserSubs = sort(subjNames(strcmp(respUser, ai.username))); + otherUserSubs = sort(subjNames); + % note that we leave this User's mice also in + % otherUserSubs, in case they get confused and look + % there. + + newSubs = [{'default'}, thisUserSubs, otherUserSubs]; + set(subjectDropdown, 'String', newSubs); +else + set(subjectDropdown, 'String', dat.listSubjects); +end + +edtExpNum = uicontrol('Style', 'text', 'Parent', f, ... + 'Position',[110 h-50 90 25], ... + 'String', num2str(expNum), 'Background', [1 1 1]); + + +uicontrol('Style', 'pushbutton', 'String', 'OK', 'Position', ... + [210 h-25 90 25],'Callback', @ok); +uicontrol('Style', 'pushbutton', 'String', 'Cancel', 'Position', ... + [210 h-50 90 25],'Callback', @cancel); + +uiwait(); + + function ok(~,~) + + subjectList = get(subjectDropdown, 'String'); + subjectName = subjectList{get(subjectDropdown, 'Value')}; + expNum = str2num(get(edtExpNum, 'String')); + delete(f) + + end + + function cancel(~,~) + + subjectName = []; + expNum = []; + delete(f) + + end + + function pickExpNum(~,~) + + subjectList = get(subjectDropdown, 'String'); + subjectName = subjectList{get(subjectDropdown, 'Value')}; + try + expNumSuggestion = dat.findNextSeqNum(subjectName); + set(edtExpNum, 'String', num2str(expNumSuggestion)); + catch + end + + end +end \ No newline at end of file diff --git a/+hw/Timeline.m b/+hw/Timeline.m index f6f141e5..e084c8e0 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -522,7 +522,8 @@ function init(obj) inputSession.NotifyWhenDataAvailableExceeds = obj.DaqSamplesPerNotify; % when to process data obj.Sessions('main') = inputSession; for i = 1:length(use) - in = obj.Inputs(idx(i)); % get channel info, etc. + in = obj.Inputs(strcmp({obj.Inputs.name}, obj.UseInputs(i))); +% in = obj.Inputs(idx(i)); % get channel info, etc. fprintf(1, 'adding channel %s on %s\n', in.name, in.daqChannelID); switch in.measurement @@ -538,7 +539,7 @@ function init(obj) % we assume quadrature encoding (X4) for position measurement ch.EncoderType = 'X4'; end - obj.Inputs(idx(i)).arrayColumn = i; + obj.Inputs(strcmp({obj.Inputs.name}, obj.UseInputs(i))).arrayColumn = i; end end From 06a190c569a81ba497fbd66715bbc9f53852e4b3 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 8 Jan 2018 17:35:03 +0000 Subject: [PATCH 011/515] remove empty fields when converting alyx instance to string --- +dat/parseAlyxInstance.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/+dat/parseAlyxInstance.m b/+dat/parseAlyxInstance.m index 4be14277..1fb53e93 100644 --- a/+dat/parseAlyxInstance.m +++ b/+dat/parseAlyxInstance.m @@ -22,6 +22,9 @@ if isfield(ai, 'water_requirement_remaining') ai = rmfield(ai, 'water_requirement_remaining'); end + fnai = fieldnames(ai); + ise = cellfun(@(fn)isempty(ai.(fn)), fnai); + if any(ise); ai = rmfield(ai, fnai(ise)); end; c = cellfun(@(fn) ai.(fn), fieldnames(ai), 'UniformOutput', false); % get fieldnames ref = strjoin([ref; c],'\'); % join into single string for UDP, otherwise just output the expRef end From 8643d422c5c0ef236eef29b35feb0de7aef3e271 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 8 Jan 2018 17:39:13 +0000 Subject: [PATCH 012/515] update io.MpepDataHosts for sending alyx info --- +srv/expServer.m | 2 +- cortexlab/+io/MpepUDPDataHosts.m | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/+srv/expServer.m b/+srv/expServer.m index d954527c..e629a017 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -169,7 +169,7 @@ function handleMessage(id, data, host) end case 'run' % exp run request - [expRef, preDelay, postDelay, Alyx] = args{:}; + [expRef, preDelay, postDelay, Alyx] = args{:}; if dat.expExists(expRef) log('Starting experiment ''%s''', expRef); communicator.send(id, []); diff --git a/cortexlab/+io/MpepUDPDataHosts.m b/cortexlab/+io/MpepUDPDataHosts.m index 4b42cd20..821b215f 100644 --- a/cortexlab/+io/MpepUDPDataHosts.m +++ b/cortexlab/+io/MpepUDPDataHosts.m @@ -20,6 +20,7 @@ DigitalOutDaqChannelId Verbose = false % whether to output I/O messages etc Timeline % An instance of timeline for for recording UDP messages + AlyxInstance end properties (SetAccess = protected) @@ -170,7 +171,7 @@ function stimEnded(obj, num) msg = sprintf('StimEnd %s %d %d 1 %d', subject, seriesNum, expNum, num); broadcast(obj, msg); - if ~isempty(obj.Timeline)&&obj.Timeline.IsRunning + if ~isempty(obj.Timeline)&&isfield(obj.Timeline, 'IsRunning')&&obj.Timeline.IsRunning obj.Timeline.record('mpepUDP', msg); % record the UDP event in Timeline end dt = toc; @@ -200,9 +201,15 @@ function expEnded(obj) obj.ExpRef = []; end - function start(obj, expRef) + function start(obj, ref) + [expRef, ai] = dat.parseAlyxInstance(ref); + obj.AlyxInstance = ai; + [subject, seriesNum, expNum] = dat.expRefToMpep(obj.ExpRef); + alyxmsg = sprintf('alyx %s %d %d %s', subject, seriesNum, expNum, ref); + confirmedBroadcast(obj, alyxmsg); % equivalent to startExp(expRef) expStarted(obj, expRef); + end function stop(obj) @@ -230,7 +237,7 @@ function stop(obj) function confirmedBroadcast(obj, msg) broadcast(obj, msg); validateResponses(obj); - if ~isempty(obj.Timeline)&&obj.Timeline.IsRunning + if ~isempty(obj.Timeline)&&isfield(obj.Timeline, 'IsRunning')&&obj.Timeline.IsRunning obj.Timeline.record('mpepUDP', msg); % record the UDP event in Timeline end end From 96dd74b6b74929cc4d080aee047e47a26a4ab94a Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 8 Jan 2018 18:12:15 +0000 Subject: [PATCH 013/515] add other vis.checkers --- cortexlab/+vis/checker4.m | 126 ++++++++++++++++++++++++++++++++++++++ cortexlab/+vis/checker5.m | 126 ++++++++++++++++++++++++++++++++++++++ cortexlab/+vis/checker6.m | 126 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 378 insertions(+) create mode 100644 cortexlab/+vis/checker4.m create mode 100644 cortexlab/+vis/checker5.m create mode 100644 cortexlab/+vis/checker6.m diff --git a/cortexlab/+vis/checker4.m b/cortexlab/+vis/checker4.m new file mode 100644 index 00000000..be837609 --- /dev/null +++ b/cortexlab/+vis/checker4.m @@ -0,0 +1,126 @@ +function elem = checker3(t) +%vis.checker A grid of rectangles +% Detailed explanation goes here + +elem = t.Node.Net.subscriptableOrigin('checker'); + +%% make initial layers to be used as templates +maskTemplate = vis.emptyLayer(); +maskTemplate.isPeriodic = false; +maskTemplate.interpolation = 'nearest'; +maskTemplate.show = true; +maskTemplate.colourMask = [false false false true]; + +maskTemplate.textureId = 'checkerMaskPixel'; +[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); +maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value + +stencilTemplate = maskTemplate; +stencilTemplate.textureId = 'checkerStencilPixel'; +[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); +stencilTemplate.blending = 'none'; + +% pattern layer uses the alpha values laid down by mask layers +patternLayer = vis.emptyLayer(); +patternLayer.textureId = sprintf('~checker%i', randi(2^32)); +patternLayer.isPeriodic = false; +patternLayer.interpolation = 'nearest'; +patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this + +%% construct signals used to assemble layers +% N rows by cols signal is derived from the size of the pattern array but +% we skip repeats so that pattern changes don't update the mask layers +% unless the size has acutally changed +nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); +aziRange = elem.azimuthRange.flatten(); +altRange = elem.altitudeRange.flatten(); +sizeFrac = elem.rectSizeFrac.flatten(); +% signal containing the masking layers +gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... + maskTemplate, stencilTemplate, @gridMask); +% signal contain the checker layer +checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... + elem.colour.flatten(), @updateColour,... + elem.azimuthRange.flatten(), @updateAzi,... + elem.altitudeRange.flatten(), @updateAlt,... + elem.show.flatten(), @updateShow,... + patternLayer); % initial value +%% set default attribute values +elem.layers = [gridMaskLayers checkerLayer]; +elem.azimuthRange = [-132 132]; +elem.altitudeRange = [-36 36]; +elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle +elem.pattern = [ + 1 -1 1 -1 + -1 0 0 0 + 1 0 0 0 + -1 1 -1 1]; + elem.show = true; +end + +%% helper functions +function layer = updatePattern(layer, pattern) +% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then +% convert to RGBA texture format. +[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8(uint8(127.5*(1 + pattern)), 1); +end + +function layer = updateColour(layer, colour) +layer.maxColour = [colour 1]; +end + +function layer = updateAzi(layer, aziRange) +layer.size(1) = abs(diff(aziRange)); +layer.texOffset(1) = mean(aziRange); +end + +function layer = updateAlt(layer, altRange) +layer.size(2) = abs(diff(altRange)); +layer.texOffset(2) = mean(altRange); +end + +function layer = updateShow(layer, show) +layer.show = show; +end + +function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) +gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; +cellSize = gridDims./flip(nRowsByCols); +nCols = nRowsByCols(2) + 1; +nRows = nRowsByCols(1) + 1; +midAzi = mean(aziRange); +midAlt = mean(altRange); +%% base layer to imprint area the checker can draw on (by applying an alpha mask) +stencil.texOffset = [midAzi midAlt]; +stencil.size = gridDims; +if any(sizeFrac < 1) + %% layers for lines making up mask grid - masks out margins around each square + % make layers for vertical lines + if nCols > 1 + azi = linspace(aziRange(1), aziRange(2), nCols); + else + azi = midAzi; + end + collayers = repmat(mask, 1, nCols); + for vi = 1:nCols + collayers(vi).texOffset = [azi(vi) midAlt]; + end + [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); + % make layers for horizontal lines + if nRows > 1 + alt = linspace(altRange(1), altRange(2), nRows); + else + alt = midAlt; + end + rowlayers = repmat(mask, 1, nRows); + for hi = 1:nRows + rowlayers(hi).texOffset = [midAzi alt(hi)]; + end + [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); + %% combine the layers and return + layers = [stencil collayers rowlayers]; +else % no mask grid needed as each cell is full size + layers = stencil; +end + +end \ No newline at end of file diff --git a/cortexlab/+vis/checker5.m b/cortexlab/+vis/checker5.m new file mode 100644 index 00000000..be37a1f4 --- /dev/null +++ b/cortexlab/+vis/checker5.m @@ -0,0 +1,126 @@ +function elem = checker5(t) +%vis.checker A grid of rectangles +% Detailed explanation goes here + +elem = t.Node.Net.subscriptableOrigin('checker'); + +%% make initial layers to be used as templates +maskTemplate = vis.emptyLayer(); +maskTemplate.isPeriodic = false; +maskTemplate.interpolation = 'nearest'; +maskTemplate.show = true; +maskTemplate.colourMask = [false false false true]; + +maskTemplate.textureId = 'checkerMaskPixel'; +[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); +maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value + +stencilTemplate = maskTemplate; +stencilTemplate.textureId = 'checkerStencilPixel'; +[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); +stencilTemplate.blending = 'none'; + +% pattern layer uses the alpha values laid down by mask layers +patternLayer = vis.emptyLayer(); +patternLayer.textureId = sprintf('~checker%i', randi(2^32)); +patternLayer.isPeriodic = false; +patternLayer.interpolation = 'nearest'; +patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this + +%% construct signals used to assemble layers +% N rows by cols signal is derived from the size of the pattern array but +% we skip repeats so that pattern changes don't update the mask layers +% unless the size has acutally changed +nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); +aziRange = elem.azimuthRange.flatten(); +altRange = elem.altitudeRange.flatten(); +sizeFrac = elem.rectSizeFrac.flatten(); +% signal containing the masking layers +gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... + maskTemplate, stencilTemplate, @gridMask); +% signal contain the checker layer +checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... + elem.colour.flatten(), @updateColour,... + elem.azimuthRange.flatten(), @updateAzi,... + elem.altitudeRange.flatten(), @updateAlt,... + elem.show.flatten(), @updateShow,... + patternLayer); % initial value +%% set default attribute values +elem.layers = [gridMaskLayers checkerLayer]; +elem.azimuthRange = [-132 132]; +elem.altitudeRange = [-36 36]; +elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle +elem.pattern = [ + 1 -1 1 -1 + -1 0 0 0 + 1 0 0 0 + -1 1 -1 1]; + elem.show = true; +end + +%% helper functions +function layer = updatePattern(layer, pattern) +% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then +% convert to RGBA texture format. +[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8_PC(uint8(127.5*(1 + pattern)), 1); +end + +function layer = updateColour(layer, colour) +layer.maxColour = [colour 1]; +end + +function layer = updateAzi(layer, aziRange) +layer.size(1) = abs(diff(aziRange)); +layer.texOffset(1) = mean(aziRange); +end + +function layer = updateAlt(layer, altRange) +layer.size(2) = abs(diff(altRange)); +layer.texOffset(2) = mean(altRange); +end + +function layer = updateShow(layer, show) +layer.show = show; +end + +function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) +gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; +cellSize = gridDims./fliplr(nRowsByCols); +nCols = nRowsByCols(2) + 1; +nRows = nRowsByCols(1) + 1; +midAzi = mean(aziRange); +midAlt = mean(altRange); +%% base layer to imprint area the checker can draw on (by applying an alpha mask) +stencil.texOffset = [midAzi midAlt]; +stencil.size = gridDims; +if any(sizeFrac < 1) + %% layers for lines making up mask grid - masks out margins around each square + % make layers for vertical lines + if nCols > 1 + azi = linspace(aziRange(1), aziRange(2), nCols); + else + azi = midAzi; + end + collayers = repmat(mask, 1, nCols); + for vi = 1:nCols + collayers(vi).texOffset = [azi(vi) midAlt]; + end + [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); + % make layers for horizontal lines + if nRows > 1 + alt = linspace(altRange(1), altRange(2), nRows); + else + alt = midAlt; + end + rowlayers = repmat(mask, 1, nRows); + for hi = 1:nRows + rowlayers(hi).texOffset = [midAzi alt(hi)]; + end + [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); + %% combine the layers and return + layers = [stencil collayers rowlayers]; +else % no mask grid needed as each cell is full size + layers = stencil; +end + +end \ No newline at end of file diff --git a/cortexlab/+vis/checker6.m b/cortexlab/+vis/checker6.m new file mode 100644 index 00000000..4901b88c --- /dev/null +++ b/cortexlab/+vis/checker6.m @@ -0,0 +1,126 @@ +function elem = checker3(t) +%vis.checker A grid of rectangles +% Detailed explanation goes here + +elem = t.Node.Net.subscriptableOrigin('checker'); + +%% make initial layers to be used as templates +maskTemplate = vis.emptyLayer(); +maskTemplate.isPeriodic = false; +maskTemplate.interpolation = 'nearest'; +maskTemplate.show = true; +maskTemplate.colourMask = [false false false true]; + +maskTemplate.textureId = 'checkerMaskPixel'; +[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); +maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value + +stencilTemplate = maskTemplate; +stencilTemplate.textureId = 'checkerStencilPixel'; +[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); +stencilTemplate.blending = 'none'; + +% pattern layer uses the alpha values laid down by mask layers +patternLayer = vis.emptyLayer(); +patternLayer.textureId = sprintf('~checker%i', randi(2^32)); +patternLayer.isPeriodic = false; +patternLayer.interpolation = 'nearest'; +patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this + +%% construct signals used to assemble layers +% N rows by cols signal is derived from the size of the pattern array but +% we skip repeats so that pattern changes don't update the mask layers +% unless the size has acutally changed +nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); +aziRange = elem.azimuthRange.flatten(); +altRange = elem.altitudeRange.flatten(); +sizeFrac = elem.rectSizeFrac.flatten(); +% signal containing the masking layers +gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... + maskTemplate, stencilTemplate, @gridMask); +% signal contain the checker layer +checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... + elem.colour.flatten(), @updateColour,... + elem.azimuthRange.flatten(), @updateAzi,... + elem.altitudeRange.flatten(), @updateAlt,... + elem.show.flatten(), @updateShow,... + patternLayer); % initial value +%% set default attribute values +elem.layers = [gridMaskLayers checkerLayer]; +elem.azimuthRange = [-135 135]; +elem.altitudeRange = [-37.5 37.5]; +elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle +elem.pattern = [ + 1 -1 1 -1 + -1 0 0 0 + 1 0 0 0 + -1 1 -1 1]; + elem.show = true; +end + +%% helper functions +function layer = updatePattern(layer, pattern) +% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then +% convert to RGBA texture format. +[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8(uint8(127.5*(1 + pattern)), 1); +end + +function layer = updateColour(layer, colour) +layer.maxColour = [colour 1]; +end + +function layer = updateAzi(layer, aziRange) +layer.size(1) = abs(diff(aziRange)); +layer.texOffset(1) = mean(aziRange); +end + +function layer = updateAlt(layer, altRange) +layer.size(2) = abs(diff(altRange)); +layer.texOffset(2) = mean(altRange); +end + +function layer = updateShow(layer, show) +layer.show = show; +end + +function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) +gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; +cellSize = gridDims./flip(nRowsByCols); +nCols = nRowsByCols(2) + 1; +nRows = nRowsByCols(1) + 1; +midAzi = mean(aziRange); +midAlt = mean(altRange); +%% base layer to imprint area the checker can draw on (by applying an alpha mask) +stencil.texOffset = [midAzi midAlt]; +stencil.size = gridDims; +if any(sizeFrac < 1) + %% layers for lines making up mask grid - masks out margins around each square + % make layers for vertical lines + if nCols > 1 + azi = linspace(aziRange(1), aziRange(2), nCols); + else + azi = midAzi; + end + collayers = repmat(mask, 1, nCols); + for vi = 1:nCols + collayers(vi).texOffset = [azi(vi) midAlt]; + end + [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); + % make layers for horizontal lines + if nRows > 1 + alt = linspace(altRange(1), altRange(2), nRows); + else + alt = midAlt; + end + rowlayers = repmat(mask, 1, nRows); + for hi = 1:nRows + rowlayers(hi).texOffset = [midAzi alt(hi)]; + end + [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); + %% combine the layers and return + layers = [stencil collayers rowlayers]; +else % no mask grid needed as each cell is full size + layers = stencil; +end + +end \ No newline at end of file From 84c9a2e3218f5bd79cb6fbe0c3d0b5b041d6775f Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 8 Jan 2018 20:02:36 +0000 Subject: [PATCH 014/515] update tlserver to send alyx info by websockets --- cortexlab/+tl/bindMpepServerWithWS.m | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/cortexlab/+tl/bindMpepServerWithWS.m b/cortexlab/+tl/bindMpepServerWithWS.m index 187583cf..b6401089 100644 --- a/cortexlab/+tl/bindMpepServerWithWS.m +++ b/cortexlab/+tl/bindMpepServerWithWS.m @@ -37,6 +37,7 @@ tls.close = @closeConns; tls.process = @process; tls.listen = @listen; +tls.AlyxInstance = []; listenPort = io.WSJCommunicator.DefaultListenPort; communicator = io.WSJCommunicator.server(listenPort); @@ -82,20 +83,26 @@ function processMpep(listener, msg) ipstr = sprintf('%i.%i.%i.%i', ip{:}); log('%s: ''%s'' from %s:%i', listener.name, msg, ipstr, port); % parse the message - info = dat.mpepMessageParse(msg); - - % !!! Get alyx instance here!! - ai = []; + info = dat.mpepMessageParse(msg); failed = false; % flag for preventing UDP echo %% Experiment-level events start/stop timeline switch lower(info.instruction) + case 'alyx' + fprintf(1, 'received alyx token message\n'); + idx = find(msg==' ', 1, 'last'); + [expref, ai] = dat.parseAlyxInstance(msg(idx+1:end)); + disp(ai) + + tls.AlyxInstance = ai; case 'expstart' % create a file path & experiment ref based on experiment info try % start Timeline + communicator.send('AlyxSend', {tls.AlyxInstance}); communicator.send('status', { 'starting', info.expRef}); - tlObj.start(info.expRef, ai); + + tlObj.start(info.expRef, tls.AlyxInstance); % re-record the UDP event in Timeline since it wasn't started % when we tried earlier. Treat it as having arrived at time zero. tlObj.record('mpepUDP', msg, 0); From 566884dd8b79cc05f829f551061864cdf9117579 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Tue, 9 Jan 2018 11:58:02 +0000 Subject: [PATCH 015/515] add docs --- +dat/findNextSeqNum.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/+dat/findNextSeqNum.m b/+dat/findNextSeqNum.m index 45450073..f5f40796 100644 --- a/+dat/findNextSeqNum.m +++ b/+dat/findNextSeqNum.m @@ -1,9 +1,14 @@ function expSeq = findNextSeqNum(subject, varargin) -% function expSeq = findNextSeqNum(subject[, date]) +% expSeq = findNextSeqNum(subject[, date]) +% +% Returns the next experiment number (aka Sequence number) that should be +% chosen for the given subject. Optionally specify a particular date to +% consider. + if isempty(varargin) - expDate = now; + expDate = now; %default to today else expDate = varargin{1}; end From 6e274b15029924cab9e64b16800d074ab51ae796 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Tue, 9 Jan 2018 12:20:39 +0000 Subject: [PATCH 016/515] move whichExpNums to cortexlab, update dat.listSubjects and .subjectSelector, add docs --- +dat/listSubjects.m | 44 ++++++++++++++++++++----- +dat/subjectSelector.m | 22 +++++-------- {+dat => cortexlab/+dat}/whichExpNums.m | 23 +++++++++++-- 3 files changed, 63 insertions(+), 26 deletions(-) rename {+dat => cortexlab/+dat}/whichExpNums.m (63%) diff --git a/+dat/listSubjects.m b/+dat/listSubjects.m index f3aff6ec..dbac4793 100644 --- a/+dat/listSubjects.m +++ b/+dat/listSubjects.m @@ -1,17 +1,43 @@ -function subjects = listSubjects() +function subjects = listSubjects(varargin) %DAT.LISTSUBJECTS Lists recorded subjects -% subjects = DAT.LISTSUBJECTS() Lists the experimental subjects present +% subjects = DAT.LISTSUBJECTS([alyxInstance]) Lists the experimental subjects present % in experiment info repository ('expInfo'). % +% Optional input argument of an alyx instance will enable generating this +% list from alyx rather than from the directory structure on zserver +% % Part of Rigbox % 2013-03 CB created +% 2018-01 NS added alyx compatibility -% The master 'expInfo' repository is the reference for the existence of -% experiments, as given by the folder structure -expInfoPath = dat.reposPath('expInfo', 'master'); - -dirs = file.list(expInfoPath, 'dirs'); -subjects = setdiff(dirs, {'misc'}); %exclude the misc directory - +if nargin>0 && ~isempty(varargin{1}) % user provided an alyx instance + ai = varargin{1}; % an alyx instance + + % get list of all living, non-stock mice from alyx + s = alyx.getData(ai, 'subjects?stock=False&alive=True'); + + % determine the user for each mouse + respUser = cellfun(@(x)x.responsible_user, s, 'uni', false); + + % get cell array of subject names + subjNames = cellfun(@(x)x.nickname, s, 'uni', false); + + % determine which subjects belong to this user + thisUserSubs = sort(subjNames(strcmp(respUser, ai.username))); + + % all the subjects + otherUserSubs = sort(subjNames(~strcmp(respUser, ai.username))); + + % the full, ordered list + subjects = [{'default'}, thisUserSubs, otherUserSubs]'; +else + + % The master 'expInfo' repository is the reference for the existence of + % experiments, as given by the folder structure + expInfoPath = dat.reposPath('expInfo', 'master'); + + dirs = file.list(expInfoPath, 'dirs'); + subjects = setdiff(dirs, {'misc'}); %exclude the misc directory +end end \ No newline at end of file diff --git a/+dat/subjectSelector.m b/+dat/subjectSelector.m index 8437dad5..23df89b9 100644 --- a/+dat/subjectSelector.m +++ b/+dat/subjectSelector.m @@ -4,6 +4,12 @@ % % If you provide an alyxInstance, it will populate with a list of subjects % from alyx; otherwise, from dat.listSubjects +% +% example usage: +% >> alyxInstance = alyx.loginWindow(); +% >> [subj, expNum] = subjectSelector([], alyxInstance); +% +% Created by NS 2017 subjectName = []; expNum = 1; @@ -37,20 +43,8 @@ if nargin>1 ai = varargin{2}; - - s = alyx.getData(ai, 'subjects?stock=False&alive=True'); - - respUser = cellfun(@(x)x.responsible_user, s, 'uni', false); - subjNames = cellfun(@(x)x.nickname, s, 'uni', false); - - thisUserSubs = sort(subjNames(strcmp(respUser, ai.username))); - otherUserSubs = sort(subjNames); - % note that we leave this User's mice also in - % otherUserSubs, in case they get confused and look - % there. - - newSubs = [{'default'}, thisUserSubs, otherUserSubs]; - set(subjectDropdown, 'String', newSubs); + + set(subjectDropdown, 'String', dat.listSubjects(ai)); else set(subjectDropdown, 'String', dat.listSubjects); end diff --git a/+dat/whichExpNums.m b/cortexlab/+dat/whichExpNums.m similarity index 63% rename from +dat/whichExpNums.m rename to cortexlab/+dat/whichExpNums.m index 2cc4f05d..68127da9 100644 --- a/+dat/whichExpNums.m +++ b/cortexlab/+dat/whichExpNums.m @@ -1,6 +1,22 @@ function [expNums, blocks, hasBlock, pars, isMpep, tl, hasTimeline] = ... whichExpNums(mouseName, thisDate) - +% [expNums, blocks, hasBlock, pars, isMpep, tl, hasTimeline] = ... +% whichExpNums(mouseName, thisDate) +% +% Attempt to automatically determine what experiments of what types were +% run for a subject on a given date. +% +% Returns: +% - expNums - list of the experiment numbers that exist +% - blocks - cell array of the Block structs +% - hasBlock - boolean array indicating whether each experiment had a block +% - pars - cell array of parameters structs +% - isMpep - boolean array of whether the experiment was mpep type +% - tl - cell array of Timeline structs +% - hasTimeline - boolean array of whether timeline was present for each +% experiment +% +% Created by NS 2017 rootExp = dat.expFilePath(mouseName, thisDate, 1, 'Timeline', 'master'); expInf = fileparts(fileparts(rootExp)); @@ -26,6 +42,8 @@ hasBlock(e) = true; end + % if there is a parameters file, load it and determine whether it is + % mpep type dPars = dat.expFilePath(mouseName, thisDate, expNums(e), 'parameters', 'master'); if exist(dPars) load(dPars) @@ -37,8 +55,7 @@ end - % if there is a timeline, load it and get photodiode events, mpep UDP - % events. + % if there is a timeline, load it dTL = dat.expFilePath(mouseName, thisDate, expNums(e), 'Timeline', 'master'); if exist(dTL) fprintf(1, 'expNum %d has timeline\n', e); From 2c2c57f5ba82a8da7b1595a5ea7f49e171f1561f Mon Sep 17 00:00:00 2001 From: nsteinme Date: Wed, 10 Jan 2018 10:41:41 +0000 Subject: [PATCH 017/515] update eyetracking path --- +dat/paths.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/+dat/paths.m b/+dat/paths.m index 89539761..dc0997ca 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -37,7 +37,8 @@ % for calcium widefield imaging p.widefieldRepository = fullfile(server1Name, 'data', 'GCAMP'); % Repository for storing eye tracking movies -p.eyeTrackingRepository = fullfile(server1Name, 'data', 'EyeCamera'); +% p.eyeTrackingRepository = fullfile(server1Name, 'data', 'EyeCamera'); +p.eyeTrackingRepository = p.mainRepository; % electrophys repositories p.lfpRepository = fullfile(server1Name, 'Data', 'Cerebus'); From fd9e21f44e6f9395dc25bdbbc8ad559006602e13 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 10 Jan 2018 13:46:49 +0000 Subject: [PATCH 018/515] Updated readme Readme is now a little more thorough and better formatted --- +dat/parseAlyxInstance.m | 6 +- +srv/RemoteMPEPService.m | 303 ----------------------------- +srv/expServer.m | 2 +- cortexlab/+srv/RemoteMPEPService.m | 263 +++++++++++++++---------- readme.txt | 102 ++++++++-- 5 files changed, 251 insertions(+), 425 deletions(-) delete mode 100644 +srv/RemoteMPEPService.m diff --git a/+dat/parseAlyxInstance.m b/+dat/parseAlyxInstance.m index 1fb53e93..2eb09711 100644 --- a/+dat/parseAlyxInstance.m +++ b/+dat/parseAlyxInstance.m @@ -22,9 +22,9 @@ if isfield(ai, 'water_requirement_remaining') ai = rmfield(ai, 'water_requirement_remaining'); end - fnai = fieldnames(ai); - ise = cellfun(@(fn)isempty(ai.(fn)), fnai); - if any(ise); ai = rmfield(ai, fnai(ise)); end; + fname = fieldnames(ai); % get fieldnames + emp = structfun(@isempty, ai); % find empty fields + if any(emp); ai = rmfield(ai, fname(emp)); end % remove the empty fields c = cellfun(@(fn) ai.(fn), fieldnames(ai), 'UniformOutput', false); % get fieldnames ref = strjoin([ref; c],'\'); % join into single string for UDP, otherwise just output the expRef end diff --git a/+srv/RemoteMPEPService.m b/+srv/RemoteMPEPService.m deleted file mode 100644 index 01e86853..00000000 --- a/+srv/RemoteMPEPService.m +++ /dev/null @@ -1,303 +0,0 @@ -classdef RemoteMPEPService < srv.Service - %SRV.REMOTETLSERVICE UDP-based service for starting and stopping Timeline - % A UDP interface that uses the udp function of the Instument Control - % Toolbox. Unlike SRV.PRIMITIVEUDPSERVICE, this can send and recieve - % messages asynchronously and can be used both to start remote services - % and, service side, to listen for remote start/stop commands. - % - % To send a message simply use sentUDP(msg). Use confirmedSend(msg) to - % send send a message and await a confirmation (the same message echoed - % back). To receive messaged only, simply use bind() and add a - % listener to the MessageReceived event. - % - % Examples: - % remoteTL = srv.BasicUDPService('tl-host', 10000, 10000); - % remoteTL.start('2017-10-27-1-default'); % Start remote service with - % an experiment reference - % remoteTL.stop; remoteTL.delete; % Clean up after stopping remote - % rig - % - % experimentRig = srv.BasicUDPService('mainRigHostName', 10000, 10000); - % experimentRig.bind(); % Connect to the remote rig - % remoteStatus = requestStatus(experimentRig); % Get the status of - % the experimental rig - % lh = events.listener(experimentRig, 'MessageReceived', - % @(srv, evt)processMessage(srv, evt)); % Add a listener to do - % something when a message is received. - % - % See also SRV.PRIMITIVEUDPSERVICE, UDP. - % - % Part of Rigbox - - % 2017-10 MW created - - properties (GetObservable, SetAccess = protected) - Status % Status of remote service - end - - properties - LocalStatus % Local status to send upon request - ResponseTimeout = Inf % How long to wait for confirmation of receipt - Timeline % Holds an instance of Timeline - Callbacks % Holds callback functions for each instruction - end - - properties (SetObservable, AbortSet = true) - RemoteHost % Host name of the remote service - ListenPort = 10000 % Localhost port number to listen for messages on - RemotePort = 10000 % Which port to send messages to remote service on - EnablePortSharing = 'off' % If set to 'on' other applications can use the listen port - end - - properties (SetAccess = protected) - RemoteIP % The IP address of the remote service - Socket % A handle to the udp object - LastSentMessage = '' % A copy of the message sent from this host - LastReceivedMessage = '' % A copy of the message received by this host - end - - properties (Access = private) - Listener % A listener for the MessageReceived event - ResponseTimer % A timer object set when expecting a confirmation message (if ResponseTimeout < Inf) - AwaitingConfirmation = false % True when awaiting a confirmation message - ConfirmID % A random integer to confirm UDP status response. See requestStatus() - end - - events (NotifyAccess = 'protected') - MessageReceived % Notified by receiveUDP() when a UDP message is received - end - - methods - function delete(obj) - % To be called before destroying BasicUDPService object. Deletes all - % timers, sockets and listeners Tidy up after ourselves by closing - % the listening sockets - if ~isempty(obj.Socket) - fclose(obj.Socket); % Close the connection - delete(obj.Socket); % Delete the socket - obj.Socket = []; % Delete udp object - obj.Listener = []; % Delete any listeners to that object - if ~isempty(obj.ResponseTimer) % If there is a timer object - stop(obj.ResponseTimer) % Stop the timer.. - delete(obj.ResponseTimer) % Delete the timer... - obj.ResponseTimer = []; % ... and remove it - end - end - end - - function obj = RemoteMPEPService(remoteHost, remotePort, listenPort) - % SRV.REMOTETLSERVICE([remoteHost, remotePort, listenPort]) - % remoteHost is the hostname of the service with which to send and - % receive messages. - paths = dat.paths(hostname); % Get list of paths for timeline - obj.Callbacks = struct('Instruction', {'ExpStart', 'BlockStart',... - 'StimStart', 'StimEnd', 'BlockEnd', 'ExpEnd', 'ExpInterrupt'}, 'Callback', @nop); - obj.Timeline = load(fullfile(paths.rigConfig, 'hardware.mat'), 'timeline'); % Load timeline object - if nargin < 1; remoteHost = ''; end % Set local port - obj.RemoteHost = remoteHost; % Set hostname - obj.RemoteIP = ipaddress(remoteHost); % Get IP address - if nargin >= 3; obj.ListenPort = listenPort; end % Set local port - if nargin >= 2; obj.RemotePort = remotePort; end % Set remote port - obj.Socket = udp(obj.RemoteIP,... % Create udp object - 'RemotePort', obj.RemotePort, 'LocalPort', obj.ListenPort); - obj.Socket.ReadAsyncMode = 'continuous'; - obj.Socket.BytesAvailableFcnCount = 10; % Number of bytes in buffer required to trigger BytesAvailableFcn - obj.Socket.BytesAvailableFcn = @obj.receiveUDP; % Add callback to receiveUDP when enough bytes arrive in the buffer - % Add listener to MessageReceived event, notified when receiveUDP is - % called. This event can be listened to by anyone. - obj.Listener = event.listener(obj, 'MessageReceived', @processMsg); - % Add listener for when the observable properties are set - obj.addlistener({'RemoteHost', 'ListenPort', 'RemotePort', 'EnablePortSharing'},... - 'PostSet',@(src,~)obj.update(src)); - % Add listener for when the remote service's status is requested - obj.addlistener('Status', 'PreGet', @obj.requestStatus); - end - - function obj = addListener(obj, name, listenPort, callback) - if nargin<3; callback = @nop; end - if listenPort==obj.ListenPorts - error('Listen port already added'); - end - obj.Sockets(end+1) = udp(obj.RemoteIP, 'RemotePort', obj.RemotePort, 'LocalPort', listenPort); - obj.Sockets(end).BytesAvailableFcn = @(~,~)obj.receiveUDP(src,evt); - obj.Sockets(end).Tag = name; - obj.ListenPorts(end+1) = listenPort; - obj.Callbacks(end+1) = callback; - end - - function update(obj, src) - % Callback for setting udp relevant properties. Some properties can - % only be set when the socket is closed. - % Check if socket is open - isOpen = strcmp(obj.Socket.Status, 'open'); - % Close connection before setting, if required to do so - if any(strcmp(src.name, {'RemoteHost', 'LocalPort', 'EnablePortSharing'}))&&isOpen - fclose(obj.Socket); - end - % Set all the relevant properties - obj.RemoteIP = ipaddress(obj.RemoteHost); - obj.Socket.LocalPort = obj.ListenPort; - obj.Socket.RemotePort = obj.RemotePort; - obj.Socket.RemoteHost = obj.RemoteIP; - if isOpen; bind(obj); end % If socket was open before, re-open - end - - function bind(obj, names) - if isempty(obj.Sockets) - warning('No sockets to bind') - return - end - if nargin<2 - % Close all sockets, in case they are open - arrayfun(@fclose, obj.Sockets) - % Open the connection to allow messages to be sent and received - arrayfun(@fopen, obj.Sockets) - else - names = ensureCell(names); - hosts = arrayfun(@(s)s.Tag, obj.Sockets); - idx = cellfun(@(n)find(strcmp(n,hosts)), names); - arrayfun(@fopen, obj.Sockets(idx)) - end - end - - function start(obj, ref) - % Send start message to remotehost and await confirmation - [expRef, AlyxInstance] = parseAlyxInstance(ref); - % Convert expRef to MPEP style - [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); - % Build start message - msg = sprintf('ExpStart %s %d %d', subject, seriesNum, expNum); - % Send the start message - obj.confirmedSend(msg, obj.RemoteHost); - % Wait for response - while obj.AwaitingConfirmation; pause(0.2); end -% % Start a block (we only use one per experiment) -% msg = sprintf('BlockStart %s %d %d 1', subject, seriesNum, expNum); -% obj.confirmedSend(msg, obj.RemoteHost); -% % Wait for response -% while obj.AwaitingConfirmation; pause(0.2); end - end - - function stop(obj) - % Send stop message to remotehost and await confirmation - obj.confirmedSend(sprintf('STOP*%s', obj.RemoteHost)); - end - - function requestStatus(obj) - % Request a status update from the remote service - obj.ConfirmID = randi(1e6); - obj.sendUDP(sprintf('WHAT%i*%s', obj.ConfirmID, obj.RemoteHost)); - disp('Requested status update from remote service') - end - - function confirmedSend(obj, msg) - sendUDP(obj, msg) - obj.AwaitingConfirmation = true; - % Add timer to impose a response timeout - if ~isinf(obj.ResponseTimeout) - obj.ResponseTimer = timer('StartDelay', obj.ResponseTimout,... - 'TimerFcn', @(~,~)obj.processMsg); - start(obj.ResponseTimer) % start the timer - end - end - - function receiveUDP(obj, src, evt) - obj.LastReceivedMessage = strtrim(fscanf(obj.Socket)); - notify(obj, 'MessageReceived') - hosts = arrayfun(@(s)s.Tag, obj.Sockets); - feval(obj.Callbacks{strcmp(hosts, src.Tag)}, src, evt); - end - - function sendUDP(obj, msg) - % Ensure socket is open before sending message - if strcmp(obj.Socket.Status, 'closed'); bind(obj); end - fprintf(obj.Socket, msg); % Send message - obj.LastSentMessage = msg; % Save a copy of the message - disp(['Sent message to ' obj.RemoteHost]) % Display success - end - - function echo(obj, src, ~) - % Echo message - fclose(src); - src.RemoteHost = src.DatagramAddress; - src.RemotePort = src.DatagramPort; - fopen(src); - fprintf(obj.Socket, obj.LastReceivedMessage); % Send message - obj.LastSentMessage = obj.LastReceivedMessage; % Save a copy of the message - disp(['Echo''d message to ' src.Tag]) % Display success - end - end - - methods (Access = protected) - function processMPEPMsg(obj, src, ~) - % Parse the message into its constituent parts - msg = dat.mpepMessageParse(obj.LastReceivedMessage); - % Check that the message was from the correct host, otherwise ignore - if strcmp(response.host, obj.RemoteHost) - warning('Received message from %s, ignoring', response.host); - return - end - if obj.AwaitingConfirmation - % Check the confirmation message is the same as the sent message - assert(~isempty(response)||... % something received - strcmp(response.status, 'WHAT')||... % status update - strcmp(obj.LastReceivedMessage, obj.LastSentMessage),... % is echo - 'Confirmation failed') - % We no longer need the timer, stop and delete it - if ~isempty(obj.ResponseTimer) - stop(obj.ResponseTimer) - delete(obj.ResponseTimer) - obj.ResponseTimer = []; - end - end - % At the moment we just disply some stuff, other functions listening - % to the MessageReceived event can do their thing - switch response.status - case 'GOGO' - if obj.AwaitingConfirmation - obj.Status = 'running'; - disp(['Service on ' obj.RemoteHost ' running']) - else - disp('Received start request') - obj.LocalStatus = 'starting'; - obj.Timeline.start(dat.parseAlyxInstance(response.body)) - obj.LocalStatus = 'running'; - obj.sendUDP(obj.LastReceivedMessage) - end - case 'STOP' - if obj.AwaitingConfirmation - obj.Status = 'stopped'; - disp(['Service on ' obj.RemoteHost ' stopped']) - else - disp('Received stop request') - obj.LocalStatus = 'stopping'; - obj.Timeline.stop - obj.sendUDP(obj.LastReceivedMessage) - end - case 'WHAT' - % TODO fix status updates so that they're meaningful - parsed = regexp(response.body, '(?\d+)(?[a-z]*)', 'names'); - if obj.AwaitingConfirmation - try - assert(strcmp(parsed.id, int2str(obj.ConfirmID)), 'Rigbox:srv:unexpectedUDPResponse',... - 'Received UDP message ID did not match sent'); - switch parsed.update - case {'running' 'starting'} - obj.Status = 'running'; - otherwise - obj.Status = 'idle'; - end - catch - obj.Status = 'unavailable'; - end - else % Received status request NB: Currently no way of determining status - obj.sendUDP([parsed.status parsed.id obj.LocalStatus]) - end - otherwise - disp(['Received ''' obj.LastReceivedMessage ''' from ' obj.RemoteHost]) - end - % Reset AwaitingConfirmation - obj.AwaitingConfirmation = false; - end - end -end \ No newline at end of file diff --git a/+srv/expServer.m b/+srv/expServer.m index e629a017..d954527c 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -169,7 +169,7 @@ function handleMessage(id, data, host) end case 'run' % exp run request - [expRef, preDelay, postDelay, Alyx] = args{:}; + [expRef, preDelay, postDelay, Alyx] = args{:}; if dat.expExists(expRef) log('Starting experiment ''%s''', expRef); communicator.send(id, []); diff --git a/cortexlab/+srv/RemoteMPEPService.m b/cortexlab/+srv/RemoteMPEPService.m index baa2281e..e71acd0d 100644 --- a/cortexlab/+srv/RemoteMPEPService.m +++ b/cortexlab/+srv/RemoteMPEPService.m @@ -39,19 +39,19 @@ LocalStatus % Local status to send upon request ResponseTimeout = Inf % How long to wait for confirmation of receipt Timeline % Holds an instance of Timeline - Callbacks % Holds callback functions for each instruction + Callbacks = {@obj.processMsg, @nop} % Holds callback functions for each instruction end properties (SetObservable, AbortSet = true) RemoteHost % Host name of the remote service - ListenPort = 10000 % Localhost port number to listen for messages on - RemotePort = 10000 % Which port to send messages to remote service on + ListenPorts % Localhost port number to listen for messages on + RemotePort = 1103 % Which port to send messages to remote service on EnablePortSharing = 'off' % If set to 'on' other applications can use the listen port end properties (SetAccess = protected) RemoteIP % The IP address of the remote service - Socket % A handle to the udp object + Sockets % A handle to the udp object LastSentMessage = '' % A copy of the message sent from this host LastReceivedMessage = '' % A copy of the message received by this host end @@ -72,10 +72,10 @@ function delete(obj) % To be called before destroying BasicUDPService object. Deletes all % timers, sockets and listeners Tidy up after ourselves by closing % the listening sockets - if ~isempty(obj.Socket) - fclose(obj.Socket); % Close the connection - delete(obj.Socket); % Delete the socket - obj.Socket = []; % Delete udp object + if ~isempty(obj.Sockets) + cellfun(@fclose, obj.Sockets); % Close the connection + delete(obj.Sockets); % Delete the socket + obj.Sockets = []; % Delete udp object obj.Listener = []; % Delete any listeners to that object if ~isempty(obj.ResponseTimer) % If there is a timer object stop(obj.ResponseTimer) % Stop the timer.. @@ -85,40 +85,69 @@ function delete(obj) end end - function obj = RemoteTLService(remoteHost, remotePort, listenPort) - % SRV.REMOTETLSERVICE(remoteHost [remotePort, listenPort]) + function obj = RemoteMPEPService(name, listenPort, callback) + % SRV.REMOTETLSERVICE([remoteHost, remotePort, listenPort]) % remoteHost is the hostname of the service with which to send and % receive messages. paths = dat.paths(hostname); % Get list of paths for timeline - obj.Callbacks = struct('Instruction', {'ExpStart', 'BlockStart',... - 'StimStart', 'StimEnd', 'BlockEnd', 'ExpEnd', 'ExpInterrupt'}, 'Callback', @nop); - obj.Timeline = load(fullfile(paths.rigConfig, 'hardware.mat'), 'timeline'); % Load timeline object - obj.RemoteHost = remoteHost; % Set hostname - obj.RemoteIP = ipaddress(remoteHost); % Get IP address - if nargin >= 3; obj.ListenPort = listenPort; end % Set local port - if nargin >= 2; obj.RemotePort = remotePort; end % Set remote port - obj.Socket = udp(obj.RemoteIP,... % Create udp object - 'RemotePort', obj.RemotePort, 'LocalPort', obj.ListenPort); - obj.Socket.ReadAsyncMode = 'continuous'; - obj.Socket.BytesAvailableFcnCount = 10; % Number of bytes in buffer required to trigger BytesAvailableFcn - obj.Socket.BytesAvailableFcn = @obj.receiveUDP; % Add callback to receiveUDP when enough bytes arrive in the buffer +% obj.Callbacks = struct('Instruction', {'ExpStart', 'BlockStart',... +% 'StimStart', 'StimEnd', 'BlockEnd', 'ExpEnd', 'ExpInterrupt'}, 'Callback', @nop); + load(fullfile(paths.rigConfig, 'hardware.mat'), 'timeline'); % Load timeline object + obj.Timeline = timeline; + obj.addListener(name, listenPort, callback); +% if nargin < 1; remoteHost = ''; end % Set local port +% obj.RemoteHost = remotehost; % Set hostname +% obj.RemoteIP = ipaddress(remoteHost); % Get IP address +% if nargin >= 3; obj.ListenPort = listenPort; end % Set local port +% if nargin >= 2; obj.RemotePort = remotePort; end % Set remote port +% obj.Socket = udp(obj.RemoteIP,... % Create udp object +% 'RemotePort', obj.RemotePort, 'LocalPort', obj.ListenPort); +% obj.Socket.BytesAvailableFcn = @obj.receiveUDP; % Add callback to receiveUDP when enough bytes arrive in the buffer % Add listener to MessageReceived event, notified when receiveUDP is % called. This event can be listened to by anyone. - obj.Listener = event.listener(obj, 'MessageReceived', @processMsg); +% obj.Listener = event.listener(obj, 'MessageReceived', @processMsg); % Add listener for when the observable properties are set - obj.addlistener({'RemoteHost', 'ListenPort', 'RemotePort', 'EnablePortSharing'},... - 'PostSet',@obj.update); +% obj.addlistener({'RemoteHost', 'ListenPort', 'RemotePort', 'EnablePortSharing'},... +% 'PostSet',@(src,~)obj.update(src)); % Add listener for when the remote service's status is requested - obj.addlistener('Status', 'PreGet', @obj.requestStatus); +% obj.addlistener('Status', 'PreGet', @obj.requestStatus); end - function update(obj, evt, ~) + function obj = addListener(obj, name, listenPort, callback) + if nargin<3; callback = @nop; end + if listenPort==obj.ListenPorts + error('Listen port already added'); + end + idx = length(obj.Sockets)+1; + obj.Sockets{idx} = udp(name, 'RemotePort', obj.RemotePort,... + 'LocalPort', listenPort, 'ReadAsyncMode', 'continuous'); + obj.Sockets{idx}.BytesAvailableFcnCount = 10; % Number of bytes in buffer required to trigger BytesAvailableFcn + obj.Sockets{idx}.BytesAvailableFcn = @(~,~)obj.receiveUDP(src,evt); + obj.Sockets{idx}.Tag = name; + obj.ListenPorts{idx} = listenPort; + obj.Callbacks{idx} = callback; + end + + function obj = removeHost(obj, name) + %TODO + if nargin<3; callback = @nop; end + if listenPort==obj.ListenPorts + error('Listen port already added'); + end + obj.Sockets(end+1) = udp(obj.RemoteIP, 'RemotePort', obj.RemotePort, 'LocalPort', listenPort); + obj.Sockets(end).BytesAvailableFcn = @(~,~)obj.receiveUDP(src,evt); + obj.Sockets(end).Tag = name; + obj.ListenPorts(end+1) = listenPort; + obj.Callbacks(end+1) = callback; + end + + function update(obj, src) % Callback for setting udp relevant properties. Some properties can % only be set when the socket is closed. % Check if socket is open isOpen = strcmp(obj.Socket.Status, 'open'); % Close connection before setting, if required to do so - if any(strcmp(evt.name, {'RemoteHost', 'LocalPort', 'EnablePortSharing'}))&&isOpen + if any(strcmp(src.name, {'RemoteHost', 'LocalPort', 'EnablePortSharing'}))&&isOpen fclose(obj.Socket); end % Set all the relevant properties @@ -129,15 +158,41 @@ function update(obj, evt, ~) if isOpen; bind(obj); end % If socket was open before, re-open end - function bind(obj) - % Open the connection to allow messages to be sent and received - if ~isempty(obj.Socket); fclose(obj.Socket); end - fopen(obj.Socket); + function bind(obj, names) + if isempty(obj.Sockets) + warning('No sockets to bind') + return + end + if nargin<2 + % Close all sockets, in case they are open + cellfun(@fclose, obj.Sockets) + % Open the connection to allow messages to be sent and received + cellfun(@fopen, obj.Sockets) + else + names = ensureCell(names); + hosts = arrayfun(@(s)s.Tag, obj.Sockets); + idx = cellfun(@(n)find(strcmp(n,hosts)), names); + arrayfun(@fopen, obj.Sockets(idx)) + end + log('Polling for UDP messages'); end - function start(obj, expRef) + function start(obj, ref) % Send start message to remotehost and await confirmation - obj.confirmedSend(sprintf('GOGO%s*%s', expRef, obj.RemoteHost)); + [expRef, AlyxInstance] = parseAlyxInstance(ref); + % Convert expRef to MPEP style + [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); + % Build start message + msg = sprintf('ExpStart %s %d %d', subject, seriesNum, expNum); + % Send the start message + obj.confirmedSend(msg, obj.RemoteHost); + % Wait for response + while obj.AwaitingConfirmation; pause(0.2); end +% % Start a block (we only use one per experiment) +% msg = sprintf('BlockStart %s %d %d 1', subject, seriesNum, expNum); +% obj.confirmedSend(msg, obj.RemoteHost); +% % Wait for response +% while obj.AwaitingConfirmation; pause(0.2); end end function stop(obj) @@ -163,11 +218,18 @@ function confirmedSend(obj, msg) end end - function receiveUDP(obj) - obj.LastReceivedMessage = fscanf(obj.Socket); - % Remove any more accumulated inputs to the listener - obj.Socket.flushinput(); + function receiveUDP(obj, src, evt) + obj.LastReceivedMessage = strtrim(fscanf(obj.Socket)); + % Let everyone know a message was recieved notify(obj, 'MessageReceived') + hosts = arrayfun(@(s)s.Tag, obj.Sockets); + if ~isempty(obj.Timeline)&&obj.Timeline.IsRunning + t = obj.Timeline.time; % Note the time + % record the UDP event in Timeline + obj.Timeline.record([hosts 'UDP'], msg, t); + end + % Pass message to callback function for precessing + feval(obj.Callbacks{strcmp(hosts, src.Tag)}, src, evt); end function sendUDP(obj, msg) @@ -177,78 +239,73 @@ function sendUDP(obj, msg) obj.LastSentMessage = msg; % Save a copy of the message disp(['Sent message to ' obj.RemoteHost]) % Display success end + + function echo(obj, src, ~) + % Echo message + fclose(src); + src.RemoteHost = src.DatagramAddress; + src.RemotePort = src.DatagramPort; + fopen(src); + fprintf(obj.Socket, obj.LastReceivedMessage); % Send message + obj.LastSentMessage = obj.LastReceivedMessage; % Save a copy of the message + disp(['Echo''d message to ' src.Tag]) % Display success + end end methods (Access = protected) - function processMsg(obj, ~, ~) - % Parse the message into its constituent parts - msg = dat.mpepMessageParse; - % Check that the message was from the correct host, otherwise ignore - if strcmp(response.host, obj.RemoteHost) - warning('Received message from %s, ignoring', response.host); - return + function processMsg(obj, src, ~) + %PROCESSMSG Processes messages from expServer and MPEP + % As the remote host me be either expServer or MPEP, we first + % determine the type of message. Parse the message into its + % constituent parts +% if strcmp(obj.LastReceivedMessage(1:4), {'WHAT', 'GOGO', 'ALYX', 'STOP'}) + try % Try to process message as MPEP command + msg = dat.mpepMessageParse(obj.LastReceivedMessage); + catch + msg = regexp(obj.LastReceivedMessage,... + '(?[A-Z]{4})(?.*)\*(?\w*)', 'names'); + % If the message body contains and expRef, explicity set this + if regexp(msg.body,dat.expRefRegExp); msg.expRef = msg.body; end end - if obj.AwaitingConfirmation - % Check the confirmation message is the same as the sent message - assert(~isempty(response)||... % something received - strcmp(response.status, 'WHAT')||... % status update - strcmp(obj.LastReceivedMessage, obj.LastSentMessage),... % is echo - 'Confirmation failed') - % We no longer need the timer, stop and delete it - if ~isempty(obj.ResponseTimer) - stop(obj.ResponseTimer) - delete(obj.ResponseTimer) - obj.ResponseTimer = []; - end - end - % At the moment we just disply some stuff, other functions listening - % to the MessageReceived event can do their thing - switch response.status - case 'GOGO' - if obj.AwaitingConfirmation - obj.Status = 'running'; - disp(['Service on ' obj.RemoteHost ' running']) - else - disp('Received start request') - obj.LocalStatus = 'starting'; - obj.Timeline.start(dat.parseAlyxInstance(response.body)) - obj.LocalStatus = 'running'; - obj.sendUDP(obj.LastReceivedMessage) - end - case 'STOP' - if obj.AwaitingConfirmation - obj.Status = 'stopped'; - disp(['Service on ' obj.RemoteHost ' stopped']) - else - disp('Received stop request') - obj.LocalStatus = 'stopping'; - obj.Timeline.stop - obj.sendUDP(obj.LastReceivedMessage) - end - case 'WHAT' - % TODO fix status updates so that they're meaningful - parsed = regexp(response.body, '(?\d+)(?[a-z]*)', 'names'); - if obj.AwaitingConfirmation + + % Process the instruction + switch lower(msg.instruction) + case {'expstart', 'gogo'} try - assert(strcmp(parsed.id, int2str(obj.ConfirmID)), 'Rigbox:srv:unexpectedUDPResponse',... - 'Received UDP message ID did not match sent'); - switch parsed.update - case {'running' 'starting'} - obj.Status = 'running'; - otherwise - obj.Status = 'idle'; - end - catch - obj.Status = 'unavailable'; + % Start Timeline + log('Received start request') + obj.LocalStatus = 'starting'; + obj.Timeline.start(dat.parseAlyxInstance(msg.expRef)) + obj.LocalStatus = 'running'; + obj.echo(src); + % re-record the UDP event in Timeline since it wasn't started + % when we tried earlier. Treat it as having arrived at time zero. + obj.Timeline.record('mpepUDP', obj.LastReceivedMessage, 0); + catch ex + % flag up failure so we do not echo the UDP message back below + failed = true; + disp(getReport(ex)); end - else % Received status request NB: Currently no way of determining status - obj.sendUDP([parsed.status parsed.id obj.LocalStatus]) - end - otherwise - disp(['Received ''' obj.LastReceivedMessage ''' from ' obj.RemoteHost]) + case {'expend', 'stop', 'expinterrupt'} + obj.Timeline.stop(); % stop Timeline + case 'what' + % TODO fix status updates so that they're meaningful + parsed = regexp(msg.body, '(?\d+)(?[a-z]*)', 'names'); + obj.sendUDP([parsed.status parsed.id obj.LocalStatus]) + case 'alyx' + % TODO Add Alyx token request + obj.sendUDP() + otherwise + % TODO RemoteHost + log(['Received ''' obj.LastReceivedMessage ''' from ' obj.RemoteHost]) end - % Reset AwaitingConfirmation - obj.AwaitingConfirmation = false; end + + function log(varargin) + message = sprintf(varargin{:}); + timestamp = datestr(now, 'dd-mm-yyyy HH:MM:SS'); + fprintf('[%s] %s\n', timestamp, message); + end + end end \ No newline at end of file diff --git a/readme.txt b/readme.txt index 501b335e..0e01d560 100644 --- a/readme.txt +++ b/readme.txt @@ -1,22 +1,94 @@ -In order to install on any computer: +---------- +# Rigbox -- run the Rigbox/addRigboxPaths.m -- install the GUI Layout Toolbox from here: https://uk.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox -- double check that the added paths (including those to the Toolbox) are above the paths to zserver +Rigbox is a (mostly) object-oriented MATLAB software package for designing and controlling behavioural experiments. Principally, the steering wheel setup we developed to probe mouse behaviour. It requires two computers, one for stimulus presentation ('the stimulus server') and another for controlling and monitoring the experiment ('mc'). -Main changes: +## Getting Started -- handles to objects are no longer numerical -- the UI is now using the most recent version of GUI Layout Toolbox -- all code now works in the latest version of MATLAB +The following is a brief description of how to install Rigbox on your experimental rig. However detailed, step-by-step information can be found [here](https://www.ucl.ac.uk/cortexlab/tools/wheel). -Little fixes: +## Prerequisites +Rigbox has a number of essential and optional software dependencies, listed below: +* Windows 7 or later +* [MATLAB](https://uk.mathworks.com/downloads/web_downloads/?s_iid=hp_ff_t_downloads) 2016a or later + * [Psychophsics Toolbox](https://github.com/Psychtoolbox-3/Psychtoolbox-3/releases) v3 or later + * [NI-DAQmx support package](https://uk.mathworks.com/hardware-support/nidaqmx.html) + * [GUI Layout Toolbox](https://uk.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox) v2 or later + * Data Acquisition Toolbox + * Signal Processing Toolbox + * Instrument Control Toolbox -- checkbox in param editor now functions correctly (added line 382 +eui.ParamEditor/addParamUI) -- more documentation, particularly for the UI elements -- saved parameters dropdown now ordered in mc +Additionally, Rigbox works with a number of extra repositories: +* [Signals](https://github.com/dendritic/signals) (for running bespoke experiment designs) + * Statistics and Machine Learning Toolbox + * [Microsoft Visual C++ Redistributable for Visual Studio 2015](https://www.microsoft.com/en-us/download/details.aspx?id=48145) +* [Alyx-matlab](https://github.com/cortex-lab/alyx-matlab) (for registering data to, and retrieving from, an Alyx database + * [Missing HTTP v1](https://github.com/psexton/missing-http/releases/tag/missing-http-1.0.0) or later + * [JSONlab](https://uk.mathworks.com/matlabcentral/fileexchange/33381-jsonlab--a-toolbox-to-encode-decode-json-files) -To do: +## Installing +1. To install Rigbox, first ensure that all the above dependencies are installed. +2. Pull the latest Rigbox-lite branch. This branch is currently the 'cleanest' one, however in the future it will likely be merged with the master branch. +3. In MATLAB run 'addRigboxPaths.m' and restart the program. +4. Set the correct paths by following the instructions in Rigbox\+dat\paths.m on both computers. +5. On the stimulus server, load the hardware.mat file in Rigbox\Repositories\code\config\exampleRig and edit according to your specific hardware setup (link to detailed instructions above, under 'Getting started'). -- rename the cortexlab folder and move +exp to ExpDefinitions -- add specific path for ExpDefinitions in dat.paths (see line 115 in MControl) \ No newline at end of file +## Running an experiment + +On the stimulus server, run: +> srv.expServer + +On the mc computer, run: +> mc + +This opens a GUI that will allow you to choose a subject, edit some of the experimental parameters and press 'Start' to begin the basic steering wheel task on the stimulus server. + +# Code organization +Below is a list of the principle directories and their general purpose. +## +dat +The data package contains all the code pertaining to the organization and logging of data. It contains functions that generate and parse unique experiment reference ids, that return the file paths where subject data and rig configuration information is stored. Other functions include those that manage experimental log entries and parameter profiles. This package is akin to a lab notebook. + +## +eui +This package contains the code pertaining to the Rigbox user interface. It contains code for constructing the mc GUI (MControl.m), and for plotting live experiment data or generating tables for viewing experiment parameters and subject logs. This package is exclusively used by the mc computer. + +## +exp +The experiment package is for the initialization and running of behavioural experiments. These files define a framework for event- and state-based experiments. Actions such as visual stimulus presentation or reward delivery can be controlled by experiment phases, and experiment phases are managed by an event-handling system (e.g. ResponseEventInfo). + +The package also triggers auxiliary services (e.g. starting remote acquisition software), and loads parameters for presentation each trail. The principle two base classes that control these experiments are Experiment and its Signals counterpart, SignalsExp. + +This package is almost exclusively used by the stimulus server + +## +hw +The hardware package is for configuring, and interfacing with, hardware such as screens, DAQ devices, weighing scales and lick detectors. Withing this is the +ptb package which contains classes for interacting with PsychToolbox. + +The devices file loads and initializes all the hardware for a specific experimental rig. There are also classes for unifying system and hardware clocks. + +## +psy +This package contains simple functions for processing and plotting psychometric data + +## +srv +This package contains the expServer function as well as classes that manage communications between rig computers. + +The Service base class allows the stimulus server to start and stop auxiliary acquisition systems at the beginning and end of experiments + +The StimulusControl class is used by the mc computer to manage the stimulus server + +NB: Lower-level communication protocol code is found in the +io package + +## cb-tools\burgbox +Burgbox contains many simply helper functions that are used by the main packages. Within this directory are further packages: +* +bui --- Classes for managing graphics objects such as axes +* +aud --- Functions for interacting with PsychoPortAudio +* +file --- Functions for simplifying directory and file management, for instance returning the modified dates for specified folders or filtering an array of directories by those that exist +* +fun --- Convenience functions for working with function handles in MATLAB, e.g. functions similar cellfun that are agnostic of input type, or ones that cache function outputs +* +img --- Classes that deal with image and frame data (DEPRICATED) +* +io --- Lower-level communications classes for managing UDP and TCP/IP Web sockets +* +plt --- A few small plotting functions (DEPRICATED) +* +vis --- Functions for returning various windowed visual stimuli (i.g. gabor gratings) +* +ws --- An early Web socket package using SuperWebSocket (DEPRICATED) + +## cortexlab +The cortexlab directory is intended for functions and classes that are rig or lab specific, for instance code that allows compatibility with other stimulus presentation packages used by cortexlab (i.e. MPEP) + +## Authors +The majority of the Rigbox code was written by [Chris Burgess](https://github.com/dendritic/) in 2013. It is now maintained and developed by a number of people at [CortexLab](https://www.ucl.ac.uk/cortexlab). From 37a80ad70b11a20ff67ffcc80668632c59ba7cd5 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 10 Jan 2018 13:52:36 +0000 Subject: [PATCH 019/515] readme now in markdown converted from text to markdown --- readme.txt => readme.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename readme.txt => readme.md (100%) diff --git a/readme.txt b/readme.md similarity index 100% rename from readme.txt rename to readme.md From adf5c070c617e8e17c94e4179535606d734b3d84 Mon Sep 17 00:00:00 2001 From: Kenneth Harris Date: Wed, 10 Jan 2018 14:29:11 +0000 Subject: [PATCH 020/515] Added UML file --- Rigbox UML.pdf | Bin 0 -> 89221 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Rigbox UML.pdf diff --git a/Rigbox UML.pdf b/Rigbox UML.pdf new file mode 100644 index 0000000000000000000000000000000000000000..df1cb6cbf11a8abf17c99991fc875a8339236d3e GIT binary patch literal 89221 zcmce7Wmq0dwl(ffaEAm4?(QBSXmEFTch}%fa7b`>cXtWy?(Y8a=A6tq-^|=Q^XtCP z)9I33Ra;iA+TCZ zfT0!SC!~kr;ej!*)Cb70{%^8+I&ZT7Jc8{%j`(YKdbP*w_h~*_mk=*ficIwX(E-6SgB{ z{6kvKz|P9SR?onWkm*;$U#kJ?zuhHcYo#Y|U{9z<`{q(Y+Ajvq_Jp*bEZ$ZZ`13CK z=l#>$8vk%BA;8t5cJzb**T1PIYR5nb@a(T5BO${vZ1PWdi-*J@#gUzJs2DEg|`v4H72yAK#o| zYoKFq^)D?ZR+d6!U;(s_xO2^_2%lyB7l#(X82DUo(Zzjm=Slay|AYx)}z(7dika zH8T?vAvGi2n|B%M-ki-w_ZB=6a~-2MbTGWBY;RzpNJs}m`^jF%+(eJx(#YHZQ02GN z1Hg@)jv0m)pbMZv%|QP)LQuzA%)rFR_zjCpbnGy+%D-!LY=6fwAgcenGv3bj)3w%WdBwN z%m)|)SdaZJ;s6;YmcQ&}WMq2lWBO&|@40`?^QPl(eE@R+bokx>b_Z8^as8 zSy=$!1`rG*ob8QW{sHkfI0B#x2;Hv`{s}`s z+dts))&?m5lKZm^*badD?{NQu&|4h6BXS>DbeI(n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dl0^)$pID8)3SjGHK*>?I`)VC7PD~c_teLTJpffhzuS`mXohCv-jyF1No z9EZ0|BGR%>?yxo8w4C5@oNdH#wEV_p2G4{*yysU3YhH;EBUPT>x0s&CVV8�apU@!nL XZ);EQf2SJ?C5eIpgoKo|?gRb>(qS3q literal 0 HcmV?d00001 From 71fc6c5d3e626ca4661fc4e65759fea4f2a8c62a Mon Sep 17 00:00:00 2001 From: nsteinme Date: Wed, 10 Jan 2018 16:59:59 +0000 Subject: [PATCH 021/515] added paths for tape backup --- +dat/paths.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/+dat/paths.m b/+dat/paths.m index dc0997ca..9d69d38e 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -18,6 +18,8 @@ % server3Name = '\\zserver3.cortexlab.net'; % 2017-02-18 MW - Currently % unused by Rigbox server4Name = '\\zserver4.cortexlab.net'; +basketName = '\\basket.cortexlab.net'; % for working analyses +lugaroName = '\\lugaro.cortexlab.net'; % for tape backup %% defaults % path containing rigbox config folders @@ -52,6 +54,18 @@ % repository for all experiment definitions p.expDefinitions = fullfile(server1Name, 'Code', 'Rigging', 'ExpDefinitions'); +% repository for working analyses that are not meant to be stored +% permanently +p.workingAnalysisRepository = fullfile(basketName, 'data'); + +% for tape backups, first files go here: +p.tapeStagingRepository = fullfile(lugaroName, 'bigdrive', 'staging'); + +% then they go here: +p.tapeArchiveRepository = fullfile(lugaroName, 'bigdrive', 'toarchive'); + + + %% load rig-specific overrides from config file, if any customPathsFile = fullfile(p.rigConfig, 'paths.mat'); if file.exists(customPathsFile) From e03899350f0958d2ff99f2b62d28321c66302d74 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Thu, 11 Jan 2018 11:42:40 +0000 Subject: [PATCH 022/515] update alyx handling for mpepListenerWithWS, add plotting options to Timeline --- +hw/Timeline.m | 39 ++++++++++++++++++++-------- cortexlab/+tl/bindMpepServerWithWS.m | 16 +++++++++--- 2 files changed, 40 insertions(+), 15 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index e084c8e0..3739c1bf 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -83,6 +83,7 @@ AquiredDataType = 'double' % default data type for the acquired data array (i.e. Data.rawDAQData) UseTimeline = false % used by expServer. If true, timeline is started by default (otherwise can be toggled with the t key) LivePlot = false % if true the data are plotted as the data are aquired + LivePlotParams = []; WriteBufferToDisk = false % if true the data buffer is written to disk as they're aquired NB: in the future this will happen by default end @@ -616,23 +617,28 @@ function livePlot(obj, data) % TL.LIVEPLOT(source, event) plots the data aquired by the % DAQ while the PlotLive property is true. if isempty(obj.Axes) - figure(); % create a figure for plotting aquired data + f = figure(); % create a figure for plotting aquired data obj.Axes = gca; % store a handle to the axes -% set(figure_handle, 'Position', [21 81 1033 1726]); % set the figure position + if isfield(obj.LivePlotParams, 'figPosition') && ~isempty(obj.LivePlotParams.figPosition) + set(f, 'Position', obj.LivePlotParams.figPosition); % set the figure position + end end % get the names of the inputs being recorded names = pick({obj.Inputs.name}, find([obj.Inputs.arrayColumn] > -1), 'cell'); nSamps = size(data,1); % Get the number of samples in this chunck nChans = size(data,2); % Get the number of channels - traceSep = 7; % ??? + traceSep = 7; % unit is Volts - for most channels the max is 5V so this is a good separation offsets = (1:nChans)*traceSep; - scales = ones(1, nChans); - if length(scales)2^31); data(data(:,t)>2^31,t) = data(data(:,t)>2^31,t)-2^32; end @@ -653,7 +664,13 @@ function livePlot(obj, data) yy = get(traces(end-t+1), 'YData'); % get current data for trace yy(1:end-nSamps) = yy(nSamps+1:end); % add the new chuck for channel % scale and offset the traces - if strcmp(obj.Inputs(t).measurement, 'Position') + if strcmp(meas{t}, 'Position') + % for position-type inputs, plot velocity (take the + % diff, and smooth) rather than absolute. this is + % necessary to prevent the value from wandering way off + % the range and making it impossible to see any of the + % other traces. Plus it is probably more useful, + % anyway. yy(end-nSamps+1:end) = conv(diff([data(1,t); data(:,t)]),... gausswin(50)./sum(gausswin(50)), 'same') * scales(t) + offsets(t); else diff --git a/cortexlab/+tl/bindMpepServerWithWS.m b/cortexlab/+tl/bindMpepServerWithWS.m index b6401089..0adbafca 100644 --- a/cortexlab/+tl/bindMpepServerWithWS.m +++ b/cortexlab/+tl/bindMpepServerWithWS.m @@ -154,17 +154,25 @@ function listen() end if firstPress(manualStartKey) && ~tlObj.IsRunning - % first get an alyx instance - ai = alyx.loginWindow(); - + if isempty(tls.AlyxInstance) + % first get an alyx instance + ai = alyx.loginWindow(); + else + ai = tls.AlyxInstance; + end + [mouseName, ~] = dat.subjectSelector([],ai); if ~isempty(mouseName) clear expParams; expParams.experimentType = 'timelineManualStart'; - newExpRef = dat.newExp(mouseName, now, expParams, ai); + [newExpRef, newExpSeq, subsessionURL] = dat.newExp(mouseName, now, expParams, ai); + ai.subsessionURL = subsessionURL; + tls.AlyxInstance = ai; + %[subjectRef, expDate, expSequence] = dat.parseExpRef(newExpRef); %newExpRef = dat.constructExpRef(mouseName, now, expNum); + communicator.send('AlyxSend', {tls.AlyxInstance}); communicator.send('status', { 'starting', newExpRef}); tlObj.start(newExpRef, ai); end From 5bcf00a5307fa67842b3ba43d810f2ee1a1dddbb Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 11 Jan 2018 17:08:07 +0000 Subject: [PATCH 023/515] Weight record fix + better custom ExpPanels * Water now submitted regardless of experiment panel function * The weight is now properly queued to Alex when recorded while logged out --- +eui/AlyxPanel.m | 2 +- +eui/ExpPanel.m | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 02889e23..a0cea8a2 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -393,11 +393,11 @@ function recordWeight(obj, weight, subject) weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); d.subject = subject; d.weight = weight; - d.user = ai.username; if isempty(ai) % if not logged in, save the weight for later obj.QueuedWeights{end+1} = d; obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); else % otherwise immediately post to Alyx + d.user = ai.username; try w = alyx.postData(ai, 'weighings/', d); obj.log('Alyx weight posting succeeded: %.2f for %s', w.weight, w.subject); diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index a3b2c86a..a9a53d01 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -225,11 +225,6 @@ function expStopped(obj, rig, evt) subject = obj.SubjectRef; if ~isempty(ai)&&~strcmp(subject,'default') switch class(obj) - case 'eui.SqueakExpPanel' - infoFields = {obj.InfoFields.String}; - inc = cellfun(@(x) any(strfind(x(:)','µl')), {obj.InfoFields.String}); % Find event values ending with 'ul'. - reward = cell2mat(cellfun(@str2num,strsplit(infoFields{find(inc,1)},'µl'),'UniformOutput',0)); - amount = iff(isempty(reward),0,@()reward); case 'eui.ChoiceExpPanel' if ~isfield(obj.Block.trial,'feedbackType'); return; end % No completed trials if any(strcmp(obj.Parameters.TrialSpecificNames,'rewardVolume')) % Reward is trial specific @@ -242,7 +237,10 @@ function expStopped(obj, rig, evt) end if numel(amount)>1; amount = amount(1); end % Take first element (second being laser) otherwise - return + infoFields = {obj.InfoFields.String}; + inc = cellfun(@(x) any(strfind(x(:)','µl')), {obj.InfoFields.String}); % Find event values ending with 'ul'. + reward = cell2mat(cellfun(@str2num,strsplit(infoFields{find(inc,1)},'µl'),'UniformOutput',0)); + amount = iff(isempty(reward),0,@()reward); end if ~any(amount); return; end % Return if no water was given try From e09264b0043ef37ff75a4d96fba3d0083fa1b1bf Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 15 Jan 2018 17:27:57 +0000 Subject: [PATCH 024/515] Fix to plotting Alyx plotting bug * AlyxPanel's use of axes when weights were recorded was interfereing with ExpPanel. This has been fixed by explicitly defining which axes to hold, etc. * Custom ExpPanel ignored now if the field is empty --- +eui/AlyxPanel.m | 40 ++++++++++++++++++++-------------------- +eui/ExpPanel.m | 5 +++-- +eui/MControl.m | 2 +- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index a0cea8a2..2f0852e6 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -506,39 +506,39 @@ function viewSubjectHistory(obj, ax) end plot(ax, dates, [records.weight_measured], '.-'); - hold on; + hold(ax, 'on'); plot(ax, dates, [records.weight_expected]*0.7, 'r', 'LineWidth', 2.0); plot(ax, dates, [records.weight_expected]*0.8, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); - box off; - xlim([min(dates) max(dates)]); + box(ax, 'off'); + xlim(ax, [min(dates) max(dates)]); if nargin == 1 set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) else - ax.XTickLabel = arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax.Handle, 'XTick'), 'uni', false); + ax.XTickLabel = arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false); end - ylabel('weight (g)'); + ylabel(ax, 'weight (g)'); if nargin==1 ax = axes('Parent', plotBox); - plot(dates, [records.weight_measured]./[records.weight_expected], '.-'); - hold on; - plot(dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); - plot(dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); - box off; - xlim([min(dates) max(dates)]); + plot(ax, dates, [records.weight_measured]./[records.weight_expected], '.-'); + hold(ax, 'on'); + plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); + plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); + box(ax, 'off'); + xlim(ax, [min(dates) max(dates)]); set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) - ylabel('weight as pct (%)'); + ylabel(ax, 'weight as pct (%)'); axWater = axes('Parent',plotBox); - plot(dates, [records.water_given]+[records.hydrogel_given], '.-'); - hold on; - plot(dates, [records.hydrogel_given], '.-'); - plot(dates, [records.water_given], '.-'); - plot(dates, [records.water_expected], 'r', 'LineWidth', 2.0); - box off; - xlim([min(dates) max(dates)]); + plot(axWater, dates, [records.water_given]+[records.hydrogel_given], '.-'); + hold(axWater, 'on'); + plot(axWater, dates, [records.hydrogel_given], '.-'); + plot(axWater, dates, [records.water_given], '.-'); + plot(axWater, dates, [records.water_expected], 'r', 'LineWidth', 2.0); + box(axWater, 'off'); + xlim(axWater, [min(dates) max(dates)]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) - ylabel('water/hydrogel (mL)'); + ylabel(axWater, 'water/hydrogel (mL)'); % Create table of useful weight and water information, % sorted by date diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index a9a53d01..5ccb95b6 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -61,10 +61,11 @@ warning(ex.getReport()); end params = exp.Parameters(paramsStruct); % Get parameters - if isfield(params.Struct, 'expPanelFun') % Can define your own experiment panel + % Can define your own experiment panel + if isfield(params.Struct, 'expPanelFun')&&~isempty(params.Struct.expPanelFun) if isempty(which(params.Struct.expPanelFun)); addpath(fileparts(params.Struct.defFunction)); end p = feval(params.Struct.expPanelFun, parent, ref, params, logEntry); - else + else % otherwise use the default switch params.Struct.type case {'SingleTargetChoiceWorld' 'ChoiceWorld' 'DiscWorld' 'SurroundChoiceWorld'} p = eui.ChoiceExpPanel(parent, ref, params, logEntry); diff --git a/+eui/MControl.m b/+eui/MControl.m index abf5b918..0f09f9ff 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -570,7 +570,7 @@ function updateWeightPlot(obj) datenums = floor([entries.date]); obj.WeightAxes.clear(); if ~isempty(obj.AlyxPanel.AlyxInstance)&&~strcmp(obj.LogSubject.Selected,'default') - obj.AlyxPanel.viewSubjectHistory(obj.WeightAxes) + obj.AlyxPanel.viewSubjectHistory(obj.WeightAxes.Handle) rotateticklabel(obj.WeightAxes.Handle, 45); else if numel(datenums) > 0 From 0550d5b70b52275eeae812457128de6fdadc0524 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 16 Jan 2018 17:40:27 +0000 Subject: [PATCH 025/515] Fix'd Alyx xlim error Error when setting xlim for new mice resolved. --- +eui/AlyxPanel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 2f0852e6..6b9704b5 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -510,7 +510,7 @@ function viewSubjectHistory(obj, ax) plot(ax, dates, [records.weight_expected]*0.7, 'r', 'LineWidth', 2.0); plot(ax, dates, [records.weight_expected]*0.8, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); - xlim(ax, [min(dates) max(dates)]); + if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end if nargin == 1 set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) else From 9049cde114d5cb75dc979dd30b124d754d22b0e8 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 17 Jan 2018 14:27:18 +0000 Subject: [PATCH 026/515] Comments submission change Newline charecters added --- +dat/updateLogEntry.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+dat/updateLogEntry.m b/+dat/updateLogEntry.m index ad512209..1d5a86a7 100644 --- a/+dat/updateLogEntry.m +++ b/+dat/updateLogEntry.m @@ -12,7 +12,7 @@ function updateLogEntry(subject, id, newEntry) if isfield(newEntry, 'AlyxInstance')&&~isempty(newEntry.comments) data = struct('subject', dat.parseExpRef(newEntry.value.ref),... - 'narrative', newEntry.comments); + 'narrative', mat2DStrTo1D(newEntry.comments)); alyx.putData(newEntry.AlyxInstance,... newEntry.AlyxInstance.subsessionURL, data); newEntry = rmfield(newEntry, 'AlyxInstance'); From 46173ff67942bafef6a0d436b87a07a43970b3fc Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 18 Jan 2018 13:03:23 +0000 Subject: [PATCH 027/515] registerFile updated --- +exp/Experiment.m | 3 ++- +exp/SignalsExp.m | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/+exp/Experiment.m b/+exp/Experiment.m index e86502e7..b0229875 100644 --- a/+exp/Experiment.m +++ b/+exp/Experiment.m @@ -780,7 +780,8 @@ function saveData(obj) [subject,~,~] = dat.parseExpRef(obj.Data.expRef); if strcmp(subject,'default'); return; end % Register saved files - alyx.registerFile(subject,[],'Block',savepaths{end},'zserver',obj.AlyxInstance); + alyx.registerFile(savepaths{end}, 'mat',... + obj.AlyxInstance.subsessionURL, 'Block', [], obj.AlyxInstance); % Save the session end time alyx.putData(obj.AlyxInstance, obj.AlyxInstance.subsessionURL,... struct('end_time', alyx.datestr(now), 'subject', subject)); diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 81438129..4932a1e4 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -835,7 +835,8 @@ function saveData(obj) [subject,~,~] = dat.parseExpRef(obj.Data.expRef); if strcmp(subject,'default'); return; end % Register saved files - alyx.registerFile(subject,[],'Block',savepaths{end},'zserver',obj.AlyxInstance); + alyx.registerFile(savepaths{end}, 'mat',... + obj.AlyxInstance.subsessionURL, 'Block', [], obj.AlyxInstance); % Save the session end time alyx.putData(obj.AlyxInstance, obj.AlyxInstance.subsessionURL,... struct('end_time', alyx.datestr(now), 'subject', subject)); From 0f4c94198455b80463d95438b9c2180773f4afbd Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 18 Jan 2018 13:06:09 +0000 Subject: [PATCH 028/515] Parameters now registered to Alyx --- +dat/newExp.m | 13 ++++++++++++- +hw/Timeline.m | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index ae7a3e76..9c01f24b 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -128,6 +128,17 @@ % now save the experiment parameters variable superSave(dat.expFilePath(expRef, 'parameters'), struct('parameters', expParams)); - +% save a copy in json +% if exist('savejson', 'file') +% % save server copy only +% jsonPath = fullfile(fileparts(dat.expFilePath(expRef, 'parameters', 'master'))); +% savejson('parameters', expParams, jsonPath, 'Parameters.json'); +% else +% warning('JSONlab not found - hardware information not saved to ALF') +% end + +% Register our parameter set to Alyx +alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... + url, 'Parameters', [], AlyxInstance); end \ No newline at end of file diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 3739c1bf..49302b58 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -457,7 +457,8 @@ function stop(obj) [subject,~,~] = dat.parseExpRef(obj.Data.expRef); if ~isempty(obj.AlyxInstance) && ~strcmp(subject,'default') try - alyx.registerFile(subject,[],'Timeline',obj.Data.savePaths{end},'zserver',obj.AlyxInstance); + alyx.registerFile(obj.Data.savePaths{end}, 'alf',... + obj.AlyxInstance.subsessionURL, 'Timeline', [], obj.AlyxInstance); catch warning('couldnt register files to alyx'); end From 9243c5cafcc7157c5ecc94cfcd4197996910874c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 18 Jan 2018 19:08:02 +0000 Subject: [PATCH 029/515] Fix'd bug with default subject Can continue to run when logged out if subject is default --- +dat/newExp.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index 9c01f24b..c5184e88 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -138,7 +138,9 @@ % end % Register our parameter set to Alyx -alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... - url, 'Parameters', [], AlyxInstance); +if ~strcmp(subject,'default') + alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... + url, 'Parameters', [], AlyxInstance); +end end \ No newline at end of file From 4758d874701d5648e8d3bfb854efd3653672cc70 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Sat, 20 Jan 2018 18:28:32 +0000 Subject: [PATCH 030/515] add a signal generator for step changes in output level --- +hw/DaqSingleScan.m | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 +hw/DaqSingleScan.m diff --git a/+hw/DaqSingleScan.m b/+hw/DaqSingleScan.m new file mode 100644 index 00000000..2bb53282 --- /dev/null +++ b/+hw/DaqSingleScan.m @@ -0,0 +1,29 @@ +classdef DaqSingleScan < hw.ControlSignalGenerator + %HW.DaqSingleScan Outputs a single value, just changing the level of the + %analog output + % + % + + properties + Scale % multiplicatively scale the output + % for instance, make this a conversion factor between your + % desired output units (like mm of a galvo, or mW of a laser) and + % voltage + end + + methods + function obj = DaqSingleScan(scale) + obj.DefaultValue = 0; + obj.Scale = scale; + end + + function samples = waveform(obj, v) + % just take the first value (if multiple were provided) and output + % it, scaled, as a single number. This will result in the analog + % output channel switching to that value and staying there. + samples = v(1)*obj.Scale; + end + end + +end + From 0be784746a1a9c71df6a1eb375f545471a8be282 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 22 Jan 2018 17:30:50 +0000 Subject: [PATCH 031/515] improve alyx warning message --- +exp/SignalsExp.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 81438129..fb478b62 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -839,8 +839,9 @@ function saveData(obj) % Save the session end time alyx.putData(obj.AlyxInstance, obj.AlyxInstance.subsessionURL,... struct('end_time', alyx.datestr(now), 'subject', subject)); - catch - warning('couldnt register files to alyx because no subsession found'); + catch ex + warning('couldnt register files to alyx'); + disp(ex) end end From ee0498b2c39c39af8cfe8820019ff648e3c8f624 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 24 Jan 2018 11:08:06 +0000 Subject: [PATCH 032/515] Updated newExp to save in JSON * newExp also registers parameters file in JSON is available, otherwise the mat file is registered instead. * updateLogEntry now saves with all newlines replaced with '\n'. --- +dat/newExp.m | 41 ++++++++++++++++++++++++++--------------- +dat/updateLogEntry.m | 2 +- 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index c5184e88..6e2c0720 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -9,9 +9,10 @@ % |_ expSeq/ % % If experiment parameters are passed into the function, they are saved -% here. If an instance of Alyx is passed and a base session for the -% experiment date is not found, one is created in the Alyx database. -% A corresponding subsession is also created. +% here, as a mat and in JSON (if possible). If an instance of Alyx is +% passed and a base session for the experiment date is not found, one is +% created in the Alyx database. A corresponding subsession is also +% created and the parameters file is registered with the sub-session. % % See also DAT.PATHS % @@ -128,19 +129,29 @@ % now save the experiment parameters variable superSave(dat.expFilePath(expRef, 'parameters'), struct('parameters', expParams)); -% save a copy in json -% if exist('savejson', 'file') -% % save server copy only -% jsonPath = fullfile(fileparts(dat.expFilePath(expRef, 'parameters', 'master'))); -% savejson('parameters', expParams, jsonPath, 'Parameters.json'); -% else -% warning('JSONlab not found - hardware information not saved to ALF') -% end - -% Register our parameter set to Alyx -if ~strcmp(subject,'default') - alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... + +try % save a copy of parameters in json + % First, change all functions to strings + f_idx = structfun(@(s)isa(s, 'function_handle'), expParams); + fields = fieldnames(expParams); + paramCell = struct2cell(expParams); + paramCell(f_idx) = cellfun(@func2str, paramCell(f_idx),'UniformOutput', false); + expParams = cell2struct(paramCell, fields); + % Generate JSON path and save + jsonPath = fullfile(fileparts(dat.expFilePath(expRef, 'parameters', 'master')),... + [expRef, '_parameters.json']); + savejson('parameters', expParams, jsonPath); + % Register our JSON parameter set to Alyx + if ~strcmp(subject,'default') + alyx.registerFile(jsonPath, 'json', url, 'Parameters', [], AlyxInstance); + end +catch ex + warning(ex.identifier, 'Failed to save paramters as JSON: %s.\n Registering mat file instead', ex.message) + % Register our parameter set to Alyx + if ~strcmp(subject,'default') + alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... url, 'Parameters', [], AlyxInstance); + end end end \ No newline at end of file diff --git a/+dat/updateLogEntry.m b/+dat/updateLogEntry.m index 1d5a86a7..fefad909 100644 --- a/+dat/updateLogEntry.m +++ b/+dat/updateLogEntry.m @@ -12,7 +12,7 @@ function updateLogEntry(subject, id, newEntry) if isfield(newEntry, 'AlyxInstance')&&~isempty(newEntry.comments) data = struct('subject', dat.parseExpRef(newEntry.value.ref),... - 'narrative', mat2DStrTo1D(newEntry.comments)); + 'narrative', strrep(mat2DStrTo1D(newEntry.comments),newline,'\n')); alyx.putData(newEntry.AlyxInstance,... newEntry.AlyxInstance.subsessionURL, data); newEntry = rmfield(newEntry, 'AlyxInstance'); From 5b9d1f03c612bdea8b79152bd47313df98eadbdc Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 24 Jan 2018 18:30:53 +0000 Subject: [PATCH 033/515] Cleaned up repo * Removed legacy and unused code * Moved Nick's rig-specific code to cortexlab directory --- +eui/Log.m | 44 - +hw/DaqDataManager.m | 28 - +hw/DaqLaser.m | 89 - +hw/DaqRewardValve.m | 161 - +hw/RewardController.m | 35 - +hw/RewardValveControl.m | 1 - +hw/calibrate.m | 5 +- +hw/devices.m | 8 - addRigboxPaths.m | 5 +- cb-tools/SuperWebSocket/Config/log4net.config | 69 - .../SuperWebSocket/Config/log4net.unix.config | 69 - cb-tools/SuperWebSocket/InstallService.bat | 2 - cb-tools/SuperWebSocket/Newtonsoft.Json.dll | Bin 358400 -> 0 bytes .../SuperWebSocket/SuperSocket.Common.dll | Bin 29696 -> 0 bytes .../SuperWebSocket/SuperSocket.Common.pdb | Bin 89600 -> 0 bytes .../SuperWebSocket/SuperSocket.Common.xml | 1224 ---- .../SuperWebSocket/SuperSocket.Facility.XML | 467 -- .../SuperWebSocket/SuperSocket.Facility.dll | Bin 15872 -> 0 bytes .../SuperWebSocket/SuperSocket.Facility.pdb | Bin 42496 -> 0 bytes .../SuperWebSocket/SuperSocket.SocketBase.dll | Bin 94720 -> 0 bytes .../SuperWebSocket/SuperSocket.SocketBase.pdb | Bin 196096 -> 0 bytes .../SuperWebSocket/SuperSocket.SocketBase.xml | 4974 ----------------- .../SuperSocket.SocketEngine.XML | 1045 ---- .../SuperSocket.SocketEngine.dll | Bin 71680 -> 0 bytes .../SuperSocket.SocketEngine.pdb | Bin 165376 -> 0 bytes .../SuperSocket.SocketService.exe | Bin 11264 -> 0 bytes .../SuperSocket.SocketService.exe.config | 24 - .../SuperSocket.SocketService.pdb | Bin 24064 -> 0 bytes cb-tools/SuperWebSocket/SuperWebSocket.XML | 1762 ------ cb-tools/SuperWebSocket/SuperWebSocket.dll | Bin 62464 -> 0 bytes cb-tools/SuperWebSocket/SuperWebSocket.pdb | Bin 216576 -> 0 bytes cb-tools/SuperWebSocket/UninstallService.bat | 2 - cb-tools/SuperWebSocket/WebSocket4Net.dll | Bin 88576 -> 0 bytes cb-tools/SuperWebSocket/log4net.dll | Bin 286720 -> 0 bytes cb-tools/burgbox/+plt/binoErrorbar.m | 24 - cb-tools/burgbox/+plt/errorbar.m | 23 - cb-tools/burgbox/+plt/hshade.m | 37 - cb-tools/burgbox/+plt/vshade.m | 37 - cb-tools/jsonlab/AUTHORS.txt | 36 - cb-tools/jsonlab/ChangeLog.txt | 47 - cb-tools/jsonlab/LICENSE_BSD.txt | 25 - cb-tools/jsonlab/LICENSE_GPLv3.txt | 674 --- cb-tools/jsonlab/README.txt | 335 -- .../jsonlab/examples/demo_jsonlab_basic.m | 161 - cb-tools/jsonlab/examples/demo_ubjson_basic.m | 161 - cb-tools/jsonlab/examples/example1.json | 23 - cb-tools/jsonlab/examples/example2.json | 22 - cb-tools/jsonlab/examples/example3.json | 11 - cb-tools/jsonlab/examples/example4.json | 34 - .../jsonlab/examples/jsonlab_basictest.matlab | 361 -- cb-tools/jsonlab/examples/jsonlab_selftest.m | 12 - .../jsonlab/examples/jsonlab_selftest.matlab | 121 - cb-tools/jsonlab/examples/jsonlab_speedtest.m | 21 - cb-tools/jsonlab/jsonopt.m | 32 - cb-tools/jsonlab/loadjson.m | 520 -- cb-tools/jsonlab/loadubjson.m | 478 -- cb-tools/jsonlab/mergestruct.m | 33 - cb-tools/jsonlab/origsavejson.m | 386 -- cb-tools/jsonlab/savejson.m | 435 -- cb-tools/jsonlab/saveubjson.m | 490 -- cb-tools/jsonlab/varargin2struct.m | 40 - cb-tools/urlread2/http_createHeader.m | 11 - cb-tools/urlread2/http_paramsToString.m | 62 - cb-tools/urlread2/license.txt | 24 - cb-tools/urlread2/urlread2.m | 371 -- cb-tools/urlread2/urlread_notes.txt | 86 - cb-tools/urlread2/urlread_todos.txt | 13 - cb-tools/urlread2/urlread_versionInfo.txt | 13 - {+dat => cortexlab/+dat}/findNextSeqNum.m | 0 {+dat => cortexlab/+dat}/subjectSelector.m | 0 {+hw => cortexlab/+hw}/DaqLever.m | 0 {+hw => cortexlab/+hw}/DaqLick.m | 0 {+hw => cortexlab/+hw}/DaqPiezo.m | 0 cortexlab/+hw/daqControllerForValve.m | 28 - cortexlab/+srv/RemoteMPEPService.m | 21 +- 75 files changed, 16 insertions(+), 15206 deletions(-) delete mode 100644 +hw/DaqDataManager.m delete mode 100644 +hw/DaqLaser.m delete mode 100644 +hw/DaqRewardValve.m delete mode 100644 +hw/RewardController.m delete mode 100644 cb-tools/SuperWebSocket/Config/log4net.config delete mode 100644 cb-tools/SuperWebSocket/Config/log4net.unix.config delete mode 100644 cb-tools/SuperWebSocket/InstallService.bat delete mode 100644 cb-tools/SuperWebSocket/Newtonsoft.Json.dll delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.Common.dll delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.Common.pdb delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.Common.xml delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.Facility.XML delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.Facility.dll delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.Facility.pdb delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketBase.dll delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketBase.pdb delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketBase.xml delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketEngine.XML delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketEngine.dll delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketEngine.pdb delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketService.exe delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketService.exe.config delete mode 100644 cb-tools/SuperWebSocket/SuperSocket.SocketService.pdb delete mode 100644 cb-tools/SuperWebSocket/SuperWebSocket.XML delete mode 100644 cb-tools/SuperWebSocket/SuperWebSocket.dll delete mode 100644 cb-tools/SuperWebSocket/SuperWebSocket.pdb delete mode 100644 cb-tools/SuperWebSocket/UninstallService.bat delete mode 100644 cb-tools/SuperWebSocket/WebSocket4Net.dll delete mode 100644 cb-tools/SuperWebSocket/log4net.dll delete mode 100644 cb-tools/burgbox/+plt/binoErrorbar.m delete mode 100644 cb-tools/burgbox/+plt/errorbar.m delete mode 100644 cb-tools/burgbox/+plt/hshade.m delete mode 100644 cb-tools/burgbox/+plt/vshade.m delete mode 100644 cb-tools/jsonlab/AUTHORS.txt delete mode 100644 cb-tools/jsonlab/ChangeLog.txt delete mode 100644 cb-tools/jsonlab/LICENSE_BSD.txt delete mode 100644 cb-tools/jsonlab/LICENSE_GPLv3.txt delete mode 100644 cb-tools/jsonlab/README.txt delete mode 100644 cb-tools/jsonlab/examples/demo_jsonlab_basic.m delete mode 100644 cb-tools/jsonlab/examples/demo_ubjson_basic.m delete mode 100644 cb-tools/jsonlab/examples/example1.json delete mode 100644 cb-tools/jsonlab/examples/example2.json delete mode 100644 cb-tools/jsonlab/examples/example3.json delete mode 100644 cb-tools/jsonlab/examples/example4.json delete mode 100644 cb-tools/jsonlab/examples/jsonlab_basictest.matlab delete mode 100644 cb-tools/jsonlab/examples/jsonlab_selftest.m delete mode 100644 cb-tools/jsonlab/examples/jsonlab_selftest.matlab delete mode 100644 cb-tools/jsonlab/examples/jsonlab_speedtest.m delete mode 100644 cb-tools/jsonlab/jsonopt.m delete mode 100644 cb-tools/jsonlab/loadjson.m delete mode 100644 cb-tools/jsonlab/loadubjson.m delete mode 100644 cb-tools/jsonlab/mergestruct.m delete mode 100644 cb-tools/jsonlab/origsavejson.m delete mode 100644 cb-tools/jsonlab/savejson.m delete mode 100644 cb-tools/jsonlab/saveubjson.m delete mode 100644 cb-tools/jsonlab/varargin2struct.m delete mode 100644 cb-tools/urlread2/http_createHeader.m delete mode 100644 cb-tools/urlread2/http_paramsToString.m delete mode 100644 cb-tools/urlread2/license.txt delete mode 100644 cb-tools/urlread2/urlread2.m delete mode 100644 cb-tools/urlread2/urlread_notes.txt delete mode 100644 cb-tools/urlread2/urlread_todos.txt delete mode 100644 cb-tools/urlread2/urlread_versionInfo.txt rename {+dat => cortexlab/+dat}/findNextSeqNum.m (100%) rename {+dat => cortexlab/+dat}/subjectSelector.m (100%) rename {+hw => cortexlab/+hw}/DaqLever.m (100%) rename {+hw => cortexlab/+hw}/DaqLick.m (100%) rename {+hw => cortexlab/+hw}/DaqPiezo.m (100%) delete mode 100644 cortexlab/+hw/daqControllerForValve.m diff --git a/+eui/Log.m b/+eui/Log.m index 3172fa76..2821326f 100644 --- a/+eui/Log.m +++ b/+eui/Log.m @@ -110,50 +110,6 @@ function buildUI(obj, parent) 'RowName', [],... 'ColumnWidth', obj.columnWidths,... 'CellSelectionCallback', @obj.cellSelected); - -% obj.Table = uitable('Style', 'popupmenu', 'Enable', 'on',... -% 'String', {''},... -% 'Callback', @(src, evt) obj.showStack(get(src, 'Value')),... -% 'Parent', vbox); -% -% % set up the axes for displaying current frame image -% obj.Axes = bui.Axes(vbox); -% obj.Axes.ActivePositionProperty = 'Position'; -% obj.Image = imagesc(0, 'Parent', obj.Axes.Handle); -% obj.Axes.XTickLabel = []; -% obj.Axes.YTickLabel = []; -% obj.Axes.DataAspectRatio = [1 1 1]; -% -% % configure handling mouse events over axes to update selector cursor -% obj.Axes.addlistener('MouseLeft',... -% @(src, evt) handleMouseLeft(obj)); -% obj.Axes.addlistener('MouseMoved', @(src, evt) handleMouseMovement(obj, evt)); -% obj.Axes.addlistener('MouseButtonDown', @(src, evt) handleMouseDown(obj, evt)); -% obj.Axes.addlistener('MouseDragged', @(src, evt) handleMouseDragged(obj, evt)); -% -% bottombox = uiextras.HBox('Parent', vbox, 'Padding', 1); -% -% obj.PlayButton = uicontrol('String', '|>',... -% 'Callback', @(src, evt) obj.playStack(),... -% 'Parent', topbox); -% obj.StopButton = uicontrol('String', '||',... -% 'Callback', @(src, evt) obj.stopStack(),... -% 'Enable', 'off',... -% 'Parent', topbox); -% obj.SpeedMenu = uicontrol('Style', 'popupmenu', 'Enable', 'on',... -% 'String', {'', '', '', '', ''},... -% 'Value', find(obj.PlaySpeed == 1, 1),... -% 'Parent', topbox,... -% 'Callback', @(s,e) obj.updatePlayStep()); -% -% obj.FrameSlider = uicontrol('Style', 'slider', 'Enable', 'off',... -% 'Parent', bottombox,... -% 'Callback', @(src, ~) obj.showFrame(get(src, 'Value'))); -% obj.StatusText = uicontrol('Style', 'edit', 'String', '', ..., -% 'Enable', 'inactive', 'Parent', bottombox); -% set(vbox, 'Sizes', [24 -1 24]); -% set(topbox, 'Sizes', [-1 24 24 58]); -% set(bottombox, 'Sizes', [-1 160]); end end diff --git a/+hw/DaqDataManager.m b/+hw/DaqDataManager.m deleted file mode 100644 index 3a5e9d6c..00000000 --- a/+hw/DaqDataManager.m +++ /dev/null @@ -1,28 +0,0 @@ -classdef DaqDataManager - %HW.DAQDATAMANAGER [Unused] Interface for adding and configuring DAQ channels - % This class was started, presumably by Chris, at an unknown time and - % appears to have been created to manage the channels in the - % HW.DAQCONTROLLER object in a more user-friendly way. - % - % Perhaps this would be useful for creating and configuering a - % hardware.mat file (that used by SRV.EXPSERVER and MC to load and - % configure task-related hardware) in a more automated fashion. - % - % TODO: Finish this class, perhaps ask Chris what his aim was with this - % Part of Rigbox - - % xxxx-xx CB created - - properties - end - - methods - function id = manageAnalogOutputChannel(chan, defaultValue) - end - - function submit - end - end - -end - diff --git a/+hw/DaqLaser.m b/+hw/DaqLaser.m deleted file mode 100644 index fb51b1ba..00000000 --- a/+hw/DaqLaser.m +++ /dev/null @@ -1,89 +0,0 @@ -classdef DaqLaser < hw.RewardController - %DAQLASER Controls a laser via a DAQ to deliver reward - % Must (currently) be sole outputer on DAQ session - - properties - DaqSession % should be a DAQ session containing just one output channel - DaqId = 'Dev1' % the DAQ's device ID, e.g. 'Dev1' - DaqChannelId = 'ao1' % the DAQ's ID for the counter channel. e.g. 'ao0' - DaqOutputChannelIdx = 2 - % for controlling the reward valve - OpenValue = 5 - ClosedValue = 0 - MeasuredDeliveries % - PulseLength = 10e-3 % seconds - StimDuration = 0.5 % seconds - PulseFrequency = 25 %Hz - end - - properties (Access = protected) - CurrValue - end - - methods - function createDaqChannel(obj) - obj.DaqSession.addAnalogOutputChannel(obj.DaqId, obj.DaqChannelId, 'Voltage'); -% obj.DaqSession.outputSingleScan(obj.ClosedValue); - obj.CurrValue = 0; - end - function open(obj) - daqSession = obj.DaqSession; - if daqSession.IsRunning - daqSession.wait(); - end - daqSession.outputSingleScan(obj.OpenValue); - obj.CurrValue = obj.OpenValue; - end - function close(obj) - daqSession = obj.DaqSession; - if daqSession.IsRunning - daqSession.wait(); - end - daqSession.outputSingleScan(obj.ClosedValue); - obj.CurrValue = obj.ClosedValue; - end - function closed = toggle(obj) - if obj.CurrValue == obj.ClosedValue; - open(obj); - closed = false; - else - close(obj); - closed = true; - end - end - function samples = waveformFor(obj, size) - % Returns the waveform that should be sent to the DAQ to control - % reward output given a certain reward size - sampleRate = obj.DaqSession.Rate; - - nCycles = ceil(obj.PulseFrequency*obj.StimDuration); - nSamples = nCycles/obj.PulseFrequency*sampleRate; - samples = zeros(nSamples/nCycles, nCycles); - nPulseSamples = obj.PulseLength*sampleRate; - samples(1:nPulseSamples,:) = obj.OpenValue; - samples = samples(:); - end - - function deliverBackground(obj, size) - % size not implemeneted yet - lasersamples = waveformFor(obj, size); - samples = zeros(numel(lasersamples), numel(obj.DaqSession.Channels)); - samples(:,obj.DaqOutputChannelIdx) = lasersamples; - daqSession = obj.DaqSession; - if daqSession.IsRunning - daqSession.wait(); - end - daqSession.queueOutputData(samples); - daqSession.startBackground(); - time = obj.Clock.now; - obj.CurrValue = obj.ClosedValue; - logSample(obj, size, time); - end - - function deliverMultiple(obj, size, interval, n, sizeIsOpenDuration) - error('not implemented') - end - end - -end - diff --git a/+hw/DaqRewardValve.m b/+hw/DaqRewardValve.m deleted file mode 100644 index e99b9bd7..00000000 --- a/+hw/DaqRewardValve.m +++ /dev/null @@ -1,161 +0,0 @@ -classdef DaqRewardValve < hw.RewardController - %HW.DAQREWARDVALVE Controls a valve via a DAQ to deliver reward - % Must (currently) be sole outputer on DAQ session - % TODO - % - % Part of Rigbox - - % 2013-01 CB created - - properties - DaqSession; % should be a DAQ session containing just one output channel - DaqId = 'Dev1'; % the DAQ's device ID, e.g. 'Dev1' - DaqChannelId = 'ao0'; % the DAQ's ID for the counter channel. e.g. 'ao0' - DaqOutputChannelIdx = 1 - % for controlling the reward valve - OpenValue = 6; - ClosedValue = 0; - MeasuredDeliveries; % deliveries with measured volumes for calibration. - % This should be a struct array with fields 'durationSecs' & - % 'volumeMicroLitres' indicating the duration the valve was open, and the - % measured volume (in ul) for that delivery. These points are interpolated - % to work out how long to open the valve for arbitrary volumes. - end - - properties (Access = protected) - CurrValue; - end - - methods - function createDaqChannel(obj) - obj.DaqSession.addAnalogOutputChannel(obj.DaqId, obj.DaqChannelId, 'Voltage'); - obj.DaqSession.outputSingleScan(obj.ClosedValue); - obj.CurrValue = obj.ClosedValue; - end - function open(obj) - daqSession = obj.DaqSession; - if daqSession.IsRunning - daqSession.wait(); - end - daqSession.outputSingleScan(obj.OpenValue); - obj.CurrValue = obj.OpenValue; - end - function close(obj) - daqSession = obj.DaqSession; - if daqSession.IsRunning - daqSession.wait(); - end - daqSession.outputSingleScan(obj.ClosedValue); - obj.CurrValue = obj.ClosedValue; - end - function closed = toggle(obj) - if obj.CurrValue == obj.ClosedValue; - open(obj); - closed = false; - else - close(obj); - closed = true; - end - end - function duration = openDurationFor(obj, microLitres) - % Returns the duration the valve should be opened for to deliver - % microLitres of reward. Is calibrated using interpolation of the - % measured delivery data. - volumes = [obj.MeasuredDeliveries.volumeMicroLitres]; - durations = [obj.MeasuredDeliveries.durationSecs]; - if microLitres > max(volumes) || microLitres < min(volumes) - fprintf('Warning requested delivery of %.1f is outside calibration range\n',... - microLitres); - end - duration = interp1(volumes, durations, microLitres, 'pchip'); - end - function ul = microLitresFromDuration(obj, duration) - % Returns the amount of reward the valve would delivery by being open - % for the duration specified. Is calibrated using interpolation of the - % measured delivery data. - volumes = [obj.MeasuredDeliveries.volumeMicroLitres]; - durations = [obj.MeasuredDeliveries.durationSecs]; - ul = interp1(durations, volumes, duration, 'pchip'); - end - - function sz = deliverBackground(obj, sz) - % size is the volume to deliver in microlitres (ul). This is turned - % into an open duration for the valve using interpolation of the - % calibration measurements. - if nargin < 2 - sz = obj.DefaultRewardSize; - end - duration = openDurationFor(obj, sz); - daqSession = obj.DaqSession; - sampleRate = daqSession.Rate; - nOpenSamples = round(duration*sampleRate); - samples = zeros(nOpenSamples + 3, numel(obj.DaqSession.Channels)); - samples(:,obj.DaqOutputChannelIdx) = [obj.OpenValue*ones(nOpenSamples, 1) ; ... - obj.ClosedValue*ones(3,1)]; - if daqSession.IsRunning - daqSession.wait(); - end -% fprintf('Delivering %gul by opening valve for %gms\n', size, 1000*duration); - daqSession.queueOutputData(samples); - daqSession.startBackground(); - time = obj.Clock.now; - obj.CurrValue = obj.ClosedValue; - logSample(obj, sz, time); - end - - function deliverMultiple(obj, size, interval, n, sizeIsOpenDuration) - % Delivers n rewards in shots spaced in time by at least interval. - % Useful for example, for obtaining calibration data. - % If sizeIsOpenDuration is true, then specified size is the open - % duration of the valve, if false (default), then specified size is the - % usual micro litres size converted to open duration using the measurement - % data for calibration. - if nargin < 5 || isempty(sizeIsOpenDuration) - sizeIsOpenDuration = false; % defaults to size is in microlitres - end - if isempty(interval) - interval = 0.1; % seconds - good interval given open/close delays - end - daqSession = obj.DaqSession; - if daqSession.IsRunning - daqSession.wait(); - end - if sizeIsOpenDuration - duration = size; - size = microLitresFromDuration(obj, size); - else - duration = openDurationFor(obj, size); - end - sampleRate = daqSession.Rate; - nsamplesOpen = round(sampleRate*duration); - nsamplesClosed = round(sampleRate*interval); - period = 1/sampleRate * (nsamplesOpen + nsamplesClosed); - signal = [obj.OpenValue*ones(nsamplesOpen, 1) ; ... - obj.ClosedValue*ones(nsamplesClosed, 1)]; - blockReps = 20; - blockSignal = repmat(signal, [blockReps 1]); - nBlocks = floor(n/blockReps); - - for i = 1:nBlocks - % use the reward timer controller to open and close the reward valve - daqSession.queueOutputData(blockSignal); - time = obj.Clock.now; - daqSession.startForeground(); - fprintf('rewards %i-%i delivered.\n', blockReps*(i - 1) + 1, blockReps*i); - logSamples(obj, repmat(size, [1 blockReps]), ... - time + cumsum(period*ones(1, blockReps)) - period); - end - remaining = n - blockReps*nBlocks; - for i = 1:remaining - % use the reward timer controller to open and close the reward valve - daqSession.queueOutputData(signal); - time = obj.Clock.now; - daqSession.startForeground(); - logSample(obj, size, time); - end - fprintf('rewards %i-%i delivered.\n', blockReps*nBlocks + 1, blockReps*nBlocks + remaining); - end - end - -end - diff --git a/+hw/RewardController.m b/+hw/RewardController.m deleted file mode 100644 index cefbf257..00000000 --- a/+hw/RewardController.m +++ /dev/null @@ -1,35 +0,0 @@ -classdef RewardController < hw.DataLogging - %HW.REWARDCONTROLLER Abstract interface for controlling reward devices - % Detailed explanation goes here - % - % Part of Rigbox - - % 2012-10 CB created - - properties - DefaultRewardSize = 2.5 % reward size if no size was specified - end - - properties (Dependent = true) - DeliveredSizes - DeliveryTimes - end - - methods (Abstract) - %deliverBackground(size) call deliver to deliver a reward of the - %specified size and return before completion of delivery. - sz = deliverBackground(obj, sz) - deliverMultiple(obj, size, interval, n) %for calibration - end - - methods - function value = get.DeliveredSizes(obj) - value = obj.DataBuffer(1:obj.SampleCount); - end - function value = get.DeliveryTimes(obj) - value = obj.TimesBuffer(1:obj.SampleCount); - end - end - -end - diff --git a/+hw/RewardValveControl.m b/+hw/RewardValveControl.m index c79cebe8..aa94b999 100644 --- a/+hw/RewardValveControl.m +++ b/+hw/RewardValveControl.m @@ -9,7 +9,6 @@ properties Calibrations - % deliveries with measured volumes for calibration. % This should be a struct array with fields 'durationSecs' & % 'volumeMicroLitres' indicating the duration the valve was open, and the diff --git a/+hw/calibrate.m b/+hw/calibrate.m index 6bdbc0e5..50cc778f 100644 --- a/+hw/calibrate.m +++ b/+hw/calibrate.m @@ -1,6 +1,9 @@ function calibration = calibrate(channel, rewardController, scales, tMin, tMax) %HW.CALIBRATE Performs measured reward deliveries for calibration -% TODO. This needs sanitising and incoporating into HW.REWARDCONTROLLER +% This function is used by srv.expServer to return a water calibration. It still requires some scales to be attached to +% the computer. TODO: Sanitize and integrate into HW.REWARDVALVECONTROL +% +% See also HW.REWARDVALVECONTROL % % Part of Rigbox diff --git a/+hw/devices.m b/+hw/devices.m index 0912ce62..82598ab6 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -65,14 +65,6 @@ % end %% Set up controllers -if isfield(rig, 'rewardCalibrations') && isfield(rig, 'rewardController')... - && ~isfield(rig, 'daqController') &&... - ~isa(rig.rewardController, 'hw.DummyFeedback') - % create a daq controller based on legacy rig.rewardController - rig.daqController = hw.daqControllerForValve(... - rig.rewardController, rig.rewardCalibrations); -end - if init if isfield(rig, 'daqController') rig.daqController.createDaqChannels(); diff --git a/addRigboxPaths.m b/addRigboxPaths.m index 301feee0..2fa54a8b 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -38,10 +38,7 @@ function addRigboxPaths(savePaths) cortexLabAddonsPath,... % add the Rigging cortexlab add-ons rigboxPath,... % add Rigbox itself cbToolsPath,... % add cb-tools root dir - fullfile(cbToolsPath, 'burgbox'),... % Burgbox - fullfile(cbToolsPath, 'jsonlab'),... % jsonlab for JSON encoding - fullfile(cbToolsPath, 'urlread2')... % urlread2 for http requests - ); + fullfile(cbToolsPath, 'burgbox')); % Burgbox % guiLayoutPath,... % add GUI Layout toolbox % fullfile(guiLayoutPath, 'layout'),... % fullfile(guiLayoutPath, 'Patch'),... diff --git a/cb-tools/SuperWebSocket/Config/log4net.config b/cb-tools/SuperWebSocket/Config/log4net.config deleted file mode 100644 index efa786b7..00000000 --- a/cb-tools/SuperWebSocket/Config/log4net.config +++ /dev/null @@ -1,69 +0,0 @@ -ïğż - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/cb-tools/SuperWebSocket/Config/log4net.unix.config b/cb-tools/SuperWebSocket/Config/log4net.unix.config deleted file mode 100644 index d6f35702..00000000 --- a/cb-tools/SuperWebSocket/Config/log4net.unix.config +++ /dev/null @@ -1,69 +0,0 @@ -ïğż - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/cb-tools/SuperWebSocket/InstallService.bat b/cb-tools/SuperWebSocket/InstallService.bat deleted file mode 100644 index 50530656..00000000 --- a/cb-tools/SuperWebSocket/InstallService.bat +++ /dev/null @@ -1,2 +0,0 @@ -SuperSocket.SocketService.exe -i -pause \ No newline at end of file diff --git a/cb-tools/SuperWebSocket/Newtonsoft.Json.dll b/cb-tools/SuperWebSocket/Newtonsoft.Json.dll deleted file mode 100644 index 67b9d3511ddbd23596535e262c468dc3b3df7385..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 358400 zcm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D}g_pBc#xYtn%{$ujhW-ZJFN0aX4{(IoLl0{;ge Cbs+Zu diff --git a/cb-tools/SuperWebSocket/SuperSocket.Common.dll b/cb-tools/SuperWebSocket/SuperSocket.Common.dll deleted file mode 100644 index cb07bd2690a91d73aacd993d1fed128c9c009085..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 29696 zcmeHwdwf*Ywf{PgIp@qw5;8N%1OkDefJ0u8fCz}l8>74vHBl-I$p9nCoG>#%5YVI| zwmzuV#})fRrL9_P^_Kdox5Y=fTD8?$`_fwM?e*5%_FlcUx7W7n@4MDMXEF)e_V>r{ zkKgC_8=bY+T6^ua*Is+?wIAnXSb4$qWDt>w?*|_cJ&cq;3k3dkFo5i`36GZ1k>K+a zAJ$epKe2slI#=75b+=@by|rD*OvcUEZc5c=`!luaOzo1@ZMD5_cdDthG&IRmy=E!V z3eBL)rygGG*LIxriD4~F)B}#Cxc_kt(pr2E;Y(C5xUTGGh9^dJ90d58BZPKsypl!v z|Dn_)nT5|y(0e{3hwx=5jQkuWDgkf()kNb)=KVFgmdGi}cR-(2L^tJAJM*C5*#>|- zX)Ek5{?rm}Y|7@cUCdTw~+w$f32SyvX{qR#@NMMb2bFR)+n zVcT>H&~s-JU4J%FP`E>2O)b&D5c!eVfPT&o9#}o$nb!FiNAGige*2}Dw;Y(b_0BOn z2Oe(v?Z4iA&1;<(RK0S==8dObw&1(B?K-{jp1o(^J*DfVPi}kq$GNj7HJ!D2&*@v< z`@-fwzwnt+jYpq<_sZ#mY5QlBe%dnYYndW@1OWrxu8If(Mvc!91dIvHINPf^2Tz6e3JYF}O*d#OQjI7Q55>dv>y)_dPJ~#A zmB!G;1M&}@&5Qv#fZil@5ecDF;_wjx>aXYbs)Q{BW6ZS$DIsr%d>V> zN7z;>-6_mDR9RP@I|bOKUZQM3Z9F6*x)G&B0@-0ZKF!KaWkE|Sw(sQ1>O7la*58sh z4|@e-(*tx64MZG?m=$Y{cuUyO6VMc@>TK34>x{-m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jHXXM=OVxu6=)PZ_19h?VdfSKTYZ~>SFW`hgCMPLq? z3oZupz - - - SuperSocket.Common - - - -

- Gets the array. - - - - - Gets the count. - - - - - Gets the offset. - - - - - ArraySegmentList - - - - - - Initializes a new instance of the class. - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - NotSupported - - - - - NotSupported - - - - - NotSupported - - - - - NotSupported - - - - - NotSupported - - - - - Copies to. - - The array. - Index of the array. - - - - NotSupported - - - - - NotSupported - - - - - NotSupported - - - - - Removes the segment at. - - The index. - - - - Adds the segment to the list. - - The array. - The offset. - The length. - - - - Adds the segment to the list. - - The array. - The offset. - The length. - if set to true [to be copied]. - - - - Clears all the segements. - - - - - Read all data in this list to the array data. - - - - - - Read the data in specific range to the array data. - - The start index. - The length. - - - - - Trims the end. - - Size of the trim. - - - - Searches the last segment. - - The state. - - - - - Copies to. - - To. - - - - - Copies to. - - To. - Index of the SRC. - To index. - The length. - - - - - Gets or sets the element at the specified index. - - - The element at the specified index. - - - is not a valid index in the . - - - - The property is set and the is read-only. - - - - - Gets the number of elements contained in the . - - - The number of elements contained in the . - - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - - Gets the segment count. - - - - - ArraySegmentList - - - - - Decodes bytes to string by the specified encoding. - - The encoding. - - - - - Decodes bytes to string by the specified encoding. - - The encoding. - The offset. - The length. - - - - - Decodes data by the mask. - - The mask. - The offset. - The length. - - - - Assembly Util Class - - - - - Creates the instance from type name. - - - The type. - - - - - Creates the instance from type name and parameters. - - - The type. - The parameters. - - - - - Gets the implement types from assembly. - - The type of the base type. - The assembly. - - - - - Gets the implemented objects by interface. - - The type of the base interface. - The assembly. - - - - - Gets the implemented objects by interface. - - The type of the base interface. - The assembly. - Type of the target. - - - - - Clone object in binary format. - - - The target. - - - - - Copies the properties of one object to another object. - - The source. - The target. - - - - Gets the assemblies from string. - - The assembly def. - - - - - Gets the assemblies from strings. - - The assemblies. - - - - - Binary util class - - - - - Search target from source. - - - The source. - The target. - The pos. - The length. - - - - - Searches the mark from source. - - - The source. - The mark. - - - - - Searches the mark from source. - - - The source. - The offset. - The length. - The mark. - - - - - Searches the mark from source. - - - The source. - The offset. - The length. - The mark. - The matched. - - - - - Searches the mark from source. - - - The source. - The offset. - The length. - State of the search. - - - - - Startses the with. - - - The source. - The mark. - - - - - Startses the with. - - - The source. - The offset. - The length. - The mark. - - - - - Endses the with. - - - The source. - The mark. - - - - - Endses the with. - - - The source. - The offset. - The length. - The mark. - - - - - Clones the elements in the specific range. - - - The source. - The offset. - The length. - - - - - This class creates a single large buffer which can be divided up and assigned to SocketAsyncEventArgs objects for use - with each socket I/O operation. This enables bufffers to be easily reused and gaurds against fragmenting heap memory. - - The operations exposed on the BufferManager class are not thread safe. - - - - - Initializes a new instance of the class. - - The total bytes. - Size of the buffer. - - - - Allocates buffer space used by the buffer pool - - - - - Assigns a buffer from the buffer pool to the specified SocketAsyncEventArgs object - - true if the buffer was successfully set, else false - - - - Removes the buffer from a SocketAsyncEventArg object. This frees the buffer back to the - buffer pool - - - - - ConfigurationElementBase - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - if set to true [name required]. - - - - Reads XML from the configuration file. - - The that reads from the configuration file. - true to serialize only the collection key properties; otherwise, false. - The element to read is locked.- or -An attribute of the current node is not recognized.- or -The lock status of the current node cannot be determined. - - - - Gets a value indicating whether an unknown attribute is encountered during deserialization. - - The name of the unrecognized attribute. - The value of the unrecognized attribute. - - true when an unknown attribute is encountered while deserializing; otherwise, false. - - - - - Gets a value indicating whether an unknown element is encountered during deserialization. - - The name of the unknown subelement. - The being used for deserialization. - - true when an unknown element is encountered while deserializing; otherwise, false. - - The element identified by is locked.- or -One or more of the element's attributes is locked.- or - is unrecognized, or the element has an unrecognized attribute.- or -The element has a Boolean attribute with an invalid value.- or -An attempt was made to deserialize a property more than once.- or -An attempt was made to deserialize a property that is not a valid member of the element.- or -The element cannot contain a CDATA or text element. - - - - Gets the name. - - - - - Gets the options. - - - - - Gets the option elements. - - - - - Configuration extension class - - - - - Gets the value from namevalue collection by key. - - The collection. - The key. - - - - - Gets the value from namevalue collection by key. - - The collection. - The key. - The default value. - - - - - Deserializes the specified configuration section. - - The type of the element. - The section. - The reader. - - - - Gets the child config. - - The type of the config. - The child elements. - Name of the child config. - - - - - Gets the config source path. - - The config. - - - - - Extension class for IDictionary - - - - - Gets the value by key. - - - The dictionary. - The key. - - - - - Gets the value by key and default value. - - - The dictionary. - The key. - The default value. - - - - - EventArgs for error and exception - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The exception. - - - - Gets the exception. - - - - - GenericConfigurationElementCollectionBase - - The type of the config element. - The type of the config interface. - - - - When overridden in a derived class, creates a new . - - - A new . - - - - - Gets the element key for a specified configuration element when overridden in a derived class. - - The to return the key for. - - An that acts as the key for the specified . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets or sets a property, attribute, or child element of this configuration element. - - The specified property, attribute, or child element - - - - GenericConfigurationElementCollection - - The type of the config element. - The type of the config interface. - - - - Gets the element key. - - The element. - - - - - This class is designed for detect platform attribute in runtime - - - - - Gets a value indicating whether [support socket IO control by code enum]. - - - true if [support socket IO control by code enum]; otherwise, false. - - - - - Gets a value indicating whether this instance is mono. - - - true if this instance is mono; otherwise, false. - - - - - SearchMarkState - - - - - - Initializes a new instance of the class. - - The mark. - - - - Gets the mark. - - - - - Gets or sets whether matched already. - - - The matched. - - - - - SendingQueue - - - - - Initializes a new instance of the class. - - The global queue. - The offset. - The capacity. - - - - Enqueues the specified item. - - The item. - The track ID. - - - - - Enqueues the specified items. - - The items. - The track ID. - - - - - Stops the enqueue, and then wait all current excueting enqueu threads exit. - - - - - Starts to allow enqueue. - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - - - - Adds an item to the . - - The object to add to the . - - - - - Removes all items from the . - - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - - Copies to. - - The array. - Index of the array. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - - Gets the track ID. - - - The track ID. - - - - - Gets the global queue. - - - The global queue. - - - - - Gets the offset. - - - The offset. - - - - - Gets the capacity. - - - The capacity. - - - - - Gets the number of elements contained in the . - - The number of elements contained in the . - - - - Gets or sets the position. - - - The position. - - - - - Gets or sets the element at the specified index. - - The index. - - - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - SendingQueueSourceCreator - - - - - ISmartPoolSourceCreator - - - - - - Creates the specified size. - - The size. - The pool items. - - - - - Initializes a new instance of the class. - - Size of the sending queue. - - - - Creates the specified size. - - The size. - The pool items. - - - - - The pool information class - - - - - Gets the min size of the pool. - - - The min size of the pool. - - - - - Gets the max size of the pool. - - - The max size of the pool. - - - - - Gets the avialable items count. - - - The avialable items count. - - - - - Gets the total items count, include items in the pool and outside the pool. - - - The total items count. - - - - - The basic interface of smart pool - - - - - - Initializes the specified min pool size. - - The min size of the pool. - The max size of the pool. - The source creator. - - - - - Pushes the specified item into the pool. - - The item. - - - - Tries to get one item from the pool. - - The item. - - - - - ISmartPoolSource - - - - - Gets the count. - - - The count. - - - - - SmartPoolSource - - - - - Initializes a new instance of the class. - - The source. - The items count. - - - - Gets the source. - - - The source. - - - - - Gets the count. - - - The count. - - - - - The smart pool - - - - - - Initializes the specified min and max pool size. - - The min size of the pool. - The max size of the pool. - The source creator. - - - - Pushes the specified item into the pool. - - The item. - - - - Tries to get one item from the pool. - - The item. - - - - - - Gets the size of the min pool. - - - The size of the min pool. - - - - - Gets the size of the max pool. - - - The size of the max pool. - - - - - Gets the avialable items count. - - - The avialable items count. - - - - - Gets the total items count, include items in the pool and outside the pool. - - - The total items count. - - - - - Socket extension class - - - - - Close the socket safely. - - The socket. - - - - Sends the data. - - The client. - The data. - - - - Sends the data. - - The client. - The data. - The offset. - The length. - - - - String extension class - - - String extension - - - - - Convert string to int32. - - The source. - - - - - Convert string to int32. - - The source. - The default value. - - - - - Convert string to long. - - The source. - - - - - Convert string to long. - - The source. - The default value. - - - - - Convert string to short. - - The source. - - - - - Convert string to short. - - The source. - The default value. - - - - - Convert string to decimal. - - The source. - - - - - Convert string to decimal. - - The source. - The default value. - - - - - Convert string to date time. - - The source. - - - - - Convert string to date time. - - The source. - The default value. - - - - - Convert string to boolean. - - The source. - - - - - Convert string tp boolean. - - The source. - if set to true [default value]. - - - - - Tries parse string to enum. - - the enum type - The value. - if set to true [ignore case]. - The enum value. - - - - - Thread pool extension class - - - - - Resets the thread pool. - - The max working threads. - The max completion port threads. - The min working threads. - The min completion port threads. - - - - diff --git a/cb-tools/SuperWebSocket/SuperSocket.Facility.XML b/cb-tools/SuperWebSocket/SuperSocket.Facility.XML deleted file mode 100644 index 77c6fc99..00000000 --- a/cb-tools/SuperWebSocket/SuperSocket.Facility.XML +++ /dev/null @@ -1,467 +0,0 @@ - - - - SuperSocket.Facility - - - - - Flash policy AppServer - - - - - PolicyServer base class - - - - - Initializes a new instance of the class. - - - - - Setups the specified root config. - - The root config. - The config. - - - - - Setups the policy response. - - The policy file data. - - - - - Gets the policy file response. - - The client end point. - - - - - Processes the request. - - The session. - The data. - - - - Gets the policy response. - - - - - Initializes a new instance of the class. - - - - - Setups the policy response. - - The policy file data. - - - - - PolicyReceiveFilter - - - - - FixedSizeReceiveFilter - - The type of the request info. - - - - Null RequestInfo - - - - - Initializes a new instance of the class. - - The size. - - - - Filters the specified session. - - The read buffer. - The offset. - The length. - if set to true [to be copied]. - The rest. - - - - - Filters the buffer after the server receive the enough size of data. - - The buffer. - The offset. - The length. - if set to true [to be copied]. - - - - - Resets this instance. - - - - - Gets the size of the fixed size Receive filter. - - - - - Gets the size of the rest buffer. - - - The size of the rest buffer. - - - - - Gets the next Receive filter. - - - - - Gets the offset delta. - - - - - Gets the filter state. - - - The filter state. - - - - - Initializes a new instance of the class. - - The size. - - - - Filters the buffer after the server receive the enough size of data. - - The buffer. - The offset. - The length. - if set to true [to be copied]. - - - - - Initializes a new instance of the class. - - Size of the fix request. - - - - Creates the filter. - - The app server. - The app session. - The remote end point. - - - - - Gets the size of the fix request. - - - The size of the fix request. - - - - - PolicySession - - - - - Silverlight policy AppServer - - - - - Initializes a new instance of the class. - - - - - Processes the request. - - The session. - The data. - - - - ReceiveFilter for the protocol that each request has bengin and end mark - - The type of the request info. - - - - Null request info - - - - - Initializes a new instance of the class. - - The begin mark. - The end mark. - - - - Filters the specified session. - - The read buffer. - The offset. - The length. - if set to true [to be copied]. - The rest. - - - - - Processes the matched request. - - The read buffer. - The offset. - The length. - - - - - Resets this instance. - - - - - This Receive filter is designed for this kind protocol: - each request has fixed count part which splited by a char(byte) - for instance, request is defined like this "#12122#23343#4545456565#343435446#", - because this request is splited into many parts by 5 '#', we can create a Receive filter by CountSpliterRequestFilter((byte)'#', 5) - - The type of the request info. - - - - Null request info instance - - - - - Initializes a new instance of the class. - - The spliter. - The spliter count. - - - - Filters the specified session. - - The read buffer. - The offset. - The length. - if set to true [to be copied]. - The rest. - - - - - Processes the matched request. - - The read buffer. - The offset. - The length. - - - - - Resets this instance. - - - - - Gets the size of the rest buffer. - - - The size of the rest buffer. - - - - - Gets the next Receive filter. - - - - - Gets the offset delta relative original receiving offset which will be used for next round receiving. - - - - - Gets the filter state. - - - The filter state. - - - - - This Receive filter is designed for this kind protocol: - each request has fixed count part which splited by a char(byte) - for instance, request is defined like this "#12122#23343#4545456565#343435446#", - because this request is splited into many parts by 5 '#', we can create a Receive filter by CountSpliterRequestFilter((byte)'#', 5) - - - - - Initializes a new instance of the class. - - The spliter. - The spliter count. - - - - Initializes a new instance of the class. - - The spliter. - The spliter count. - The encoding. - - - - Initializes a new instance of the class. - - The spliter. - The spliter count. - The encoding. - Index of the key. - - - - Processes the matched request. - - The read buffer. - The offset. - The length. - - - - - ReceiveFilterFactory for CountSpliterReceiveFilter - - The type of the Receive filter. - The type of the request info. - - - - Creates the filter. - - The app server. - The app session. - The remote end point. - - - - - ReceiveFilterFactory for CountSpliterReceiveFilter - - The type of the Receive filter. - - - - receiveFilterFactory for CountSpliterRequestFilter - - - - - Initializes a new instance of the class. - - The spliter. - The count. - - - - Creates the filter. - - The app server. - The app session. - The remote end point. - - - - - FixedHeaderReceiveFilter, - it is the Receive filter base for the protocol which define fixed length header and the header contains the request body length, - you can implement your own Receive filter for this kind protocol easily by inheriting this class - - The type of the request info. - - - - Initializes a new instance of the class. - - Size of the header. - - - - Filters the specified session. - - The read buffer. - The offset. - The length. - if set to true [to be copied]. - The rest. - - - - - Processes the fix size request. - - The buffer. - The offset. - The length. - if set to true [to be copied]. - - - - - Gets the body length from header. - - The header. - The offset. - The length. - - - - - Resolves the request data. - - The header. - The body buffer. - The offset. - The length. - - - - - Resets this instance. - - - - diff --git a/cb-tools/SuperWebSocket/SuperSocket.Facility.dll b/cb-tools/SuperWebSocket/SuperSocket.Facility.dll deleted file mode 100644 index 159a9d98bce46b10ae85dc37587dec48fe8f7d6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15872 zcmeHOd3amZl|OIM(_&kR_GeP zeC>1IdG{>$+;h%7_uiu?Wy87uOd1jCxIg}w=rKI`S|jk&!6?}N6TjuBhrG|tc}!XV z+?jP}8RNP@feuBV}d2`Ht$gW}@|qM*B`a zaCUCApOHGJL@6O!3W~?3`Zwbl!o3qW(PU|>w%trH81S_pH|Sq@o#5Bb&$B518+$q^ zlW;wWQP1MWPS80BRKa0DvdH!tTN= z1gj$HOu7q1v27V&bt;St&tsz=lfJ*b26Lq#tB^NbS z6E!U$@{SX13)yPNktd*U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bJtrffyw){PR4uldBiI>6r#yEq0IpTFbddb$sPTs~$o3PD@HRKQ%Ca>0l*M3fJ~o`86itcRi(f z9VxMM5K)PWKDP1ry4WioJLh#1M#w-n`!H6)e{%oh+rqyi9MicKI@8cPxUb?{*s z?t0wpe+Paqpospg;=p?Jt*L_ zkeNse(LLC(GWob?isH^Cdkh*=7=u4y@b}d`XCYbwKk9JTI4vAmxVDR5o18H@E7-4G ztQq6k{-nA2bpP!6Zi8;NsUMbP3nKPOI{Ci^^4t{n8$Uzi=VyiVX+T^uu(uCcn?NK( gSTV&jJHDR;;UD1dD*|oyZ`LQH&icpo_ZNZx1AH>ObN~PV diff --git a/cb-tools/SuperWebSocket/SuperSocket.Facility.pdb b/cb-tools/SuperWebSocket/SuperSocket.Facility.pdb deleted file mode 100644 index 5193d9703c0adaefe65af1d14a7bdfc528691e89..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 42496 zcmeI53wT{smB-I*!)-$wZ2F=vAT8;OmNZFUDFV%_p@kMoQ=mYAhUBJ=O_Pv>(h9=G z5iJT@MnK`CBT5~M!tfCJ90e_khyyALA~5O)@)%Sc3gS121?KnPkDGIEZ_=AI3ZdEU z%DQLowO?zmz4qGc>~qeF#=5qa_Lhc@yoxy$vu5S3sIJOeSWsA)bMS=9>VPoF{15c| zo`@oX;1r7n{(b;BuAYRjeq{Y_F1+@ zvTKS{qY`NYKl%>`(#?OZhGG4$YxO7<_n%%4w6rS@42*wQoH;P!-#q`+#Saa6Ja=1l zuGp~H*(y70@=&Cj8cOx@5lpgV=qwczK)Z+&R_xgV?`)d3z{=qwi zw_ki?%ek*Vf9>zCzw5{SpECzW5Bh5SzcOptmmWR%`6X`r57r*h&q$4WFl>YhN{?C~MqX&I8{)=CE@{mWqeEFPp*K9c@`1NQ1c3^O? z|M#-5#=mjUukVg6tFBpJHTj1#cTRk;|8wTR>49$KaLgwd49M?)5D*2107HRn;9y`F zFdWDM4go#{$p4oMj0AMUXf!Ye7z>O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lU&xQ+jg;{_)RZ@S^mIFZPb9zoeKhX-*G46iy#spZom>OnN_ z6b_H^q$g9JdxKBEG00QC`lYmE$N^8^@#U;F$jfT{tuQXAH~j0ByzMe^@_Zii=9D>~ zbS?e0dDL~UkMj2;%{*3@E4i8K4(eL!C_h|bO%>MDr4ptcCBl~Hyd4-p56Z9M!f;X$ b{}29Wmp}%~Qpn-+>;7kF^Z(_pcnSP}JXIYh diff --git a/cb-tools/SuperWebSocket/SuperSocket.SocketBase.pdb b/cb-tools/SuperWebSocket/SuperSocket.SocketBase.pdb deleted file mode 100644 index f877f7096dba2fafe166f963fdf7a565e6a29349..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 196096 zcmeFa31C#!{r)`zID!%cSp-E55H`UOc2r~yo3aV0s3?SFfJjJU5)c%1RKyJ}wN$av ziWZgDrKo7FqT-H9TdLG*%db^SE4FIUT5DUX@8>zoojY-mNl4#+DI9q6%)R$}&iCxw zJ?GqU#f24Rm1VQ4vWNE=-mP2qxXB~4`{(B6WgT*4{^SUzp7|fSEE=>|t$>bJD}-J^fFIP2iC^FP|;1@)|Ymv87ddsV;X z#Sid46a(qXzuLKQ{jX~UsXFgN!93vA-Ne9w^xsXy>?gNBpLyEg7Y}~D+49MejT63K z?~dn3oO~44B=UK~F;C98yL8CUi>?^^=+0qVFR!@g zR@Y^W{J!s~pFVNKkZ3`-cYg7w+uyrwKZ(A5KA3ft{#QnyX!Gfv*FW^!xGv}SZV~-- zpO2XRBmi}l{@<>6@40nLn+-Yp)KmXHzGPMV{UrMK`C!&n`VYIK|MW8kE?6V7@4Z=9>7Ud0wtpToXYe;#Z`!c+(UY&}xZg+YJ`w?SmHu6q zJ^$;&#@sZn-F^Lkd2s%m@9rbP-|xLySLwguhVi%D+TxaX-~at@SN)<%qX+lpv$)CPB=;I&nBf;PAy;)c3|JmkYIXyq#`P%x!wyr4XnxDPj zN9;Zl0d?v)piKwf|L$k$|3KBp!-~3n>wzQc-G9j~ zWm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* zE^r(8G*}JRfZqb20c*kS;J3kNK{vPqd=7jbtOIv~yTI>&yTKR07r~dndT- zd;{zN4}m`ie*qo_kAVLV{3X~49tGb7e+71d$G~5MzX6YfC&0JBx4~}kB=`>aTd)T_ z1-=Wu2lj%e!S}%rz&`K{_&f0TU_W>k{1E&Dcn&-degu9D4uBWHKZ2itgWyH*PvD=y zA@CCTDfky~7`zPr75p1`1-uG=2L2r!0k46dgZ}_W!Rz2Z!7sou@CNuL_%HA#cnkbD z_!W2?90$J!zX3rW|ARr`6p#;21qI*(U@#a0P6MZdp+L@4$r+wAfSg4e4n}}8!ALL) zdCV=z6L~uU1089dt!G+)=Fa=Bn)4+643`&5^ zS>*k#a!>(gfSI5YRDp}ZC14h~6kG-_2i2ek%m%ff4%CA=;0iDo%meQR_gkdnGhi*a Q{auo#cY|I2UrEFN50a)k=>Px# diff --git a/cb-tools/SuperWebSocket/SuperSocket.SocketBase.xml b/cb-tools/SuperWebSocket/SuperSocket.SocketBase.xml deleted file mode 100644 index 61d2d077..00000000 --- a/cb-tools/SuperWebSocket/SuperSocket.SocketBase.xml +++ /dev/null @@ -1,4974 +0,0 @@ - - - - SuperSocket.SocketBase - - - - - Async extension class - - - - - Runs the specified task. - - The log provider. - The task. - - - - - Runs the specified task. - - The log provider. - The task. - The task option. - - - - - Runs the specified task. - - The log provider. - The task. - The exception handler. - - - - - Runs the specified task. - - The log provider. - The task. - The task option. - The exception handler. - - - - - Runs the specified task. - - The log provider. - The task. - The state. - - - - - Runs the specified task. - - The log provider. - The task. - The state. - The task option. - - - - - Runs the specified task. - - The log provider. - The task. - The state. - The exception handler. - - - - - Runs the specified task. - - The log provider. - The task. - The state. - The task option. - The exception handler. - - - - - Command Executing Context - - - - - Initializes a new instance of the class. - - The session. - The request info. - The command. - - - - Gets the session. - - - - - Gets the request info. - - - - - Gets the current command. - - - - - Gets or sets a value indicating whether this command executing is cancelled. - - - true if cancel; otherwise, false. - - - - - Command filter attribute - - - - - Called when [command executing]. - - The command context. - - - - Called when [command executed]. - - The command context. - - - - Gets or sets the execution order. - - - The order. - - - - - CommandLoader base class - - - - - Command loader's interface - - - - - Initializes the command loader - - The type of the command. - The root config. - The app server. - - - - - Tries to load commands. - - The commands. - - - - - Occurs when [updated]. - - - - - Occurs when [error]. - - - - - Initializes the command loader - - The type of the command. - The root config. - The app server. - - - - - Tries to load commands. - - The commands. - - - - - Called when [updated]. - - The commands. - - - - Called when [error]. - - The message. - - - - Called when [error]. - - The e. - - - - Occurs when [updated]. - - - - - Occurs when [error]. - - - - - CommandUpdateEventArgs - - - - - - Initializes a new instance of the class. - - The commands. - - - - Gets the commands updated. - - - - - Command assembly config - - - - - The basic interface for command assembly config - - - - - Gets the assembly name. - - - The assembly. - - - - - Gets or sets the assembly name. - - - The assembly. - - - - - Configuration source interface - - - - - The root configuration interface - - - - - Gets the child config. - - The type of the config. - Name of the child config. - - - - - Gets the max working threads. - - - - - Gets the min working threads. - - - - - Gets the max completion port threads. - - - - - Gets the min completion port threads. - - - - - Gets a value indicating whether [disable performance data collector]. - - - true if [disable performance data collector]; otherwise, false. - - - - - Gets the performance data collect interval, in seconds. - - - - - Gets the log factory name. - - - The log factory. - - - - - Gets the isolation mode. - - - - - Gets the option elements. - - - - - Gets the servers definitions. - - - - - Gets the appServer types definition. - - - - - Gets the connection filters definition. - - - - - Gets the log factories definition. - - - - - Gets the Receive filter factories definition. - - - - - Gets the command loaders definition. - - - - - TypeProvider's interface - - - - - Gets the name. - - - - - Gets the type. - - - - - Poco configuration source - - - - - Root configuration model - - - - - Initializes a new instance of the class. - - The root config. - - - - Initializes a new instance of the class. - - - - - Gets the child config. - - The type of the config. - Name of the child config. - - - - - Gets/Sets the max working threads. - - - - - Gets/sets the min working threads. - - - - - Gets/sets the max completion port threads. - - - - - Gets/sets the min completion port threads. - - - - - Gets/sets the performance data collect interval, in seconds. - - - - - Gets/sets a value indicating whether [disable performance data collector]. - - - true if [disable performance data collector]; otherwise, false. - - - - - Gets/sets the isolation mode. - - - - - Gets/sets the log factory name. - - - The log factory. - - - - - Gets/sets the option elements. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The source. - - - - Gets the servers definitions. - - - - - Gets/sets the server types definition. - - - - - Gets/sets the connection filters definition. - - - - - Gets/sets the log factories definition. - - - - - Gets/sets the Receive filter factories definition. - - - - - Gets/sets the command loaders definition. - - - - - Type provider configuration - - - - - Gets the name. - - - - - Gets the type. - - - - - Type provider colletion configuration - - - - - When overridden in a derived class, creates a new . - - - A new . - - - - - Gets the element key for a specified configuration element when overridden in a derived class. - - The to return the key for. - - An that acts as the key for the specified . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - - - - TypeProviderConfig - - - - - Gets the name. - - - - - Gets the type. - - - - - Display attribute - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name. - - - - Gets the name. - - - - - Gets or sets the short name. - - - The short name. - - - - - Gets or sets the format. - - - The format. - - - - - Gets or sets the order. - - - The order. - - - - - Gets or sets a value indicating whether [output in perf log]. - - - true if [output in perf log]; otherwise, false. - - - - - Extensions class for SocketBase project - - - - - Gets the app server instance in the bootstrap by name, ignore case - - The bootstrap. - The name of the appserver instance. - - - - - - The bootstrap start result - - - - - No appserver has been set in the bootstrap, so nothing was started - - - - - All appserver instances were started successfully - - - - - Some appserver instances were started successfully, but some of them failed - - - - - All appserver instances failed to start - - - - - SuperSocket bootstrap - - - - - Initializes the bootstrap with the configuration - - - - - - Initializes the bootstrap with a listen endpoint replacement dictionary - - The listen end point replacement. - - - - - Initializes the bootstrap with the configuration - - The server config resolver. - - - - - Initializes the bootstrap with the configuration - - The log factory. - - - - - Initializes the bootstrap with the configuration - - The server config resolver. - The log factory. - - - - - Starts this bootstrap. - - - - - - Stops this bootstrap. - - - - - Gets all the app servers running in this bootstrap - - - - - Gets the config. - - - - - Gets the startup config file. - - - - - The interface for who provides logger - - - - - Gets the logger assosiated with this object. - - - - - AppServer instance running isolation mode - - - - - No isolation - - - - - Isolation by AppDomain - - - - - An item can be started and stopped - - - - - Setups with the specified root config. - - The bootstrap. - The socket server instance config. - The factories. - - - - - Starts this server instance. - - return true if start successfull, else false - - - - Stops this server instance. - - - - - Collects the server summary. - - The node summary. - - - - - Gets the name. - - - - - Gets the current state of the work item. - - - The state. - - - - - Gets the total session count. - - - - - Gets the state of the server. - - - The state of the server. - - - - - Console Log - - - - - Log interface - - - - - Logs the debug message. - - The message. - - - - Logs the debug message. - - The message. - The exception. - - - - Logs the debug message. - - The format. - The arg0. - - - - Logs the debug message. - - The format. - The args. - - - - Logs the debug message. - - The provider. - The format. - The args. - - - - Logs the debug message. - - The format. - The arg0. - The arg1. - - - - Logs the debug message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the error message. - - The message. - - - - Logs the error message. - - The message. - The exception. - - - - Logs the error message. - - The format. - The arg0. - - - - Logs the error message. - - The format. - The args. - - - - Logs the error message. - - The provider. - The format. - The args. - - - - Logs the error message. - - The format. - The arg0. - The arg1. - - - - Logs the error message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the fatal error message. - - The message. - - - - Logs the fatal error message. - - The message. - The exception. - - - - Logs the fatal error message. - - The format. - The arg0. - - - - Logs the fatal error message. - - The format. - The args. - - - - Logs the fatal error message. - - The provider. - The format. - The args. - - - - Logs the fatal error message. - - The format. - The arg0. - The arg1. - - - - Logs the fatal error message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the info message. - - The message. - - - - Logs the info message. - - The message. - The exception. - - - - Logs the info message. - - The format. - The arg0. - - - - Logs the info message. - - The format. - The args. - - - - Logs the info message. - - The provider. - The format. - The args. - - - - Logs the info message. - - The format. - The arg0. - The arg1. - - - - Logs the info message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the warning message. - - The message. - - - - Logs the warning message. - - The message. - The exception. - - - - Logs the warning message. - - The format. - The arg0. - - - - Logs the warning message. - - The format. - The args. - - - - Logs the warning message. - - The provider. - The format. - The args. - - - - Logs the warning message. - - The format. - The arg0. - The arg1. - - - - Logs the warning message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Gets a value indicating whether this instance is debug enabled. - - - true if this instance is debug enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is error enabled. - - - true if this instance is error enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is fatal enabled. - - - true if this instance is fatal enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is info enabled. - - - true if this instance is info enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is warn enabled. - - - true if this instance is warn enabled; otherwise, false. - - - - - Initializes a new instance of the class. - - The name. - - - - Logs the debug message. - - The message. - - - - Logs the debug message. - - The message. - The exception. - - - - Logs the debug message. - - The format. - The arg0. - - - - Logs the debug message. - - The format. - The args. - - - - Logs the debug message. - - The provider. - The format. - The args. - - - - Logs the debug message. - - The format. - The arg0. - The arg1. - - - - Logs the debug message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the error message. - - The message. - - - - Logs the error message. - - The message. - The exception. - - - - Logs the error message. - - The format. - The arg0. - - - - Logs the error message. - - The format. - The args. - - - - Logs the error message. - - The provider. - The format. - The args. - - - - Logs the error message. - - The format. - The arg0. - The arg1. - - - - Logs the error message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the fatal error message. - - The message. - - - - Logs the fatal error message. - - The message. - The exception. - - - - Logs the fatal error message. - - The format. - The arg0. - - - - Logs the fatal error message. - - The format. - The args. - - - - Logs the fatal error message. - - The provider. - The format. - The args. - - - - Logs the fatal error message. - - The format. - The arg0. - The arg1. - - - - Logs the fatal error message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the info message. - - The message. - - - - Logs the info message. - - The message. - The exception. - - - - Logs the info message. - - The format. - The arg0. - - - - Logs the info message. - - The format. - The args. - - - - Logs the info message. - - The provider. - The format. - The args. - - - - Logs the info message. - - The format. - The arg0. - The arg1. - - - - Logs the info message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the warning message. - - The message. - - - - Logs the warning message. - - The message. - The exception. - - - - Logs the warning message. - - The format. - The arg0. - - - - Logs the warning message. - - The format. - The args. - - - - Logs the warning message. - - The provider. - The format. - The args. - - - - Logs the warning message. - - The format. - The arg0. - The arg1. - - - - Logs the warning message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Gets a value indicating whether this instance is debug enabled. - - - true if this instance is debug enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is error enabled. - - - true if this instance is error enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is fatal enabled. - - - true if this instance is fatal enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is info enabled. - - - true if this instance is info enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is warn enabled. - - - true if this instance is warn enabled; otherwise, false. - - - - - Console log factory - - - - - LogFactory Interface - - - - - Gets the log by name. - - The name. - - - - - Gets the log by name. - - The name. - - - - - Log4NetLog - - - - - Initializes a new instance of the class. - - The log. - - - - Logs the debug message. - - The message. - - - - Logs the debug message. - - The message. - The exception. - - - - Logs the debug message. - - The format. - The arg0. - - - - Logs the debug message. - - The format. - The args. - - - - Logs the debug message. - - The provider. - The format. - The args. - - - - Logs the debug message. - - The format. - The arg0. - The arg1. - - - - Logs the debug message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the error message. - - The message. - - - - Logs the error message. - - The message. - The exception. - - - - Logs the error message. - - The format. - The arg0. - - - - Logs the error message. - - The format. - The args. - - - - Logs the error message. - - The provider. - The format. - The args. - - - - Logs the error message. - - The format. - The arg0. - The arg1. - - - - Logs the error message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the fatal error message. - - The message. - - - - Logs the fatal error message. - - The message. - The exception. - - - - Logs the fatal error message. - - The format. - The arg0. - - - - Logs the fatal error message. - - The format. - The args. - - - - Logs the fatal error message. - - The provider. - The format. - The args. - - - - Logs the fatal error message. - - The format. - The arg0. - The arg1. - - - - Logs the fatal error message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the info message. - - The message. - - - - Logs the info message. - - The message. - The exception. - - - - Logs the info message. - - The format. - The arg0. - - - - Logs the info message. - - The format. - The args. - - - - Logs the info message. - - The provider. - The format. - The args. - - - - Logs the info message. - - The format. - The arg0. - The arg1. - - - - Logs the info message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Logs the warning message. - - The message. - - - - Logs the warning message. - - The message. - The exception. - - - - Logs the warning message. - - The format. - The arg0. - - - - Logs the warning message. - - The format. - The args. - - - - Logs the warning message. - - The provider. - The format. - The args. - - - - Logs the warning message. - - The format. - The arg0. - The arg1. - - - - Logs the warning message. - - The format. - The arg0. - The arg1. - The arg2. - - - - Gets a value indicating whether this instance is debug enabled. - - - true if this instance is debug enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is error enabled. - - - true if this instance is error enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is fatal enabled. - - - true if this instance is fatal enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is info enabled. - - - true if this instance is info enabled; otherwise, false. - - - - - Gets a value indicating whether this instance is warn enabled. - - - true if this instance is warn enabled; otherwise, false. - - - - - Log4NetLogFactory - - - - - LogFactory Base class - - - - - Initializes a new instance of the class. - - The config file. - - - - Gets the log by name. - - The name. - - - - - Gets the config file file path. - - - - Gets a value indicating whether the server instance is running in isolation mode and the multiple server instances share the same logging configuration. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The log4net config. - - - - Gets the log by name. - - The name. - - - - - GlobalPerformanceData class - - - - - Gets or sets the cpu usage. - - - The cpu usage. - - - - - Gets or sets the working set. - - - The working set. - - - - - Gets or sets the total thread count. - - - The total thread count. - - - - - Gets or sets the available working threads. - - - The available working threads. - - - - - Gets or sets the available completion port threads. - - - The available completion port threads. - - - - - Gets or sets the max working threads. - - - The max working threads. - - - - - Gets or sets the max completion port threads. - - - The max completion port threads. - - - - - CommandLine RequestFilter Factory - - - - - Terminator ReceiveFilter Factory - - - - - Receive filter factory interface - - The type of the request info. - - - - Receive filter factory interface - - - - - Creates the Receive filter. - - The app server. - The app session. - The remote end point. - - the new created request filer assosiated with this socketSession - - - - - Initializes a new instance of the class. - - The terminator. - - - - Initializes a new instance of the class. - - The terminator. - The encoding. - - - - Initializes a new instance of the class. - - The terminator. - The encoding. - The line parser. - - - - Creates the Receive filter. - - The app server. - The app session. - The remote end point. - - the new created request filer assosiated with this socketSession - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The encoding. - - - - Initializes a new instance of the class. - - The encoding. - The request info parser. - - - - DefaultreceiveFilterFactory - - The type of the Receive filter. - The type of the request info. - - - - Creates the Receive filter. - - The app server. - The app session. - The remote end point. - - the new created request filer assosiated with this socketSession - - - - - Filter state enum - - - - - Normal state - - - - - Error state - - - - - The interface for a Receive filter to adapt receiving buffer offset - - - - - Gets the offset delta. - - - - - Receive filter interface - - The type of the request info. - - - - Filters received data of the specific session into request info. - - The read buffer. - The offset of the current received data in this read buffer. - The length of the current received data. - if set to true [to be copied]. - The rest, the length of the data which hasn't been parsed. - - - - - Resets this instance to initial state. - - - - - Gets the size of the rest buffer. - - - The size of the rest buffer. - - - - - Gets the next Receive filter. - - - - - Gets the filter state. - - - The filter state. - - - - - Provide the initializing interface for ReceiveFilter - - - - - Initializes the ReceiveFilter with the specified appServer and appSession - - The app server. - The session. - - - - Receive filter base class - - The type of the request info. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The previous Receive filter. - - - - Initializes the specified previous Receive filter. - - The previous Receive filter. - - - - Filters received data of the specific session into request info. - - The read buffer. - The offset of the current received data in this read buffer. - The length of the current received data. - if set to true [to be copied]. - The rest, the length of the data which hasn't been parsed. - - - - - Gets the rest buffer. - - - - - - Adds the array segment. - - The buffer. - The offset. - The length. - if set to true [to be copied]. - - - - Clears the buffer segments. - - - - - Resets this instance to initial state. - - - - - Gets the buffer segments which can help you parse your request info conviniently. - - - - - Gets the size of the rest buffer. - - - The size of the rest buffer. - - - - - Gets or sets the next Receive filter. - - - The next Receive filter. - - - - - Gets the filter state. - - - The state. - - - - - Terminator Receive filter - - The type of the request info. - - - - Null RequestInfo - - - - - Initializes a new instance of the class. - - The terminator. - - - - Filters received data of the specific session into request info. - - The read buffer. - The offset of the current received data in this read buffer. - The length of the current received data. - if set to true [to be copied]. - The rest, the length of the data which hasn't been parsed. - return the parsed TRequestInfo - - - - Resets this instance. - - - - - Resolves the specified data to TRequestInfo. - - The data. - The offset. - The length. - - - - - Gets the session assosiated with the Receive filter. - - - - - TerminatorRequestFilter - - - - - Initializes a new instance of the class. - - The terminator. - The encoding. - - - - Initializes a new instance of the class. - - The terminator. - The encoding. - The request parser. - - - - Resolves the specified data to StringRequestInfo. - - The data. - The offset. - The length. - - - - - Export Factory - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The instance. - - - - Initializes a new instance of the class. - - Name of the type. - - - - Ensures the instance's existance. - - - - - Creates the export type instance. - - - - - - - Gets or sets the type. - - - The type. - - - - - Provider factory infomation - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The key. - The name. - The instance. - - - - Initializes a new instance of the class. - - The key. - The name. - Name of the type. - - - - Initializes a new instance of the class. - - The key. - The name. - The type. - - - - Gets the key. - - - - - Gets or sets the name. - - - The name. - - - - - Gets or sets the export factory. - - - The export factory. - - - - - ProviderKey - - - - - Gets or sets the name. - - - The name. - - - - - Gets or sets the type. - - - The type. - - - - - Gets the service. - - - - - Gets the socket server factory. - - - - - Gets the connection filter. - - - - - Gets the log factory. - - - - - Gets the Receive filter factory. - - - - - Gets the command loader. - - - - - Request handler - - The type of the app session. - The type of the request info. - The session. - The request info. - - - - The listener configuration interface - - - - - Gets the ip of listener - - - - - Gets the port of listener - - - - - Gets the backlog. - - - - - Gets the security option, None/Default/Tls/Ssl/... - - - - - Listener configuration model - - - - - Initializes a new instance of the class. - - - - - Gets the ip of listener - - - - - Gets the port of listener - - - - - Gets the backlog. - - - - - Gets/sets the security option, None/Default/Tls/Ssl/... - - - - - Listener inforamtion - - - - - Gets or sets the listen endpoint. - - - The end point. - - - - - Gets or sets the listen backlog. - - - The back log. - - - - - Gets or sets the security protocol. - - - The security. - - - - - Binary type request information - - - - - RequestInfo basic class - - The type of the request body. - - - - Request information interface - - The type of the request body. - - - - Request information interface - - - - - Gets the key of this request. - - - - - Gets the body of this request. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The key. - The body. - - - - Initializes the specified key. - - The key. - The body. - - - - Gets the key of this request. - - - - - Gets the body. - - - - - Initializes a new instance of the class. - - The key. - The body. - - - - Command base class - - The type of the app session. - The type of the request info. - - - - Command basic interface - - The type of the app session. - The type of the request info. - - - - Command basic interface - - - - - Gets the name. - - - - - Executes the command. - - The session. - The request info. - - - - Executes the command. - - The session. - The request info. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets the name. - - - - - Command update action enum - - - - - Add command - - - - - Remove command - - - - - Update command - - - - - Command update information - - - - - - Gets or sets the update action. - - - The update action. - - - - - Gets or sets the target command. - - - The command. - - - - - Mockup command - - The type of the app session. - The type of the request info. - - - - Initializes a new instance of the class. - - The name. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - Request information interface - - The type of the request header. - The type of the request body. - - - - Gets the header of the request. - - - - - RequestInfo with header - - The type of the request header. - The type of the request body. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The key. - The header. - The body. - - - - Initializes the specified key. - - The key. - The header. - The body. - - - - Gets the header. - - - - - String type request information - - - - - Initializes a new instance of the class. - - The key. - The body. - The parameters. - - - - Gets the first param. - - - - - - Gets the parameters. - - - - - Gets the at the specified index. - - - - - A command loader which loads commands from assembly by reflection - - - - - Initializes the command loader - - The type of the command. - The root config. - The app server. - - - - - Tries to load commands. - - The commands. - - - - - UdpRequestInfo, it is designed for passing in business session ID to udp request info - - - - - Initializes a new instance of the class. - - The key. - The session ID. - - - - Gets the key of this request. - - - - - Gets the session ID. - - - - - Certificate config model class - - - - - Certificate configuration interface - - - - - Gets the file path. - - - - - Gets the password. - - - - - Gets the the store where certificate locates. - - - The name of the store. - - - - - Gets the thumbprint. - - - - - Gets/sets the file path. - - - - - Gets/sets the password. - - - - - Gets/sets the the store where certificate locates. - - - The name of the store. - - - - - Gets/sets the thumbprint. - - - - - Server instance configuation interface - - - - - Gets the child config. - - The type of the config. - Name of the child config. - - - - - Gets the name of the server type this appServer want to use. - - - The name of the server type. - - - - - Gets the type definition of the appserver. - - - The type of the server. - - - - - Gets the Receive filter factory. - - - - - Gets the ip. - - - - - Gets the port. - - - - - Gets the options. - - - - - Gets the option elements. - - - - - Gets a value indicating whether this is disabled. - - - true if disabled; otherwise, false. - - - - - Gets the name. - - - - - Gets the mode. - - - - - Gets the send time out. - - - - - Gets the max connection number. - - - - - Gets the size of the receive buffer. - - - The size of the receive buffer. - - - - - Gets the size of the send buffer. - - - The size of the send buffer. - - - - - Gets a value indicating whether sending is in synchronous mode. - - - true if [sync send]; otherwise, false. - - - - - Gets a value indicating whether log command in log file. - - true if log command; otherwise, false. - - - - Gets a value indicating whether clear idle session. - - true if clear idle session; otherwise, false. - - - - Gets the clear idle session interval, in seconds. - - The clear idle session interval. - - - - Gets the idle session timeout time length, in seconds. - - The idle session time out. - - - - Gets X509Certificate configuration. - - X509Certificate configuration. - - - - Gets the security protocol, X509 certificate. - - - - - Gets the length of the max request. - - - The length of the max request. - - - - - Gets a value indicating whether [disable session snapshot]. - - - true if [disable session snapshot]; otherwise, false. - - - - - Gets the interval to taking snapshot for all live sessions. - - - - - Gets the connection filters used by this server instance. - - - The connection filter's name list, seperated by comma - - - - - Gets the command loader, multiple values should be separated by comma. - - - - - Gets the start keep alive time, in seconds - - - - - Gets the keep alive interval, in seconds. - - - - - Gets the backlog size of socket listening. - - - - - Gets the startup order of the server instance. - - - - - Gets the listeners' configuration. - - - - - Gets the log factory name. - - - - - Gets the size of the sending queue. - - - The size of the sending queue. - - - - - Gets a value indicating whether [log basic session activity like connected and disconnected]. - - - true if [log basic session activity]; otherwise, false. - - - - - Gets a value indicating whether [log all socket exception]. - - - true if [log all socket exception]; otherwise, false. - - - - - Gets the command assemblies configuration. - - - The command assemblies. - - - - - Server configruation model - - - - - Default ReceiveBufferSize - - - - - Default MaxConnectionNumber - - - - - Default sending queue size - - - - - Default MaxRequestLength - - - - - Initializes a new instance of the class. - - The server config. - - - - Initializes a new instance of the class. - - - - - Gets the child config. - - The type of the config. - Name of the child config. - - - - - Gets/sets the name of the server type of this appServer want to use. - - - The name of the server type. - - - - - Gets/sets the type definition of the appserver. - - - The type of the server. - - - - - Gets/sets the Receive filter factory. - - - - - Gets/sets the ip. - - - - - Gets/sets the port. - - - - - Gets/sets the options. - - - - - Gets the option elements. - - - - - Gets/sets a value indicating whether this is disabled. - - - true if disabled; otherwise, false. - - - - - Gets the name. - - - - - Gets/sets the mode. - - - - - Gets/sets the send time out. - - - - - Gets the max connection number. - - - - - Gets the size of the receive buffer. - - - The size of the receive buffer. - - - - - Gets the size of the send buffer. - - - The size of the send buffer. - - - - - Gets a value indicating whether sending is in synchronous mode. - - - true if [sync send]; otherwise, false. - - - - - Gets/sets a value indicating whether log command in log file. - - - true if log command; otherwise, false. - - - - - Gets/sets a value indicating whether clear idle session. - - - true if clear idle session; otherwise, false. - - - - - Gets/sets the clear idle session interval, in seconds. - - - The clear idle session interval. - - - - - Gets/sets the idle session timeout time length, in seconds. - - - The idle session time out. - - - - - Gets/sets X509Certificate configuration. - - - X509Certificate configuration. - - - - - Gets/sets the security protocol, X509 certificate. - - - - - Gets/sets the length of the max request. - - - The length of the max request. - - - - - Gets/sets a value indicating whether [disable session snapshot]. - - - true if [disable session snapshot]; otherwise, false. - - - - - Gets/sets the interval to taking snapshot for all live sessions. - - - - - Gets/sets the connection filters used by this server instance. - - - The connection filter's name list, seperated by comma - - - - - Gets the command loader, multiple values should be separated by comma. - - - - - Gets/sets the start keep alive time, in seconds - - - - - Gets/sets the keep alive interval, in seconds. - - - - - Gets the backlog size of socket listening. - - - - - Gets/sets the startup order of the server instance. - - - - - Gets and sets the listeners' configuration. - - - - - Gets/sets the log factory name. - - - - - Gets/sets the size of the sending queue. - - - The size of the sending queue. - - - - - Gets a value indicating whether [log basic session activity like connected and disconnected]. - - - true if [log basic session activity]; otherwise, false. - - - - - Gets/sets a value indicating whether [log all socket exception]. - - - true if [log all socket exception]; otherwise, false. - - - - - Gets the command assemblies configuration. - - - The command assemblies. - - - - - The interface for AppServer - - - - - Creates the app session. - - The socket session. - - - - - Gets the app session by ID. - - The session ID. - - - - - Resets the session's security protocol. - - The session. - The security protocol. - - - - Gets the started time. - - - The started time. - - - - - Gets or sets the listeners. - - - The listeners. - - - - - Gets the Receive filter factory. - - - - - Gets the server's config. - - - - - Gets the certificate of current server. - - - - - Gets the transfer layer security protocol. - - - - - Gets the log factory. - - - - - The raw data processor - - The type of the app session. - - - - Gets or sets the raw binary data received event handler. - TAppSession: session - byte[]: receive buffer - int: receive buffer offset - int: receive lenght - bool: whether process the received data further - - - - - The interface for AppServer - - The type of the app session. - - - - Gets the matched sessions from sessions snapshot. - - The prediction critera. - - - - - Gets all sessions in sessions snapshot. - - - - - - Gets/sets the new session connected event handler. - - - - - Gets/sets the session closed event handler. - - - - - The interface for AppServer - - The type of the app session. - The type of the request info. - - - - Occurs when [request comming]. - - - - - The interface for handler of session request - - The type of the request info. - - - - Executes the command. - - The session. - The request info. - - - - SocketServer Accessor interface - - - - - Gets the socket server. - - - The socket server. - - - - - The basic interface for appSession - - - - - The basic session interface - - - - - Gets the session ID. - - - - - Gets the remote endpoint. - - - - - Closes this session. - - - - - Closes the session by the specified reason. - - The close reason. - - - - Processes the request. - - The read buffer. - The offset. - The length. - if set to true [to be copied]. - return offset delta of next receiving buffer - - - - Starts the session. - - - - - Gets the app server. - - - - - Gets the socket session of the AppSession. - - - - - Gets the items. - - - - - Gets the config of the server. - - - - - Gets the local listening endpoint. - - - - - Gets or sets the last active time of the session. - - - The last active time. - - - - - Gets the start time of the session. - - - - - Gets a value indicating whether this is connected. - - - true if connected; otherwise, false. - - - - - Gets or sets the charset which is used for transfering text message. - - The charset. - - - - Gets or sets the previous command. - - - The prev command. - - - - - Gets or sets the current executing command. - - - The current command. - - - - - Gets the logger assosiated with this session. - - - - - The interface for appSession - - The type of the app session. - The type of the request info. - - - - Initializes the specified session. - - The server. - The socket session. - - - - The basic interface of connection filter - - - - - Initializes the connection filter - - The name. - The app server. - - - - - Whether allows the connect according the remote endpoint - - The remote address. - - - - - Gets the name of the filter. - - - - - It is the basic interface of SocketServer, - SocketServer is the abstract server who really listen the comming sockets directly. - - - - - Starts this instance. - - - - - - Resets the session's security protocol. - - The session. - The security protocol. - - - - Stops this instance. - - - - - Gets a value indicating whether this instance is running. - - - true if this instance is running; otherwise, false. - - - - - Gets the information of the sending queue pool. - - - The sending queue pool. - - - - - The interface for socket server factory - - - - - Creates the socket server instance. - - The type of the request info. - The app server. - The listeners. - The config. - - - - - CloseReason enum - - - - - The socket is closed for unknown reason - - - - - Close for server shutdown - - - - - The client close the socket - - - - - The server side close the socket - - - - - Application error - - - - - The socket is closed for a socket error - - - - - The socket is closed by server for timeout - - - - - Protocol error - - - - - SuperSocket internal error - - - - - The interface for socket session - - - - - Initializes the specified app session. - - The app session. - - - - Starts this instance. - - - - - Closes the socket session for the specified reason. - - The reason. - - - - Tries to send array segment. - - The segments. - - - - Tries to send array segment. - - The segment. - - - - Applies the secure protocol. - - - - - Gets the client socket. - - - - - Gets the local listening endpoint. - - - - - Gets or sets the secure protocol. - - - The secure protocol. - - - - - Occurs when [closed]. - - - - - Gets the app session assosiated with this socket session. - - - - - Gets the original receive buffer offset. - - - The original receive buffer offset. - - - - - Logger extension class - - - - - Logs the error - - The logger. - The session. - The title. - The e. - - - - Logs the error - - The logger. - The session. - The message. - - - - Logs the information - - The logger. - The session. - The message. - - - - Logs the debug message - - The logger. - The session. - The message. - - - - Logs the performance message - - The app server. - The message. - - - - Basic request info parser, which parse request info by separating - - - - - The interface for request info parser - - - - - Parses the request info from the source string. - - The source. - - - - - The default singlegton instance - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The spliter between command name and command parameters. - The parameter spliter. - - - - Parses the request info. - - The source. - - - - - Server's state enum class - - - - - Not initialized - - - - - In initializing - - - - - Has been initialized, but not started - - - - - In starting - - - - - In running - - - - - In stopping - - - - - Server State - - - - - Gets or sets the name. - - - The name. - - - - - Gets or sets the collected time. - - - The collected time. - - - - - Gets or sets the started time. - - - The started time. - - - - - Gets or sets a value indicating whether this instance is running. - - - true if this instance is running; otherwise, false. - - - - - Gets or sets the total count of the connections. - - - The total count of the connections. - - - - - Gets or sets the maximum allowed connection number. - - - The max connection number. - - - - - Gets or sets the total handled requests count. - - - The total handled requests count. - - - - - Gets or sets the request handling speed, per second. - - - The request handling speed. - - - - - Gets or sets the listeners. - - - The listeners. - - - - - Gets or sets the avialable sending queue items. - - - The avialable sending queue items. - - - - - Gets or sets the total sending queue items. - - - The total sending queue items. - - - - - Used for session level event handler - - the type of the target session - the target session - - - - Used for session level event handler - - the type of the target session - the target session - the target session - the event parameter - - - - Socket server running mode - - - - - Tcp mode - - - - - Udp mode - - - - - AppServer class - - - - - AppServer class - - The type of the app session. - - - - AppServer basic class - - The type of the app session. - The type of the request info. - - - - AppServer base class - - The type of the app session. - The type of the request info. - - - - Null appSession instance - - - - - the current state's code - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The Receive filter factory. - - - - Gets the filter attributes. - - The type. - - - - - Setups the command into command dictionary - - The discovered commands. - - - - - Setups the specified root config. - - The root config. - The config. - - - - - Setups with the specified port. - - The port. - return setup result - - - - Setups with the specified config. - - The server config. - The socket server factory. - The receive filter factory. - The log factory. - The connection filters. - The command loaders. - - - - - Setups the specified root config, this method used for programming setup - - The root config. - The server config. - The socket server factory. - The Receive filter factory. - The log factory. - The connection filters. - The command loaders. - - - - - Setups with the specified ip and port. - - The ip. - The port. - The socket server factory. - The Receive filter factory. - The log factory. - The connection filters. - The command loaders. - return setup result - - - - Setups the specified root config. - - The bootstrap. - The socket server instance config. - The factories. - - - - - Creates the logger for the AppServer. - - Name of the logger. - - - - - Setups the security option of socket communications. - - The config of the server instance. - - - - - Gets the certificate from server configuguration. - - The certificate config. - - - - - Setups the socket server.instance - - - - - - Setups the listeners base on server configuration - - The config. - - - - - Starts this server instance. - - - return true if start successfull, else false - - - - - Called when [startup]. - - - - - Called when [stopped]. - - - - - Stops this server instance. - - - - - Gets command by command name. - - Name of the command. - - - - - Called when [raw data received]. - - The session. - The buffer. - The offset. - The length. - - - - Executes the command. - - The session. - The request info. - - - - Executes the command for the session. - - The session. - The request info. - - - - Executes the command. - - The session. - The request info. - - - - Executes the connection filters. - - The remote address. - - - - - Creates the app session. - - The socket session. - - - - - Registers the session into session container. - - The session ID. - The app session. - - - - - Called when [new session connected]. - - The session. - - - - Resets the session's security protocol. - - The session. - The security protocol. - - - - Called when [socket session closed]. - - The socket session. - The reason. - - - - Called when [session closed]. - - The appSession. - The reason. - - - - Gets the app session by ID. - - The session ID. - - - - - Gets the app session by ID. - - - - - - - Gets the matched sessions from sessions snapshot. - - The prediction critera. - - - - Gets all sessions in sessions snapshot. - - - - - Updates the summary of the server. - - The server summary. - - - - Called when [summary data collected], you can override this method to get collected performance data - - The node summary. - The server summary. - - - - Releases unmanaged and - optionally - managed resources - - - - - Gets the server's config. - - - - - Gets the current state of the work item. - - - The state. - - - - - Gets the certificate of current server. - - - - - Gets or sets the receive filter factory. - - - The receive filter factory. - - - - - Gets the Receive filter factory. - - - - - Gets the basic transfer layer security protocol. - - - - - Gets the root config. - - - - - Gets the logger assosiated with this object. - - - - - Gets the bootstrap of this appServer instance. - - - - - Gets the total handled requests number. - - - - - Gets or sets the listeners inforamtion. - - - The listeners. - - - - - Gets the started time of this server instance. - - - The started time. - - - - - Gets or sets the log factory. - - - The log factory. - - - - - Gets the name of the server instance. - - - - - Gets the socket server. - - - The socket server. - - - - - Gets or sets the raw binary data received event handler. - TAppSession: session - byte[]: receive buffer - int: receive buffer offset - int: receive lenght - bool: whether process the received data further - - - - - Occurs when a full request item received. - - - - - Gets or sets the server's connection filter - - - The server's connection filters - - - - - The action which will be executed after a new session connect - - - - - Gets/sets the session closed event handler. - - - - - Gets the total session count. - - - - - Gets the type of the server state. The type must inherit from ServerState - - - The type of the server state. - - - - - Gets the state of the server. - - - The state data of the server. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The protocol. - - - - Starts this AppServer instance. - - - - - - Registers the session into the session container. - - The session ID. - The app session. - - - - - Gets the app session by ID. - - The session ID. - - - - - Called when [socket session closed]. - - The session. - The reason. - - - - Clears the idle session. - - The state. - - - - Gets the matched sessions from sessions snapshot. - - The prediction critera. - - - - - Gets all sessions in sessions snapshot. - - - - - - Stops this instance. - - - - - Gets the total session count. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The Receive filter factory. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The Receive filter factory. - - - - AppSession base class - - The type of the app session. - The type of the request info. - - - - Initializes a new instance of the class. - - - - - Initializes the specified app session by AppServer and SocketSession. - - The app server. - The socket session. - - - - Starts the session. - - - - - Called when [init]. - - - - - Called when [session started]. - - - - - Called when [session closed]. - - The reason. - - - - Handles the exceptional error, it only handles application error. - - The exception. - - - - Handles the unknown request. - - The request info. - - - - Closes the session by the specified reason. - - The close reason. - - - - Closes this session. - - - - - Try to send the message to client. - - The message which will be sent. - Indicate whether the message was pushed into the sending queue - - - - Sends the message to client. - - The message which will be sent. - - - - Sends the response. - - The message which will be sent. - Indicate whether the message was pushed into the sending queue - - - - Try to send the data to client. - - The data which will be sent. - The offset. - The length. - Indicate whether the message was pushed into the sending queue - - - - Sends the data to client. - - The data which will be sent. - The offset. - The length. - - - - Sends the response. - - The data which will be sent. - The offset. - The length. - - - - Try to send the data segment to client. - - The segment which will be sent. - Indicate whether the message was pushed into the sending queue - - - - Sends the data segment to client. - - The segment which will be sent. - - - - Sends the response. - - The segment which will be sent. - Indicate whether the message was pushed into the sending queue; if it returns false, the sending queue may be full or the socket is not connected - - - - Try to send the data segments to clinet. - - The segments. - Indicate whether the message was pushed into the sending queue; if it returns false, the sending queue may be full or the socket is not connected - - - - Sends the data segments to clinet. - - The segments. - - - - Sends the response. - - The segments. - Indicate whether the message was pushed into the sending queue - - - - Sends the response. - - The message which will be sent. - The parameter values. - - - - Sends the response. - - The message which will be sent. - The parameter values. - Indicate whether the message was pushed into the sending queue - - - - Sets the next Receive filter which will be used when next data block received - - The next receive filter. - - - - Filters the request. - - The read buffer. - The offset. - The length. - if set to true [to be copied]. - The rest, the size of the data which has not been processed - return offset delta of next receiving buffer. - - - - - Processes the request data. - - The read buffer. - The offset. - The length. - if set to true [to be copied]. - - return offset delta of next receiving buffer - - - - - Gets the app server instance assosiated with the session. - - - - - Gets the app server instance assosiated with the session. - - - - - Gets or sets the charset which is used for transfering text message. - - - The charset. - - - - - Gets the items dictionary, only support 10 items maximum - - - - - Gets a value indicating whether this is connected. - - - true if connected; otherwise, false. - - - - - Gets or sets the previous command. - - - The prev command. - - - - - Gets or sets the current executing command. - - - The current command. - - - - - Gets or sets the secure protocol of transportation layer. - - - The secure protocol. - - - - - Gets the local listening endpoint. - - - - - Gets the remote endpoint of client. - - - - - Gets the logger. - - - - - Gets or sets the last active time of the session. - - - The last active time. - - - - - Gets the start time of the session. - - - - - Gets the session ID. - - - - - Gets the socket session of the AppSession. - - - - - Gets the config of the server. - - - - - AppServer basic class for whose request infoe type is StringRequestInfo - - The type of the app session. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - if set to true [append new line for response]. - - - - Handles the unknown request. - - The request info. - - - - Processes the sending message. - - The raw message. - - - - - Sends the specified message. - - The message. - - - - - Sends the response. - - The message. - Indicate whether the message was pushed into the sending queue - - - - Sends the response. - - The message. - The param values. - Indicate whether the message was pushed into the sending queue - - - - Sends the response. - - The message. - The param values. - Indicate whether the message was pushed into the sending queue - - - - AppServer basic class for whose request infoe type is StringRequestInfo - - - - - A command type for whose request info type is StringRequestInfo - - The type of the app session. - - - - A command type for whose request info type is StringRequestInfo - - - - diff --git a/cb-tools/SuperWebSocket/SuperSocket.SocketEngine.XML b/cb-tools/SuperWebSocket/SuperSocket.SocketEngine.XML deleted file mode 100644 index 95df68de..00000000 --- a/cb-tools/SuperWebSocket/SuperSocket.SocketEngine.XML +++ /dev/null @@ -1,1045 +0,0 @@ - - - - SuperSocket.SocketEngine - - - - - AppDomainAppServer - - - - - Initializes a new instance of the class. - - Name of the service type. - - - - Initializes a new instance of the class. - - Type of the service. - - - - Setups the specified root config. - - The bootstrap. - The socket server instance config. - The factories. - - - - - Starts this server instance. - - - return true if start successfull, else false - - - - - Stops this server instance. - - - - - Gets the name of the server instance. - - - - - Gets the current state of the work item. - - - The state. - - - - - Gets the total session count. - - - - - Gets the state data of the server. - - - The state of the server. - - - - - AppDomainBootstrap - - - - - Initializes a new instance of the class. - - - - - Initializes the bootstrap with the configuration - - - - - - Initializes the bootstrap with the configuration and config resolver. - - The server config resolver. - - - - - Initializes the bootstrap with the configuration and config resolver. - - The log factory. - - - - - Initializes the bootstrap with a listen endpoint replacement dictionary - - The listen end point replacement. - - - - - Initializes the bootstrap with the configuration - - The server config resolver. - The log factory. - - - - - Starts this bootstrap. - - - - - - Stops this bootstrap. - - - - - Gets all the app servers running in this bootstrap - - - - - Gets the config. - - - - - Gets the startup config file. - - - - - Validates the type of the provider, needn't validate in default mode, because it will be validate later when initializing. - - Name of the type. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - SuperSocket default bootstrap - - - - - Indicates whether the bootstrap is initialized - - - - - Global configuration - - - - - Global log - - - - - Initializes a new instance of the class. - - The app servers. - - - - Initializes a new instance of the class. - - The root config. - The app servers. - - - - Initializes a new instance of the class. - - The root config. - The app servers. - The log factory. - - - - Initializes a new instance of the class. - - The config. - - - - Initializes a new instance of the class. - - The config. - The startup config file. - - - - Creates the work item instance. - - Name of the service type. - - - - - Gets the work item factory info loader. - - The config. - The log factory. - - - - - Initializes the bootstrap with a listen endpoint replacement dictionary - - The listen end point replacement. - - - - - Initializes the bootstrap with the configuration, config resolver and log factory. - - The server config resolver. - The log factory. - - - - - Initializes the bootstrap with the configuration and config resolver. - - The server config resolver. - - - - - Initializes the bootstrap with the configuration - - The log factory. - - - - - Initializes the bootstrap with the configuration - - - - - - Starts this bootstrap. - - - - - - Stops this bootstrap. - - - - - Gets the log factory. - - - - - Gets all the app servers running in this bootstrap - - - - - Gets the config. - - - - - Gets the startup config file. - - - - - AssemblyImport, used for importing assembly to the current AppDomain - - - - - Initializes a new instance of the class. - - - - - Bootstrap Factory - - - - - Creates the bootstrap. - - The config. - - - - - Creates the bootstrap from app configuration's socketServer section. - - - - - - Creates the bootstrap. - - Name of the config section. - - - - - Creates the bootstrap from configuration file. - - The configuration file. - - - - - Command assembly configuration element - - - - - Gets the assembly name. - - - The assembly. - - - - - Command assembly configuation collection - - - - - Socket Session, all application session should base on this class - - - - - Logs the error, skip the ignored exception - - The exception. - The caller. - The caller file path. - The caller line number. - - - - Logs the error, skip the ignored exception - - The message. - The exception. - The caller. - The caller file path. - The caller line number. - - - - Logs the socket error, skip the ignored error - - The socket error code. - The caller. - The caller file path. - The caller line number. - - - - Starts this session. - - - - - Says the welcome information when a client connectted. - - - - - Called when [close]. - - - - - Tries to send array segment. - - The segments. - - - - - Tries to send array segment. - - The segment. - - - - - Sends in async mode. - - The queue. - - - - Sends in sync mode. - - The queue. - - - - Gets or sets the session ID. - - The session ID. - - - - Gets or sets the config. - - - The config. - - - - - Occurs when [closed]. - - - - - Gets or sets the client. - - The client. - - - - Gets the local end point. - - The local end point. - - - - Gets the remote end point. - - The remote end point. - - - - Gets or sets the secure protocol. - - The secure protocol. - - - - Initializes a new instance of the class. - - Name of the service type. - - - - Setups the specified root config. - - The bootstrap. - The socket server instance config. - The providers. - - - - - Starts this server instance. - - - return true if start successfull, else false - - - - - Stops this server instance. - - - - - Gets the name of the server instance. - - - - - Gets the current state of the work item. - - - The state. - - - - - Gets the total session count. - - - - - The interface for socket listener - - - - - Starts to listen - - The server config. - - - - - Stops listening - - - - - Gets the info of listener - - - - - Gets the end point the listener is working on - - - - - Occurs when new client accepted. - - - - - Occurs when error got. - - - - - Occurs when [stopped]. - - - - - Starts to listen - - The server config. - - - - - Occurs when [stopped]. - - - - - Tcp socket listener in async mode - - - - - Starts to listen - - The server config. - - - - - Gets the sending queue manager. - - - The sending queue manager. - - - - - Starts this session communication. - - - - - Certificate configuration - - - - - Gets the certificate file path. - - - - - Gets the password. - - - - - Gets the the store where certificate locates. - - - The name of the store. - - - - - Gets the thumbprint. - - - - - Listener configuration - - - - - Gets the ip of listener - - - - - Gets the port of listener - - - - - Gets the backlog. - - - - - Gets the security option, None/Default/Tls/Ssl/... - - - - - Listener configuration collection - - - - - Server configuration - - - - - Gets the child config. - - The type of the config. - Name of the child config. - - - - - Gets a value indicating whether an unknown attribute is encountered during deserialization. - To keep compatible with old configuration - - The name of the unrecognized attribute. - The value of the unrecognized attribute. - - true when an unknown attribute is encountered while deserializing; otherwise, false. - - - - - Gets the name of the server type this appServer want to use. - - - The name of the server type. - - - - - Gets the type definition of the appserver. - - - The type of the server. - - - - - Gets the Receive filter factory. - - - - - Gets the ip. - - - - - Gets the port. - - - - - Gets the mode. - - - - - Gets a value indicating whether this is disabled. - - - true if disabled; otherwise, false. - - - - - Gets the send time out. - - - - - Gets the max connection number. - - - - - Gets the size of the receive buffer. - - - The size of the receive buffer. - - - - - Gets the size of the send buffer. - - - The size of the send buffer. - - - - - Gets a value indicating whether sending is in synchronous mode. - - - true if [sync send]; otherwise, false. - - - - - Gets a value indicating whether log command in log file. - - true if log command; otherwise, false. - - - - Gets a value indicating whether [log basic session activity like connected and disconnected]. - - - true if [log basic session activity]; otherwise, false. - - - - - Gets a value indicating whether [log all socket exception]. - - - true if [log all socket exception]; otherwise, false. - - - - - Gets a value indicating whether clear idle session. - - true if clear idle session; otherwise, false. - - - - Gets the clear idle session interval, in seconds. - - The clear idle session interval. - - - - Gets the idle session timeout time length, in seconds. - - The idle session time out. - - - - Gets the certificate config. - - The certificate config. - - - - Gets X509Certificate configuration. - - - X509Certificate configuration. - - - - - Gets the security protocol, X509 certificate. - - - - - Gets the max allowed length of request. - - - The max allowed length of request. - - - - - Gets a value indicating whether [disable session snapshot] - - - - - Gets the interval to taking snapshot for all live sessions. - - - - - Gets the connection filters used by this server instance. - - - The connection filters's name list, seperated by comma - - - - - Gets the command loader, multiple values should be separated by comma. - - - - - Gets the start keep alive time, in seconds - - - - - Gets the keep alive interval, in seconds. - - - - - Gets the backlog size of socket listening. - - - - - Gets the startup order of the server instance. - - - - - Gets/sets the size of the sending queue. - - - The size of the sending queue. - - - - - Gets the logfactory name of the server instance. - - - - - Gets the listeners' configuration. - - - - - Gets the listeners' configuration. - - - - - Gets the command assemblies configuration. - - - The command assemblies. - - - - - Server configuration collection - - - - - SuperSocket's root configuration node - - - - - Gets a value indicating whether an unknown element is encountered during deserialization. - To keep compatible with old configuration - - The name of the unknown subelement. - The being used for deserialization. - - true when an unknown element is encountered while deserializing; otherwise, false. - - The element identified by is locked.- or -One or more of the element's attributes is locked.- or - is unrecognized, or the element has an unrecognized attribute.- or -The element has a Boolean attribute with an invalid value.- or -An attempt was made to deserialize a property more than once.- or -An attempt was made to deserialize a property that is not a valid member of the element.- or -The element cannot contain a CDATA or text element. - - - - Gets the child config. - - The type of the config. - Name of the child config. - - - - - Gets all the server configurations - - - - - Gets the service configurations - - - - - Gets all the connection filter configurations. - - - - - Gets the defined log factory types. - - - - - Gets the logfactory name of the bootstrap. - - - - - Gets the command loaders definition. - - - - - Gets the max working threads. - - - - - Gets the min working threads. - - - - - Gets the max completion port threads. - - - - - Gets the min completion port threads. - - - - - Gets the performance data collect interval, in seconds. - - - - - Gets a value indicating whether [disable performance data collector]. - - - true if [disable performance data collector]; otherwise, false. - - - - - Gets the isolation mode. - - - - - Gets the logfactory name of the bootstrap. - - - - - Gets the option elements. - - - - - Default socket server factory - - - - - Creates the socket server. - - The type of the request info. - The app server. - The listeners. - The config. - - - - - Starts to listen - - The server config. - - - - - Initializes a new instance of the class. - - The app server. - The listeners. - - - - Called when [new client accepted]. - - The listener. - The client. - The state. - - - - Updates the remote end point of the client. - - The remote end point. - - - diff --git a/cb-tools/SuperWebSocket/SuperSocket.SocketEngine.dll b/cb-tools/SuperWebSocket/SuperSocket.SocketEngine.dll deleted file mode 100644 index ded732da201bcbbdffe8ca6870143a58bf92ff81..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 71680 zcmb@v34D}A@;_Y9^UOSRCo?%F2_Yom9CDF_Gu+`cs0bnoh(g4GLEwRzM1>F}OGFSw zQFIkAaK-z=bzMAGK@r6h&s7&AtjaE)i`VKdi~ny`KQkE!?*2aS=Z&VGs_N?M>gwv_ z>Fy_-I^!BLh{%E8Uw$Fljwk<&6!_o4N+hS`Kbb<0d0s2ruATB);Tady#|jolt$ESf zg#~kJ7cH_H3eKx5h&C=Ns9#ht=CmmV3$63($^rpzcU$$Ou|%h62CeLU=j3>4`$;eK zX+9{|h}??1z7%)?@R4{D1qIiY-OMl<@Xt!5gJ1fhhI-Auj79nX_NPrU3qM1l_cTVJ zx161D{LgHS{NOoCH0peO+JB=95~hok8}vy@@?{Nmmo$Lh7=XPL*|5cGF!4K7Mq-MbFF(beXj8)=zzVHZ*1JnVCQMylwZ~Rla`R z^_M;H$@A5ZR-OCRXW#zw$E@YPgX<4ZoId5Oqec5qy)L6-`5D@QZtF&k+VWxjZBM@Y z{gn^pc<(oFy8ix4{(0!B3D-w&KHI!x+Y1FRpHuO9`8uO*qqSB`-#BjS4eK9#aO(%l z2kVh;L|)x!MpQeBCdNq%0q0e`O1;U6Gz*dCEjkyHXm*G0XlADFY(^wGvWjxcz4R(v zga1R39+33z4Z%Z^otEh5=vJ*2lK0Buy0_84k9dA(dBZN?agWUpU=t^DCY;0#ZdGv#2_$6R$@D z@-O^MXdum3uJcoV>}(^Ia@N*{N^otZz&5vC(gD$tld?FE(LoX*2&-|h*OdY?f|MBhm5yq>5%H1D^Mk`*FY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65bHh(6*wzRi3pt!3s>IadKK%PJ}1H9Xgi99e~8Pl&82(u*hCTCn-8Im?-l}@>k8H zM|KhlO&{xDMO&rM;GLiqSLuU<4Xv&1C!^JSrJRg*lN;A+UxS^rK53agCCa1jnN>@h zPqYOtZE5MC?`UW}IX%ATswq6UdxDkRs840bSv9jU&u)Z`nj;pFM17J@fO{gHON5P7K#m%#38SaWs$(yAcG-&FjxV<>vRb zY}&}?;Q4Ik4252f&?xAi13Ba%8-TKzCx0Uv{WTjur$g5uKMdLj<~h)zY#zxWldb4W zS`DNtH)7>LvE2M_f`1zH7s!`FZvk=u;c3EUgYFa}mm9BF!C-0y? z2UnM8x}Sh2->Mu=85YBrZ})Acd2OPd+)ms}Xg?!q+Xs=W=5Kjcb`NcC9ymnX=peow zw22AuU!SSlw^Nas2IPFmbntO-DInQsH1sTRHW&%c0q27AKq-*@;}PI|An!~Z3oZZ` zf^lFxxCmSfCV+`x61W6N8Own*%*mhfCS8?u7t-|&2hvqYcOzY&bTiV0Nw*_i zNhufwMgyuWoW&mty#QPYq?_gTTsYUlEvMjbxLx#d!0nrGUY^?p;f(typw*xT%mTAP zEvN(a;Bqhr%mw1hp9J%O?6-dkTmcq_92F+j;m5b z{{uV*9tVF4z6*AP?}6`wKLbyIC&3TEpMyQ%DexEIhhQ(*2mTT~4fca)z+Zv?2@Zf~ z!T$n30?&cx!H>aTgBQSy;D3X^0SCcL;3wdx;1GBj{4Mx9@CtYp{2%Z$a2UJ>{xA4@ z@H%({{6Fw>@FsW*`~&y}cpDr6{|NpGyaRp-{u%rWcn`b_{uTTR90l)#UxN=oRK)+F z7m$0meL!E(4}1(1gZ|(Ya4Hx8PiJ{6<>f{{wPU8e#wd diff --git a/cb-tools/SuperWebSocket/SuperSocket.SocketService.exe b/cb-tools/SuperWebSocket/SuperSocket.SocketService.exe deleted file mode 100644 index b3a7c7d767580ddaa3786a61a5c874e6eb80bac8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11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S9~JIysp3TZln wHd)o1rs=-AY03#;SlyJ35D<>`U#>5#2T*wV|A|ayACzBMMgOAM=i!0>1!b*aMgRZ+ diff --git a/cb-tools/SuperWebSocket/SuperSocket.SocketService.exe.config b/cb-tools/SuperWebSocket/SuperSocket.SocketService.exe.config deleted file mode 100644 index 4ce9e122..00000000 --- a/cb-tools/SuperWebSocket/SuperSocket.SocketService.exe.config +++ /dev/null @@ -1,24 +0,0 @@ - - - -

- - - - - - - - - - - - - - - - - - - - diff --git a/cb-tools/SuperWebSocket/SuperSocket.SocketService.pdb b/cb-tools/SuperWebSocket/SuperSocket.SocketService.pdb deleted file mode 100644 index 30066049a99675f1971a7cb3bcfdbb2dd7ac9a19..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24064 zcmeI44Um=9dB@LP*3B-k$|4{l>SY1>UUs*DU??o?f)e@C1vNqjmfgFs!|uJCdoLnZ z+l$!LC{1ue6K!?Ud^9yllXe=LYNJ!e8k0DQrVTY|I%(1jwbp6maQEik;>KIXZGm>mP-7zbkL67$YG z<>08CLL+oOTcA|`Paf(2^SR55+IFVd|-QTeoyhjYgQrRKjpVs!miSS{*{=T0j}YTBO#M*6=$%M6eBle=zM z`RseXS97G*9NYAnvQIs;=K6>JxpWijVJ@Mz?ef#O76NZQN&iz&n zRsS#8e`MSJU(6of)_KX1{~G&+C(eD#44)S0B8S&}W)!S*{{?Ub{2sUxu7XFyW8krH zHGC1Qy?+gSAv{9owgqlh$3p>KXyo^Nx4_%4z5SZz|3*#zj%&7GpGc<fPSDuQ!oyO||b$WVheeP`7xydu~mnZ|iDL6o=L&GugK8?nJt-C6Vdco#dfCW0mf; zO7{n)87a*~l)C4PS6US6$}8=NC>^SbQa@A;N%fqnL7Feo-C3~O8C3=i1rwb~9X6*^ zyVGqw>Z(DTqPHmT;M%^Stt;t=QPFrAbR~LF2Cr#$kR(Pclak8MZGn9O~5-n8xcmX;E2OGsyn; zz5nuK$*T2|Ra#V5)()~yTx4#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nGnuvx zysXyfGbWZG3CBf9~_iDi>#Yp>wJM)`b8HpG2BzAgs;;GoSzmr z-M{}enz6l*OZUC&lAS5DFxl3V$e4whbo;_RiMEbJdRI4p!{s76ySfvZg@gXvos9h> zF#jE$zxT%fM*ob*mN&HO`E!A@(%ScLuFghT*MaTS9 zSK-iJ0`fGYVXlwNL0EF43*hg=O4D@_H%w**@_b#Ox9s+<+usuA?T4k2e^JgG;#UfK zcM^v`!d&P0W-g-}g`(&1GrEtwh38Uy9r4=NOd!wW_}b-k{Wr<;$8Zz+?g9B<-%8kh zght35Sb1i_b774N?SC{vw0Eq8HG(v1G*UFWG(t4;^sT_fF#8nV5xc#J>OUFgJ&(Ta nuzS;~px)VNf24sLho`|Bbu-}^@O1bpc(~Jo;ckFo-v0ju*SqVA diff --git a/cb-tools/SuperWebSocket/SuperWebSocket.XML b/cb-tools/SuperWebSocket/SuperWebSocket.XML deleted file mode 100644 index cdd8817c..00000000 --- a/cb-tools/SuperWebSocket/SuperWebSocket.XML +++ /dev/null @@ -1,1762 +0,0 @@ - - - - SuperWebSocket - - - - - The command handling binary data - - The type of the web socket session. - - - - FragmentCommand - - The type of the web socket session. - - - - Initializes a new instance of the class. - - - - - Checks the frame. - - The frame. - - - - - Checks the control frame. - - The frame. - - - - - Gets data from websocket frames. - - The frames. - - - - - Gets text string from websocket frames. - - The frames. - - - - - Gets data from a websocket frame. - - The frame. - - - - - Gets text string from a websocket frame. - - The frame. - - - - - Gets the UTF8 encoding which has been set ExceptionFallback. - - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - The command handling close fragment - - The type of the web socket session. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - The command handling continuation fragment - - The type of the web socket session. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - The command handle handshake request - - The type of the web socket session. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - The command handling Ping - - The type of the web socket session. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - The command to handling text message in plain text of hybi00 - - The type of the web socket session. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - The command handling Pong - - The type of the web socket session. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - The command handling Text fragment - - The type of the web socket session. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - Command configuration - - - - - Gets a value indicating whether an unknown attribute is encountered during deserialization. - - The name of the unrecognized attribute. - The value of the unrecognized attribute. - - true when an unknown attribute is encountered while deserializing; otherwise, false. - - - - - Gets the options. - - - - - Command configuration collection - - - - - When overridden in a derived class, creates a new . - - - A new . - - - - - Gets the element key for a specified configuration element when overridden in a derived class. - - The to return the key for. - - An that acts as the key for the specified . - - - - - Gets the enumerator. - - - - - - Gets or sets a property, attribute, or child element of this configuration element. - - The specified property, attribute, or child element - - - - SubProtocol configuration - - - - - Initializes a new instance of the class. - - - - - Gets the type. - - - - - Gets the commands. - - - - - SubProtocol configuation collection - - - - - When overridden in a derived class, creates a new . - - - A new . - - - - - Gets the element key for a specified configuration element when overridden in a derived class. - - The to return the key for. - - An that acts as the key for the specified . - - - - - Gets the enumerator. - - - - - - Gets the type of the . - - The of this collection. - - - - Gets the name used to identify this collection of elements in the configuration file when overridden in a derived class. - - The name of the collection; otherwise, an empty string. The default is an empty string. - - - - Extension class - - - - - Appends in the format with CrCf as suffix. - - The builder. - The format. - The arg. - - - - Appends in the format with CrCf as suffix. - - The builder. - The format. - The args. - - - - Appends with CrCf as suffix. - - The builder. - The content. - - - - Appends with CrCf as suffix. - - The builder. - - - - The converter interface for converting binary data to text message - - - - - Returns a that represents this instance. - - The data. - The offset. - The length. - - A that represents this instance. - - - - - Json websocket session - - - - - Json websocket session - - The type of the web socket session. - - - - WebSocket AppSession class - - The type of the web socket session. - - - - WebSocketSession basic interface - - - - - Sends the raw binary response. - - The data. - The offset. - The length. - - - - Gets the available sub protocol. - - The protocol. - - - - - Gets or sets the method. - - - The method. - - - - - Gets the host. - - - - - Gets or sets the path. - - - The path. - - - - - Gets or sets the HTTP version. - - - The HTTP version. - - - - - Gets the sec web socket version. - - - - - Gets the origin. - - - - - Gets the URI scheme. - - - - - Gets a value indicating whether this is handshaked. - - - true if handshaked; otherwise, false. - - - - - Gets the app server. - - - - - Gets or sets the protocol processor. - - - The protocol processor. - - - - - Called when [init]. - - - - - Sets the cookie. - - - - - Sends the response. - - The message. - - - - Sends the response. - - The data. - The offset. - The length. - - - - Sends the response. - - The segment. - - - - Sends the raw binary data. - - The data. - The offset. - The length. - - - - Sends the response. - - The message. - - - - - Sends the response. - - The data. - The offset. - The length. - - - - - Sends the response. - - The segment. - - - - - Closes the with handshake. - - The reason text. - - - - Closes the with handshake. - - The status code. - The reason text. - - - - Sends the close handshake response. - - The status code. - - - - Closes the specified reason. - - The reason. - - - - Handles the unknown command. - - The request info. - - - - Handles the unknown request. - - The request info. - - - - Gets or sets the method. - - - The method. - - - - - Gets or sets the path. - - - The path. - - - - - Gets or sets the HTTP version. - - - The HTTP version. - - - - - Gets the host. - - - - - Gets the origin. - - - - - Gets the upgrade. - - - - - Gets the connection. - - - - - Gets the sec web socket version. - - - - - Gets the sec web socket protocol. - - - - - Gets the current token. - - - - - Gets the app server. - - - - - Gets the URI scheme, ws or wss - - - - - Gets the sub protocol. - - - - - Gets a value indicating whether this is handshaked. - - - true if handshaked; otherwise, false. - - - - - Gets a value indicating whether the session [in closing]. - - - true if [in closing]; otherwise, false. - - - - - Gets the cookies. - - - - - Gets or sets the protocol processor. - - - The protocol processor. - - - - - Sends the json message. - - The name. - The content. - - - - Close status code for Hybi10 - - - - - Close status code interface - - - - - Gets the code for extension not match. - - - - - Gets the code for going away. - - - - - Gets the code for invalid UT f8. - - - - - Gets the code for normal closure. - - - - - Gets the code for not acceptable data. - - - - - Gets the code for protocol error. - - - - - Gets the code for TLS handshake failure. - - - - - Gets the code for too large frame. - - - - - Gets the code for unexpected condition. - - - - - Gets the code for violate policy. - - - - - Gets the code for no status code. - - - - - Initializes a new instance of the class. - - - - - Gets the code for normal closure. - - - - - Gets the code for going away. - - - - - Gets the code for protocol error. - - - - - Gets the code for not acceptable data. - - - - - Gets the code for too large frame. - - - - - Gets the code for invalid UT f8. - - - - - Gets the code for violate policy. - - - - - Gets the code for extension not match. - - - - - Gets the code for unexpected condition. - - - - - Gets the code for TLS handshake failure. - - - - - Gets the code for no status code. - - - - - Close status code for rfc6455 - - - - - Initializes a new instance of the class. - - - - - Gets the code for normal closure. - - - - - Gets the code for going away. - - - - - Gets the code for protocol error. - - - - - Gets the code for not acceptable data. - - - - - Gets the code for too large frame. - - - - - Gets the code for invalid UT f8. - - - - - Gets the code for violate policy. - - - - - Gets the code for extension not match. - - - - - Gets the code for unexpected condition. - - - - - Gets the code for TLS handshake failure. - - - - - Gets the code for no status code. - - - - - http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-00 - - - - - Protocol processor interface - - - - - Handshakes the specified session. - - The session. - The previous filter. - The data frame reader. - - - - - Sends the message. - - The session. - The message. - - - - Sends the data. - - The session. - The data. - The offset. - The length. - - - - Sends the close handshake. - - The session. - The status code. - The close reason. - - - - Sends the pong. - - The session. - The pong. - - - - Sends the ping. - - The session. - The ping. - - - - Determines whether [is valid close code] [the specified code]. - - The code. - - true if [is valid close code] [the specified code]; otherwise, false. - - - - - Gets a value indicating whether this instance can send binary data. - - - true if this instance can send binary data; otherwise, false. - - - - - Gets the close status clode. - - - - - Gets or sets the next processor. - - - The next processor. - - - - - Gets the version of current protocol. - - - - - http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-10 - - - - - Handshake request - - - - - WebSocketFragment request info - - - - - Gets the key of this request. - - - - - http://tools.ietf.org/html/rfc6455#section-4.4 - - - - - Plain text fragment - - - - - Initializes a new instance of the class. - - The message. - - - - Gets the message. - - - - - Gets the key of this request. - - - - - http://tools.ietf.org/html/rfc6455 - - - - - WebSocketReceiveFilter basis - - - - - The length of Sec3Key - - - - - Initializes a new instance of the class. - - The session. - - - - Initializes a new instance of the class. - - The previous receive filter. - - - - Handshakes the specified protocol processor. - - The protocol processor. - The session. - - - - - Gets the handshake request info. - - - - - Resets this instance. - - - - - Async json sub command - - The type of the json command info. - - - - Async json sub command - - The type of the web socket session. - The type of the json command info. - - - - Json SubCommand base - - The type of the web socket session. - The type of the json command info. - - - - SubCommand base - - The type of the web socket session. - - - - SubCommand interface - - The type of the web socket session. - - - - Executes the command. - - The session. - The request info. - - - - The basic interface of sub command filter loader - - - - - Loads the sub command filters. - - The global filters. - - - - Executes the command. - - The session. - The request info. - - - - Gets the name. - - - - - Initializes a new instance of the class. - - - - - Executes the command. - - The session. - The request info. - - - - Executes the json command. - - The session. - The command info. - - - - Gets the json message. - - The session. - The name. - The token. - The content. - - - - - Initializes a new instance of the class. - - - - - Executes the json command. - - The session. - The command info. - - - - Executes the async json command. - - The session. - The token. - The command info. - - - - Sends the json message. - - The session. - The token. - The content. - - - - Sends the json message. - - The session. - The name. - The token. - The content. - - - - Basic sub command parser - - - - - Parses the request info. - - The source. - - - - - Default basic sub protocol implementation - - - - - Default basic sub protocol implementation - - - - - SubProtocol basis - - The type of the web socket session. - - - - SubProtocol interface - - The type of the web socket session. - - - - Initializes with the specified config. - - The app server. - The protocol config. - The logger. - - - - - Tries the get command. - - The name. - The command. - - - - - Gets the name. - - - - - Gets the sub request parser. - - - - - Initializes a new instance of the class. - - The name. - - - - Initializes with the specified config. - - The app server. - The protocol config. - The logger. - - - - - Tries the get command. - - The name. - The command. - - - - - Gets the name. - - - - - Gets or sets the sub request parser. - - - The sub request parser. - - - - - Default basic sub protocol name - - - - - Initializes a new instance of the class with the calling aseembly as command assembly - - - - - Initializes a new instance of the class with the calling aseembly as command assembly - - The sub protocol name. - - - - Initializes a new instance of the class with command assemblies - - The command assemblies. - - - - Initializes a new instance of the class with single command assembly. - - The command assembly. - - - - Initializes a new instance of the class with name and single command assembly. - - The sub protocol name. - The command assembly. - - - - Initializes a new instance of the class with name and command assemblies. - - The sub protocol name. - The command assemblies. - - - - Initializes a new instance of the class. - - The name. - The command assemblies. - The request info parser. - - - - Initializes with the specified config. - - The app server. - The protocol config. - The logger. - - - - - Tries get command from the sub protocol's command inventory. - - The name. - The command. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The sub protocol name. - - - - Initializes a new instance of the class. - - The command assembly. - - - - Initializes a new instance of the class. - - The command assemblies. - - - - Initializes a new instance of the class. - - The sub protocol name. - The command assembly. - - - - Initializes a new instance of the class. - - The sub protocol name. - The command assemblies. - - - - Initializes a new instance of the class. - - The name. - The command assemblies. - The request info parser. - - - - The basic interface of SubRequestInfo - - - - - Gets the token. - - - The token. - - - - - JsonSubCommand - - The type of the json command info. - - - - JsonSubCommand - - The type of the web socket session. - The type of the json command info. - - - - Gets the json message. - - The session. - The content. - - - - - Gets the json message. - - The session. - The name. - The content. - - - - - Sends the json message. - - The session. - The content. - - - - Sends the json message. - - The session. - The name. - The content. - - - - SubCommand base - - - - - SubCommandFilter Attribute - - - - - Gets or sets the sub protocol. - - - The sub protocol. - - - - - SubProtocol RequestInfo type - - - - - Initializes a new instance of the class. - - The key. - The token. - The data. - - - - Gets the token of this request, used for callback - - - - - Text encoding binary data converter - - - - - Initializes a new instance of the class. - - The encoding. - - - - Returns a that represents this instance. - - The data. - The offset. - The length. - - A that represents this instance. - - - - - Gets the encoding. - - - The encoding. - - - - - WebSocket protocol - - - - - Initializes a new instance of the class. - - - - - Creates the filter. - - The app server. - The app session. - The remote end point. - - - - - Blah - - - - - Blah - - - - - Blah - - - - - Blah - - - - - Blah - - - - - Blah - - - - - Blah - - - - - WebSocket server interface - - - - - Validates the handshake request. - - The session. - The origin. - the validation result - - - - Gets the web socket protocol processor. - - - - - WebSocket AppServer - - - - - WebSocket AppServer - - The type of the web socket session. - - - - Initializes a new instance of the class. - - The sub protocols. - - - - Initializes a new instance of the class. - - The sub protocol. - - - - Initializes a new instance of the class. - - - - - The openning handshake timeout, in seconds - - - - - The closing handshake timeout, in seconds - - - - - The interval of checking handshake pending queue, in seconds - - - - - Gets the sub protocol by sub protocol name. - - The name. - - - - - Validates the handshake request. - - The session. - The origin in the handshake request. - - - - - Setups with the specified root config. - - The root config. - The config. - - - - - Called when [startup]. - - - - - Called when [new session connected]. - - The session. - - - - Blah - - - - - Setups the commands. - - The discovered commands. - - - - - Executes the command. - - The session. - The request info. - - - - Serialize the target object by JSON - - The target. - - - - - Deserialize the JSON string to target type object. - - The json. - The type. - - - - - Gets or sets the binary data converter. - - - The binary data converter. - - - - - Gets the request filter factory. - - - - - Occurs when [new request received]. - - - - - - Occurs when [new message received]. - - - - - Blah - - - - - Occurs when [new data received]. - - - - - Initializes a new instance of the class. - - The sub protocols. - - - - Initializes a new instance of the class. - - The sub protocol. - - - - Initializes a new instance of the class. - - - - - WebSocket AppSession - - - - - Gets the app server. - - - - diff --git a/cb-tools/SuperWebSocket/SuperWebSocket.dll b/cb-tools/SuperWebSocket/SuperWebSocket.dll deleted file mode 100644 index 572359830ad3b470a3b8be80cefa540a65b593f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 62464 zcmc${34B!5`9J)eJ2Q8d%p{pC6G%c92w}(uAz>92kX;agfNV+v1PFv&m;@Cem>?qV zq81ggf>ITW)_t!+rBo|aaMvmYL90luyR~lb_j%5p$%J70`@g^U|9MCAz0Y>G=j`X6 z8OG1JjvPef#NW?96Fq?^e})MDXJ~;sG54uNdc?ag{|Pm2Uw+lXy2iYv5o^!2D zHue{(L&x_%a_1>$jd$Fr#t^}amAFvufP0N#z&rI{tMr~`~D~X zxa;{#o4?O`;qA|UyRX*RdeNG{Cfrl_*N+bNI(NnE3;x+_?sw-Ujv8~`!w*lpYj~G; z-uPqUw+UrwkN$IY%hmpd2fiAxbIsS^CGW3zZ2P{-I`Umx`2DukIo`6((}rG|W322% zB0O`O7nMVpffR(VE27liF1iCAfhU8G)p;B&nD&#I52CRvpoK*u z55uJRYBY4^4+TQ0&f@uwpwmKM@TIzfF3E<~9UN#*t8RLXN^pn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C3-Df$0qeod;C)~NxCOi)d;n|&w}RWi z2f-cSufb+;H~19zG}r<@13n8r2eyLGgTDb^0QZ1S!2RF>@OR+v z!8Y(9_$v4ZpgQz5@OAKy;9>9$@PEKJ!FKQn_!js!cocjGd>4EV>;R8}e*)hJs>443 zKLkGlkAo+`KZ75GC&5$TC*Y@G7x)?Y7w~iNGcp3Z_{0_VVUIqUJeh*#)uY>;!{u{gj-UR;x-U3k(|3M#c z7$^pPfqIO0fc{_rI2;@Sbe4toOdbi20)v6h%Q_ky1BL>f^LZ>d4h#n)!13S&FcO>y zw9oitPy$AQ(cly?28;!#g44h_Fdm!^&Hxj@nP4KA1WG{}P#;wR)OJ;Y$zTeo22;UV z;GJL^I2)V;&IQv!4VVFDf?6;O%m(LyIbbe0A6x+Df%)JOFRNZGt X%V)voz*g{Q_vak=a}NCP$$|d|Y22Kh diff --git a/cb-tools/SuperWebSocket/UninstallService.bat b/cb-tools/SuperWebSocket/UninstallService.bat deleted file mode 100644 index 9948b806..00000000 --- a/cb-tools/SuperWebSocket/UninstallService.bat +++ /dev/null @@ -1,2 +0,0 @@ -SuperSocket.SocketService.exe -u -pause \ No newline at end of file diff --git a/cb-tools/SuperWebSocket/WebSocket4Net.dll b/cb-tools/SuperWebSocket/WebSocket4Net.dll deleted file mode 100644 index 9ca44f139a5ff2379b93b37d64b58bc5b2214648..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 88576 zcmeFa3wT{ebuT_=@AH;);v>mNvMpP35+^5e?8u5^Bt>!jP89sMlSm1{$kMTW97)?b zM{?{aGBWQ+5*jGb($JPb`lJuu<=H}kQlJpvwzs{-y-;Wi6bdP~rCf@0f4{Y6&e=yt zHo5=re&7Gz@57L@XV$D)vu4ejHEY()-r94|FBsn#6UBeeK5NV$;mLnn z-_(@8+LGSC)0o{6-#q-mFCKEOea(1X4UwcV`yaYfNeZ!hXQ#7r++FuJZC|EZyDG(_*@j!vC{*@Q^M; zyVB`%5N*048oVK5;_>E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*{el<~R`Rny-hiy=Ue}r?xw#cI&(qAp9xy2^o ztcch4YMiU`>p@Ppg>Y3dgfl4KUQel;DX|Y=W^Y{Nk3sm7e9_z8S`~M3o^FQnGUu}W^1w#c^ ADgXcg diff --git a/cb-tools/SuperWebSocket/log4net.dll b/cb-tools/SuperWebSocket/log4net.dll deleted file mode 100644 index c3ced3548bda4109a7b789f1d9c4837bd45c7137..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 286720 zcmeFad7K6~k-W+)#`|tb-X!nxR&tGGW4C)O zz?jXF&1x{4Ex-l>0RsU;fEY+vV-O)u2$;cyH7tQgLXsDF_WOR%xwUk6jV1f>%RfK2 zKANh!_uO;OcF#R`savOQy4P|n%X0DmnP)8PQC#_3FMpr?&rW2|82$7N>*IyT7e3l^ z>f;N~y=Lpg*tRgZI^1%@*yUSpyfN55cG;C<;f@=}w%#~){2Awr-4I-H<%<6P;sFNr znI~A*sXdPMouBVIJ*w>~YsSJ-k7rq{K-HM0P9A6OHXA)^6jf7c`YwEWiDJ#M&uMYqyw1Q@VJF^S!*i^9>ZeNhV3lexi z0xwA51qr+$ffpq3f&^ZWzzY(1K>{yG;QvPw*vxS?ejJolMxr?;|&i|LEa=d1UP)U(fyey~q96Cy#%5^&4BRc)0x4r#|(_oS|cG z{Y-iF!b2-7c71s5owv09`=|f;o9*xP{$+CPzh3%@)zAFnO&5Ic;)`GV_yJ!Xz4@Gn z-f{E9W1GHm^+!K>`$cz6e0gYNefyv9`g^zhA7#f;?OjSh(bDQ zjnms`W(H^$-h^$46MSh|5Q4IlUM9cHSWdnU?BL5*9rWA590=L2ibhi$Mf_ApyZNCm z-vWH#1ac~goD^SuksUw_UU*-IQiG4%Q0J9)lU7r=r!GXTVn9w%L7DnYJDATa;P@xi4gZElaXO)*+id1H!CPUUh&B|QgGR7Y3~FSdr3i0E*ClQjtY z=&_N0@?B~cl=Q3a?dFlC_w}P3ehwhaM?nt#X*n#}mmI$TQ4}7hC`JmEpc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Lh`_4XSCUGk-w4XVor9XDF9{-Hp=oiwF!Hwps(^%s9tC*H^Jm~K?>zSV1^ZD+e) z+u4BRkZ`EzIy@Avn!_g}p3+veyL1M({P{F^rTrgil(soe;gut{-La&Wd>)f}S-NH4 z4oN;!6u0O5#=KAZO`I)yIW&RgZo!gl_5%ibjrd`!AAh!n4BYrnVra zVR7kXgCE=el5YlOX%N49mMzWBw`%Q?E8qN>?KATDr{$sBjRyOhxP#B3LDW9nIk#qE zOK7o4?}M~y`yw*Rcf|PUVw%UZ?SeLNDo2{DpXV0mm7q_0!BfNH>M6r#{GwiQeV4t+ zTO!TUpCt?|VPFXZOBh(fz!C 2 - n = cellfun(@numel, trialsByX(:)); -end -p = phat/100; -if numel(x) > 0 - h = plt.errorbar(axh, x, phat, pci(:,1), pci(:,2), varargin{:}); -else - h = []; -end - -end - diff --git a/cb-tools/burgbox/+plt/errorbar.m b/cb-tools/burgbox/+plt/errorbar.m deleted file mode 100644 index 85eb9b61..00000000 --- a/cb-tools/burgbox/+plt/errorbar.m +++ /dev/null @@ -1,23 +0,0 @@ -function h = errorbar(axh, x, y, yL, yU, varargin) -%PLT.ERRORBAR Like MATLAB's errorbar but specify actual EB co-ordinates -% H = PLT.ERRORBAR(AXH, X, Y, YL, YU, ...) -% -% Differences to MATLAB's errorbar, this: -% * takes the actual y coordinates of the errorbar top and bottom, rather -% than the offset from y coordinates -% * always takes the axes as the first parameter -% * if there is no data to plot, then it won't throw a wobbly, it just -% wont plot anything -% -% Part of Burgbox - -% 2013-10 CB created - -if numel(x) > 0 - h = errorbar(x, y, y - yL, y - yU, varargin{:}, 'Parent', axh); -else - h = []; -end - -end - diff --git a/cb-tools/burgbox/+plt/hshade.m b/cb-tools/burgbox/+plt/hshade.m deleted file mode 100644 index 216e064a..00000000 --- a/cb-tools/burgbox/+plt/hshade.m +++ /dev/null @@ -1,37 +0,0 @@ -function [fillhandle, msg] = hshade(ax, xpoints, upper, lower, color, edge, alpha) -%USAGE: [fillhandle, msg] = fill(xpoints, upper, lower, color, edge, add, transparency) -%This function will fill a region with a color between the two vectors provided -%using the Matlab fill command. -% -%fillhandle is the returned handle to the filled region in the plot. -%xpoints= The horizontal data points (ie frequencies). Note length(Upper) -% must equal Length(lower)and must equal length(xpoints)! -%upper = the upper curve values (data can be less than lower) -%lower = the lower curve values (data can be more than upper) -%color = the color of the filled area -%edge = the color around the edge of the filled area -%add = a flag to add to the current plot or make a new one. -%transparency is a value ranging from 1 for opaque to 0 for invisible for -%the filled color only. -% -%John A. Bockstege November 2006; -%Example: -% a=rand(1,20);%Vector of random data -% b=a+2*rand(1,20);%2nd vector of data points; -% x=1:20;%horizontal vector -% [ph,msg]=jbfill(x,a,b,rand(1,3),rand(1,3),0,rand(1,1)) -% grid on -% legend('Datr') -if nargin<7;alpha=.5;end %default is to have a transparency of .5 -if nargin<6;edge='k';end %dfault edge color is black -if nargin<5;color='b';end %default color is blue - -if length(upper)==length(lower) && length(lower)==length(xpoints) - msg=''; - filled=[upper,fliplr(lower)]; - xpoints=[xpoints,fliplr(xpoints)]; - fillhandle = fill(xpoints, filled, color, 'Parent', ax);%plot the data - set(fillhandle, 'EdgeColor', edge, 'FaceAlpha', alpha, 'EdgeAlpha', alpha);%set edge color -else - msg='Error: Must use the same number of points in each vector'; -end diff --git a/cb-tools/burgbox/+plt/vshade.m b/cb-tools/burgbox/+plt/vshade.m deleted file mode 100644 index c4abb2b1..00000000 --- a/cb-tools/burgbox/+plt/vshade.m +++ /dev/null @@ -1,37 +0,0 @@ -function [fillhandle, msg] = vshade(ax, ypoints, left, right, color, edge, alpha) -%USAGE: [fillhandle, msg] = fill(xpoints, upper, lower, color, edge, add, transparency) -%This function will fill a region with a color between the two vectors provided -%using the Matlab fill command. -% -%fillhandle is the returned handle to the filled region in the plot. -%xpoints= The horizontal data points (ie frequencies). Note length(Upper) -% must equal Length(lower)and must equal length(xpoints)! -%upper = the upper curve values (data can be less than lower) -%lower = the lower curve values (data can be more than upper) -%color = the color of the filled area -%edge = the color around the edge of the filled area -%add = a flag to add to the current plot or make a new one. -%transparency is a value ranging from 1 for opaque to 0 for invisible for -%the filled color only. -% -%John A. Bockstege November 2006; -%Example: -% a=rand(1,20);%Vector of random data -% b=a+2*rand(1,20);%2nd vector of data points; -% x=1:20;%horizontal vector -% [ph,msg]=jbfill(x,a,b,rand(1,3),rand(1,3),0,rand(1,1)) -% grid on -% legend('Datr') -if nargin<7;alpha=.5;end %default is to have a transparency of .5 -if nargin<6;edge='k';end %dfault edge color is black -if nargin<5;color='b';end %default color is blue - -if length(left)==length(right) && length(right)==length(ypoints) - msg=''; - filled=[left,fliplr(right)]; - ypoints=[ypoints,fliplr(ypoints)]; - fillhandle=fill(filled,ypoints,color, 'Parent', ax);%plot the data - set(fillhandle,'EdgeColor',edge,'FaceAlpha',alpha,'EdgeAlpha',alpha);%set edge color -else - msg='Error: Must use the same number of points in each vector'; -end diff --git a/cb-tools/jsonlab/AUTHORS.txt b/cb-tools/jsonlab/AUTHORS.txt deleted file mode 100644 index 80446a89..00000000 --- a/cb-tools/jsonlab/AUTHORS.txt +++ /dev/null @@ -1,36 +0,0 @@ -The author of "jsonlab" toolbox is Qianqian Fang. Qianqian -is currently an Assistant Professor at Massachusetts General Hospital, -Harvard Medical School. - -Address: Martinos Center for Biomedical Imaging, - Massachusetts General Hospital, - Harvard Medical School - Bldg 149, 13th St, Charlestown, MA 02129, USA -URL: http://nmr.mgh.harvard.edu/~fangq/ -Email: or - - -The script loadjson.m was built upon previous works by - -- Nedialko Krouchev: http://www.mathworks.com/matlabcentral/fileexchange/25713 - date: 2009/11/02 -- Fran§ois Glineur: http://www.mathworks.com/matlabcentral/fileexchange/23393 - date: 2009/03/22 -- Joel Feenstra: http://www.mathworks.com/matlabcentral/fileexchange/20565 - date: 2008/07/03 - - -This toolbox contains patches submitted by the following contributors: - -- Blake Johnson - part of revision 341 - -- Niclas Borlin - various fixes in revision 394, including - - loadjson crashes for all-zero sparse matrix. - - loadjson crashes for empty sparse matrix. - - Non-zero size of 0-by-N and N-by-0 empty matrices is lost after savejson/loadjson. - - loadjson crashes for sparse real column vector. - - loadjson crashes for sparse complex column vector. - - Data is corrupted by savejson for sparse real row vector. - - savejson crashes for sparse complex row vector. diff --git a/cb-tools/jsonlab/ChangeLog.txt b/cb-tools/jsonlab/ChangeLog.txt deleted file mode 100644 index f409e767..00000000 --- a/cb-tools/jsonlab/ChangeLog.txt +++ /dev/null @@ -1,47 +0,0 @@ -============================================================================ - - JSONlab - a toolbox to encode/decode JSON/UBJSON files in MATLAB/Octave - ----------------------------------------------------------------------------- - -JSONlab ChangeLog (key features marked by *): - -== JSONlab 0.9.8 (codename: Optimus - alpha), FangQ == - 2013/08/23 *Universal Binary JSON (UBJSON) support, including both saveubjson and loadubjson - -== JSONlab 0.9.1 (codename: Rodimus, update 1), FangQ == - 2012/12/18 *handling of various empty and sparse matrices (fixes submitted by Niclas Borlin) - -== JSONlab 0.9.0 (codename: Rodimus), FangQ == - - 2012/06/17 *new format for an invalid leading char, unpacking hex code in savejson - 2012/06/01 support JSONP in savejson - 2012/05/25 fix the empty cell bug (reported by Cyril Davin) - 2012/04/05 savejson can save to a file (suggested by Patrick Rapin) - -== JSONlab 0.8.1 (codename: Sentiel, Update 1), FangQ == - - 2012/02/28 loadjson quotation mark escape bug, see http://bit.ly/yyk1nS - 2012/01/25 patch to handle root-less objects, contributed by Blake Johnson - -== JSONlab 0.8.0 (codename: Sentiel), FangQ == - - 2012/01/13 *speed up loadjson by 20 fold when parsing large data arrays in matlab - 2012/01/11 remove row bracket if an array has 1 element, suggested by Mykel Kochenderfer - 2011/12/22 *accept sequence of 'param',value input in savejson and loadjson - 2011/11/18 fix struct array bug reported by Mykel Kochenderfer - -== JSONlab 0.5.1 (codename: Nexus Update 1), FangQ == - - 2011/10/21 fix a bug in loadjson, previous code does not use any of the acceleration - 2011/10/20 loadjson supports JSON collections - concatenated JSON objects - -== JSONlab 0.5.0 (codename: Nexus), FangQ == - - 2011/10/16 package and release jsonlab 0.5.0 - 2011/10/15 *add json demo and regression test, support cpx numbers, fix double quote bug - 2011/10/11 *speed up readjson dramatically, interpret _Array* tags, show data in root level - 2011/10/10 create jsonlab project, start jsonlab website, add online documentation - 2011/10/07 *speed up savejson by 25x using sprintf instead of mat2str, add options support - 2011/10/06 *savejson works for structs, cells and arrays - 2011/09/09 derive loadjson from JSON parser from MATLAB Central, draft savejson.m diff --git a/cb-tools/jsonlab/LICENSE_BSD.txt b/cb-tools/jsonlab/LICENSE_BSD.txt deleted file mode 100644 index cc5fb4d6..00000000 --- a/cb-tools/jsonlab/LICENSE_BSD.txt +++ /dev/null @@ -1,25 +0,0 @@ -Copyright 2011 Qianqian Fang . All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are -permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, this list of - conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright notice, this list - of conditions and the following disclaimer in the documentation and/or other materials - provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS -OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The views and conclusions contained in the software and documentation are those of the -authors and should not be interpreted as representing official policies, either expressed -or implied, of the copyright holders. diff --git a/cb-tools/jsonlab/LICENSE_GPLv3.txt b/cb-tools/jsonlab/LICENSE_GPLv3.txt deleted file mode 100644 index 94a9ed02..00000000 --- a/cb-tools/jsonlab/LICENSE_GPLv3.txt +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/cb-tools/jsonlab/README.txt b/cb-tools/jsonlab/README.txt deleted file mode 100644 index 83616b81..00000000 --- a/cb-tools/jsonlab/README.txt +++ /dev/null @@ -1,335 +0,0 @@ -=============================================================================== -= JSONlab = -= An open-source MATLAB/Octave JSON encoder and decoder = -=============================================================================== - -*Copyright (c) 2011-2013 Qianqian Fang -*License: BSD or GNU General Public License version 3 (GPL v3), see License*.txt -*Version: 0.9.8 (Optimus - alpha) - -------------------------------------------------------------------------------- - -Table of Content: - -I. Introduction -II. Installation -III.Using JSONlab -IV. Known Issues and TODOs -V. Contribution and feedback - -------------------------------------------------------------------------------- - -I. Introduction - -JSON ([http://www.json.org/ JavaScript Object Notation]) is a highly portable, -human-readable and "[http://en.wikipedia.org/wiki/JSON fat-free]" text format -to represent complex and hierarchical data. It is as powerful as -[http://en.wikipedia.org/wiki/XML XML], but less verbose. JSON format is widely -used for data-exchange in applications, and is essential for the wild success -of [http://en.wikipedia.org/wiki/Ajax_(programming) Ajax] and -[http://en.wikipedia.org/wiki/Web_2.0 Web2.0]. - -UBJSON (Universal Binary JSON) is a binary JSON format, specifically -optimized for compact file size and better performance while keeping -the semantics as simple as the text-based JSON format. Using the UBJSON -format allows to wrap complex binary data in a flexible and extensible -structure, making it possible to process complex and large dataset -without accuracy loss due to text conversions. - -We envision that both JSON and its binary version will serve as part of -the mainstream data-exchange formats for scientific research in the future. -It will provide the flexibility and generality achieved by other popular -general-purpose file specifications, such as -[http://www.hdfgroup.org/HDF5/whatishdf5.html HDF5], with significantly -reduced complexity and enhanced performance. - -JSONlab is a free and open-source implementation of a JSON/UBJSON encoder -and a decoder in the native MATLAB language. It can be used to convert a MATLAB -data structure (array, struct, cell, struct array and cell array) into -JSON/UBJSON formatted strings, or to decode a JSON/UBJSON file into MATLAB -data structure. JSONlab supports both MATLAB and -[http://www.gnu.org/software/octave/ GNU Octave] (a free MATLAB clone). - -------------------------------------------------------------------------------- - -II. Installation - -The installation of JSONlab is no different than any other simple -MATLAB toolbox. You only need to download/unzip the JSONlab package -to a folder, and add the folder's path to MATLAB/Octave's path list -by using the following command: - - addpath('/path/to/jsonlab'); - -If you want to add this path permanently, you need to type "pathtool", -browse to the jsonlab root folder and add to the list, then click "Save". -Then, run "rehash" in MATLAB, and type "which loadjson", if you see an -output, that means JSONlab is installed for MATLAB/Octave. - -------------------------------------------------------------------------------- - -III.Using JSONlab - -JSONlab provides two functions, loadjson.m -- a MATLAB->JSON decoder, -and savejson.m -- a MATLAB->JSON encoder, for the text-based JSON, and -two equivallent functions -- loadubjson and saveubjson for the binary -JSON. The detailed help info for the four functions can be found below: - -=== loadjson.m === -

-  data=loadjson(fname,opt)
-     or
-  data=loadjson(fname,'param1',value1,'param2',value2,...)
- 
-  parse a JSON (JavaScript Object Notation) file or string
- 
-  authors:Qianqian Fang (fangq nmr.mgh.harvard.edu)
-             date: 2011/09/09
-          Nedialko Krouchev: http://www.mathworks.com/matlabcentral/fileexchange/25713
-             date: 2009/11/02
-          François Glineur: http://www.mathworks.com/matlabcentral/fileexchange/23393
-             date: 2009/03/22
-          Joel Feenstra:
-          http://www.mathworks.com/matlabcentral/fileexchange/20565
-             date: 2008/07/03
- 
-  $Id: loadjson.m 394 2012-12-18 17:58:11Z fangq $
- 
-  input:
-       fname: input file name, if fname contains "{}" or "[]", fname
-              will be interpreted as a JSON string
-       opt: a struct to store parsing options, opt can be replaced by 
-            a list of ('param',value) pairs. The param string is equivallent
-            to a field in opt.
- 
-  output:
-       dat: a cell array, where {...} blocks are converted into cell arrays,
-            and [...] are converted to arrays
-
- -=== savejson.m === - -
-  json=savejson(rootname,obj,filename)
-     or
-  json=savejson(rootname,obj,opt)
-  json=savejson(rootname,obj,'param1',value1,'param2',value2,...)
- 
-  convert a MATLAB object (cell, struct or array) into a JSON (JavaScript
-  Object Notation) string
- 
-  author: Qianqian Fang (fangq nmr.mgh.harvard.edu)
-             created on 2011/09/09
- 
-  $Id: savejson.m 394 2012-12-18 17:58:11Z fangq $
- 
-  input:
-       rootname: name of the root-object, if set to '', will use variable name
-       obj: a MATLAB object (array, cell, cell array, struct, struct array)
-       filename: a string for the file name to save the output JSON data
-       opt: a struct for additional options, use [] if all use default
-         opt can have the following fields (first in [.|.] is the default)
- 
-         opt.FileName [''|string]: a file name to save the output JSON data
-         opt.FloatFormat ['%.10g'|string]: format to show each numeric element
-                          of a 1D/2D array;
-         opt.ArrayIndent [1|0]: if 1, output explicit data array with
-                          precedent indentation; if 0, no indentation
-         opt.ArrayToStruct[0|1]: when set to 0, savejson outputs 1D/2D
-                          array in JSON array format; if sets to 1, an
-                          array will be shown as a struct with fields
-                          "_ArrayType_", "_ArraySize_" and "_ArrayData_"; for
-                          sparse arrays, the non-zero elements will be
-                          saved to _ArrayData_ field in triplet-format i.e.
-                          (ix,iy,val) and "_ArrayIsSparse_" will be added
-                          with a value of 1; for a complex array, the 
-                          _ArrayData_ array will include two columns 
-                          (4 for sparse) to record the real and imaginary 
-                          parts, and also "_ArrayIsComplex_":1 is added. 
-         opt.ParseLogical [0|1]: if this is set to 1, logical array elem
-                          will use true/false rather than 1/0.
-         opt.NoRowBracket [1|0]: if this is set to 1, arrays with a single
-                          numerical element will be shown without a square
-                          bracket, unless it is the root object; if 0, square
-                          brackets are forced for any numerical arrays.
-         opt.ForceRootName [0|1]: when set to 1 and rootname is empty, savejson
-                          will use the name of the passed obj variable as the 
-                          root object name; if obj is an expression and 
-                          does not have a name, 'root' will be used; if this 
-                          is set to 0 and rootname is empty, the root level 
-                          will be merged down to the lower level.
-         opt.Inf ['"$1_Inf_"'|string]: a customized regular expression pattern
-                          to represent +/-Inf. The matched pattern is '([-+]*)Inf'
-                          and $1 represents the sign. For those who want to use
-                          1e999 to represent Inf, they can set opt.Inf to '$11e999'
-         opt.NaN ['"_NaN_"'|string]: a customized regular expression pattern
-                          to represent NaN
-         opt.JSONP [''|string]: to generate a JSONP output (JSON with padding),
-                          for example, if opt.JSON='foo', the JSON data is
-                          wrapped inside a function call as 'foo(...);'
-         opt.UnpackHex [1|0]: conver the 0x[hex code] output by loadjson 
-                          back to the string form
-         opt can be replaced by a list of ('param',value) pairs. The param 
-         string is equivallent to a field in opt.
-  output:
-       json: a string in the JSON format (see http://json.org)
- 
-  examples:
-       a=struct('node',[1  9  10; 2 1 1.2], 'elem',[9 1;1 2;2 3],...
-            'face',[9 01 2; 1 2 3; NaN,Inf,-Inf], 'author','FangQ');
-       savejson('mesh',a)
-       savejson('',a,'ArrayIndent',0,'FloatFormat','\t%.5g')
-
- -=== loadubjson.m === - -
-  data=loadubjson(fname,opt)
-     or
-  data=loadubjson(fname,'param1',value1,'param2',value2,...)
- 
-  parse a JSON (JavaScript Object Notation) file or string
- 
-  authors:Qianqian Fang (fangq nmr.mgh.harvard.edu)
-             date: 2013/08/01
- 
-  $Id: loadubjson.m 410 2013-08-24 03:33:18Z fangq $
- 
-  input:
-       fname: input file name, if fname contains "{}" or "[]", fname
-              will be interpreted as a UBJSON string
-       opt: a struct to store parsing options, opt can be replaced by 
-            a list of ('param',value) pairs. The param string is equivallent
-            to a field in opt.
- 
-  output:
-       dat: a cell array, where {...} blocks are converted into cell arrays,
-            and [...] are converted to arrays
-
- -=== saveubjson.m === - -
-  json=saveubjson(rootname,obj,filename)
-     or
-  json=saveubjson(rootname,obj,opt)
-  json=saveubjson(rootname,obj,'param1',value1,'param2',value2,...)
- 
-  convert a MATLAB object (cell, struct or array) into a Universal 
-  Binary JSON (UBJSON) binary string
- 
-  author: Qianqian Fang (fangq nmr.mgh.harvard.edu)
-             created on 2013/08/17
- 
-  $Id: saveubjson.m 410 2013-08-24 03:33:18Z fangq $
- 
-  input:
-       rootname: name of the root-object, if set to '', will use variable name
-       obj: a MATLAB object (array, cell, cell array, struct, struct array)
-       filename: a string for the file name to save the output JSON data
-       opt: a struct for additional options, use [] if all use default
-         opt can have the following fields (first in [.|.] is the default)
- 
-         opt.FileName [''|string]: a file name to save the output JSON data
-         opt.ArrayToStruct[0|1]: when set to 0, saveubjson outputs 1D/2D
-                          array in JSON array format; if sets to 1, an
-                          array will be shown as a struct with fields
-                          "_ArrayType_", "_ArraySize_" and "_ArrayData_"; for
-                          sparse arrays, the non-zero elements will be
-                          saved to _ArrayData_ field in triplet-format i.e.
-                          (ix,iy,val) and "_ArrayIsSparse_" will be added
-                          with a value of 1; for a complex array, the 
-                          _ArrayData_ array will include two columns 
-                          (4 for sparse) to record the real and imaginary 
-                          parts, and also "_ArrayIsComplex_":1 is added. 
-         opt.ParseLogical [1|0]: if this is set to 1, logical array elem
-                          will use true/false rather than 1/0.
-         opt.NoRowBracket [1|0]: if this is set to 1, arrays with a single
-                          numerical element will be shown without a square
-                          bracket, unless it is the root object; if 0, square
-                          brackets are forced for any numerical arrays.
-         opt.ForceRootName [0|1]: when set to 1 and rootname is empty, saveubjson
-                          will use the name of the passed obj variable as the 
-                          root object name; if obj is an expression and 
-                          does not have a name, 'root' will be used; if this 
-                          is set to 0 and rootname is empty, the root level 
-                          will be merged down to the lower level.
-         opt.JSONP [''|string]: to generate a JSONP output (JSON with padding),
-                          for example, if opt.JSON='foo', the JSON data is
-                          wrapped inside a function call as 'foo(...);'
-         opt.UnpackHex [1|0]: conver the 0x[hex code] output by loadjson 
-                          back to the string form
-         opt can be replaced by a list of ('param',value) pairs. The param 
-         string is equivallent to a field in opt.
-  output:
-       json: a string in the JSON format (see http://json.org)
- 
-  examples:
-       a=struct('node',[1  9  10; 2 1 1.2], 'elem',[9 1;1 2;2 3],...
-            'face',[9 01 2; 1 2 3; NaN,Inf,-Inf], 'author','FangQ');
-       saveubjson('mesh',a)
-       saveubjson('',a,'ArrayIndent',0,'FloatFormat','\t%.5g')
-
- - -=== examples === - -Under the "examples" folder, you can find several scripts to demonstrate the -basic utilities of JSONlab. Running the "demo_jsonlab_basic.m" script, you -will see the conversions from MATLAB data structure to JSON text and backward. -In "jsonlab_selftest.m", we load complex JSON files downloaded from the Internet -and validate the loadjson/savejson functions for regression testing purposes. -Similarly, a "demo_ubjson_basic.m" script is provided to test the saveubjson -and loadubjson pairs for various matlab data structures. - -Please run these examples and understand how JSONlab works before you use -it to process your data. - -------------------------------------------------------------------------------- - -IV. Known Issues and TODOs - -JSONlab has several known limitations. We are striving to make it more general -and robust. Hopefully in a few future releases, the limitations become less. - -Here are the known issues: - -# Any high-dimensional cell-array will be converted to a 1D array; -# When processing names containing multi-byte characters, Octave and MATLAB \ -can give different field-names; you can use feature('DefaultCharacterSet','latin1') \ -in MATLAB to get consistant results -# Can not handle classes. -# saveubjson has not yet supported arbitrary data ([H] in the UBJSON specification) -# saveubjson now converts a logical array into a uint8 ([U]) array for now -# an unofficial N-D array count syntax is implemented in saveubjson. We are \ -actively communicating with the UBJSON spec maintainer to investigate the \ -possibility of making it upstream - -------------------------------------------------------------------------------- - -V. Contribution and feedback - -JSONlab is an open-source project. This means you can not only use it and modify -it as you wish, but also you can contribute your changes back to JSONlab so -that everyone else can enjoy the improvement. For anyone who want to contribute, -please download JSONlab source code from it's subversion repository by using the -following command: - - svn co https://iso2mesh.svn.sourceforge.net/svnroot/iso2mesh/trunk/jsonlab jsonlab - -You can make changes to the files as needed. Once you are satisfied with your -changes, and ready to share it with others, please cd the root directory of -JSONlab, and type - - svn diff > yourname_featurename.patch - -You then email the .patch file to JSONlab's maintainer, Qianqian Fang, at -the email address shown in the beginning of this file. Qianqian will review -the changes and commit it to the subversion if they are satisfactory. - -We appreciate any suggestions and feedbacks from you. Please use iso2mesh's -mailing list to report any questions you may have with JSONlab: - -http://groups.google.com/group/iso2mesh-users?hl=en&pli=1 - -(Subscription to the mailing list is needed in order to post messages). diff --git a/cb-tools/jsonlab/examples/demo_jsonlab_basic.m b/cb-tools/jsonlab/examples/demo_jsonlab_basic.m deleted file mode 100644 index d094a64e..00000000 --- a/cb-tools/jsonlab/examples/demo_jsonlab_basic.m +++ /dev/null @@ -1,161 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Demonstration of Basic Utilities of JSONlab -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -rngstate = rand ('state'); -randseed=hex2dec('623F9A9E'); -clear data2json json2data - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a simple scalar value \n') -fprintf(1,'%%=================================================\n\n') - -data2json=pi -savejson('',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a complex number\n') -fprintf(1,'%%=================================================\n\n') - -clear i; -data2json=1+2*i -savejson('',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a complex matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=magic(6); -data2json=data2json(:,1:3)+data2json(:,4:6)*i -savejson('',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% MATLAB special constants\n') -fprintf(1,'%%=================================================\n\n') - -data2json=[NaN Inf -Inf] -savejson('specials',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a real sparse matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sprand(10,10,0.1) -savejson('sparse',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a complex sparse matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=data2json-data2json*i -savejson('complex_sparse',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% an all-zero sparse matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sparse(2,3); -savejson('all_zero_sparse',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% an empty sparse matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sparse([]); -savejson('empty_sparse',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% an empty 0-by-0 real matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=[]; -savejson('empty_0by0_real',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% an empty 0-by-3 real matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=zeros(0,3); -savejson('empty_0by3_real',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a sparse real column vector\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sparse([0,3,0,1,4]'); -savejson('sparse_column_vector',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a sparse complex column vector\n') -fprintf(1,'%%=================================================\n\n') - -data2json=data2json-1i*data2json; -savejson('complex_sparse_column_vector',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a sparse real row vector\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sparse([0,3,0,1,4]); -savejson('sparse_row_vector',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a sparse complex row vector\n') -fprintf(1,'%%=================================================\n\n') - -data2json=data2json-1i*data2json; -savejson('complex_sparse_row_vector',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a structure\n') -fprintf(1,'%%=================================================\n\n') - -data2json=struct('name','Think Different','year',1997,'magic',magic(3),... - 'misfits',[Inf,NaN],'embedded',struct('left',true,'right',false)) -savejson('astruct',data2json,struct('ParseLogical',1)) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a structure array\n') -fprintf(1,'%%=================================================\n\n') - -data2json=struct('name','Nexus Prime','rank',9); -data2json(2)=struct('name','Sentinel Prime','rank',9); -data2json(3)=struct('name','Optimus Prime','rank',9); -savejson('Supreme Commander',data2json) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a cell array\n') -fprintf(1,'%%=================================================\n\n') - -data2json=cell(3,1); -data2json{1}=struct('buzz',1.1,'rex',1.2,'bo',1.3,'hamm',2.0,'slink',2.1,'potato',2.2,... - 'woody',3.0,'sarge',3.1,'etch',4.0,'lenny',5.0,'squeeze',6.0,'wheezy',7.0); -data2json{2}=struct('Ubuntu',['Kubuntu';'Xubuntu';'Lubuntu']); -data2json{3}=[10.04,10.10,11.04,11.10] -savejson('debian',data2json,struct('FloatFormat','%.2f')) -json2data=loadjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% invalid field-name handling\n') -fprintf(1,'%%=================================================\n\n') - -json2data=loadjson('{"ValidName":1, "_InvalidName":2, ":Field:":3, "éĦıç›":"çğċŻ†"}') - -rand ('state',rngstate); - diff --git a/cb-tools/jsonlab/examples/demo_ubjson_basic.m b/cb-tools/jsonlab/examples/demo_ubjson_basic.m deleted file mode 100644 index fd5096c3..00000000 --- a/cb-tools/jsonlab/examples/demo_ubjson_basic.m +++ /dev/null @@ -1,161 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Demonstration of Basic Utilities of JSONlab -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -rngstate = rand ('state'); -randseed=hex2dec('623F9A9E'); -clear data2json json2data - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a simple scalar value \n') -fprintf(1,'%%=================================================\n\n') - -data2json=pi -saveubjson('',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a complex number\n') -fprintf(1,'%%=================================================\n\n') - -clear i; -data2json=1+2*i -saveubjson('',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a complex matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=magic(6); -data2json=data2json(:,1:3)+data2json(:,4:6)*i -saveubjson('',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% MATLAB special constants\n') -fprintf(1,'%%=================================================\n\n') - -data2json=[NaN Inf -Inf] -saveubjson('specials',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a real sparse matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sprand(10,10,0.1) -saveubjson('sparse',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a complex sparse matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=data2json-data2json*i -saveubjson('complex_sparse',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% an all-zero sparse matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sparse(2,3); -saveubjson('all_zero_sparse',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% an empty sparse matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sparse([]); -saveubjson('empty_sparse',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% an empty 0-by-0 real matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=[]; -saveubjson('empty_0by0_real',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% an empty 0-by-3 real matrix\n') -fprintf(1,'%%=================================================\n\n') - -data2json=zeros(0,3); -saveubjson('empty_0by3_real',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a sparse real column vector\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sparse([0,3,0,1,4]'); -saveubjson('sparse_column_vector',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a sparse complex column vector\n') -fprintf(1,'%%=================================================\n\n') - -data2json=data2json-1i*data2json; -saveubjson('complex_sparse_column_vector',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a sparse real row vector\n') -fprintf(1,'%%=================================================\n\n') - -data2json=sparse([0,3,0,1,4]); -saveubjson('sparse_row_vector',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a sparse complex row vector\n') -fprintf(1,'%%=================================================\n\n') - -data2json=data2json-1i*data2json; -saveubjson('complex_sparse_row_vector',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a structure\n') -fprintf(1,'%%=================================================\n\n') - -data2json=struct('name','Think Different','year',1997,'magic',magic(3),... - 'misfits',[Inf,NaN],'embedded',struct('left',true,'right',false)) -saveubjson('astruct',data2json,struct('ParseLogical',1)) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a structure array\n') -fprintf(1,'%%=================================================\n\n') - -data2json=struct('name','Nexus Prime','rank',9); -data2json(2)=struct('name','Sentinel Prime','rank',9); -data2json(3)=struct('name','Optimus Prime','rank',9); -saveubjson('Supreme Commander',data2json) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% a cell array\n') -fprintf(1,'%%=================================================\n\n') - -data2json=cell(3,1); -data2json{1}=struct('buzz',1.1,'rex',1.2,'bo',1.3,'hamm',2.0,'slink',2.1,'potato',2.2,... - 'woody',3.0,'sarge',3.1,'etch',4.0,'lenny',5.0,'squeeze',6.0,'wheezy',7.0); -data2json{2}=struct('Ubuntu',['Kubuntu';'Xubuntu';'Lubuntu']); -data2json{3}=[10.04,10.10,11.04,11.10] -saveubjson('debian',data2json,struct('FloatFormat','%.2f')) -json2data=loadubjson(ans) - -fprintf(1,'\n%%=================================================\n') -fprintf(1,'%% invalid field-name handling\n') -fprintf(1,'%%=================================================\n\n') - -json2data=loadubjson(saveubjson('',loadjson('{"ValidName":1, "_InvalidName":2, ":Field:":3, "éĦıç›":"çğċŻ†"}'))) - -rand ('state',rngstate); - diff --git a/cb-tools/jsonlab/examples/example1.json b/cb-tools/jsonlab/examples/example1.json deleted file mode 100644 index be0993ef..00000000 --- a/cb-tools/jsonlab/examples/example1.json +++ /dev/null @@ -1,23 +0,0 @@ - { - "firstName": "John", - "lastName": "Smith", - "age": 25, - "address": - { - "streetAddress": "21 2nd Street", - "city": "New York", - "state": "NY", - "postalCode": "10021" - }, - "phoneNumber": - [ - { - "type": "home", - "number": "212 555-1234" - }, - { - "type": "fax", - "number": "646 555-4567" - } - ] - } diff --git a/cb-tools/jsonlab/examples/example2.json b/cb-tools/jsonlab/examples/example2.json deleted file mode 100644 index eacfbf5e..00000000 --- a/cb-tools/jsonlab/examples/example2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "glossary": { - "title": "example glossary", - "GlossDiv": { - "title": "S", - "GlossList": { - "GlossEntry": { - "ID": "SGML", - "SortAs": "SGML", - "GlossTerm": "Standard Generalized Markup Language", - "Acronym": "SGML", - "Abbrev": "ISO 8879:1986", - "GlossDef": { - "para": "A meta-markup language, used to create markup languages such as DocBook.", - "GlossSeeAlso": ["GML", "XML"] - }, - "GlossSee": "markup" - } - } - } - } -} diff --git a/cb-tools/jsonlab/examples/example3.json b/cb-tools/jsonlab/examples/example3.json deleted file mode 100644 index b7ca9411..00000000 --- a/cb-tools/jsonlab/examples/example3.json +++ /dev/null @@ -1,11 +0,0 @@ -{"menu": { - "id": "file", - "value": "_&File", - "popup": { - "menuitem": [ - {"value": "_&New", "onclick": "CreateNewDoc(\"\"\")"}, - {"value": "_&Open", "onclick": "OpenDoc()"}, - {"value": "_&Close", "onclick": "CloseDoc()"} - ] - } -}} diff --git a/cb-tools/jsonlab/examples/example4.json b/cb-tools/jsonlab/examples/example4.json deleted file mode 100644 index 66deeafb..00000000 --- a/cb-tools/jsonlab/examples/example4.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "sample" : { - "rho" : 1 - } - }, - { - "sample" : { - "rho" : 2 - } - }, - [ - { - "_ArrayType_" : "double", - "_ArraySize_" : [1,2], - "_ArrayData_" : [1,0] - }, - { - "_ArrayType_" : "double", - "_ArraySize_" : [1,2], - "_ArrayData_" : [1,1] - }, - { - "_ArrayType_" : "double", - "_ArraySize_" : [1,2], - "_ArrayData_" : [1,2] - } - ], - [ - "Paper", - "Scissors", - "Stone" - ] -] diff --git a/cb-tools/jsonlab/examples/jsonlab_basictest.matlab b/cb-tools/jsonlab/examples/jsonlab_basictest.matlab deleted file mode 100644 index ff8380a1..00000000 --- a/cb-tools/jsonlab/examples/jsonlab_basictest.matlab +++ /dev/null @@ -1,361 +0,0 @@ - - < M A T L A B > - Copyright 1984-2007 The MathWorks, Inc. - Version 7.4.0.287 (R2007a) - January 29, 2007 - - - To get started, type one of these: helpwin, helpdesk, or demo. - For product information, visit www.mathworks.com. - ->> >> >> >> >> >> >> >> >> -%================================================= ->> % a simple scalar value ->> %================================================= - ->> >> -data2json = - - 3.1416 - ->> -ans = - -[3.141592654] - - ->> -json2data = - - 3.1416 - ->> >> -%================================================= ->> % a complex number ->> %================================================= - ->> >> >> -data2json = - - 1.0000 + 2.0000i - ->> -ans = - -{ - "_ArrayType_": "double", - "_ArraySize_": [1,1], - "_ArrayIsComplex_": 1, - "_ArrayData_": [1,2] -} - - ->> -json2data = - - 1.0000 + 2.0000i - ->> >> -%================================================= ->> % a complex matrix ->> %================================================= - ->> >> >> -data2json = - - 35.0000 +26.0000i 1.0000 +19.0000i 6.0000 +24.0000i - 3.0000 +21.0000i 32.0000 +23.0000i 7.0000 +25.0000i - 31.0000 +22.0000i 9.0000 +27.0000i 2.0000 +20.0000i - 8.0000 +17.0000i 28.0000 +10.0000i 33.0000 +15.0000i - 30.0000 +12.0000i 5.0000 +14.0000i 34.0000 +16.0000i - 4.0000 +13.0000i 36.0000 +18.0000i 29.0000 +11.0000i - ->> -ans = - -{ - "_ArrayType_": "double", - "_ArraySize_": [6,3], - "_ArrayIsComplex_": 1, - "_ArrayData_": [ - [35,26], - [3,21], - [31,22], - [8,17], - [30,12], - [4,13], - [1,19], - [32,23], - [9,27], - [28,10], - [5,14], - [36,18], - [6,24], - [7,25], - [2,20], - [33,15], - [34,16], - [29,11] - ] -} - - ->> -json2data = - - 35.0000 +26.0000i 1.0000 +19.0000i 6.0000 +24.0000i - 3.0000 +21.0000i 32.0000 +23.0000i 7.0000 +25.0000i - 31.0000 +22.0000i 9.0000 +27.0000i 2.0000 +20.0000i - 8.0000 +17.0000i 28.0000 +10.0000i 33.0000 +15.0000i - 30.0000 +12.0000i 5.0000 +14.0000i 34.0000 +16.0000i - 4.0000 +13.0000i 36.0000 +18.0000i 29.0000 +11.0000i - ->> >> -%================================================= ->> % MATLAB special constants ->> %================================================= - ->> >> -data2json = - - NaN Inf -Inf - ->> -ans = - -{ - "specials": ["_NaN_","_Inf_","-_Inf_"] -} - - ->> -json2data = - - specials: [NaN Inf -Inf] - ->> >> -%================================================= ->> % a real sparse matrix ->> %================================================= - ->> >> -data2json = - - (1,2) 0.6557 - (9,2) 0.7577 - (3,5) 0.8491 - (10,5) 0.7431 - (10,8) 0.3922 - (7,9) 0.6787 - (2,10) 0.0357 - (6,10) 0.9340 - (10,10) 0.6555 - ->> -ans = - -{ - "sparse": { - "_ArrayType_": "double", - "_ArraySize_": [10,10], - "_ArrayIsSparse_": 1, - "_ArrayData_": [ - [1,2,0.6557406992], - [9,2,0.7577401306], - [3,5,0.8491293059], - [10,5,0.7431324681], - [10,8,0.3922270195], - [7,9,0.6787351549], - [2,10,0.03571167857], - [6,10,0.9339932478], - [10,10,0.6554778902] - ] - } -} - - ->> -json2data = - - sparse: [10x10 double] - ->> >> -%================================================= ->> % a complex sparse matrix ->> %================================================= - ->> >> -data2json = - - (1,2) 0.6557 - 0.6557i - (9,2) 0.7577 - 0.7577i - (3,5) 0.8491 - 0.8491i - (10,5) 0.7431 - 0.7431i - (10,8) 0.3922 - 0.3922i - (7,9) 0.6787 - 0.6787i - (2,10) 0.0357 - 0.0357i - (6,10) 0.9340 - 0.9340i - (10,10) 0.6555 - 0.6555i - ->> -ans = - -{ - "complex_sparse": { - "_ArrayType_": "double", - "_ArraySize_": [10,10], - "_ArrayIsComplex_": 1, - "_ArrayIsSparse_": 1, - "_ArrayData_": [ - [1,2,0.6557406992,-0.6557406992], - [9,2,0.7577401306,-0.7577401306], - [3,5,0.8491293059,-0.8491293059], - [10,5,0.7431324681,-0.7431324681], - [10,8,0.3922270195,-0.3922270195], - [7,9,0.6787351549,-0.6787351549], - [2,10,0.03571167857,-0.03571167857], - [6,10,0.9339932478,-0.9339932478], - [10,10,0.6554778902,-0.6554778902] - ] - } -} - - ->> -json2data = - - complex_sparse: [10x10 double] - ->> >> -%================================================= ->> % a structure ->> %================================================= - ->> >> -data2json = - - name: 'Think Different' - year: 1997 - magic: [3x3 double] - misfits: [Inf NaN] - embedded: [1x1 struct] - ->> -ans = - -{ - "astruct": { - "name": "Think Different", - "year": 1997, - "magic": [ - [8,1,6], - [3,5,7], - [4,9,2] - ], - "misfits": ["_Inf_","_NaN_"], - "embedded": { - "left": true, - "right": false - } - } -} - - ->> -json2data = - - astruct: [1x1 struct] - ->> >> -%================================================= ->> % a structure array ->> %================================================= - ->> >> >> >> >> -ans = - -{ - "Supreme Commander": [ - { - "name": "Nexus Prime", - "rank": 9 - }, - { - "name": "Sentinel Prime", - "rank": 9 - }, - { - "name": "Optimus Prime", - "rank": 9 - } - ] -} - - ->> -json2data = - - Supreme_0x20_Commander: [1x3 struct] - ->> >> -%================================================= ->> % a cell array ->> %================================================= - ->> >> >> >> >> -data2json = - - [1x1 struct] - [1x1 struct] - [1x4 double] - ->> -ans = - -{ - "debian": [ - { - "buzz": 1.10, - "rex": 1.20, - "bo": 1.30, - "hamm": 2.00, - "slink": 2.10, - "potato": 2.20, - "woody": 3.00, - "sarge": 3.10, - "etch": 4.00, - "lenny": 5.00, - "squeeze": 6.00, - "wheezy": 7.00 - }, - { - "Ubuntu": [ - "Kubuntu", - "Xubuntu", - "Lubuntu" - ] - }, - [10.04,10.10,11.04,11.10] - ] -} - - ->> -json2data = - - debian: {[1x1 struct] [1x1 struct] [10.0400 10.1000 11.0400 11.1000]} - ->> >> -%================================================= ->> % invalid field-name handling ->> %================================================= - ->> >> -json2data = - - ValidName: 1 - x0x5F_InvalidName: 2 - x0x3A_Field_0x3A_: 3 - x0xE9A1B9__0xE79BAE_: 'çğċŻ†' - ->> >> >> >> \ No newline at end of file diff --git a/cb-tools/jsonlab/examples/jsonlab_selftest.m b/cb-tools/jsonlab/examples/jsonlab_selftest.m deleted file mode 100644 index c29ffbe3..00000000 --- a/cb-tools/jsonlab/examples/jsonlab_selftest.m +++ /dev/null @@ -1,12 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Regression Test Unit of loadjson and savejson -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -for i=1:4 - fname=sprintf('example%d.json',i); - if(exist(fname,'file')==0) break; end - fprintf(1,'===============================================\n>> %s\n',fname); - json=savejson('data',loadjson(fname)); - fprintf(1,'%s\n',json); - data=loadjson(json); -end diff --git a/cb-tools/jsonlab/examples/jsonlab_selftest.matlab b/cb-tools/jsonlab/examples/jsonlab_selftest.matlab deleted file mode 100644 index 84e66437..00000000 --- a/cb-tools/jsonlab/examples/jsonlab_selftest.matlab +++ /dev/null @@ -1,121 +0,0 @@ - - < M A T L A B > - Copyright 1984-2007 The MathWorks, Inc. - Version 7.4.0.287 (R2007a) - January 29, 2007 - - - To get started, type one of these: helpwin, helpdesk, or demo. - For product information, visit www.mathworks.com. - ->> >> >> >> >> =============================================== ->> example1.json -{ - "data": { - "firstName": "John", - "lastName": "Smith", - "age": 25, - "address": { - "streetAddress": "21 2nd Street", - "city": "New York", - "state": "NY", - "postalCode": "10021" - }, - "phoneNumber": [ - { - "type": "home", - "number": "212 555-1234" - }, - { - "type": "fax", - "number": "646 555-4567" - } - ] - } -} - -=============================================== ->> example2.json -{ - "data": { - "glossary": { - "title": "example glossary", - "GlossDiv": { - "title": "S", - "GlossList": { - "GlossEntry": { - "ID": "SGML", - "SortAs": "SGML", - "GlossTerm": "Standard Generalized Markup Language", - "Acronym": "SGML", - "Abbrev": "ISO 8879:1986", - "GlossDef": { - "para": "A meta-markup language, used to create markup languages such as DocBook.", - "GlossSeeAlso": [ - "GML", - "XML" - ] - }, - "GlossSee": "markup" - } - } - } - } - } -} - -=============================================== ->> example3.json -{ - "data": { - "menu": { - "id": "file", - "value": "_&File", - "popup": { - "menuitem": [ - { - "value": "_&New", - "onclick": "CreateNewDoc(\"\"\")" - }, - { - "value": "_&Open", - "onclick": "OpenDoc()" - }, - { - "value": "_&Close", - "onclick": "CloseDoc()" - } - ] - } - } - } -} - -=============================================== ->> example4.json -{ - "data": [ - { - "sample": { - "rho": 1 - } - }, - { - "sample": { - "rho": 2 - } - }, - [ - [1,0], - [1,1], - [1,2] - ], - [ - "Paper", - "Scissors", - "Stone" - ] - ] -} - ->> \ No newline at end of file diff --git a/cb-tools/jsonlab/examples/jsonlab_speedtest.m b/cb-tools/jsonlab/examples/jsonlab_speedtest.m deleted file mode 100644 index 4990fba0..00000000 --- a/cb-tools/jsonlab/examples/jsonlab_speedtest.m +++ /dev/null @@ -1,21 +0,0 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Benchmarking processing speed of savejson and loadjson -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -datalen=[1e3 1e4 1e5 1e6]; -len=length(datalen); -tsave=zeros(len,1); -tload=zeros(len,1); -for i=1:len - tic; - json=savejson('data',struct('d1',rand(datalen(i),3),'d2',rand(datalen(i),3)>0.5)); - tsave(i)=toc; - data=loadjson(json); - tload(i)=toc-tsave(i); - fprintf(1,'matrix size: %d\n',datalen(i)); -end - -loglog(datalen,tsave,'o-',datalen,tload,'r*-'); -legend('savejson runtime (s)','loadjson runtime (s)'); -xlabel('array size'); -ylabel('running time (s)'); diff --git a/cb-tools/jsonlab/jsonopt.m b/cb-tools/jsonlab/jsonopt.m deleted file mode 100644 index 4b541d33..00000000 --- a/cb-tools/jsonlab/jsonopt.m +++ /dev/null @@ -1,32 +0,0 @@ -function val=jsonopt(key,default,varargin) -% -% val=jsonopt(key,default,optstruct) -% -% setting options based on a struct. The struct can be produced -% by varargin2struct from a list of 'param','value' pairs -% -% authors:Qianqian Fang (fangq nmr.mgh.harvard.edu) -% -% $Id: loadjson.m 371 2012-06-20 12:43:06Z fangq $ -% -% input: -% key: a string with which one look up a value from a struct -% default: if the key does not exist, return default -% optstruct: a struct where each sub-field is a key -% -% output: -% val: if key exists, val=optstruct.key; otherwise val=default -% -% license: -% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details -% -% -- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) -% - -val=default; -if(nargin<=2) return; end -opt=varargin{1}; -if(isstruct(opt) && isfield(opt,key)) - val=getfield(opt,key); -end - diff --git a/cb-tools/jsonlab/loadjson.m b/cb-tools/jsonlab/loadjson.m deleted file mode 100644 index 2c5d77db..00000000 --- a/cb-tools/jsonlab/loadjson.m +++ /dev/null @@ -1,520 +0,0 @@ -function data = loadjson(fname,varargin) -% -% data=loadjson(fname,opt) -% or -% data=loadjson(fname,'param1',value1,'param2',value2,...) -% -% parse a JSON (JavaScript Object Notation) file or string -% -% authors:Qianqian Fang (fangq nmr.mgh.harvard.edu) -% date: 2011/09/09 -% Nedialko Krouchev: http://www.mathworks.com/matlabcentral/fileexchange/25713 -% date: 2009/11/02 -% Fran§ois Glineur: http://www.mathworks.com/matlabcentral/fileexchange/23393 -% date: 2009/03/22 -% Joel Feenstra: -% http://www.mathworks.com/matlabcentral/fileexchange/20565 -% date: 2008/07/03 -% -% $Id: loadjson.m 394 2012-12-18 17:58:11Z fangq $ -% -% input: -% fname: input file name, if fname contains "{}" or "[]", fname -% will be interpreted as a JSON string -% opt: a struct to store parsing options, opt can be replaced by -% a list of ('param',value) pairs. The param string is equivallent -% to a field in opt. -% -% output: -% dat: a cell array, where {...} blocks are converted into cell arrays, -% and [...] are converted to arrays -% -% license: -% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details -% -% -- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) -% - -global pos inStr len esc index_esc len_esc isoct arraytoken - -if(regexp(fname,'[\{\}\]\[]','once')) - string=fname; -elseif(exist(fname,'file')) - fid = fopen(fname,'rt'); - string = fscanf(fid,'%c'); - fclose(fid); -else - error('input file does not exist'); -end - -pos = 1; len = length(string); inStr = string; -isoct=false;%this slows things down a lot! exist('OCTAVE_VERSION'); -arraytoken=find(inStr=='[' | inStr==']' | inStr=='"'); -jstr=regexprep(inStr,'\\\\',' '); -escquote=regexp(jstr,'\\"'); -arraytoken=sort([arraytoken escquote]); - -% String delimiters and escape chars identified to improve speed: -esc = find(inStr=='"' | inStr=='\' ); % comparable to: regexp(inStr, '["\\]'); -index_esc = 1; len_esc = length(esc); - -opt=varargin2struct(varargin{:}); -jsoncount=1; -while pos <= len - switch(next_char) - case '{' - data{jsoncount} = parse_object(opt); - case '[' - data{jsoncount} = parse_array(opt); - otherwise - error_pos('Outer level structure must be an object or an array'); - end - jsoncount=jsoncount+1; -end % while - -jsoncount=length(data); -if(jsoncount==1 && iscell(data)) - data=data{1}; -end - -if(~isempty(data)) - if(isstruct(data)) % data can be a struct array - data=jstruct2array(data); - elseif(iscell(data)) - data=jcell2array(data); - end -end - - -%% -function newdata=parse_collection(id,data,obj) - -if(jsoncount>0 && exist('data','var')) - if(~iscell(data)) - newdata=cell(1); - newdata{1}=data; - data=newdata; - end -end - -%% -function newdata=jcell2array(data) -len=length(data); -newdata=data; -for i=1:len - if(isstruct(data{i})) - newdata{i}=jstruct2array(data{i}); - elseif(iscell(data{i})) - newdata{i}=jcell2array(data{i}); - end -end - -%%------------------------------------------------------------------------- -function newdata=jstruct2array(data) -fn=fieldnames(data); -newdata=data; -len=length(data); -for i=1:length(fn) % depth-first - for j=1:len - if(isstruct(getfield(data(j),fn{i}))) - newdata(j)=setfield(newdata(j),fn{i},jstruct2array(getfield(data(j),fn{i}))); - end - end -end -if(~isempty(strmatch('x0x5F_ArrayType_',fn)) && ~isempty(strmatch('x0x5F_ArrayData_',fn))) - newdata=cell(len,1); - for j=1:len - ndata=cast(data(j).x0x5F_ArrayData_,data(j).x0x5F_ArrayType_); - iscpx=0; - if(~isempty(strmatch('x0x5F_ArrayIsComplex_',fn))) - if(data(j).x0x5F_ArrayIsComplex_) - iscpx=1; - end - end - if(~isempty(strmatch('x0x5F_ArrayIsSparse_',fn))) - if(data(j).x0x5F_ArrayIsSparse_) - if(~isempty(strmatch('x0x5F_ArraySize_',fn))) - dim=data(j).x0x5F_ArraySize_; - if(iscpx && size(ndata,2)==4-any(dim==1)) - ndata(:,end-1)=complex(ndata(:,end-1),ndata(:,end)); - end - if isempty(ndata) - % All-zeros sparse - ndata=sparse(dim(1),prod(dim(2:end))); - elseif dim(1)==1 - % Sparse row vector - ndata=sparse(1,ndata(:,1),ndata(:,2),dim(1),prod(dim(2:end))); - elseif dim(2)==1 - % Sparse column vector - ndata=sparse(ndata(:,1),1,ndata(:,2),dim(1),prod(dim(2:end))); - else - % Generic sparse array. - ndata=sparse(ndata(:,1),ndata(:,2),ndata(:,3),dim(1),prod(dim(2:end))); - end - else - if(iscpx && size(ndata,2)==4) - ndata(:,3)=complex(ndata(:,3),ndata(:,4)); - end - ndata=sparse(ndata(:,1),ndata(:,2),ndata(:,3)); - end - end - elseif(~isempty(strmatch('x0x5F_ArraySize_',fn))) - if(iscpx && size(ndata,2)==2) - ndata=complex(ndata(:,1),ndata(:,2)); - end - ndata=reshape(ndata(:),data(j).x0x5F_ArraySize_); - end - newdata{j}=ndata; - end - if(len==1) - newdata=newdata{1}; - end -end - -%%------------------------------------------------------------------------- -function object = parse_object(varargin) - parse_char('{'); - object = []; - if next_char ~= '}' - while 1 - str = parseStr(varargin{:}); - if isempty(str) - error_pos('Name of value at position %d cannot be empty'); - end - parse_char(':'); - val = parse_value(varargin{:}); - eval( sprintf( 'object.%s = val;', valid_field(str) ) ); - if next_char == '}' - break; - end - parse_char(','); - end - end - parse_char('}'); - -%%------------------------------------------------------------------------- - -function object = parse_array(varargin) % JSON array is written in row-major order -global pos inStr isoct - parse_char('['); - object = cell(0, 1); - dim2=[]; - if next_char ~= ']' - [endpos e1l e1r maxlevel]=matching_bracket(inStr,pos); - arraystr=['[' inStr(pos:endpos)]; - arraystr=regexprep(arraystr,'"_NaN_"','NaN'); - arraystr=regexprep(arraystr,'"([-+]*)_Inf_"','$1Inf'); - arraystr(find(arraystr==sprintf('\n')))=[]; - arraystr(find(arraystr==sprintf('\r')))=[]; - %arraystr=regexprep(arraystr,'\s*,',','); % this is slow,sometimes needed - if(~isempty(e1l) && ~isempty(e1r)) % the array is in 2D or higher D - astr=inStr((e1l+1):(e1r-1)); - astr=regexprep(astr,'"_NaN_"','NaN'); - astr=regexprep(astr,'"([-+]*)_Inf_"','$1Inf'); - astr(find(astr==sprintf('\n')))=[]; - astr(find(astr==sprintf('\r')))=[]; - astr(find(astr==' '))=''; - if(isempty(find(astr=='[', 1))) % array is 2D - dim2=length(sscanf(astr,'%f,',[1 inf])); - end - else % array is 1D - astr=arraystr(2:end-1); - astr(find(astr==' '))=''; - [obj count errmsg nextidx]=sscanf(astr,'%f,',[1,inf]); - if(nextidx>=length(astr)-1) - object=obj; - pos=endpos; - parse_char(']'); - return; - end - end - if(~isempty(dim2)) - astr=arraystr; - astr(find(astr=='['))=''; - astr(find(astr==']'))=''; - astr(find(astr==' '))=''; - [obj count errmsg nextidx]=sscanf(astr,'%f,',inf); - if(nextidx>=length(astr)-1) - object=reshape(obj,dim2,numel(obj)/dim2)'; - pos=endpos; - parse_char(']'); - return; - end - end - arraystr=regexprep(arraystr,'\]\s*,','];'); - try - if(isoct && regexp(arraystr,'"','once')) - error('Octave eval can produce empty cells for JSON-like input'); - end - object=eval(arraystr); - pos=endpos; - catch - while 1 - val = parse_value(varargin{:}); - object{end+1} = val; - if next_char == ']' - break; - end - parse_char(','); - end - end - end - % 2014-02-13 CB added check to not "simplify" cells of strings - if jsonopt('SimplifyCell',0,varargin{:}) == 1 && ~iscellstr(object) - try - oldobj=object; - object=cell2mat(object')'; - if(iscell(oldobj) && isstruct(object) && numel(object)>1 && jsonopt('SimplifyCellArray',1,varargin{:})==0) - object=oldobj; - elseif(size(object,1)>1 && ndims(object)==2) - object=object'; - end - catch - end - end - parse_char(']'); - -%%------------------------------------------------------------------------- - -function parse_char(c) - global pos inStr len - skip_whitespace; - if pos > len || inStr(pos) ~= c - error_pos(sprintf('Expected %c at position %%d', c)); - else - pos = pos + 1; - skip_whitespace; - end - -%%------------------------------------------------------------------------- - -function c = next_char - global pos inStr len - skip_whitespace; - if pos > len - c = []; - else - c = inStr(pos); - end - -%%------------------------------------------------------------------------- - -function skip_whitespace - global pos inStr len - while pos <= len && isspace(inStr(pos)) - pos = pos + 1; - end - -%%------------------------------------------------------------------------- -function str = parseStr(varargin) - global pos inStr len esc index_esc len_esc - % len, ns = length(inStr), keyboard - if inStr(pos) ~= '"' - error_pos('String starting with " expected at position %d'); - else - pos = pos + 1; - end - str = ''; - while pos <= len - while index_esc <= len_esc && esc(index_esc) < pos - index_esc = index_esc + 1; - end - if index_esc > len_esc - str = [str inStr(pos:len)]; - pos = len + 1; - break; - else - str = [str inStr(pos:esc(index_esc)-1)]; - pos = esc(index_esc); - end - nstr = length(str); switch inStr(pos) - case '"' - pos = pos + 1; - if(~isempty(str)) - if(strcmp(str,'_Inf_')) - str=Inf; - elseif(strcmp(str,'-_Inf_')) - str=-Inf; - elseif(strcmp(str,'_NaN_')) - str=NaN; - end - end - return; - case '\' - if pos+1 > len - error_pos('End of file reached right after escape character'); - end - pos = pos + 1; - switch inStr(pos) - case {'"' '\' '/'} - str(nstr+1) = inStr(pos); - pos = pos + 1; - case {'b' 'f' 'n' 'r' 't'} - str(nstr+1) = sprintf(['\' inStr(pos)]); - pos = pos + 1; - case 'u' - if pos+4 > len - error_pos('End of file reached in escaped unicode character'); - end - str(nstr+(1:6)) = inStr(pos-1:pos+4); - pos = pos + 5; - end - otherwise % should never happen - str(nstr+1) = inStr(pos), keyboard - pos = pos + 1; - end - end - error_pos('End of file while expecting end of inStr'); - -%%------------------------------------------------------------------------- - -function num = parse_number(varargin) - global pos inStr len isoct - currstr=inStr(pos:end); - numstr=0; - if(isoct~=0) - numstr=regexp(currstr,'^\s*-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+\-]?\d+)?','end'); - [num, one] = sscanf(currstr, '%f', 1); - delta=numstr+1; - else - [num, one, err, delta] = sscanf(currstr, '%f', 1); - if ~isempty(err) - error_pos('Error reading number at position %d'); - end - end - pos = pos + delta-1; - -%%------------------------------------------------------------------------- - -function val = parse_value(varargin) - global pos inStr len - true = 1; false = 0; - - switch(inStr(pos)) - case '"' - val = parseStr(varargin{:}); - return; - case '[' - val = parse_array(varargin{:}); - return; - case '{' - val = parse_object(varargin{:}); - return; - case {'-','0','1','2','3','4','5','6','7','8','9'} - val = parse_number(varargin{:}); - return; - case 't' - if pos+3 <= len && strcmpi(inStr(pos:pos+3), 'true') - val = true; - pos = pos + 4; - return; - end - case 'f' - if pos+4 <= len && strcmpi(inStr(pos:pos+4), 'false') - val = false; - pos = pos + 5; - return; - end - case 'n' - if pos+3 <= len && strcmpi(inStr(pos:pos+3), 'null') - val = []; - pos = pos + 4; - return; - end - end - error_pos('Value expected at position %d'); -%%------------------------------------------------------------------------- - -function error_pos(msg) - global pos inStr len - poShow = max(min([pos-15 pos-1 pos pos+20],len),1); - if poShow(3) == poShow(2) - poShow(3:4) = poShow(2)+[0 -1]; % display nothing after - end - msg = [sprintf(msg, pos) ': ' ... - inStr(poShow(1):poShow(2)) '' inStr(poShow(3):poShow(4)) ]; - error( ['JSONparser:invalidFormat: ' msg] ); - -%%------------------------------------------------------------------------- - -function str = valid_field(str) -global isoct -% From MATLAB doc: field names must begin with a letter, which may be -% followed by any combination of letters, digits, and underscores. -% Invalid characters will be converted to underscores, and the prefix -% "x0x[Hex code]_" will be added if the first character is not a letter. - pos=regexp(str,'^[^A-Za-z]','once'); - if(~isempty(pos)) - if(~isoct) - str=regexprep(str,'^([^A-Za-z])','x0x${sprintf(''%X'',unicode2native($1))}_','once'); - else - str=sprintf('x0x%X_%s',char(str(1)),str(2:end)); - end - end - if(isempty(regexp(str,'[^0-9A-Za-z_]', 'once' ))) return; end - if(~isoct) - str=regexprep(str,'([^0-9A-Za-z_])','_0x${sprintf(''%X'',unicode2native($1))}_'); - else - pos=regexp(str,'[^0-9A-Za-z_]'); - if(isempty(pos)) return; end - str0=str; - pos0=[0 pos(:)' length(str)]; - str=''; - for i=1:length(pos) - str=[str str0(pos0(i)+1:pos(i)-1) sprintf('_0x%X_',str0(pos(i)))]; - end - if(pos(end)~=length(str)) - str=[str str0(pos0(end-1)+1:pos0(end))]; - end - end - %str(~isletter(str) & ~('0' <= str & str <= '9')) = '_'; - -%%------------------------------------------------------------------------- -function endpos = matching_quote(str,pos) -len=length(str); -while(pos1 && str(pos-1)=='\')) - endpos=pos; - return; - end - end - pos=pos+1; -end -error('unmatched quotation mark'); -%%------------------------------------------------------------------------- -function [endpos e1l e1r maxlevel] = matching_bracket(str,pos) -global arraytoken -level=1; -maxlevel=level; -endpos=0; -bpos=arraytoken(arraytoken>=pos); -tokens=str(bpos); -len=length(tokens); -pos=1; -e1l=[]; -e1r=[]; -while(pos<=len) - c=tokens(pos); - if(c==']') - level=level-1; - if(isempty(e1r)) e1r=bpos(pos); end - if(level==0) - endpos=bpos(pos); - return - end - end - if(c=='[') - if(isempty(e1l)) e1l=bpos(pos); end - level=level+1; - maxlevel=max(maxlevel,level); - end - if(c=='"') - pos=matching_quote(tokens,pos+1); - end - pos=pos+1; -end -if(endpos==0) - error('unmatched "]"'); -end - diff --git a/cb-tools/jsonlab/loadubjson.m b/cb-tools/jsonlab/loadubjson.m deleted file mode 100644 index 5ea53461..00000000 --- a/cb-tools/jsonlab/loadubjson.m +++ /dev/null @@ -1,478 +0,0 @@ -function data = loadubjson(fname,varargin) -% -% data=loadubjson(fname,opt) -% or -% data=loadubjson(fname,'param1',value1,'param2',value2,...) -% -% parse a JSON (JavaScript Object Notation) file or string -% -% authors:Qianqian Fang (fangq nmr.mgh.harvard.edu) -% date: 2013/08/01 -% -% $Id: loadubjson.m 410 2013-08-24 03:33:18Z fangq $ -% -% input: -% fname: input file name, if fname contains "{}" or "[]", fname -% will be interpreted as a UBJSON string -% opt: a struct to store parsing options, opt can be replaced by -% a list of ('param',value) pairs. The param string is equivallent -% to a field in opt. -% -% output: -% dat: a cell array, where {...} blocks are converted into cell arrays, -% and [...] are converted to arrays -% -% license: -% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details -% -% -- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) -% - -global pos inStr len esc index_esc len_esc isoct arraytoken - -if(regexp(fname,'[\{\}\]\[]','once')) - string=fname; -elseif(exist(fname,'file')) - fid = fopen(fname,'rt'); - string = fscanf(fid,'%c'); - fclose(fid); -else - error('input file does not exist'); -end - -pos = 1; len = length(string); inStr = string; -isoct=exist('OCTAVE_VERSION'); -arraytoken=find(inStr=='[' | inStr==']' | inStr=='"'); -jstr=regexprep(inStr,'\\\\',' '); -escquote=regexp(jstr,'\\"'); -arraytoken=sort([arraytoken escquote]); - -% String delimiters and escape chars identified to improve speed: -esc = find(inStr=='"' | inStr=='\' ); % comparable to: regexp(inStr, '["\\]'); -index_esc = 1; len_esc = length(esc); - -opt=varargin2struct(varargin{:}); -jsoncount=1; -while pos <= len - switch(next_char) - case '{' - data{jsoncount} = parse_object(opt); - case '[' - data{jsoncount} = parse_array(opt); - otherwise - error_pos('Outer level structure must be an object or an array'); - end - jsoncount=jsoncount+1; -end % while - -jsoncount=length(data); -if(jsoncount==1 && iscell(data)) - data=data{1}; -end - -if(~isempty(data)) - if(isstruct(data)) % data can be a struct array - data=jstruct2array(data); - elseif(iscell(data)) - data=jcell2array(data); - end -end - - -%% -function newdata=parse_collection(id,data,obj) - -if(jsoncount>0 && exist('data','var')) - if(~iscell(data)) - newdata=cell(1); - newdata{1}=data; - data=newdata; - end -end - -%% -function newdata=jcell2array(data) -len=length(data); -newdata=data; -for i=1:len - if(isstruct(data{i})) - newdata{i}=jstruct2array(data{i}); - elseif(iscell(data{i})) - newdata{i}=jcell2array(data{i}); - end -end - -%%------------------------------------------------------------------------- -function newdata=jstruct2array(data) -fn=fieldnames(data); -newdata=data; -len=length(data); -for i=1:length(fn) % depth-first - for j=1:len - if(isstruct(getfield(data(j),fn{i}))) - newdata(j)=setfield(newdata(j),fn{i},jstruct2array(getfield(data(j),fn{i}))); - end - end -end -if(~isempty(strmatch('x0x5F_ArrayType_',fn)) && ~isempty(strmatch('x0x5F_ArrayData_',fn))) - newdata=cell(len,1); - for j=1:len - ndata=cast(data(j).x0x5F_ArrayData_,data(j).x0x5F_ArrayType_); - iscpx=0; - if(~isempty(strmatch('x0x5F_ArrayIsComplex_',fn))) - if(data(j).x0x5F_ArrayIsComplex_) - iscpx=1; - end - end - if(~isempty(strmatch('x0x5F_ArrayIsSparse_',fn))) - if(data(j).x0x5F_ArrayIsSparse_) - if(~isempty(strmatch('x0x5F_ArraySize_',fn))) - dim=double(data(j).x0x5F_ArraySize_); - if(iscpx && size(ndata,2)==4-any(dim==1)) - ndata(:,end-1)=complex(ndata(:,end-1),ndata(:,end)); - end - if isempty(ndata) - % All-zeros sparse - ndata=sparse(dim(1),prod(dim(2:end))); - elseif dim(1)==1 - % Sparse row vector - ndata=sparse(1,ndata(:,1),ndata(:,2),dim(1),prod(dim(2:end))); - elseif dim(2)==1 - % Sparse column vector - ndata=sparse(ndata(:,1),1,ndata(:,2),dim(1),prod(dim(2:end))); - else - % Generic sparse array. - ndata=sparse(ndata(:,1),ndata(:,2),ndata(:,3),dim(1),prod(dim(2:end))); - end - else - if(iscpx && size(ndata,2)==4) - ndata(:,3)=complex(ndata(:,3),ndata(:,4)); - end - ndata=sparse(ndata(:,1),ndata(:,2),ndata(:,3)); - end - end - elseif(~isempty(strmatch('x0x5F_ArraySize_',fn))) - if(iscpx && size(ndata,2)==2) - ndata=complex(ndata(:,1),ndata(:,2)); - end - ndata=reshape(ndata(:),data(j).x0x5F_ArraySize_); - end - newdata{j}=ndata; - end - if(len==1) - newdata=newdata{1}; - end -end - -%%------------------------------------------------------------------------- -function object = parse_object(varargin) - parse_char('{'); - object = []; - if next_char ~= '}' - while 1 - str = parseStr(varargin{:}); - if isempty(str) - error_pos('Name of value at position %d cannot be empty'); - end - %parse_char(':'); - val = parse_value(varargin{:}); - eval( sprintf( 'object.%s = val;', valid_field(str) ) ); - if next_char == '}' - break; - end - %parse_char(','); - end - end - parse_char('}'); - -%%------------------------------------------------------------------------- -function [cid,len]=elem_info(type) -id=strfind('iUIlLdD',type); -dataclass={'int8','uint8','int16','int32','int64','single','double'}; -bytelen=[1,1,2,4,8,4,8]; -if(id>0) - cid=dataclass{id}; - len=bytelen(id); -else - error_pos('unsupported type at position %d'); -end -%%------------------------------------------------------------------------- - - -function [data adv]=parse_block(type,count,varargin) -global pos inStr isoct -[cid,len]=elem_info(type); -if(isoct) - data=typecast(int8(inStr(pos:pos+len*count-1)),cid); -else - data=typecast(uint8(inStr(pos:pos+len*count-1)),cid); -end -adv=double(len*count); - -%%------------------------------------------------------------------------- - - -function object = parse_array(varargin) % JSON array is written in row-major order -global pos inStr isoct - parse_char('['); - object = cell(0, 1); - dim=[]; - type=''; - count=-1; - if(next_char == '$') - type=inStr(pos+1); - pos=pos+2; - end - if(next_char == '#') - pos=pos+1; - if(next_char=='[') - dim=parse_array(varargin{:}); - count=prod(double(dim)); - else - count=double(parse_number()); - end - end - if(~isempty(type)) - if(count>=0) - [object adv]=parse_block(type,count,varargin{:}); - if(~isempty(dim)) - object=reshape(object,dim); - end - pos=pos+adv; - return; - else - endpos=matching_bracket(inStr,pos); - [cid,len]=elem_info(type); - count=(endpos-pos)/len; - [object adv]=parse_block(type,count,varargin{:}); - pos=pos+adv; - parse_char(']'); - return; - end - end - - if next_char ~= ']' - while 1 - val = parse_value(varargin{:}); - object{end+1} = val; - if next_char == ']' - break; - end - %parse_char(','); - end - end - if(jsonopt('SimplifyCell',0,varargin{:})==1) - try - oldobj=object; - object=cell2mat(object')'; - if(iscell(oldobj) && isstruct(object) && numel(object)>1 && jsonopt('SimplifyCellArray',1,varargin{:})==0) - object=oldobj; - elseif(size(object,1)>1 && ndims(object)==2) - object=object'; - end - catch - end - end - if(count==-1) - parse_char(']'); - end - -%%------------------------------------------------------------------------- - -function parse_char(c) - global pos inStr len - skip_whitespace; - if pos > len || inStr(pos) ~= c - error_pos(sprintf('Expected %c at position %%d', c)); - else - pos = pos + 1; - skip_whitespace; - end - -%%------------------------------------------------------------------------- - -function c = next_char - global pos inStr len - skip_whitespace; - if pos > len - c = []; - else - c = inStr(pos); - end - -%%------------------------------------------------------------------------- - -function skip_whitespace - global pos inStr len - while pos <= len && isspace(inStr(pos)) - pos = pos + 1; - end - -%%------------------------------------------------------------------------- -function str = parseStr(varargin) - global pos inStr esc index_esc len_esc - % len, ns = length(inStr), keyboard - type=inStr(pos); - if type ~= 'S' && type ~= 'C' - error_pos('String starting with S expected at position %d'); - else - pos = pos + 1; - end - if(type == 'C') - str=inStr(pos); - pos=pos+1; - return; - end - bytelen=double(parse_number()); - if(length(inStr)>=pos+bytelen-1) - str=inStr(pos:pos+bytelen-1); - pos=pos+bytelen; - else - error_pos('End of file while expecting end of inStr'); - end - -%%------------------------------------------------------------------------- - -function num = parse_number(varargin) - global pos inStr len isoct - id=strfind('iUIlLdD',inStr(pos)); - if(isempty(id)) - error_pos('expecting a number at position %d'); - end - type={'int8','uint8','int16','int32','int64','single','double'}; - bytelen=[1,1,2,4,8,4,8]; - if(isoct) - num=typecast(int8(inStr(pos+1:pos+bytelen(id))),type{id}); - else - num=typecast(uint8(inStr(pos+1:pos+bytelen(id))),type{id}); - end - pos = pos + bytelen(id)+1; - -%%------------------------------------------------------------------------- - -function val = parse_value(varargin) - global pos inStr len - true = 1; false = 0; - - switch(inStr(pos)) - case {'S','C'} - val = parseStr(varargin{:}); - return; - case '[' - val = parse_array(varargin{:}); - return; - case '{' - val = parse_object(varargin{:}); - return; - case {'i','U','I','l','L','d','D'} - val = parse_number(varargin{:}); - return; - case 'T' - val = true; - pos = pos + 1; - return; - case 'F' - val = false; - pos = pos + 1; - return; - case {'Z','N'} - val = []; - pos = pos + 1; - return; - end - error_pos('Value expected at position %d'); -%%------------------------------------------------------------------------- - -function error_pos(msg) - global pos inStr len - poShow = max(min([pos-15 pos-1 pos pos+20],len),1); - if poShow(3) == poShow(2) - poShow(3:4) = poShow(2)+[0 -1]; % display nothing after - end - msg = [sprintf(msg, pos) ': ' ... - inStr(poShow(1):poShow(2)) '' inStr(poShow(3):poShow(4)) ]; - error( ['JSONparser:invalidFormat: ' msg] ); - -%%------------------------------------------------------------------------- - -function str = valid_field(str) -global isoct -% From MATLAB doc: field names must begin with a letter, which may be -% followed by any combination of letters, digits, and underscores. -% Invalid characters will be converted to underscores, and the prefix -% "x0x[Hex code]_" will be added if the first character is not a letter. - pos=regexp(str,'^[^A-Za-z]','once'); - if(~isempty(pos)) - if(~isoct) - str=regexprep(str,'^([^A-Za-z])','x0x${sprintf(''%X'',unicode2native($1))}_','once'); - else - str=sprintf('x0x%X_%s',char(str(1)),str(2:end)); - end - end - if(isempty(regexp(str,'[^0-9A-Za-z_]', 'once' ))) return; end - if(~isoct) - str=regexprep(str,'([^0-9A-Za-z_])','_0x${sprintf(''%X'',unicode2native($1))}_'); - else - pos=regexp(str,'[^0-9A-Za-z_]'); - if(isempty(pos)) return; end - str0=str; - pos0=[0 pos(:)' length(str)]; - str=''; - for i=1:length(pos) - str=[str str0(pos0(i)+1:pos(i)-1) sprintf('_0x%X_',str0(pos(i)))]; - end - if(pos(end)~=length(str)) - str=[str str0(pos0(end-1)+1:pos0(end))]; - end - end - %str(~isletter(str) & ~('0' <= str & str <= '9')) = '_'; - -%%------------------------------------------------------------------------- -function endpos = matching_quote(str,pos) -len=length(str); -while(pos1 && str(pos-1)=='\')) - endpos=pos; - return; - end - end - pos=pos+1; -end -error('unmatched quotation mark'); -%%------------------------------------------------------------------------- -function [endpos e1l e1r maxlevel] = matching_bracket(str,pos) -global arraytoken -level=1; -maxlevel=level; -endpos=0; -bpos=arraytoken(arraytoken>=pos); -tokens=str(bpos); -len=length(tokens); -pos=1; -e1l=[]; -e1r=[]; -while(pos<=len) - c=tokens(pos); - if(c==']') - level=level-1; - if(isempty(e1r)) e1r=bpos(pos); end - if(level==0) - endpos=bpos(pos); - return - end - end - if(c=='[') - if(isempty(e1l)) e1l=bpos(pos); end - level=level+1; - maxlevel=max(maxlevel,level); - end - if(c=='"') - pos=matching_quote(tokens,pos+1); - end - pos=pos+1; -end -if(endpos==0) - error('unmatched "]"'); -end - diff --git a/cb-tools/jsonlab/mergestruct.m b/cb-tools/jsonlab/mergestruct.m deleted file mode 100644 index ce344ad2..00000000 --- a/cb-tools/jsonlab/mergestruct.m +++ /dev/null @@ -1,33 +0,0 @@ -function s=mergestruct(s1,s2) -% -% s=mergestruct(s1,s2) -% -% merge two struct objects into one -% -% authors:Qianqian Fang (fangq nmr.mgh.harvard.edu) -% date: 2012/12/22 -% -% input: -% s1,s2: a struct object, s1 and s2 can not be arrays -% -% output: -% s: the merged struct object. fields in s1 and s2 will be combined in s. -% -% license: -% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details -% -% -- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) -% - -if(~isstruct(s1) || ~isstruct(s2)) - error('input parameters contain non-struct'); -end -if(length(s1)>1 || length(s2)>1) - error('can not merge struct arrays'); -end -fn=fieldnames(s2); -s=s1; -for i=1:length(fn) - s=setfield(s,fn{i},getfield(s2,fn{i})); -end - diff --git a/cb-tools/jsonlab/origsavejson.m b/cb-tools/jsonlab/origsavejson.m deleted file mode 100644 index a4860ee0..00000000 --- a/cb-tools/jsonlab/origsavejson.m +++ /dev/null @@ -1,386 +0,0 @@ -function json=savejson(rootname,obj,varargin) -% -% json=savejson(rootname,obj,filename) -% or -% json=savejson(rootname,obj,opt) -% json=savejson(rootname,obj,'param1',value1,'param2',value2,...) -% -% convert a MATLAB object (cell, struct or array) into a JSON (JavaScript -% Object Notation) string -% -% author: Qianqian Fang (fangq nmr.mgh.harvard.edu) -% created on 2011/09/09 -% -% $Id: savejson.m 394 2012-12-18 17:58:11Z fangq $ -% -% input: -% rootname: name of the root-object, if set to '', will use variable name -% obj: a MATLAB object (array, cell, cell array, struct, struct array) -% filename: a string for the file name to save the output JSON data -% opt: a struct for additional options, use [] if all use default -% opt can have the following fields (first in [.|.] is the default) -% -% opt.FileName [''|string]: a file name to save the output JSON data -% opt.FloatFormat ['%.10g'|string]: format to show each numeric element -% of a 1D/2D array; -% opt.ArrayIndent [1|0]: if 1, output explicit data array with -% precedent indentation; if 0, no indentation -% opt.ArrayToStruct[0|1]: when set to 0, savejson outputs 1D/2D -% array in JSON array format; if sets to 1, an -% array will be shown as a struct with fields -% "_ArrayType_", "_ArraySize_" and "_ArrayData_"; for -% sparse arrays, the non-zero elements will be -% saved to _ArrayData_ field in triplet-format i.e. -% (ix,iy,val) and "_ArrayIsSparse_" will be added -% with a value of 1; for a complex array, the -% _ArrayData_ array will include two columns -% (4 for sparse) to record the real and imaginary -% parts, and also "_ArrayIsComplex_":1 is added. -% opt.ParseLogical [0|1]: if this is set to 1, logical array elem -% will use true/false rather than 1/0. -% opt.NoRowBracket [1|0]: if this is set to 1, arrays with a single -% numerical element will be shown without a square -% bracket, unless it is the root object; if 0, square -% brackets are forced for any numerical arrays. -% opt.ForceRootName [0|1]: when set to 1 and rootname is empty, savejson -% will use the name of the passed obj variable as the -% root object name; if obj is an expression and -% does not have a name, 'root' will be used; if this -% is set to 0 and rootname is empty, the root level -% will be merged down to the lower level. -% opt.Inf ['"$1_Inf_"'|string]: a customized regular expression pattern -% to represent +/-Inf. The matched pattern is '([-+]*)Inf' -% and $1 represents the sign. For those who want to use -% 1e999 to represent Inf, they can set opt.Inf to '$11e999' -% opt.NaN ['"_NaN_"'|string]: a customized regular expression pattern -% to represent NaN -% opt.JSONP [''|string]: to generate a JSONP output (JSON with padding), -% for example, if opt.JSON='foo', the JSON data is -% wrapped inside a function call as 'foo(...);' -% opt.UnpackHex [1|0]: conver the 0x[hex code] output by loadjson -% back to the string form -% opt can be replaced by a list of ('param',value) pairs. The param -% string is equivallent to a field in opt. -% output: -% json: a string in the JSON format (see http://json.org) -% -% examples: -% a=struct('node',[1 9 10; 2 1 1.2], 'elem',[9 1;1 2;2 3],... -% 'face',[9 01 2; 1 2 3; NaN,Inf,-Inf], 'author','FangQ'); -% savejson('mesh',a) -% savejson('',a,'ArrayIndent',0,'FloatFormat','\t%.5g') -% -% license: -% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details -% -% -- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) -% - -if(nargin==1) - varname=inputname(1); - obj=rootname; - if(isempty(varname)) - varname='root'; - end - rootname=varname; -else - varname=inputname(2); -end -if(length(varargin)==1 && ischar(varargin{1})) - opt=struct('FileName',varargin{1}); -else - opt=varargin2struct(varargin{:}); -end -opt.IsOctave=exist('OCTAVE_VERSION'); -rootisarray=0; -rootlevel=1; -forceroot=jsonopt('ForceRootName',0,opt); -if((isnumeric(obj) || islogical(obj) || ischar(obj) || isstruct(obj) || iscell(obj)) && isempty(rootname) && forceroot==0) - rootisarray=1; - rootlevel=0; -else - if(isempty(rootname)) - rootname=varname; - end -end -if((isstruct(obj) || iscell(obj))&& isempty(rootname) && forceroot) - rootname='root'; -end -json=obj2json(rootname,obj,rootlevel,opt); -if(rootisarray) - json=sprintf('%s\n',json); -else - json=sprintf('{\n%s\n}\n',json); -end - -jsonp=jsonopt('JSONP','',opt); -if(~isempty(jsonp)) - json=sprintf('%s(%s);\n',jsonp,json); -end - -% save to a file if FileName is set, suggested by Patrick Rapin -if(~isempty(jsonopt('FileName','',opt))) - fid = fopen(opt.FileName, 'wt'); - fwrite(fid,json,'char'); - fclose(fid); -end - -%%------------------------------------------------------------------------- -function txt=obj2json(name,item,level,varargin) - -if(iscell(item)) - txt=cell2json(name,item,level,varargin{:}); -elseif(isstruct(item)) - txt=struct2json(name,item,level,varargin{:}); -elseif(ischar(item)) - txt=str2json(name,item,level,varargin{:}); -else - txt=mat2json(name,item,level,varargin{:}); -end - -%%------------------------------------------------------------------------- -function txt=cell2json(name,item,level,varargin) -txt=''; -if(~iscell(item)) - error('input is not a cell'); -end - -dim=size(item); -len=numel(item); % let's handle 1D cell first -level -padding1=repmat(sprintf('\t'),1,level-1); -padding0=repmat(sprintf('\t'),1,level); -if(len>1) - if(~isempty(name)) - txt=sprintf('%s"%s": [\n',padding0, checkname(name,varargin{:})); name=''; - else - txt=sprintf('%s[\n',padding0); - end -elseif(len==0) - if(~isempty(name)) - txt=sprintf('%s"%s": null',padding0, checkname(name,varargin{:})); name=''; - else - txt=sprintf('%snull',padding0); - end -end -for i=1:len - txt=sprintf('%s%s%s',txt,padding1,obj2json(name,item{i},level+(len>1),varargin{:})); - if(i1) txt=sprintf('%s\n%s]',txt,padding0); end - -%%------------------------------------------------------------------------- -function txt=struct2json(name,item,level,varargin) -txt=''; -if(~isstruct(item)) - error('input is not a struct'); -end -len=numel(item); -padding1=repmat(sprintf('\t'),1,level-1); -padding0=repmat(sprintf('\t'),1,level); -sep=','; - -if(~isempty(name)) - if(len>1) txt=sprintf('%s"%s": [\n',padding0,checkname(name,varargin{:})); end -else - if(len>1) txt=sprintf('%s[\n',padding0); end -end -for e=1:len - names = fieldnames(item(e)); - if(~isempty(name) && len==1) - txt=sprintf('%s%s"%s": {\n',txt,repmat(sprintf('\t'),1,level+(len>1)), checkname(name,varargin{:})); - else - txt=sprintf('%s%s{\n',txt,repmat(sprintf('\t'),1,level+(len>1))); - end - if(~isempty(names)) - for i=1:length(names) - txt=sprintf('%s%s',txt,obj2json(names{i},getfield(item(e),... - names{i}),level+1+(len>1),varargin{:})); - if(i1))); - if(e==len) sep=''; end - if(e1) txt=sprintf('%s\n%s]',txt,padding0); end - -%%------------------------------------------------------------------------- -function txt=str2json(name,item,level,varargin) -txt=''; -if(~ischar(item)) - error('input is not a string'); -end -item=reshape(item, max(size(item),[1 0])); -len=size(item,1); -sep=sprintf(',\n'); - -padding1=repmat(sprintf('\t'),1,level); -padding0=repmat(sprintf('\t'),1,level+1); - -if(~isempty(name)) - if(len>1) txt=sprintf('%s"%s": [\n',padding1,checkname(name,varargin{:})); end -else - if(len>1) txt=sprintf('%s[\n',padding1); end -end -isoct=jsonopt('IsOctave',0,varargin{:}); -for e=1:len - if(isoct) - val=regexprep(item(e,:),'\\','\\'); - val=regexprep(val,'"','\"'); - val=regexprep(val,'^"','\"'); - else - val=regexprep(item(e,:),'\\','\\\\'); - val=regexprep(val,'"','\\"'); - val=regexprep(val,'^"','\\"'); - end - if(len==1) - obj=['"' checkname(name,varargin{:}) '": ' '"',val,'"']; - if(isempty(name)) obj=['"',val,'"']; end - txt=sprintf('%s%s%s%s',txt,repmat(sprintf('\t'),1,level),obj); - else - txt=sprintf('%s%s%s%s',txt,repmat(sprintf('\t'),1,level+1),['"',val,'"']); - end - if(e==len) sep=''; end - txt=sprintf('%s%s',txt,sep); -end -if(len>1) txt=sprintf('%s\n%s%s',txt,padding1,']'); end - -%%------------------------------------------------------------------------- -function txt=mat2json(name,item,level,varargin) -if(~isnumeric(item) && ~islogical(item)) - error('input is not an array'); -end - -padding1=repmat(sprintf('\t'),1,level); -padding0=repmat(sprintf('\t'),1,level+1); - -if(length(size(item))>2 || issparse(item) || ~isreal(item) || ... - isempty(item) ||jsonopt('ArrayToStruct',0,varargin{:})) - if(isempty(name)) - txt=sprintf('%s{\n%s"_ArrayType_": "%s",\n%s"_ArraySize_": %s,\n',... - padding1,padding0,class(item),padding0,regexprep(mat2str(size(item)),'\s+',',') ); - else - txt=sprintf('%s"%s": {\n%s"_ArrayType_": "%s",\n%s"_ArraySize_": %s,\n',... - padding1,checkname(name,varargin{:}),padding0,class(item),padding0,regexprep(mat2str(size(item)),'\s+',',') ); - end -else - if(isempty(name)) - txt=sprintf('%s%s',padding1,matdata2json(item,level+1,varargin{:})); - else - if(numel(item)==1 && jsonopt('NoRowBracket',1,varargin{:})==1) - numtxt=regexprep(regexprep(matdata2json(item,level+1,varargin{:}),'^\[',''),']',''); - txt=sprintf('%s"%s": %s',padding1,checkname(name,varargin{:}),numtxt); - else - txt=sprintf('%s"%s": %s',padding1,checkname(name,varargin{:}),matdata2json(item,level+1,varargin{:})); - end - end - return; -end -dataformat='%s%s%s%s%s'; - -if(issparse(item)) - [ix,iy]=find(item); - data=full(item(find(item))); - if(~isreal(item)) - data=[real(data(:)),imag(data(:))]; - if(size(item,1)==1) - % Kludge to have data's 'transposedness' match item's. - % (Necessary for complex row vector handling below.) - data=data'; - end - txt=sprintf(dataformat,txt,padding0,'"_ArrayIsComplex_": ','1', sprintf(',\n')); - end - txt=sprintf(dataformat,txt,padding0,'"_ArrayIsSparse_": ','1', sprintf(',\n')); - if(size(item,1)==1) - % Row vector, store only column indices. - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json([iy(:),data'],level+2,varargin{:}), sprintf('\n')); - elseif(size(item,2)==1) - % Column vector, store only row indices. - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json([ix,data],level+2,varargin{:}), sprintf('\n')); - else - % General case, store row and column indices. - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json([ix,iy,data],level+2,varargin{:}), sprintf('\n')); - end -else - if(isreal(item)) - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json(item(:)',level+2,varargin{:}), sprintf('\n')); - else - txt=sprintf(dataformat,txt,padding0,'"_ArrayIsComplex_": ','1', sprintf(',\n')); - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json([real(item(:)) imag(item(:))],level+2,varargin{:}), sprintf('\n')); - end -end -txt=sprintf('%s%s%s',txt,padding1,'}'); - -%%------------------------------------------------------------------------- -function txt=matdata2json(mat,level,varargin) -if(size(mat,1)==1) - pre=''; - post=''; - level=level-1; -else - pre=sprintf('[\n'); - post=sprintf('\n%s]',repmat(sprintf('\t'),1,level-1)); -end -if(isempty(mat)) - txt='null'; - return; -end -floatformat=jsonopt('FloatFormat','%.10g',varargin{:}); -formatstr=['[' repmat([floatformat ','],1,size(mat,2)-1) [floatformat sprintf('],\n')]]; - -if(nargin>=2 && size(mat,1)>1 && jsonopt('ArrayIndent',1,varargin{:})==1) - formatstr=[repmat(sprintf('\t'),1,level) formatstr]; -end -txt=sprintf(formatstr,mat'); -txt(end-1:end)=[]; -if(islogical(mat) && jsonopt('ParseLogical',0,varargin{:})==1) - txt=regexprep(txt,'1','true'); - txt=regexprep(txt,'0','false'); -end -%txt=regexprep(mat2str(mat),'\s+',','); -%txt=regexprep(txt,';',sprintf('],\n[')); -% if(nargin>=2 && size(mat,1)>1) -% txt=regexprep(txt,'\[',[repmat(sprintf('\t'),1,level) '[']); -% end -txt=[pre txt post]; -if(any(isinf(mat(:)))) - txt=regexprep(txt,'([-+]*)Inf',jsonopt('Inf','"$1_Inf_"',varargin{:})); -end -if(any(isnan(mat(:)))) - txt=regexprep(txt,'NaN',jsonopt('NaN','"_NaN_"',varargin{:})); -end - -%%------------------------------------------------------------------------- -function newname=checkname(name,varargin) -isunpack=jsonopt('UnpackHex',1,varargin{:}); -newname=name; -if(isempty(regexp(name,'0x([0-9a-fA-F]+)_','once'))) - return -end -if(isunpack) - isoct=jsonopt('IsOctave',0,varargin{:}); - if(~isoct) - newname=regexprep(name,'(^x|_){1}0x([0-9a-fA-F]+)_','${native2unicode(hex2dec($2))}'); - else - pos=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','start'); - pend=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','end'); - if(isempty(pos)) return; end - str0=name; - pos0=[0 pend(:)' length(name)]; - newname=''; - for i=1:length(pos) - newname=[newname str0(pos0(i)+1:pos(i)-1) char(hex2dec(str0(pos(i)+3:pend(i)-1)))]; - end - if(pos(end)~=length(name)) - newname=[newname str0(pos0(end-1)+1:pos0(end))]; - end - end -end - diff --git a/cb-tools/jsonlab/savejson.m b/cb-tools/jsonlab/savejson.m deleted file mode 100644 index 5fde6935..00000000 --- a/cb-tools/jsonlab/savejson.m +++ /dev/null @@ -1,435 +0,0 @@ -function json=savejson(rootname,obj,varargin) -% -% json=savejson(rootname,obj,filename) -% or -% json=savejson(rootname,obj,opt) -% json=savejson(rootname,obj,'param1',value1,'param2',value2,...) -% -% convert a MATLAB object (cell, struct or array) into a JSON (JavaScript -% Object Notation) string -% -% author: Qianqian Fang (fangq nmr.mgh.harvard.edu) -% created on 2011/09/09 -% -% $Id: savejson.m 394 2012-12-18 17:58:11Z fangq $ -% -% input: -% rootname: name of the root-object, if set to '', will use variable name -% obj: a MATLAB object (array, cell, cell array, struct, struct array) -% filename: a string for the file name to save the output JSON data -% opt: a struct for additional options, use [] if all use default -% opt can have the following fields (first in [.|.] is the default) -% -% opt.FileName [''|string]: a file name to save the output JSON data -% opt.FloatFormat ['%.10g'|string]: format to show each numeric element -% of a 1D/2D array; -% opt.ArrayIndent [1|0]: if 1, output explicit data array with -% precedent indentation; if 0, no indentation -% opt.ArrayToStruct[0|1]: when set to 0, savejson outputs 1D/2D -% array in JSON array format; if sets to 1, an -% array will be shown as a struct with fields -% "_ArrayType_", "_ArraySize_" and "_ArrayData_"; for -% sparse arrays, the non-zero elements will be -% saved to _ArrayData_ field in triplet-format i.e. -% (ix,iy,val) and "_ArrayIsSparse_" will be added -% with a value of 1; for a complex array, the -% _ArrayData_ array will include two columns -% (4 for sparse) to record the real and imaginary -% parts, and also "_ArrayIsComplex_":1 is added. -% opt.ParseLogical [0|1]: if this is set to 1, logical array elem -% will use true/false rather than 1/0. -% opt.NoRowBracket [1|0]: if this is set to 1, arrays with a single -% numerical element will be shown without a square -% bracket, unless it is the root object; if 0, square -% brackets are forced for any numerical arrays. -% opt.ForceRootName [0|1]: when set to 1 and rootname is empty, savejson -% will use the name of the passed obj variable as the -% root object name; if obj is an expression and -% does not have a name, 'root' will be used; if this -% is set to 0 and rootname is empty, the root level -% will be merged down to the lower level. -% opt.Inf ['"$1_Inf_"'|string]: a customized regular expression pattern -% to represent +/-Inf. The matched pattern is '([-+]*)Inf' -% and $1 represents the sign. For those who want to use -% 1e999 to represent Inf, they can set opt.Inf to '$11e999' -% opt.NaN ['"_NaN_"'|string]: a customized regular expression pattern -% to represent NaN -% opt.JSONP [''|string]: to generate a JSONP output (JSON with padding), -% for example, if opt.JSON='foo', the JSON data is -% wrapped inside a function call as 'foo(...);' -% opt.UnpackHex [1|0]: conver the 0x[hex code] output by loadjson -% back to the string form -% opt can be replaced by a list of ('param',value) pairs. The param -% string is equivallent to a field in opt. -% output: -% json: a string in the JSON format (see http://json.org) -% -% examples: -% a=struct('node',[1 9 10; 2 1 1.2], 'elem',[9 1;1 2;2 3],... -% 'face',[9 01 2; 1 2 3; NaN,Inf,-Inf], 'author','FangQ'); -% savejson('mesh',a) -% savejson('',a,'ArrayIndent',0,'FloatFormat','\t%.5g') -% -% license: -% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details -% -% -- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) -% - -if(nargin==1) - varname=inputname(1); - obj=rootname; - if(isempty(varname)) - varname='root'; - end - rootname=varname; -else - varname=inputname(2); -end -if(length(varargin)==1 && ischar(varargin{1})) - opt=struct('FileName',varargin{1}); -else - opt=varargin2struct(varargin{:}); -end -opt.IsOctave=exist('OCTAVE_VERSION', 'builtin'); -rootisarray=0; -rootlevel=1; -forceroot=jsonopt('ForceRootName',0,opt); - -tab = sprintf('\t'); -newline = sprintf('\n'); -floatformat=jsonopt('FloatFormat','%.10g',opt); -arrayIndent=jsonopt('ArrayIndent',1,opt)==1; -parseLogical=jsonopt('ParseLogical',0,opt)==1; -noRowBracket=jsonopt('NoRowBracket',1,opt)==1; -arrayToStruct=jsonopt('ArrayToStruct',0,opt); -unpackHex=jsonopt('UnpackHex',1,opt); -jsonp=jsonopt('JSONP','',opt); - -% speedup? -maxlevel = 25; % maximum object nesting degree to save padding for -pad = cell(maxlevel+1,1); % idx 1 is zero level padding -for l = 1:maxlevel - pad{l+1} = [pad{l} tab]; -end - -if((isnumeric(obj) || islogical(obj) || ischar(obj) || isstruct(obj) || iscell(obj)) && isempty(rootname) && forceroot==0) - rootisarray=1; - rootlevel=0; -else - if(isempty(rootname)) - rootname=varname; - end -end -if((isstruct(obj) || iscell(obj))&& isempty(rootname) && forceroot) - rootname='root'; -end - -json=obj2json(checkname(rootname),obj,rootlevel); -if(rootisarray) - json=sprintf('%s\n',json); -else - json=sprintf('{\n%s\n}\n',json); -end -if(~isempty(jsonp)) - json=sprintf('%s(%s);\n',jsonp,json); -end -% save to a file if FileName is set, suggested by Patrick Rapin -if ~isempty(jsonopt('FileName','',opt)) - fid = fopen(opt.FileName, 'wt'); - fwrite(fid,json,'char'); - fclose(fid); -end - - %%------------------------------------------------------------------------- - function txt=obj2json(name,item,level) - - if(iscell(item)) - txt=cell2json(name,item,level,opt); - elseif(isstruct(item)) - txt=struct2json(name,item,level); - elseif(ischar(item)) - txt=str2json(name,item,level,opt); - else - txt=mat2json(name,item,level); - end - end - - %%------------------------------------------------------------------------- - function txt=cell2json(name,item,level,varargin) - %% Warning i need some work, and checking that loadjson mirrors this well - txt=''; - if(~iscell(item)) - error('input is not a cell'); - end - - len=numel(item); % let's handle 1D cell first -% padding1=pad{level};%repmat(sprintf('\t'),1,level-1); ??? - padding0=pad{level+1};%repmat(sprintf('\t'),1,level); - if (~isempty(name)) - txt=sprintf('%s"%s": [',padding0, name); name=''; - else - txt=sprintf('%s[',padding0); - end - if len==0 - txt = [txt ']']; - else - for i=1:len - txt=[txt newline obj2json(name,item{i},level+1)]; - if(i1); - names = fieldnames(item); - checkedNames = cellfun(@checkname, names, 'uni', false); - padding0=pad{level+1}; %padding for this level - padding1=pad{bracelevel+1}; %padding for braces, maybe deeper than this - values = struct2cell(item); % all structure values in a table - elemstxt = cell(size(item)); % array to store each elements object text - for e=1:len - elements = cell(1,numel(names)); - for f=1:numel(names) - elements{f} = obj2json(checkedNames{f},values{f,e},bracelevel+1); - end - elementstxt = sprintf('\n%s,', elements{:}); % format all fields together - elemstxt{e} = elementstxt(1:end-1); - end - linepad = [newline padding1]; - intxt = sprintf(['{%s\n' padding1 '},' linepad], elemstxt{:}); % format all elements - intxt = intxt(1:(end-numel(linepad)-1)); % snip off next element tokens/formatting - if(len==1) - if ~isempty(name) - txt=[padding0 '"' name '": ' intxt]; - else - txt=intxt; - end - else - txt=[padding0 '"' name '": [' linepad intxt newline padding0 ']']; - end - end - - %%------------------------------------------------------------------------- - function txt=str2json(name,item,level,varargin) - txt=''; - if(~ischar(item)) - error('input is not a string'); - end - item=reshape(item, max(size(item),[1 0])); - len=size(item,1); - sep=sprintf(',\n'); - - padding1=pad{level+1}; - - if(~isempty(name)) - if(len>1) txt=sprintf('%s"%s": [\n',padding1,name); end - else - if(len>1) txt=sprintf('%s[\n',padding1); end - end - isoct=jsonopt('IsOctave',0,varargin{:}); - for e=1:len - if(isoct) - val=regexprep(item(e,:),'\\','\\'); - val=regexprep(val,'"','\"'); - val=regexprep(val,'^"','\"'); - else - val=regexprep(item(e,:),'\\','\\\\'); - val=regexprep(val,'"','\\"'); - val=regexprep(val,'^"','\\"'); - end - if(len==1) - obj=['"' name '": ' '"',val,'"']; - if(isempty(name)) obj=['"',val,'"']; end - txt=sprintf('%s%s%s%s',txt,padding1,obj); - else - txt=[txt pad{level+2} '"',val,'"']; - end - if(e==len) sep=''; end - txt=sprintf('%s%s',txt,sep); - end - if(len>1) txt=sprintf('%s\n%s%s',txt,padding1,']'); end - end - - %%------------------------------------------------------------------------- - function txt=mat2json(name,item,level) - if(~isnumeric(item) && ~islogical(item)) - error('input is not an array'); - end - - padding1=pad{level+1};%repmat(tab,1,level); - padding0=pad{level+2};%repmat(tab,1,level+1); - - if(length(size(item))>2 || issparse(item) || ~isreal(item) || ... - isempty(item) || arrayToStruct) - if(isempty(name)) - txt=sprintf('%s{\n%s"_ArrayType_": "%s",\n%s"_ArraySize_": %s,\n',... - padding1,padding0,class(item),padding0,regexprep(mat2str(size(item)),'\s+',',') ); - else - txt=sprintf('%s"%s": {\n%s"_ArrayType_": "%s",\n%s"_ArraySize_": %s,\n',... - padding1,name,padding0,class(item),padding0,regexprep(mat2str(size(item)),'\s+',',') ); - end - else - if(isempty(name)) - %% warning i may have broken this part - txt=sprintf('%s%s',padding1,matdata2json(item,level+1)); -% txt=sprintf('%s[%s]',padding1,matdata2json(item,level+1)); - else - txt = [padding1 '"' name '": ' matdata2json(item,level+1)]; -% if(numel(item)==1 && ~noRowBracket) -% %numtxt=regexprep(regexprep(numtxt,'^\[',''),']',''); -% %assume square brackets first + last chars -% numtxt = numtxt(2:end-1); -% end -% txt=[padding1 '"' name '": ' numtxt]; - end - return; - end - dataformat='%s%s%s%s%s'; - - if(issparse(item)) - [ix,iy]=find(item); - data=full(item(find(item))); - if(~isreal(item)) - data=[real(data(:)),imag(data(:))]; - if(size(item,1)==1) - % Kludge to have data's 'transposedness' match item's. - % (Necessary for complex row vector handling below.) - data=data'; - end - txt=sprintf(dataformat,txt,padding0,'"_ArrayIsComplex_": ','1', sprintf(',\n')); - end - txt=sprintf(dataformat,txt,padding0,'"_ArrayIsSparse_": ','1', sprintf(',\n')); - if(size(item,1)==1) - % Row vector, store only column indices. - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json([iy(:),data'],level+2), sprintf('\n')); - elseif(size(item,2)==1) - % Column vector, store only row indices. - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json([ix,data],level+2), sprintf('\n')); - else - % General case, store row and column indices. - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json([ix,iy,data],level+2), sprintf('\n')); - end - else - if(isreal(item)) - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json(item(:)',level+2), sprintf('\n')); - else - txt=sprintf(dataformat,txt,padding0,'"_ArrayIsComplex_": ','1', sprintf(',\n')); - txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',... - matdata2json([real(item(:)) imag(item(:))],level+2), sprintf('\n')); - end - end - txt=sprintf('%s%s%s',txt,padding1,'}'); - end - - %%------------------------------------------------------------------------- - function txt=matdata2json(mat,level) - % handle each case individually for maximum speed - if numel(mat) == 1 - txt = sprintf(floatformat, mat); - if ~noRowBracket - txt = ['[' txt ']']; - end - elseif isempty(mat) - txt = 'null'; - elseif isrow(mat) - txt = sprintf([floatformat ','], mat); - txt = ['[' txt(1:end-1) ']']; - elseif iscolumn(mat) - txt = sprintf([newline pad{level+1} '[' floatformat '],'], mat); - txt = ['[' txt(1:end-1) newline pad{level} ']']; - else % matrix with rows>1 & cols>1 - formatstr=['[' repmat([floatformat ','],1,size(mat,2)-1) floatformat '],' newline]; - if arrayIndent - formatstr = [pad{level+1} formatstr]; - end - txt = sprintf(formatstr,mat'); - txt = ['[' newline txt(1:end-2) newline pad{level} ']']; - end -% if(size(mat,1)==1) -% pre=''; -% post=''; -% level=level-1; -% else -% pre=sprintf('[\n'); -% post=sprintf('\n%s]',pad{level}); -% end -% if(isempty(mat)) -% txt='null'; -% return; -% end -% -% formatstr=['[' repmat([floatformat ','],1,size(mat,2)-1) floatformat '],' newline]; -% -% if(nargin>=2 && size(mat,1)>1 && arrayIndent) -% formatstr=[pad{level+1} formatstr]; -% end -% % intxt=sprintf(formatstr,mat'); -% txt=sprintf(formatstr,mat'); - if(parseLogical && islogical(mat)) - txt=regexprep(txt,'1','true'); - txt=regexprep(txt,'0','false'); - end - if(any(isinf(mat(:)))) - txt=regexprep(txt,'([-+]*)Inf',jsonopt('Inf','"$1_Inf_"',opt)); - end - if(any(isnan(mat(:)))) - txt=regexprep(txt,'NaN',jsonopt('NaN','"_NaN_"',opt)); - end - end - - %%------------------------------------------------------------------------- - function name=checkname(name) - if(isempty(regexp(name,'0x([0-9a-fA-F]+)_','once'))) - return - elseif unpackHex - isoct=jsonopt('IsOctave',0,opt); - if(~isoct) - name=regexprep(name,'(^x|_){1}0x([0-9a-fA-F]+)_','${native2unicode(hex2dec($2))}'); - else - pos=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','start'); - pend=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','end'); - if(isempty(pos)) return; end - str0=name; - pos0=[0 pend(:)' length(name)]; - name=''; - for i=1:length(pos) - name=[name str0(pos0(i)+1:pos(i)-1) char(hex2dec(str0(pos(i)+3:pend(i)-1)))]; - end - if(pos(end)~=length(name)) - name=[name str0(pos0(end-1)+1:pos0(end))]; - end - end - end - end - -end - diff --git a/cb-tools/jsonlab/saveubjson.m b/cb-tools/jsonlab/saveubjson.m deleted file mode 100644 index eb975de0..00000000 --- a/cb-tools/jsonlab/saveubjson.m +++ /dev/null @@ -1,490 +0,0 @@ -function json=saveubjson(rootname,obj,varargin) -% -% json=saveubjson(rootname,obj,filename) -% or -% json=saveubjson(rootname,obj,opt) -% json=saveubjson(rootname,obj,'param1',value1,'param2',value2,...) -% -% convert a MATLAB object (cell, struct or array) into a Universal -% Binary JSON (UBJSON) binary string -% -% author: Qianqian Fang (fangq nmr.mgh.harvard.edu) -% created on 2013/08/17 -% -% $Id: saveubjson.m 410 2013-08-24 03:33:18Z fangq $ -% -% input: -% rootname: name of the root-object, if set to '', will use variable name -% obj: a MATLAB object (array, cell, cell array, struct, struct array) -% filename: a string for the file name to save the output JSON data -% opt: a struct for additional options, use [] if all use default -% opt can have the following fields (first in [.|.] is the default) -% -% opt.FileName [''|string]: a file name to save the output JSON data -% opt.ArrayToStruct[0|1]: when set to 0, saveubjson outputs 1D/2D -% array in JSON array format; if sets to 1, an -% array will be shown as a struct with fields -% "_ArrayType_", "_ArraySize_" and "_ArrayData_"; for -% sparse arrays, the non-zero elements will be -% saved to _ArrayData_ field in triplet-format i.e. -% (ix,iy,val) and "_ArrayIsSparse_" will be added -% with a value of 1; for a complex array, the -% _ArrayData_ array will include two columns -% (4 for sparse) to record the real and imaginary -% parts, and also "_ArrayIsComplex_":1 is added. -% opt.ParseLogical [1|0]: if this is set to 1, logical array elem -% will use true/false rather than 1/0. -% opt.NoRowBracket [1|0]: if this is set to 1, arrays with a single -% numerical element will be shown without a square -% bracket, unless it is the root object; if 0, square -% brackets are forced for any numerical arrays. -% opt.ForceRootName [0|1]: when set to 1 and rootname is empty, saveubjson -% will use the name of the passed obj variable as the -% root object name; if obj is an expression and -% does not have a name, 'root' will be used; if this -% is set to 0 and rootname is empty, the root level -% will be merged down to the lower level. -% opt.JSONP [''|string]: to generate a JSONP output (JSON with padding), -% for example, if opt.JSON='foo', the JSON data is -% wrapped inside a function call as 'foo(...);' -% opt.UnpackHex [1|0]: conver the 0x[hex code] output by loadjson -% back to the string form -% opt can be replaced by a list of ('param',value) pairs. The param -% string is equivallent to a field in opt. -% output: -% json: a string in the JSON format (see http://json.org) -% -% examples: -% a=struct('node',[1 9 10; 2 1 1.2], 'elem',[9 1;1 2;2 3],... -% 'face',[9 01 2; 1 2 3; NaN,Inf,-Inf], 'author','FangQ'); -% saveubjson('mesh',a) -% saveubjson('',a,'ArrayIndent',0,'FloatFormat','\t%.5g') -% -% license: -% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details -% -% -- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) -% - -if(nargin==1) - varname=inputname(1); - obj=rootname; - if(isempty(varname)) - varname='root'; - end - rootname=varname; -else - varname=inputname(2); -end -if(length(varargin)==1 && ischar(varargin{1})) - opt=struct('FileName',varargin{1}); -else - opt=varargin2struct(varargin{:}); -end -opt.IsOctave=exist('OCTAVE_VERSION'); -rootisarray=0; -rootlevel=1; -forceroot=jsonopt('ForceRootName',0,opt); -if((isnumeric(obj) || islogical(obj) || ischar(obj) || isstruct(obj) || iscell(obj)) && isempty(rootname) && forceroot==0) - rootisarray=1; - rootlevel=0; -else - if(isempty(rootname)) - rootname=varname; - end -end -if((isstruct(obj) || iscell(obj))&& isempty(rootname) && forceroot) - rootname='root'; -end -json=obj2ubjson(rootname,obj,rootlevel,opt); -if(~rootisarray) - json=['{' json '}']; -end - -jsonp=jsonopt('JSONP','',opt); -if(~isempty(jsonp)) - json=[jsonp '(' json ')']; -end - -% save to a file if FileName is set, suggested by Patrick Rapin -if(~isempty(jsonopt('FileName','',opt))) - fid = fopen(opt.FileName, 'wt'); - fwrite(fid,json,'char'); - fclose(fid); -end - -%%------------------------------------------------------------------------- -function txt=obj2ubjson(name,item,level,varargin) - -if(iscell(item)) - txt=cell2ubjson(name,item,level,varargin{:}); -elseif(isstruct(item)) - txt=struct2ubjson(name,item,level,varargin{:}); -elseif(ischar(item)) - txt=str2ubjson(name,item,level,varargin{:}); -else - txt=mat2ubjson(name,item,level,varargin{:}); -end - -%%------------------------------------------------------------------------- -function txt=cell2ubjson(name,item,level,varargin) -txt=''; -if(~iscell(item)) - error('input is not a cell'); -end - -dim=size(item); -len=numel(item); % let's handle 1D cell first -padding1=''; -padding0=''; -if(len>1) - if(~isempty(name)) - txt=[S_(checkname(name,varargin{:})) '[']; name=''; - else - txt='['; - end -elseif(len==0) - if(~isempty(name)) - txt=[S_(checkname(name,varargin{:})) 'Z']; name=''; - else - txt='Z'; - end -end -for i=1:len - txt=[txt obj2ubjson(name,item{i},level+(len>1),varargin{:})]; -end -if(len>1) txt=[txt ']']; end - -%%------------------------------------------------------------------------- -function txt=struct2ubjson(name,item,level,varargin) -txt=''; -if(~isstruct(item)) - error('input is not a struct'); -end -len=numel(item); -padding1=''; -padding0=''; -sep=','; - -if(~isempty(name)) - if(len>1) txt=[S_(checkname(name,varargin{:})) '[']; end -else - if(len>1) txt='['; end -end -for e=1:len - names = fieldnames(item(e)); - if(~isempty(name) && len==1) - txt=[txt S_(checkname(name,varargin{:})) '{']; - else - txt=[txt '{']; - end - if(~isempty(names)) - for i=1:length(names) - txt=[txt obj2ubjson(names{i},getfield(item(e),... - names{i}),level+1+(len>1),varargin{:})]; - end - end - txt=[txt '}']; - if(e==len) sep=''; end -end -if(len>1) txt=[txt ']']; end - -%%------------------------------------------------------------------------- -function txt=str2ubjson(name,item,level,varargin) -txt=''; -if(~ischar(item)) - error('input is not a string'); -end -item=reshape(item, max(size(item),[1 0])); -len=size(item,1); -sep=''; - -padding1=''; -padding0=''; - -if(~isempty(name)) - if(len>1) txt=[S_(checkname(name,varargin{:})) '[']; end -else - if(len>1) txt='['; end -end -isoct=jsonopt('IsOctave',0,varargin{:}); -for e=1:len - val=item(e,:); - if(len==1) - obj=['' S_(checkname(name,varargin{:})) '' '',S_(val),'']; - if(isempty(name)) obj=['',S_(val),'']; end - txt=[txt,'',obj]; - else - txt=[txt,'',['',S_(val),'']]; - end - if(e==len) sep=''; end - txt=[txt sep]; -end -if(len>1) txt=[txt ']']; end - -%%------------------------------------------------------------------------- -function txt=mat2ubjson(name,item,level,varargin) -if(~isnumeric(item) && ~islogical(item)) - error('input is not an array'); -end - -padding1=''; -padding0=''; - -if(length(size(item))>2 || issparse(item) || ~isreal(item) || ... - isempty(item) || jsonopt('ArrayToStruct',0,varargin{:})) - cid=I_(uint32(max(size(item)))); - if(isempty(name)) - txt=['{' S_('_ArrayType_'),S_(class(item)),padding0,S_('_ArraySize_'),I_a(size(item),cid(1)) ]; - else - txt=[S_(checkname(name,varargin{:})),'{',S_('_ArrayType_'),S_(class(item)),padding0,S_('_ArraySize_'),I_a(size(item),cid(1))]; - end -else - if(isempty(name)) - txt=matdata2ubjson(item,level+1,varargin{:}); - else - if(numel(item)==1 && jsonopt('NoRowBracket',1,varargin{:})==1) - numtxt=regexprep(regexprep(matdata2ubjson(item,level+1,varargin{:}),'^\[',''),']',''); - txt=[S_(checkname(name,varargin{:})) numtxt]; - else - txt=[S_(checkname(name,varargin{:})),matdata2ubjson(item,level+1,varargin{:})]; - end - end - return; -end -dataformat='%s%s%s%s%s'; - -if(issparse(item)) - [ix,iy]=find(item); - data=full(item(find(item))); - if(~isreal(item)) - data=[real(data(:)),imag(data(:))]; - if(size(item,1)==1) - % Kludge to have data's 'transposedness' match item's. - % (Necessary for complex row vector handling below.) - data=data'; - end - txt=[txt,S_('_ArrayIsComplex_'),'T']; - end - txt=[txt,S_('_ArrayIsSparse_'),'T']; - if(size(item,1)==1) - % Row vector, store only column indices. - txt=[txt,S_('_ArrayData_'),... - matdata2ubjson([iy(:),data'],level+2,varargin{:})]; - elseif(size(item,2)==1) - % Column vector, store only row indices. - txt=[txt,S_('_ArrayData_'),... - matdata2ubjson([ix,data],level+2,varargin{:})]; - else - % General case, store row and column indices. - txt=[txt,S_('_ArrayData_'),... - matdata2ubjson([ix,iy,data],level+2,varargin{:})]; - end -else - if(isreal(item)) - txt=[txt,S_('_ArrayData_'),... - matdata2ubjson(item(:)',level+2,varargin{:})]; - else - txt=[txt,S_('_ArrayIsComplex_'),'T']; - txt=[txt,S_('_ArrayData_'),... - matdata2ubjson([real(item(:)) imag(item(:))],level+2,varargin{:})]; - end -end -txt=[txt,'}']; - -%%------------------------------------------------------------------------- -function txt=matdata2ubjson(mat,level,varargin) -if(isempty(mat)) - txt='Z'; - return; -end -if(size(mat,1)==1) - level=level-1; -end -type=''; -hasnegtive=find(mat<0); -if(isa(mat,'integer') || (isfloat(mat) && all(mod(mat(:),1) == 0))) - if(isempty(hasnegtive)) - if(max(mat(:))<=2^8) - type='U'; - end - end - if(isempty(type)) - % todo - need to consider negative ones separately - id= histc(abs(max(mat(:))),[0 2^7 2^15 2^31 2^63]); - if(isempty(find(id))) - error('high-precision data is not yet supported'); - end - key='iIlL'; - type=key(find(id)); - end - txt=[I_a(mat(:),type,size(mat))]; -elseif(islogical(mat)) - logicalval='FT'; - if(numel(mat)==1) - txt=logicalval(mat+1); - else - txt=['[$U#' I_a(size(mat),'l') typecast(uint8(mat(:)'),'uint8')]; - end -else - if(numel(mat)==1) - txt=['[' D_(mat) ']']; - else - txt=D_a(mat(:),'D',size(mat)); - end -end - -%txt=regexprep(mat2str(mat),'\s+',','); -%txt=regexprep(txt,';',sprintf('],[')); -% if(nargin>=2 && size(mat,1)>1) -% txt=regexprep(txt,'\[',[repmat(sprintf('\t'),1,level) '[']); -% end -if(any(isinf(mat(:)))) - txt=regexprep(txt,'([-+]*)Inf',jsonopt('Inf','"$1_Inf_"',varargin{:})); -end -if(any(isnan(mat(:)))) - txt=regexprep(txt,'NaN',jsonopt('NaN','"_NaN_"',varargin{:})); -end - -%%------------------------------------------------------------------------- -function newname=checkname(name,varargin) -isunpack=jsonopt('UnpackHex',1,varargin{:}); -newname=name; -if(isempty(regexp(name,'0x([0-9a-fA-F]+)_','once'))) - return -end -if(isunpack) - isoct=jsonopt('IsOctave',0,varargin{:}); - if(~isoct) - newname=regexprep(name,'(^x|_){1}0x([0-9a-fA-F]+)_','${native2unicode(hex2dec($2))}'); - else - pos=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','start'); - pend=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','end'); - if(isempty(pos)) return; end - str0=name; - pos0=[0 pend(:)' length(name)]; - newname=''; - for i=1:length(pos) - newname=[newname str0(pos0(i)+1:pos(i)-1) char(hex2dec(str0(pos(i)+3:pend(i)-1)))]; - end - if(pos(end)~=length(name)) - newname=[newname str0(pos0(end-1)+1:pos0(end))]; - end - end -end -%%------------------------------------------------------------------------- -function val=S_(str) -if(length(str)==1) - val=['C' str]; -else - val=['S' I_(int32(length(str))) str]; -end -%%------------------------------------------------------------------------- -function val=I_(num) -if(~isinteger(num)) - error('input is not an integer'); -end -if(num>=0 && num<255) - val=['U' data2byte(cast(num,'uint8'),'uint8')]; - return; -end -key='iIlL'; -cid={'int8','int16','int32','int64'}; -for i=1:4 - if((num>0 && num<2^(i*8-1)) || (num<0 && num>=-2^(i*8-1))) - val=[key(i) data2byte(cast(num,cid{i}),'uint8')]; - return; - end -end -error('unsupported integer'); - -%%------------------------------------------------------------------------- -function val=D_(num) -if(~isfloat(num)) - error('input is not a float'); -end - -if(isa(num,'single')) - val=['d' data2byte(num,'uint8')]; -else - val=['D' data2byte(num,'uint8')]; -end -%%------------------------------------------------------------------------- -function data=I_a(num,type,dim,format) -id=find(ismember('iUIlL',type)); - -if(id==0) - error('unsupported integer array'); -end - -if(id==1) - data=data2byte(int8(num),'uint8'); - blen=1; -elseif(id==2) - data=data2byte(uint8(num),'uint8'); - blen=1; -elseif(id==3) - data=data2byte(int16(num),'uint8'); - blen=2; -elseif(id==4) - data=data2byte(int32(num),'uint8'); - blen=4; -elseif(id==5) - data=data2byte(int64(num),'uint8'); - blen=8; -end - -if(nargin>=3 && length(dim)>=2 && prod(dim)~=dim(2)) - format='opt'; -end -if((nargin<4 || strcmp(format,'opt')) && numel(num)>1) - if(nargin>=3 && (length(dim)==1 || (length(dim)>=2 && prod(dim)~=dim(2)))) - cid=I_(uint32(max(dim))); - data=['$' type '#' I_a(dim,cid(1)) data(:)']; - else - data=['$' type '#' I_(int32(numel(data)/blen)) data(:)']; - end - data=['[' data(:)']; -else - data=reshape(data,blen,numel(data)/blen); - data(2:blen+1,:)=data; - data(1,:)=type; - data=data(:)'; - data=['[' data(:)' ']']; -end -%%------------------------------------------------------------------------- -function data=D_a(num,type,dim,format) -id=find(ismember('dD',type)); - -if(id==0) - error('unsupported float array'); -end - -if(id==1) - data=data2byte(single(num),'uint8'); -elseif(id==2) - data=data2byte(double(num),'uint8'); -end - -if(nargin>=3 && length(dim)>=2 && prod(dim)~=dim(2)) - format='opt'; -end -if((nargin<4 || strcmp(format,'opt')) && numel(num)>1) - if(nargin>=3 && (length(dim)==1 || (length(dim)>=2 && prod(dim)~=dim(2)))) - cid=I_(uint32(max(dim))); - data=['$' type '#' I_a(dim,cid(1)) data(:)']; - else - data=['$' type '#' I_(int32(numel(data)/(id*4))) data(:)']; - end - data=['[' data]; -else - data=reshape(data,(id*4),length(data)/(id*4)); - data(2:(id*4+1),:)=data; - data(1,:)=type; - data=data(:)'; - data=['[' data(:)' ']']; -end -%%------------------------------------------------------------------------- -function bytes=data2byte(varargin) -bytes=typecast(varargin{:}); -bytes=bytes(:)'; diff --git a/cb-tools/jsonlab/varargin2struct.m b/cb-tools/jsonlab/varargin2struct.m deleted file mode 100644 index 43c27af4..00000000 --- a/cb-tools/jsonlab/varargin2struct.m +++ /dev/null @@ -1,40 +0,0 @@ -function opt=varargin2struct(varargin) -% -% opt=varargin2struct('param1',value1,'param2',value2,...) -% or -% opt=varargin2struct(...,optstruct,...) -% -% convert a series of input parameters into a structure -% -% authors:Qianqian Fang (fangq nmr.mgh.harvard.edu) -% date: 2012/12/22 -% -% input: -% 'param', value: the input parameters should be pairs of a string and a value -% optstruct: if a parameter is a struct, the fields will be merged to the output struct -% -% output: -% opt: a struct where opt.param1=value1, opt.param2=value2 ... -% -% license: -% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details -% -% -- this function is part of jsonlab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab) -% - -len=length(varargin); -opt=struct; -if(len==0) return; end -i=1; -while(i<=len) - if(isstruct(varargin{i})) - opt=mergestruct(opt,varargin{i}); - elseif(ischar(varargin{i}) && i cmd=search&db=pubmed&term=wtf+batman -% -% IMPORTANT: This function does not filter parameters, sort them, -% or remove empty inputs (if necessary), this must be done before hand - -if ~exist('encodeOption','var') - encodeOption = 1; -end - -if size(params,2) == 2 && size(params,1) > 1 - params = params'; - params = params(:); -end - -str = ''; -for i=1:2:length(params) - if (i == 1), separator = ''; else separator = '&'; end - switch encodeOption - case 1 - param = urlencode(params{i}); - value = urlencode(params{i+1}); -% case 2 -% param = oauth.percentEncodeString(params{i}); -% value = oauth.percentEncodeString(params{i+1}); -% header = http_getContentTypeHeader(1); - otherwise - error('Case not used') - end - str = [str separator param '=' value]; %#ok -end - -switch encodeOption - case 1 - header = http_createHeader('Content-Type','application/x-www-form-urlencoded'); -end - - -end \ No newline at end of file diff --git a/cb-tools/urlread2/license.txt b/cb-tools/urlread2/license.txt deleted file mode 100644 index 1d783b74..00000000 --- a/cb-tools/urlread2/license.txt +++ /dev/null @@ -1,24 +0,0 @@ -Copyright (c) 2012, Jim Hokanson -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the distribution - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/cb-tools/urlread2/urlread2.m b/cb-tools/urlread2/urlread2.m deleted file mode 100644 index b552861c..00000000 --- a/cb-tools/urlread2/urlread2.m +++ /dev/null @@ -1,371 +0,0 @@ -function [output,extras] = urlread2(urlChar,method,body,headersIn,varargin) -%urlread2 Makes HTTP requests and processes response -% -% [output,extras] = urlread2(urlChar, *method, *body, *headersIn, varargin) -% -% * indicates optional inputs that must be entered in place -% -% UNDOCUMENTED MATLAB VERSION -% -% EXAMPLE CALLING FORMS -% ... = urlread2(urlChar) -% ... = urlread2(urlChar,'GET','',[],prop1,value1,prop2,value2,etc) -% ... = urlread2(urlChar,'POST',body,headers) -% -% FEATURES -% ======================================================================= -% 1) Allows specification of any HTTP method -% 2) Allows specification of any header. Very little is hard-coded -% in for header handling. -% 3) Returns response status and headers -% 4) Should handle unicode properly ... -% -% OUTPUTS -% ======================================================================= -% output : body of the response, either text or binary depending upon -% CAST_OUTPUT property -% extras : (structure) -% .allHeaders - stucture, fields have cellstr values, HTTP headers may -% may be repeated but will have a single field entry, with each -% repeat's value another being another entry in the cellstr, for -% example: -% .Set_Cookie = {'first_value' 'second_value'} -% .firstHeaders - (structure), variable fields, contains the first -% string entry for each field in allHeaders, this -% structure can be used to avoid dereferencing a cell -% for fields you expect not to be repeated ... -% EXAMPLE: -% .Response : 'HTTP/1.1 200 OK'} -% .Server : 'nginx' -% .Date : 'Tue, 29 Nov 2011 02:23:16 GMT' -% .Content_Type : 'text/html; charset=UTF-8' -% .Content_Length : '109155' -% .Connection : 'keep-alive' -% .Vary : 'Accept-Encoding, User-Agent' -% .Cache_Control : 'max-age=60, private' -% .Set_Cookie : 'first_value' -% .status - (structure) -% .value : numeric value of status, ex. 200 -% .msg : message that goes along with status, ex. 'OK' -% .url - eventual url that led to output, this can change from -% the input with redirects, see FOLLOW_REDIRECTS -% .isGood - (logical) I believe this is an indicator of the presence of 400 -% or 500 status codes (see status.value) but more -% testing is needed. In other words, true if status.value < 400. -% In code, set true if the response was obtainable without -% resorting to checking the error stream. -% -% INPUTS -% ======================================================================= -% urlChar : The full url, must include scheme (http, https) -% method : examples: 'GET' 'POST' etc -% body : (vector)(char, uint8 or int8) body to write, generally used -% with POST or PUT, use of uint8 or int8 ensures that the -% body input is not manipulated before sending, char is sent -% via unicode2native function with ENCODING input (see below) -% headersIn : (structure array), use empty [] or '' if no headers are needed -% but varargin property/value pairs are, multiple headers -% may be passed in as a structure array -% .name - (string), name of the header, a name property is used -% instead of a field because the name must match a valid -% header -% .value - (string), value to use -% -% OPTIONAL INPUTS (varargin, property/value pairs) -% ======================================================================= -% CAST_OUTPUT : (default true) output is uint8, useful if the body -% of the response is not text -% ENCODING : (default ''), ENCODING input to function unicode2native -% FOLLOW_REDIRECTS : (default true), if false 3xx status codes will -% be returned and need to be handled by the user, -% note this does not handle javascript or meta tag -% redirects, just server based ones -% READ_TIMEOUT : (default 0), 0 means no timeout, value is in -% milliseconds -% -% EXAMPLES -% ======================================================================= -% GET: -% -------------------------------------------- -% url = 'http://www.mathworks.com/matlabcentral/fileexchange/'; -% query = 'urlread2'; -% params = {'term' query}; -% queryString = http_paramsToString(params,1); -% url = [url '?' queryString]; -% [output,extras] = urlread2(url); -% -% POST: -% -------------------------------------------- -% url = 'http://posttestserver.com/post.php'; -% params = {'testChars' char([2500 30000]) 'new code' '?'}; -% [paramString,header] = http_paramsToString(params,1); -% [output,extras] = urlread2(url,'POST',paramString,header); -% -% From behind a firewall, use the Preferences to set your proxy server. -% -% See Also: -% http_paramsToString -% unicode2native -% native2unicode -% -% Subfunctions: -% fixHeaderCasing - small subfunction to fix case errors encountered in real -% world, requires updating when casing doesn't match expected form, like -% if someone sent the header content-Encoding instead of -% Content-Encoding -% -% Based on original urlread code by Matthew J. Simoneau -% -% VERSION = 1.1 - -in.CAST_OUTPUT = true; -in.FOLLOW_REDIRECTS = true; -in.READ_TIMEOUT = 0; -in.ENCODING = ''; - -%Input handling -%--------------------------------------- -if ~isempty(varargin) - for i = 1:2:numel(varargin) - prop = upper(varargin{i}); - value = varargin{i+1}; - if isfield(in,prop) - in.(prop) = value; - else - error('Unrecognized input to function: %s',prop) - end - end -end - -if ~exist('method','var') || isempty(method), method = 'GET'; end -if ~exist('body','var'), body = ''; end -if ~exist('headersIn','var'), headersIn = []; end - -assert(usejava('jvm'),'Function requires Java') - -import com.mathworks.mlwidgets.io.InterruptibleStreamCopier; -com.mathworks.mlwidgets.html.HTMLPrefs.setProxySettings %Proxy settings need to be set - -%Create a urlConnection. -%----------------------------------- -urlConnection = getURLConnection(urlChar); -%For HTTP uses sun.net.www.protocol.http.HttpURLConnection -%Might use ice.net.HttpURLConnection but this has more overhead - -%SETTING PROPERTIES -%------------------------------------------------------- -urlConnection.setRequestMethod(upper(method)); -urlConnection.setFollowRedirects(in.FOLLOW_REDIRECTS); -urlConnection.setReadTimeout(in.READ_TIMEOUT); - -for iHeader = 1:length(headersIn) - curHeader = headersIn(iHeader); - urlConnection.setRequestProperty(curHeader.name,curHeader.value); -end - -if ~isempty(body) - %Ensure vector? - if size(body,1) > 1 - if size(body,2) > 1 - error('Input parameter to function: body, must be a vector') - else - body = body'; - end - end - - if ischar(body) - %NOTE: '' defaults to Matlab's default encoding scheme - body = unicode2native(body,in.ENCODING); - elseif ~(strcmp(class(body),'uint8') || strcmp(class(body),'int8')) - error('Function input: body, should be of class char, uint8, or int8, detected: %s',class(body)) - end - - urlConnection.setRequestProperty('Content-Length',int2str(length(body))); - urlConnection.setDoOutput(true); - outputStream = urlConnection.getOutputStream; - outputStream.write(body); - outputStream.close; -else - urlConnection.setRequestProperty('Content-Length','0'); -end - -%========================================================================== -% Read the data from the connection. -%========================================================================== -%This should be done first because it tells us if things are ok or not -%NOTE: If there is an error, functions below using urlConnection, notably -%getResponseCode, will fail as well -try - inputStream = urlConnection.getInputStream; - isGood = true; -catch ME - isGood = false; -%NOTE: HTTP error codes will throw an error here, we'll allow those for now -%We might also get another error in which case the inputStream will be -%undefined, those we will throw here - inputStream = urlConnection.getErrorStream; - - if isempty(inputStream) - msg = ME.message; - I = strfind(msg,char([13 10 9])); %see example by setting timeout to 1 - %Should remove the barf of the stack, at ... at ... at ... etc - %Likely that this could be improved ... (generate link with full msg) - if ~isempty(I) - msg = msg(1:I(1)-1); - end - fprintf(2,'Response stream is undefined\n below is a Java Error dump (truncated):\n'); - error(msg) - end -end - -%POPULATING HEADERS -%-------------------------------------------------------------------------- -allHeaders = struct; -allHeaders.Response = {char(urlConnection.getHeaderField(0))}; -done = false; -headerIndex = 0; - -while ~done - headerIndex = headerIndex + 1; - headerValue = char(urlConnection.getHeaderField(headerIndex)); - if ~isempty(headerValue) - headerName = char(urlConnection.getHeaderFieldKey(headerIndex)); - headerName = fixHeaderCasing(headerName); %NOT YET FINISHED - - %Important, for name safety all hyphens are replace with underscores - headerName(headerName == '-') = '_'; - if isfield(allHeaders,headerName) - allHeaders.(headerName) = [allHeaders.(headerName) headerValue]; - else - allHeaders.(headerName) = {headerValue}; - end - else - done = true; - end -end - -firstHeaders = struct; -fn = fieldnames(allHeaders); -for iHeader = 1:length(fn) - curField = fn{iHeader}; - firstHeaders.(curField) = allHeaders.(curField){1}; -end - -status = struct(... - 'value', urlConnection.getResponseCode(),... - 'msg', char(urlConnection.getResponseMessage)); - -%PROCESSING OF OUTPUT -%---------------------------------------------------------- -byteArrayOutputStream = java.io.ByteArrayOutputStream; -% This StreamCopier is unsupported and may change at any time. OH GREAT :/ -isc = InterruptibleStreamCopier.getInterruptibleStreamCopier; -isc.copyStream(inputStream,byteArrayOutputStream); -inputStream.close; -byteArrayOutputStream.close; - -if in.CAST_OUTPUT - charset = ''; - - %Extraction of character set from Content-Type header if possible - if isfield(firstHeaders,'Content_Type') - text = firstHeaders.Content_Type; - %Always open to regexp improvements - charset = regexp(text,'(?<=charset=)[^\s]*','match','once'); - end - - if ~isempty(charset) - output = native2unicode(typecast(byteArrayOutputStream.toByteArray','uint8'),charset); - else - output = char(typecast(byteArrayOutputStream.toByteArray','uint8')); - end -else - %uint8 is more useful for later charecter conversions - %uint8 or int8 is somewhat arbitary at this point - output = typecast(byteArrayOutputStream.toByteArray','uint8'); -end - -extras = struct; -extras.allHeaders = allHeaders; -extras.firstHeaders = firstHeaders; -extras.status = status; -%Gets eventual url even with redirection -extras.url = char(urlConnection.getURL); -extras.isGood = isGood; - - - -end - -function headerNameOut = fixHeaderCasing(headerName) -%fixHeaderCasing Forces standard casing of headers -% -% headerNameOut = fixHeaderCasing(headerName) -% -% This is important for field access in a structure which -% is case sensitive -% -% Not yet finished. -% I've been adding to this function as problems come along - - switch lower(headerName) - case 'location' - headerNameOut = 'Location'; - case 'content_type' - headerNameOut = 'Content_Type'; - otherwise - headerNameOut = headerName; - end -end - -%========================================================================== -%========================================================================== -%========================================================================== - -function urlConnection = getURLConnection(urlChar) -%getURLConnection -% -% urlConnection = getURLConnection(urlChar) - -% Determine the protocol (before the ":"). -protocol = urlChar(1:find(urlChar==':',1)-1); - - -% Try to use the native handler, not the ice.* classes. -try - switch protocol - case 'http' - %http://www.docjar.com/docs/api/sun/net/www/protocol/http/HttpURLConnection.html - handler = sun.net.www.protocol.http.Handler; - case 'https' - handler = sun.net.www.protocol.https.Handler; - end -catch ME - handler = []; -end - -% Create the URL object. -try - if isempty(handler) - url = java.net.URL(urlChar); - else - url = java.net.URL([],urlChar,handler); - end -catch ME - error('Failure to parse URL or protocol not supported for:\nURL: %s',urlChar); -end - -% Get the proxy information using MathWorks facilities for unified proxy -% preference settings. -mwtcp = com.mathworks.net.transport.MWTransportClientPropertiesFactory.create(); -proxy = mwtcp.getProxy(); - -% Open a connection to the URL. -if isempty(proxy) - urlConnection = url.openConnection; -else - urlConnection = url.openConnection(proxy); -end - - -end diff --git a/cb-tools/urlread2/urlread_notes.txt b/cb-tools/urlread2/urlread_notes.txt deleted file mode 100644 index 8257f092..00000000 --- a/cb-tools/urlread2/urlread_notes.txt +++ /dev/null @@ -1,86 +0,0 @@ -========================================================================== - Unicode & Matlab -========================================================================== -native2unicode - works with uint8, fails with char - -Taking a unicode character and encoding as bytes: -unicode2native(char(1002),'UTF-8') -back to the character: -native2unicode(uint8([207 170]),'UTF-8') -this doesn't work: -native2unicode(char([207 170]),'UTF-8') -in documentation: If BYTES is a CHAR vector, it is returned unchanged. - -Java - only supports int8 -Matlab to Java -> uint8 or int8 to bytes -Java to Matlab -> bytes to int8 -char - 16 bit - -Maintenance of underlying bytes: -typecast(java.lang.String(uint8(250)).getBytes,'uint8') = 250 -see documentation: Handling Data Returned from a Java Method - -Command Window difficulty --------------------------------------------------------------------- -The typical font in the Matlab command window will often fail to render -unicode properly. I often can see unicode better in the variable editor -although this may be fixed if you change your font preferences ... -Copying unicode from the command window often results in the -generations of the value 26 (aka substitute) - -More documentation on input/output to urlread2 to follow eventually ... - -small notes to self: -for output -native2unicode(uint8(output),encoding) - -========================================================================== - HTTP Headers -========================================================================== -Handling of repeated http readers is a bit of a tricky situation. Most -headers are not repeated although sometimes http clients will assume this -for too many headers which can result in a problem if you want to see -duplicated headers. I've passed the problem onto the user who can decide -to handle it how they wish instead of providing the right solution, which -after some brief searching, I am not sure exists. - -========================================================================== - PROBLEMS -========================================================================== -1) Page requires following a redirect: -%------------------------------------------- -ref: http://www.mathworks.com/matlabcentral/newsreader/view_thread/302571 -fix: FOLLOW_REDIRECTS is enabled by default, you're fine. - -2) Basic authentication required: -%------------------------------------------ -Create and pass in the following header: -user = 'test'; -password = 'test'; -encoder = sun.misc.BASE64Encoder(); -str = java.lang.String([user ':' password]) %NOTE: format may be -%different for your server -header = http_createHeader('Authorization',char(encoder.encode(str.getBytes()))) -NOTE: Ideally you would make this a function - -3) The text returned doesn't make sense. -%----------------------------------------- -The text may not be encoded correctly. Requires native2unicode function. -See Unicode & Matlab section above. - -4) I get a different result in my web browser than I do in Matlab -%----------------------------------------- -This is generally seen for two reasons. -1 - The easiest and silly reason is user agent filtering. -When you make a request you identify yourself -as being a particular "broswer" or "user agent". Setting a header -with the user agent of the browser may fix the problem. -See: http://en.wikipedia.org/wiki/User_agent -See: http://whatsmyuseragent.com -value = '' -header = http_createHeader('User-Agent',value); -2 - You are not processing cookies and the server is not sending -you information because you haven't sent it cookies (everyone likes em!) -I've implemented cookie support but it requires some extra files that -I need to clean up. Feel free to email me if you'd really like to have them. - diff --git a/cb-tools/urlread2/urlread_todos.txt b/cb-tools/urlread2/urlread_todos.txt deleted file mode 100644 index 0434bcea..00000000 --- a/cb-tools/urlread2/urlread_todos.txt +++ /dev/null @@ -1,13 +0,0 @@ -========================================================================== - IMPROVEMENTS -========================================================================== -1) The function could be improved to support file streaming both in sending -and in receiving (saving) to reduce memory usage but this is very low priority - -2) Implement better casing handling - -3) Choose a better function name than urlread2 -> sorry Chris :) - -4) Support multipart/form-data, this ideally would be handled by a helper function - -5) Allow for throwing an error if the HTTP status code is an error (400) and 500 as well? \ No newline at end of file diff --git a/cb-tools/urlread2/urlread_versionInfo.txt b/cb-tools/urlread2/urlread_versionInfo.txt deleted file mode 100644 index a8448f49..00000000 --- a/cb-tools/urlread2/urlread_versionInfo.txt +++ /dev/null @@ -1,13 +0,0 @@ -===================== -Version 1.1 -3/25/2012 - -Summary: Bug fixes related to Matlab throwing errors when it shouldn't have been. Thanks to Shane Lin for pointing out the problems. - -Bug Fix: Modified code so that http status errors wouldn't throw errors in the code, but rather would be passed on to the user to process - -Bug Fix: Provided GET example code apparently doesn't work for all users, changed to a different example. - -===================== -Version 1 -3/17/2012 \ No newline at end of file diff --git a/+dat/findNextSeqNum.m b/cortexlab/+dat/findNextSeqNum.m similarity index 100% rename from +dat/findNextSeqNum.m rename to cortexlab/+dat/findNextSeqNum.m diff --git a/+dat/subjectSelector.m b/cortexlab/+dat/subjectSelector.m similarity index 100% rename from +dat/subjectSelector.m rename to cortexlab/+dat/subjectSelector.m diff --git a/+hw/DaqLever.m b/cortexlab/+hw/DaqLever.m similarity index 100% rename from +hw/DaqLever.m rename to cortexlab/+hw/DaqLever.m diff --git a/+hw/DaqLick.m b/cortexlab/+hw/DaqLick.m similarity index 100% rename from +hw/DaqLick.m rename to cortexlab/+hw/DaqLick.m diff --git a/+hw/DaqPiezo.m b/cortexlab/+hw/DaqPiezo.m similarity index 100% rename from +hw/DaqPiezo.m rename to cortexlab/+hw/DaqPiezo.m diff --git a/cortexlab/+hw/daqControllerForValve.m b/cortexlab/+hw/daqControllerForValve.m deleted file mode 100644 index 0418cc4c..00000000 --- a/cortexlab/+hw/daqControllerForValve.m +++ /dev/null @@ -1,28 +0,0 @@ -function daqController = daqControllerForValve(daqRewardValve, calibrations, addLaser) -%UNTITLED Summary of this function goes here -% Detailed explanation goes here - -daqController = hw.DaqController; -daqController.ChannelNames = {'rewardValve'}; -daqController.DaqIds = 'Dev1'; -daqController.DaqChannelIds = {daqRewardValve.DaqChannelId}; -daqController.SignalGenerators = hw.RewardValveControl; -daqController.SignalGenerators.ClosedValue = daqRewardValve.ClosedValue; -daqController.SignalGenerators.DefaultValue = daqRewardValve.ClosedValue; -daqController.SignalGenerators.OpenValue = daqRewardValve.OpenValue; -daqController.SignalGenerators.Calibrations = calibrations; -daqController.SignalGenerators.DefaultCommand = daqRewardValve.DefaultRewardSize; - -if nargin > 2 && addLaser - daqController.DaqChannelIds{2} = 'ao1'; - daqController.ChannelNames{2} = {'laserShutter'}; - daqController.SignalGenerators(2) = hw.PulseSwitcher; - daqController.SignalGenerators(2).ClosedValue = 0; - daqController.SignalGenerators(2).DefaultValue = 0; - daqController.SignalGenerators(2).OpenValue = 5; - daqController.SignalGenerators(2).DefaultCommand = 10; - daqController.SignalGenerators(2).ParamsFun = @(sz) deal(10/1000, sz, 25); -end - - -end \ No newline at end of file diff --git a/cortexlab/+srv/RemoteMPEPService.m b/cortexlab/+srv/RemoteMPEPService.m index e71acd0d..457428f4 100644 --- a/cortexlab/+srv/RemoteMPEPService.m +++ b/cortexlab/+srv/RemoteMPEPService.m @@ -114,8 +114,8 @@ function delete(obj) end function obj = addListener(obj, name, listenPort, callback) - if nargin<3; callback = @nop; end - if listenPort==obj.ListenPorts + if nargin<4; callback = @nop; end + if any(listenPort==obj.ListenPorts{:}) error('Listen port already added'); end idx = length(obj.Sockets)+1; @@ -172,18 +172,19 @@ function bind(obj, names) names = ensureCell(names); hosts = arrayfun(@(s)s.Tag, obj.Sockets); idx = cellfun(@(n)find(strcmp(n,hosts)), names); - arrayfun(@fopen, obj.Sockets(idx)) + cellfun(@fopen, obj.Sockets(idx)) end - log('Polling for UDP messages'); + obj.log('Polling for UDP messages'); end function start(obj, ref) % Send start message to remotehost and await confirmation - [expRef, AlyxInstance] = parseAlyxInstance(ref); +% [expRef, AlyxInstance] = parseAlyxInstance(ref); % Convert expRef to MPEP style - [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); +% [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); % Build start message - msg = sprintf('ExpStart %s %d %d', subject, seriesNum, expNum); +% msg = sprintf('ExpStart %s %d %d', subject, seriesNum, expNum); + msg = sprintf('GOGO%s*%s', ref, hostname); % Send the start message obj.confirmedSend(msg, obj.RemoteHost); % Wait for response @@ -248,7 +249,7 @@ function echo(obj, src, ~) fopen(src); fprintf(obj.Socket, obj.LastReceivedMessage); % Send message obj.LastSentMessage = obj.LastReceivedMessage; % Save a copy of the message - disp(['Echo''d message to ' src.Tag]) % Display success + log(obj,'Echo''d message to %s', src.Tag) % Display success end end @@ -273,7 +274,7 @@ function processMsg(obj, src, ~) case {'expstart', 'gogo'} try % Start Timeline - log('Received start request') + log(obj, 'Received start request') obj.LocalStatus = 'starting'; obj.Timeline.start(dat.parseAlyxInstance(msg.expRef)) obj.LocalStatus = 'running'; @@ -297,7 +298,7 @@ function processMsg(obj, src, ~) obj.sendUDP() otherwise % TODO RemoteHost - log(['Received ''' obj.LastReceivedMessage ''' from ' obj.RemoteHost]) + log(obj, ['Received ''' obj.LastReceivedMessage ''' from ' obj.RemoteHost]) end end From 87887288728b2a16dcc3b02e3139ca5939aa7171 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 25 Jan 2018 11:40:30 +0000 Subject: [PATCH 034/515] Update to mat2DStrTo1D This function was never used until now. A couple of the functions called within it have since been renamed. --- cb-tools/burgbox/mat2DStrTo1D.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cb-tools/burgbox/mat2DStrTo1D.m b/cb-tools/burgbox/mat2DStrTo1D.m index e8789e0b..ab79761a 100644 --- a/cb-tools/burgbox/mat2DStrTo1D.m +++ b/cb-tools/burgbox/mat2DStrTo1D.m @@ -9,7 +9,7 @@ % 2013-09 CB created if iscellstr(str) - str = mapToCellArray(@matStr2Lines, str); + str = mapToCell(@mat2DStrTo1D, str); else str = strJoin(deblank(num2cell(str, 2)), '\n'); end From 92cfabd976abee5ec0b5867d4eb9b332be2c1388 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 25 Jan 2018 15:28:52 +0000 Subject: [PATCH 035/515] Fixed clocking pulse bug in Timeline * Clocking pulse now functions correctly * rewardController (obsolete) now removed from code. * DaqSession release added as temp fix for DAQ samples bug --- +hw/DaqController.m | 2 ++ +hw/Timeline.m | 5 +++-- +srv/expServer.m | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/+hw/DaqController.m b/+hw/DaqController.m index cca9f947..4a480fcf 100644 --- a/+hw/DaqController.m +++ b/+hw/DaqController.m @@ -161,6 +161,8 @@ function command(obj, varargin) else startBackground(obj.DaqSession); end + readyWait(obj); + obj.DaqSession.release; elseif any(~analogueChannelsIdx) waveforms = waveforms(~analogueChannelsIdx); for n = 1:length(waveforms) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 49302b58..30169385 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -508,11 +508,12 @@ function init(obj) case 'clock' obj.Sessions('clock') = daq.createSession(obj.DaqVendor); - obj.Sessions('clock').IsContinuous = true; + clockSess = obj.Sessions('clock'); + clockSess.IsContinuous = true; clocked = obj.Sessions('clock').addCounterOutputChannel(obj.DaqIds, out.daqChannelID, out.type); clocked.Frequency = obj.ClockOutputFrequency; clocked.DutyCycle = obj.ClockOutputDutyCycle; - clocked.InitialDelay = out.delay; + clocked.InitialDelay = out.initialDelay; end end %%Create channels for each input diff --git a/+srv/expServer.m b/+srv/expServer.m index d954527c..4e4bec05 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -335,7 +335,7 @@ function setClock(user, clock) end rig.clock = clock; cellfun(@(user) setClock(user, clock),... - {'mouseInput', 'rewardController', 'lickDetector'}); + {'mouseInput', 'lickDetector'}); t = rig.timeline.UseTimeline; if enable From e56802fc2659661847649b8cafd5bd63e47ec74e Mon Sep 17 00:00:00 2001 From: nsteinme Date: Thu, 25 Jan 2018 17:21:10 +0000 Subject: [PATCH 036/515] mpepdatahosts bug fix --- cortexlab/+io/MpepUDPDataHosts.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cortexlab/+io/MpepUDPDataHosts.m b/cortexlab/+io/MpepUDPDataHosts.m index 821b215f..76fae0c7 100644 --- a/cortexlab/+io/MpepUDPDataHosts.m +++ b/cortexlab/+io/MpepUDPDataHosts.m @@ -201,10 +201,10 @@ function expEnded(obj) obj.ExpRef = []; end - function start(obj, ref) + function start(obj, ref) [expRef, ai] = dat.parseAlyxInstance(ref); obj.AlyxInstance = ai; - [subject, seriesNum, expNum] = dat.expRefToMpep(obj.ExpRef); + [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); alyxmsg = sprintf('alyx %s %d %d %s', subject, seriesNum, expNum, ref); confirmedBroadcast(obj, alyxmsg); % equivalent to startExp(expRef) From c2819f0304ba5d84b94dbfba255ddac7fafcb4aa Mon Sep 17 00:00:00 2001 From: nsteinme Date: Thu, 25 Jan 2018 18:56:40 +0000 Subject: [PATCH 037/515] first commit with working chrono and acqLive classes --- +hw/Timeline.m | 268 ++++++++++++++++++++++++------------------ +hw/tlOutput.m | 36 ++++++ +hw/tlOutputAcqLive.m | 52 ++++++++ +hw/tlOutputChrono.m | 89 ++++++++++++++ 4 files changed, 332 insertions(+), 113 deletions(-) create mode 100644 +hw/tlOutput.m create mode 100644 +hw/tlOutputAcqLive.m create mode 100644 +hw/tlOutputChrono.m diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 3739c1bf..0e69607a 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -13,12 +13,13 @@ % (see tl.time() and tl.ptbSecsToTimeline()). In is assumed that the % time between sending the chrono pulse and recieving it is negligible. % -% There are two other available clocking signals: 'acqLive' and 'clock'. +% There are other available clocking signals, for instance: 'acqLive' and 'clock'. % The former outputs a high (+5V) signal the entire time tl is aquiring % (0V otherwise), and can be used to trigger devices with a TTL input. % The 'clock' output is a regular pulse at a frequency of % ClockOutputFrequency and duty cycle of ClockOutputDutyCycle. This can -% be used to trigger a camera at a specific frame rate. +% be used to trigger a camera at a specific frame rate. See "properties" below for +% further details on output configurations. % % Besides the chrono signal, tl can aquire any number of inputs and % record their values on the same clock. For example a photodiode to @@ -68,23 +69,50 @@ DaqIds = 'Dev1' % Device ID can be found with daq.getDevices() DaqSampleRate = 1000 % rate at which daq aquires data in Hz, see Rate DaqSamplesPerNotify % determines the number of data samples to be processed each time, see Timeline.process(), constructor and NotifyWhenDataAvailableExceeds - Outputs % structure of outputs with their type, delays and ports, see constructor + + Outputs % structure of outputs with their names and configuration information + % All outputs require the following fields: + % - name: a string identifier + % - type: one of the supported modes that we know how to + % handle, see below + % - params, the required parameters for the selected type + % + % Available types: + % - chrono: a default type that Timeline uses to monitor that + % acquisition is proceeding normally during a recording. + % Requires: daqChannelID + % + % - acqLive: a digital output that is turned on at the start + % of the timeline recording, turned off at the end + % Requires: daqChannelID, initialDelay + % + % - clock: a regular pulse at a specified frequency and duty + % cycle. Can be used to trigger camera frames, e.g. + % Requires: daqChannelID, initialDelay, frequency, dutyCycle + % + % - startStopSync: a brief pulse at the beginning and at the + % end of a recording. Can be used for synchronization + % - Requires: daqChannelID, initialDelay, pulseDuration + Inputs = struct('name', 'chrono',... 'arrayColumn', -1,... % -1 is default indicating unused, this is update when the channels are added during tl.start() 'daqChannelID', 'ai0',... 'measurement', 'Voltage',... 'terminalConfig', 'SingleEnded') UseInputs = {'chrono'} % array of inputs to record while tl is running - UseOutputs = {'chrono'} % array of output pulses to use while tl is running + %UseOutputs = {'chrono'} % array of output pulses to use while tl is running StopDelay = 2 % currently pauses for at least 2 secs as 'hack' before stopping main DAQ session - MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) - ClockOutputFrequency = 60 % if using 'clock' output, this specifies the frequency of pulses (Hz) - ClockOutputDutyCycle = 0.2 % if using 'clock' output, this specifies the duty cycle (as a fraction) + MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) AquiredDataType = 'double' % default data type for the acquired data array (i.e. Data.rawDAQData) UseTimeline = false % used by expServer. If true, timeline is started by default (otherwise can be toggled with the t key) LivePlot = false % if true the data are plotted as the data are aquired LivePlotParams = []; WriteBufferToDisk = false % if true the data buffer is written to disk as they're aquired NB: in the future this will happen by default + + % moved these here so chrono class can access - NS + CurrSysTimeTimelineOffset % difference between the system time when the last chrono flip occured and the timestamp recorded by the DAQ, see tl.process() + LastTimestamp % the last timestamp returned from the daq during the DataAvailable event. Used to check sampling continuity, see tl.process() + LastClockSentSysTime % the mean of the system time before and after the last chrono flip. Used to calculate CurrSysTimeTimelineOffset, see tl.process() end properties (Dependent) @@ -94,11 +122,7 @@ properties (Transient, Access = protected) Listener % holds the listener for 'DataAvailable', see DataAvailable and Timeline.process() - Sessions = containers.Map % map of daq sessions and their channels, created at tl.start() - CurrSysTimeTimelineOffset % difference between the system time when the last chrono flip occured and the timestamp recorded by the DAQ, see tl.process() - LastTimestamp % the last timestamp returned from the daq during the DataAvailable event. Used to check sampling continuity, see tl.process() - LastClockSentSysTime % the mean of the system time before and after the last chrono flip. Used to calculate CurrSysTimeTimelineOffset, see tl.process() - NextChronoSign = 1 % the value to output on the chrono channel, the sign is changed each 'DataAvailable' event (DaqSamplesPerNotify) + Sessions = containers.Map % map of daq sessions and their channels, created at tl.start() Ref % the expRef string. See tl.start() AlyxInstance % a struct contraining the Alyx token, user and url for ile registration. See tl.start() Data % A structure containing timeline data @@ -112,22 +136,43 @@ % Adds chrono, aquireLive and clock to the outputs list, % along with default ports and delays obj.DaqSamplesPerNotify = 1/obj.SamplingInterval; % calculate DaqSamplesPerNotify - defaultOutputs = {'chrono', 'acqLive', 'clock';... % names of each output - 'port1/line0', 'port0/line1', 'ctr3';... % their default ports - 'OutputOnly', 'OutputOnly', 'PulseGeneration'; % default output type - 0, 0, 0}; % the initial delay (useful for ensure all systems are ready) - obj.Outputs = cell2struct(defaultOutputs, {'name', 'daqChannelID', 'type', 'initialDelay'}); + +% defaultOutputs = struct('name', 'type', 'params'); +% defaultOutputs(1).name = 'chrono'; +% defaultOutputs(1).type = 'chrono'; +% defaultOutputs(1).params.daqChannelID = 'port1/line0'; +% +% defaultOutputs(2).name = 'acqLive'; +% defaultOutputs(2).type = 'acqLive'; +% defaultOutputs(2).params.daqChannelID = 'port0/line1'; +% defaultOutputs(2).params.initialDelay = 0; +% +% defaultOutputs(3).name = 'clock'; +% defaultOutputs(3).type = 'clock'; +% defaultOutputs(3).params.daqChannelID = 'ctr3'; +% defaultOutputs(3).params.initialDelay = 0; +% defaultOutputs(3).params.frequency = 60; +% defaultOutputs(3).params.dutyCycle = 0.2; +% +% defaultOutputs(4).name = 'camSync'; +% defaultOutputs(4).type = 'startStopSync'; +% defaultOutputs(4).params.daqChannelID = 'port0/line3'; +% defaultOutputs(4).params.initialDelay = 0; +% defaultOutputs(4).params.pulseDuration = 0.2; + +% obj.Outputs = defaultOutputs; + if nargin % if old tl hardware struct provided, use these to populate properties obj.Inputs = hw.inputs; obj.DaqVendor = hw.daqVendor; obj.DaqIds = hw.daqDevice; obj.DaqSampleRate = hw.daqSampleRate; obj.DaqSamplesPerNotify = hw.daqSamplesPerNotify; - obj.Outputs(1).daqChannelID = hw.chronoOutDaqChannelID; - obj.Outputs(2).daqChannelID = hw.acqLiveDaqChannelID; - obj.Outputs(3).daqChannelID = hw.clockOutputDaqChannelID; - obj.ClockOutputFrequency = hw.clockOutputFrequency; - obj.ClockOutputDutyCycle = hw.clockOutputDutyCycle; +% obj.Outputs(1).daqChannelID = hw.chronoOutDaqChannelID; +% obj.Outputs(2).daqChannelID = hw.acqLiveDaqChannelID; +% obj.Outputs(3).daqChannelID = hw.clockOutputDaqChannelID; +% obj.ClockOutputFrequency = hw.clockOutputFrequency; +% obj.ClockOutputDutyCycle = hw.clockOutputDutyCycle; end end @@ -142,16 +187,7 @@ function start(obj, expRef, Alyx) end obj.Ref = expRef; % set the current experiment ref obj.AlyxInstance = Alyx; % set the current instance of Alyx - init(obj); % start the relevent sessions and add channels - - %%Send a test pulse low, then high to clocking channel & check we read it back - idx = cellfun(@(s2)strcmp('chrono',s2), {obj.Inputs.name}); - outputSingleScan(obj.Sessions('chrono'), false) - x1 = obj.Sessions('main').inputSingleScan; - outputSingleScan(obj.Sessions('chrono'), true) - x2 = obj.Sessions('main').inputSingleScan; - assert(x1(obj.Inputs(idx).arrayColumn) < 2.5 && x2(obj.Inputs(idx).arrayColumn) > 2.5,... - 'The clocking pulse test could not be read back'); + init(obj); % start the relevent sessions and add channels obj.Listener = obj.Sessions('main').addlistener('DataAvailable', @obj.process); % add listener @@ -181,7 +217,6 @@ function start(obj, expRef, Alyx) obj.Data.startDateTimeStr = datestr(obj.Data.startDateTime); %%Start the DAQ acquiring - outputSingleScan(obj.Sessions('chrono'), false) % make sure chrono is low %LastTimestamp is the timestamp of the last acquisition sample, which is %saved to ensure continuity of acquisition. Here it is initialised as if a %previous acquisition had been made in negative time, since the first @@ -189,27 +224,20 @@ function start(obj, expRef, Alyx) obj.LastTimestamp = -obj.SamplingInterval; startBackground(obj.Sessions('main')); % start aquisition - %%Output clocking pulse and wait for first acquisition to complete - % output first clocking high pulse - t = GetSecs; %system time before outputting chrono flip - outputSingleScan(obj.Sessions('chrono'), obj.NextChronoSign > 0); % flip chrono signal - obj.LastClockSentSysTime = (t + GetSecs)/2; % log mean before/after system time - % wait for first acquisition processing to begin while ~obj.IsRunning pause(5e-3); end - if isKey(obj.Sessions, 'acqLive') % is acqLive being used? - % set acquisition live signal to true - pause(obj.Outputs(cellfun(@(s2)strcmp('chrono',s2), {obj.Outputs.name})).initialDelay); - outputSingleScan(obj.Sessions('acqLive'), true); - end - if isKey(obj.Sessions, 'clock') % is the clock output being used? - % start session to send timing output pulses - startBackground(obj.Sessions('clock')); + for outidx = 1:numel(obj.Outputs) + obj.Outputs(outidx).onStart(obj); end +% if isKey(obj.Sessions, 'clock') % is the clock output being used? +% % start session to send timing output pulses +% startBackground(obj.Sessions('clock')); +% end + % Report success fprintf('Timeline started successfully for ''%s''.\n', expRef); end @@ -385,12 +413,11 @@ function stop(obj) return end % kill acquisition output signals - if isKey(obj.Sessions, 'acqLive') - outputSingleScan(obj.Sessions('acqLive'), false); % live -> false - end - for i = 1:length(obj.UseOutputs) - name = obj.UseOutputs{i}; - stop(obj.Sessions(name)); +% if isKey(obj.Sessions, 'acqLive') +% outputSingleScan(obj.Sessions('acqLive'), false); % live -> false +% end + for outidx = 1:numel(obj.Outputs) + obj.Outputs(outidx).onStop(obj); end pause(obj.StopDelay) @@ -400,14 +427,7 @@ function stop(obj) % wait before deleting the listener to ensure most recent samples are % collected pause(1.5); - delete(obj.Listener) % now delete the data listener - - % release hardware resources - sessions = keys(obj.Sessions); % find names of all current sessions - for i = 1:length(sessions) - name = sessions{i}; - release(obj.Sessions(name)); - end + delete(obj.Listener) % now delete the data listener % only keep the used part of the daq input array obj.Data.rawDAQData((obj.Data.rawDAQSampleCount + 1):end,:) = []; @@ -419,15 +439,38 @@ function stop(obj) % replicate old tl data struct for legacy code idx = cellfun(@(s2)strcmp('chrono',s2), {obj.Inputs.name}); arrayChronoColumn = obj.Inputs(idx).arrayColumn; + inputsIdx = cellfun(@(x)find(strcmp({obj.Inputs.name}, x),1), obj.UseInputs); + + % this block finds the daqChannelID for chrono and acqLive if + % they exist + outputClasses = arrayfun(@class, obj.Outputs, 'uni', false); + chronoChan = []; nextChrono = []; acqLiveChan = []; useClock = false; clockF = []; clockD = []; + chronoOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputChrono'),1); + if ~isempty(chronoOutputIdx) + chronoChan = obj.Outputs(chronoOutputIdx).daqChannelID; + nextChrono = obj.Outputs(chronoOutputIdx).NextChronoSign; + end + acqLiveOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputAcqLive'),1); + if ~isempty(acqLiveOutputIdx) + acqLiveChan = obj.Outputs(acqLiveOutputIdx).daqChannelID; + end + clockOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputClock'),1); + if ~isempty(clockOutputIdx) + useClock = true; + clockF = obj.Outputs(clockOutputIdx).frequency; + clockD = obj.Outputs(clockOutputIdx).dutyCycle; + end + obj.Data.hw = struct('daqVendor', obj.DaqVendor, 'daqDevice', obj.DaqIds,... 'daqSampleRate', obj.DaqSampleRate, 'daqSamplesPerNotify', obj.DaqSamplesPerNotify,... - 'chronoOutDaqChannelID', obj.Outputs(1).daqChannelID, 'acqLiveOutDaqChannelID', obj.Outputs(2).daqChannelID,... - 'useClockOutput', any(strcmp('clock', obj.UseOutputs)), 'clockOutputFrequency', obj.ClockOutputFrequency,... - 'clockOutputDutyCycle', obj.ClockOutputDutyCycle, 'samplingInterval', obj.SamplingInterval,... - 'inputs', obj.Inputs(sign([obj.Inputs.arrayColumn])==1), 'arrayChronoColumn', arrayChronoColumn); + 'chronoOutDaqChannelID', chronoChan, 'acqLiveOutDaqChannelID', acqLiveChan,... + 'useClockOutput', useClock, 'clockOutputFrequency', clockF,... + 'clockOutputDutyCycle', clockD, 'samplingInterval', obj.SamplingInterval,... + 'inputs', obj.Inputs(inputsIdx), ... % find the correct inputs, in the correct order + 'arrayChronoColumn', arrayChronoColumn); obj.Data.expRef = obj.Ref; % save experiment ref obj.Data.isRunning = obj.IsRunning; - obj.Data.nextChronoSign = obj.NextChronoSign; + obj.Data.nextChronoSign = nextChrono; obj.Data.lastTimestamp = obj.LastTimestamp; obj.Data.lastClockSentSysTime = obj.LastClockSentSysTime; obj.Data.currSysTimeTimelineOffset = obj.CurrSysTimeTimelineOffset; @@ -480,6 +523,13 @@ function stop(obj) % Report successful stop fprintf('Timeline for ''%s'' stopped and saved successfully.\n', obj.Ref); end + + function s = getSessions(obj, name) + % returns the Sessions property. Some things (e.g. output + % classes) need this. + s = obj.Sessions(name); + end + end methods (Access = private) @@ -490,30 +540,33 @@ function init(obj) % Also add a 'main' session to which all input channels are % added. See daq.createSession - %%Create session objects for chrono and other outputs - [use, idx] = intersect({obj.Outputs.name}, obj.UseOutputs); % find which outputs to use -% assert(numel(idx) == numel(obj.UseOutputs), 'Not all outputs were recognised'); - for i = 1:length(use) - out = obj.Outputs(idx(i)); % get channel info, etc. - switch use{i} - case 'chrono' - obj.Sessions('chrono') = daq.createSession(obj.DaqVendor); - obj.Sessions('chrono').addDigitalChannel(obj.DaqIds, out.daqChannelID, out.type); - - case 'acqLive' - obj.Sessions('acqLive') = daq.createSession(obj.DaqVendor); - obj.Sessions('acqLive').addDigitalChannel(obj.DaqIds, out.daqChannelID, out.type); - outputSingleScan(obj.Sessions('acqLive'), false); % ensure acq live is false - - case 'clock' - obj.Sessions('clock') = daq.createSession(obj.DaqVendor); - obj.Sessions('clock').IsContinuous = true; - clocked = obj.Sessions('clock').addCounterOutputChannel(obj.DaqIds, out.daqChannelID, out.type); - clocked.Frequency = obj.ClockOutputFrequency; - clocked.DutyCycle = obj.ClockOutputDutyCycle; - clocked.InitialDelay = out.delay; - end - end +% %%Create session objects for chrono and other outputs +% [use, idx] = intersect({obj.Outputs.name}, obj.UseOutputs); % find which outputs to use +% % assert(numel(idx) == numel(obj.UseOutputs), 'Not all outputs were recognised'); +% for i = 1:length(use) +% out = obj.Outputs(idx(i)); % get channel info, etc. +% switch use{i} +% case 'chrono' +% obj.Sessions('chrono') = daq.createSession(obj.DaqVendor); +% obj.Sessions('chrono').addDigitalChannel(obj.DaqIds, out.daqChannelID, out.type); +% +% case 'acqLive' +% obj.Sessions('acqLive') = daq.createSession(obj.DaqVendor); +% obj.Sessions('acqLive').addDigitalChannel(obj.DaqIds, out.daqChannelID, out.type); +% outputSingleScan(obj.Sessions('acqLive'), false); % ensure acq live is false +% +% case 'clock' +% obj.Sessions('clock') = daq.createSession(obj.DaqVendor); +% obj.Sessions('clock').IsContinuous = true; +% clocked = obj.Sessions('clock').addCounterOutputChannel(obj.DaqIds, out.daqChannelID, out.type); +% clocked.Frequency = obj.ClockOutputFrequency; +% clocked.DutyCycle = obj.ClockOutputDutyCycle; +% clocked.InitialDelay = out.delay; +% end +% end + + + %%Create channels for each input [use, idx] = intersect({obj.Inputs.name}, obj.UseInputs);% find which inputs to use assert(numel(idx) == numel(obj.UseInputs), 'Not all inputs were recognised'); @@ -524,7 +577,6 @@ function init(obj) obj.Sessions('main') = inputSession; for i = 1:length(use) in = obj.Inputs(strcmp({obj.Inputs.name}, obj.UseInputs(i))); -% in = obj.Inputs(idx(i)); % get channel info, etc. fprintf(1, 'adding channel %s on %s\n', in.name, in.daqChannelID); switch in.measurement @@ -542,6 +594,11 @@ function init(obj) end obj.Inputs(strcmp({obj.Inputs.name}, obj.UseInputs(i))).arrayColumn = i; end + + % Initialize outputs + for outidx = 1:numel(obj.Outputs) + obj.Outputs(outidx).onInit(obj); + end end function process(obj, ~, event) @@ -565,25 +622,10 @@ function process(obj, ~, event) 'Discontinuity of DAQ acquistion detected: last timestamp was %f and this one is %f',... obj.LastTimestamp, event.TimeStamps(1)); - %%% The chrono "out" value is flipped at a recorded time, and - %%% the sample index that this flip is measured is noted - % First, find the index of the flip in the latest chunk of data - idx = elementByName(obj.Inputs, 'chrono'); - clockChangeIdx = find(sign(event.Data(:,obj.Inputs(idx).arrayColumn) - 2.5) == obj.NextChronoSign, 1); - - %Ensure the clocking pulse was detected - if ~isempty(clockChangeIdx) - clockChangeTimestamp = event.TimeStamps(clockChangeIdx); - obj.CurrSysTimeTimelineOffset = obj.LastClockSentSysTime - clockChangeTimestamp; - else - warning('Rigging:Timeline:timing', 'clocking pulse not detected - probably lagging more than one data chunk'); + % CALL ONPROCESS METHODS HERE + for outidx = 1:numel(obj.Outputs) + obj.Outputs(outidx).onProcess(obj, event); end - - %Now send the next clock pulse - obj.NextChronoSign = -obj.NextChronoSign; % flip next chrono - t = GetSecs; % system time before output - outputSingleScan(obj.Sessions('chrono'), obj.NextChronoSign > 0); % send next chrono flip - obj.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time %%% Store new samples into the timeline array prevSampleCount = obj.Data.rawDAQSampleCount; @@ -624,8 +666,9 @@ function livePlot(obj, data) end end - % get the names of the inputs being recorded - names = pick({obj.Inputs.name}, find([obj.Inputs.arrayColumn] > -1), 'cell'); + % get the names of the inputs being recorded (in the correct + % order) + names = pick({obj.Inputs.name}, cellfun(@(x)find(strcmp({obj.Inputs.name}, x),1), obj.UseInputs), 'cell'); nSamps = size(data,1); % Get the number of samples in this chunck nChans = size(data,2); % Get the number of channels traceSep = 7; % unit is Volts - for most channels the max is 5V so this is a good separation @@ -651,8 +694,7 @@ function livePlot(obj, data) % get the measurement type of each channel, since Position-type % inputs are plotted differently. - meas = {obj.Inputs.measurement}; - meas = meas(ismember({obj.Inputs.name}, obj.UseInputs)); + meas = pick({obj.Inputs.measurement}, cellfun(@(x)find(strcmp({obj.Inputs.name}, x),1), obj.UseInputs), 'cell'); for t = 1:length(traces) if strcmp(meas{t}, 'Position') diff --git a/+hw/tlOutput.m b/+hw/tlOutput.m new file mode 100644 index 00000000..faf2b3d6 --- /dev/null +++ b/+hw/tlOutput.m @@ -0,0 +1,36 @@ +classdef tlOutput < matlab.mixin.Heterogeneous & handle + %hw.tlOutput Code to specify an output channel for timeline + % This is an abstract class. + % + % Below is a list of some subclasses and their functions: + % hw.tlOutputClock - clocked output on a counter channel + % hw.tlOutputChrono - the default, flip/flip status check output + % hw.tlOutputAcqLive - a digital channel that is on for the duration + % of the recording + % hw.tlOutputStartStopSync - a digital channel that turns on only at + % the beginning and end of the recording + % + % The timeline object will call the onLoad, onStart, and onStop + % methods. + % + % Part of Rigbox + + % 2018-01 NS created + + properties + name + session + end + + methods (Abstract) + onInit(obj, timeline) + onStart(obj, timeline) + onProcess(obj, timeline, event) + onStop(obj, timeline) + %s = propertiesAsStruct(obj) % recommend we have a method that does this, + % so that we can save out all the properties in a json file. Incl a + % version number? + end + +end + diff --git a/+hw/tlOutputAcqLive.m b/+hw/tlOutputAcqLive.m new file mode 100644 index 00000000..8c1492ad --- /dev/null +++ b/+hw/tlOutputAcqLive.m @@ -0,0 +1,52 @@ +classdef tlOutputAcqLive < hw.tlOutput + %hw.tlOutputAcqLive A digital signal that goes up when the recording starts, + % down when it ends. + % See also hw.tlOutput and hw.Timeline + % + % Part of Rigbox + % 2018-01 NS + + properties + daqDeviceID + daqChannelID + daqVendor = 'ni' + initialDelay = 0 + end + + methods + function obj = tlOutputAcqLive(name, daqDeviceID, daqChannelID) + obj.name = name; + obj.daqDeviceID = daqDeviceID; + obj.daqChannelID = daqChannelID; + end + + function onInit(obj, ~) + fprintf(1, 'initialize acqLive\n'); + obj.session = daq.createSession(obj.daqVendor); + obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); + outputSingleScan(obj.session, false); + end + + function onStart(obj, ~) + fprintf(1, 'start acqLive\n'); + + pause(obj.initialDelay); + outputSingleScan(obj.session, true); + + end + + function onProcess(~, ~, ~) + fprintf(1, 'process acqLive\n'); + + end + + function onStop(obj,~) + fprintf(1, 'stop chrono\n'); + stop(obj.session); + release(obj.session); + end + + end + +end + diff --git a/+hw/tlOutputChrono.m b/+hw/tlOutputChrono.m new file mode 100644 index 00000000..3aa0cc5d --- /dev/null +++ b/+hw/tlOutputChrono.m @@ -0,0 +1,89 @@ +classdef tlOutputChrono < hw.tlOutput + %hw.tlOutputChrono Timeline uses this to monitor that + % acquisition is proceeding normally during a recording. + % See also hw.tlOutput and hw.Timeline + % + % Part of Rigbox + % 2018-01 NS + + properties + daqDeviceID + daqChannelID + daqVendor = 'ni' + NextChronoSign = 1 % the value to output on the chrono channel, the sign is changed each 'Process' event + end + + methods + function obj = tlOutputChrono(name, daqDeviceID, daqChannelID) + obj.name = name; + obj.daqDeviceID = daqDeviceID; + obj.daqChannelID = daqChannelID; + end + + function onInit(obj, timeline) + fprintf(1, 'initialize chrono\n'); + obj.session = daq.createSession(obj.daqVendor); + obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); + + tls = timeline.getSessions('main'); + + %%Send a test pulse low, then high to clocking channel & check we read it back + idx = cellfun(@(s2)strcmp('chrono',s2), {timeline.Inputs.name}); + outputSingleScan(obj.session, false) + x1 = tls.inputSingleScan; + outputSingleScan(obj.session, true) + x2 = tls.inputSingleScan; + assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... + 'The clocking pulse test could not be read back'); + end + + function onStart(~, ~) + fprintf(1, 'start chrono\n'); + + end + + function onProcess(obj, timeline, event) + fprintf(1, 'process chrono\n'); + + % sign of the chrono signal is + % flipped on each call (at LastClockSentSysTime), and the + % time of the previous flip is found in the data and its + % timestamp noted. This is used by tl.time() to convert + % between system time and acquisition time. + % + % LastTimestamp is the time of the last scan in the previous + % data chunk, and is used to ensure no data samples have been + % lost. + + %%% The chrono "out" value is flipped at a recorded time, and + %%% the sample index that this flip is measured is noted + % First, find the index of the flip in the latest chunk of data + idx = elementByName(timeline.Inputs, 'chrono'); + clockChangeIdx = find(sign(event.Data(:,timeline.Inputs(idx).arrayColumn) - 2.5) == obj.NextChronoSign, 1); + + %Ensure the clocking pulse was detected + if ~isempty(clockChangeIdx) + clockChangeTimestamp = event.TimeStamps(clockChangeIdx); + timeline.CurrSysTimeTimelineOffset = timeline.LastClockSentSysTime - clockChangeTimestamp; + else + warning('Rigging:Timeline:timing', 'clocking pulse not detected - probably lagging more than one data chunk'); + end + + %Now send the next clock pulse + obj.NextChronoSign = -obj.NextChronoSign; % flip next chrono + t = GetSecs; % system time before output + outputSingleScan(obj.session, obj.NextChronoSign > 0); % send next chrono flip + timeline.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time + + end + + function onStop(obj,~) + fprintf(1, 'stop chrono\n'); + stop(obj.session); + release(obj.session); + end + + end + +end + From 92953eecdec7ff3c7aa39618d75937ad3c26f01c Mon Sep 17 00:00:00 2001 From: nsteinme Date: Thu, 25 Jan 2018 19:28:53 +0000 Subject: [PATCH 038/515] finished and tested outputs as classes --- +hw/Timeline.m | 101 +++--------------------------------- +hw/tlOutput.m | 2 +- +hw/tlOutputAcqLive.m | 3 +- +hw/tlOutputChrono.m | 1 + +hw/tlOutputClock.m | 60 +++++++++++++++++++++ +hw/tlOutputStartStopSync.m | 65 +++++++++++++++++++++++ 6 files changed, 137 insertions(+), 95 deletions(-) create mode 100644 +hw/tlOutputClock.m create mode 100644 +hw/tlOutputStartStopSync.m diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 0e69607a..4d0caf1a 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -70,29 +70,8 @@ DaqSampleRate = 1000 % rate at which daq aquires data in Hz, see Rate DaqSamplesPerNotify % determines the number of data samples to be processed each time, see Timeline.process(), constructor and NotifyWhenDataAvailableExceeds - Outputs % structure of outputs with their names and configuration information - % All outputs require the following fields: - % - name: a string identifier - % - type: one of the supported modes that we know how to - % handle, see below - % - params, the required parameters for the selected type - % - % Available types: - % - chrono: a default type that Timeline uses to monitor that - % acquisition is proceeding normally during a recording. - % Requires: daqChannelID - % - % - acqLive: a digital output that is turned on at the start - % of the timeline recording, turned off at the end - % Requires: daqChannelID, initialDelay - % - % - clock: a regular pulse at a specified frequency and duty - % cycle. Can be used to trigger camera frames, e.g. - % Requires: daqChannelID, initialDelay, frequency, dutyCycle - % - % - startStopSync: a brief pulse at the beginning and at the - % end of a recording. Can be used for synchronization - % - Requires: daqChannelID, initialDelay, pulseDuration + Outputs % array of output classes, defining any signals you desire to be sent from the daq. + % see hw.tlOutput, and, e.g. hw.tlOutputClock. Inputs = struct('name', 'chrono',... 'arrayColumn', -1,... % -1 is default indicating unused, this is update when the channels are added during tl.start() @@ -100,7 +79,6 @@ 'measurement', 'Voltage',... 'terminalConfig', 'SingleEnded') UseInputs = {'chrono'} % array of inputs to record while tl is running - %UseOutputs = {'chrono'} % array of output pulses to use while tl is running StopDelay = 2 % currently pauses for at least 2 secs as 'hack' before stopping main DAQ session MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) AquiredDataType = 'double' % default data type for the acquired data array (i.e. Data.rawDAQData) @@ -135,44 +113,14 @@ % Constructor method % Adds chrono, aquireLive and clock to the outputs list, % along with default ports and delays - obj.DaqSamplesPerNotify = 1/obj.SamplingInterval; % calculate DaqSamplesPerNotify - -% defaultOutputs = struct('name', 'type', 'params'); -% defaultOutputs(1).name = 'chrono'; -% defaultOutputs(1).type = 'chrono'; -% defaultOutputs(1).params.daqChannelID = 'port1/line0'; -% -% defaultOutputs(2).name = 'acqLive'; -% defaultOutputs(2).type = 'acqLive'; -% defaultOutputs(2).params.daqChannelID = 'port0/line1'; -% defaultOutputs(2).params.initialDelay = 0; -% -% defaultOutputs(3).name = 'clock'; -% defaultOutputs(3).type = 'clock'; -% defaultOutputs(3).params.daqChannelID = 'ctr3'; -% defaultOutputs(3).params.initialDelay = 0; -% defaultOutputs(3).params.frequency = 60; -% defaultOutputs(3).params.dutyCycle = 0.2; -% -% defaultOutputs(4).name = 'camSync'; -% defaultOutputs(4).type = 'startStopSync'; -% defaultOutputs(4).params.daqChannelID = 'port0/line3'; -% defaultOutputs(4).params.initialDelay = 0; -% defaultOutputs(4).params.pulseDuration = 0.2; - -% obj.Outputs = defaultOutputs; - + obj.DaqSamplesPerNotify = 1/obj.SamplingInterval; % calculate DaqSamplesPerNotify + obj.Outputs = hw.tlOutputChrono('chrono', obj.DaqIds, 'port0/line1'); if nargin % if old tl hardware struct provided, use these to populate properties obj.Inputs = hw.inputs; obj.DaqVendor = hw.daqVendor; obj.DaqIds = hw.daqDevice; obj.DaqSampleRate = hw.daqSampleRate; obj.DaqSamplesPerNotify = hw.daqSamplesPerNotify; -% obj.Outputs(1).daqChannelID = hw.chronoOutDaqChannelID; -% obj.Outputs(2).daqChannelID = hw.acqLiveDaqChannelID; -% obj.Outputs(3).daqChannelID = hw.clockOutputDaqChannelID; -% obj.ClockOutputFrequency = hw.clockOutputFrequency; -% obj.ClockOutputDutyCycle = hw.clockOutputDutyCycle; end end @@ -233,11 +181,6 @@ function start(obj, expRef, Alyx) obj.Outputs(outidx).onStart(obj); end -% if isKey(obj.Sessions, 'clock') % is the clock output being used? -% % start session to send timing output pulses -% startBackground(obj.Sessions('clock')); -% end - % Report success fprintf('Timeline started successfully for ''%s''.\n', expRef); end @@ -367,9 +310,10 @@ function wiringInfo(obj, name) fprintf('PFI4-7 = port1/line0-3\n') fprintf('ctr0-3 = port1/line0-3\n') else + outputClasses = arrayfun(@class, obj.Outputs, 'uni', false); if strcmp(name, 'chrono') % Chrono wiring info idI = cellfun(@(s2)strcmp('chrono',s2), {obj.Inputs.name}); - idO = cellfun(@(s2)strcmp('chrono',s2), {obj.Outputs.name}); + idO = find(cellfun(@(s2)strcmp('tlOutputChrono',s2), outputClasses),1); fprintf('Bridge terminals %s and %s\n',... obj.Outputs(idO).daqChannelID, obj.Inputs(idI).daqChannelID) elseif any(strcmp(name, {obj.Outputs.name})) % Output wiring info @@ -412,10 +356,8 @@ function stop(obj) warning('Nothing to do, Timeline is not running!') return end + % kill acquisition output signals -% if isKey(obj.Sessions, 'acqLive') -% outputSingleScan(obj.Sessions('acqLive'), false); % live -> false -% end for outidx = 1:numel(obj.Outputs) obj.Outputs(outidx).onStop(obj); end @@ -538,34 +480,7 @@ function init(obj) % TL.INIT() creates all the DAQ sessions % and stores them in the Sessions map by their Outputs name. % Also add a 'main' session to which all input channels are - % added. See daq.createSession - -% %%Create session objects for chrono and other outputs -% [use, idx] = intersect({obj.Outputs.name}, obj.UseOutputs); % find which outputs to use -% % assert(numel(idx) == numel(obj.UseOutputs), 'Not all outputs were recognised'); -% for i = 1:length(use) -% out = obj.Outputs(idx(i)); % get channel info, etc. -% switch use{i} -% case 'chrono' -% obj.Sessions('chrono') = daq.createSession(obj.DaqVendor); -% obj.Sessions('chrono').addDigitalChannel(obj.DaqIds, out.daqChannelID, out.type); -% -% case 'acqLive' -% obj.Sessions('acqLive') = daq.createSession(obj.DaqVendor); -% obj.Sessions('acqLive').addDigitalChannel(obj.DaqIds, out.daqChannelID, out.type); -% outputSingleScan(obj.Sessions('acqLive'), false); % ensure acq live is false -% -% case 'clock' -% obj.Sessions('clock') = daq.createSession(obj.DaqVendor); -% obj.Sessions('clock').IsContinuous = true; -% clocked = obj.Sessions('clock').addCounterOutputChannel(obj.DaqIds, out.daqChannelID, out.type); -% clocked.Frequency = obj.ClockOutputFrequency; -% clocked.DutyCycle = obj.ClockOutputDutyCycle; -% clocked.InitialDelay = out.delay; -% end -% end - - + % added. See daq.createSession %%Create channels for each input [use, idx] = intersect({obj.Inputs.name}, obj.UseInputs);% find which inputs to use diff --git a/+hw/tlOutput.m b/+hw/tlOutput.m index faf2b3d6..fdc2fc79 100644 --- a/+hw/tlOutput.m +++ b/+hw/tlOutput.m @@ -10,7 +10,7 @@ % hw.tlOutputStartStopSync - a digital channel that turns on only at % the beginning and end of the recording % - % The timeline object will call the onLoad, onStart, and onStop + % The timeline object will call the onInit, onStart, onProcess, and onStop % methods. % % Part of Rigbox diff --git a/+hw/tlOutputAcqLive.m b/+hw/tlOutputAcqLive.m index 8c1492ad..7a023147 100644 --- a/+hw/tlOutputAcqLive.m +++ b/+hw/tlOutputAcqLive.m @@ -41,9 +41,10 @@ function onProcess(~, ~, ~) end function onStop(obj,~) - fprintf(1, 'stop chrono\n'); + fprintf(1, 'stop acqLive\n'); stop(obj.session); release(obj.session); + obj.session = []; end end diff --git a/+hw/tlOutputChrono.m b/+hw/tlOutputChrono.m index 3aa0cc5d..4742afa1 100644 --- a/+hw/tlOutputChrono.m +++ b/+hw/tlOutputChrono.m @@ -81,6 +81,7 @@ function onStop(obj,~) fprintf(1, 'stop chrono\n'); stop(obj.session); release(obj.session); + obj.session = []; end end diff --git a/+hw/tlOutputClock.m b/+hw/tlOutputClock.m new file mode 100644 index 00000000..dc65a171 --- /dev/null +++ b/+hw/tlOutputClock.m @@ -0,0 +1,60 @@ +classdef tlOutputClock < hw.tlOutput + %hw.tlOutputClock A a regular pulse at a specified frequency and duty + % cycle. Can be used to trigger camera frames, e.g. + % See also hw.tlOutput and hw.Timeline + % + % Part of Rigbox + % 2018-01 NS + + properties + daqDeviceID + daqChannelID + daqVendor = 'ni' + initialDelay = 0 + frequency = 60; + dutyCycle = 0.2; + clockChan + end + + methods + function obj = tlOutputClock(name, daqDeviceID, daqChannelID) + obj.name = name; + obj.daqDeviceID = daqDeviceID; + obj.daqChannelID = daqChannelID; + end + + function onInit(obj, ~) + fprintf(1, 'initialize Clock\n'); + obj.session = daq.createSession(obj.daqVendor); + obj.session.IsContinuous = true; + clocked = obj.session.addCounterOutputChannel(obj.daqDeviceID, obj.daqChannelID, 'PulseGeneration'); + clocked.Frequency = obj.frequency; + clocked.DutyCycle = obj.dutyCycle; + clocked.InitialDelay = obj.initialDelay; + obj.clockChan = clocked; + + end + + function onStart(obj, ~) + fprintf(1, 'start Clock\n'); + + startBackground(obj.session); + end + + function onProcess(~, ~, ~) + fprintf(1, 'process Clock\n'); + + end + + function onStop(obj,~) + fprintf(1, 'stop Clock\n'); + + stop(obj.session); + release(obj.session); + obj.session = []; + end + + end + +end + diff --git a/+hw/tlOutputStartStopSync.m b/+hw/tlOutputStartStopSync.m new file mode 100644 index 00000000..577b942e --- /dev/null +++ b/+hw/tlOutputStartStopSync.m @@ -0,0 +1,65 @@ +classdef tlOutputStartStopSync < hw.tlOutput + %hw.tlOutputStartStopSync A digital signal that goes up when the recording starts, + % but just briefly, then down again at the end. + % See also hw.tlOutput and hw.Timeline + % + % Part of Rigbox + % 2018-01 NS + + properties + daqDeviceID + daqChannelID + daqVendor = 'ni' + initialDelay = 0 + pulseDuration = 0.2; + end + + methods + function obj = tlOutputStartStopSync(name, daqDeviceID, daqChannelID) + obj.name = name; + obj.daqDeviceID = daqDeviceID; + obj.daqChannelID = daqChannelID; + end + + function onInit(obj, ~) + fprintf(1, 'initialize StartStopSync\n'); + obj.session = daq.createSession(obj.daqVendor); + obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); + outputSingleScan(obj.session, false); % ensure that it starts down + % by the way, if you use this to control a light for + % synchronization, note that you can configure in nidaqMX a + % "default" value for the channel, so for example it will stay + % "false" at all times even if the computer reboots. + end + + function onStart(obj, ~) + fprintf(1, 'start StartStopSync\n'); + + pause(obj.initialDelay); + outputSingleScan(obj.session, true); + pause(obj.pulseDuration); + outputSingleScan(obj.session, false); + + end + + function onProcess(~, ~, ~) + fprintf(1, 'process StartStopSync\n'); + + end + + function onStop(obj,~) + fprintf(1, 'stop StartStopSync\n'); + + outputSingleScan(obj.session, true); + pause(obj.pulseDuration); + outputSingleScan(obj.session, false); + + stop(obj.session); + release(obj.session); + obj.session = []; + end + + end + +end + From de19f8a0ff94034dc1ea9e3d09d1249e564590c2 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Fri, 26 Jan 2018 12:57:36 +0000 Subject: [PATCH 039/515] update output classes with toStr, enable, transients --- +hw/Timeline.m | 11 ++-- +hw/tlOutput.m | 21 +++--- +hw/tlOutputAcqLive.m | 52 +++++++++------ +hw/tlOutputChrono.m | 123 ++++++++++++++++++++---------------- +hw/tlOutputClock.m | 66 +++++++++++-------- +hw/tlOutputStartStopSync.m | 71 ++++++++++++--------- 6 files changed, 200 insertions(+), 144 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 4d0caf1a..2318ae54 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -178,7 +178,7 @@ function start(obj, expRef, Alyx) end for outidx = 1:numel(obj.Outputs) - obj.Outputs(outidx).onStart(obj); + obj.Outputs(outidx).start(obj); end % Report success @@ -359,7 +359,7 @@ function stop(obj) % kill acquisition output signals for outidx = 1:numel(obj.Outputs) - obj.Outputs(outidx).onStop(obj); + obj.Outputs(outidx).stop(obj); end pause(obj.StopDelay) @@ -512,7 +512,7 @@ function init(obj) % Initialize outputs for outidx = 1:numel(obj.Outputs) - obj.Outputs(outidx).onInit(obj); + obj.Outputs(outidx).init(obj); end end @@ -536,10 +536,9 @@ function process(obj, ~, event) assert(abs(event.TimeStamps(1) - obj.LastTimestamp - obj.SamplingInterval) < 1e-8,... 'Discontinuity of DAQ acquistion detected: last timestamp was %f and this one is %f',... obj.LastTimestamp, event.TimeStamps(1)); - - % CALL ONPROCESS METHODS HERE + for outidx = 1:numel(obj.Outputs) - obj.Outputs(outidx).onProcess(obj, event); + obj.Outputs(outidx).process(obj, event); end %%% Store new samples into the timeline array diff --git a/+hw/tlOutput.m b/+hw/tlOutput.m index fdc2fc79..e178fd9d 100644 --- a/+hw/tlOutput.m +++ b/+hw/tlOutput.m @@ -18,18 +18,21 @@ % 2018-01 NS created properties - name - session + name + enable = true % will not do anything with it unless this is true + verbose = false % output status updates. Initialization message outputs regardless of verbose. + end + + properties (Transient) + session end methods (Abstract) - onInit(obj, timeline) - onStart(obj, timeline) - onProcess(obj, timeline, event) - onStop(obj, timeline) - %s = propertiesAsStruct(obj) % recommend we have a method that does this, - % so that we can save out all the properties in a json file. Incl a - % version number? + init(obj, timeline) + start(obj, timeline) + process(obj, timeline, event) + stop(obj, timeline) + s = toStr(obj) % a string that describes the object succintly end end diff --git a/+hw/tlOutputAcqLive.m b/+hw/tlOutputAcqLive.m index 7a023147..a8fae92a 100644 --- a/+hw/tlOutputAcqLive.m +++ b/+hw/tlOutputAcqLive.m @@ -20,31 +20,45 @@ obj.daqChannelID = daqChannelID; end - function onInit(obj, ~) - fprintf(1, 'initialize acqLive\n'); - obj.session = daq.createSession(obj.daqVendor); - obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); - outputSingleScan(obj.session, false); + function init(obj, ~) + if obj.enable + fprintf(1, 'initializing %s\n', obj.toStr); + obj.session = daq.createSession(obj.daqVendor); + obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); + outputSingleScan(obj.session, false); + end end - function onStart(obj, ~) - fprintf(1, 'start acqLive\n'); - - pause(obj.initialDelay); - outputSingleScan(obj.session, true); - + function start(obj, ~) + if obj.enable + if obj.verbose + fprintf(1, 'start %s\n', obj.name); + end + + pause(obj.initialDelay); + outputSingleScan(obj.session, true); + end end - function onProcess(~, ~, ~) - fprintf(1, 'process acqLive\n'); - + function process(~, ~, ~) + %fprintf(1, 'process acqLive\n'); + % -- pass end - function onStop(obj,~) - fprintf(1, 'stop acqLive\n'); - stop(obj.session); - release(obj.session); - obj.session = []; + function stop(obj,~) + if obj.enable + if obj.verbose + fprintf(1, 'stop %s\n', obj.name); + end + stop(obj.session); + release(obj.session); + obj.session = []; + end + end + + function s = toStr(obj) + s = sprintf('"%s" on %s/%s (acqLive, initial delay %.2f)', obj.name, ... + obj.daqDeviceID, obj.daqChannelID, obj.initialDelay); end end diff --git a/+hw/tlOutputChrono.m b/+hw/tlOutputChrono.m index 4742afa1..ad16ff3c 100644 --- a/+hw/tlOutputChrono.m +++ b/+hw/tlOutputChrono.m @@ -20,68 +20,81 @@ obj.daqChannelID = daqChannelID; end - function onInit(obj, timeline) - fprintf(1, 'initialize chrono\n'); - obj.session = daq.createSession(obj.daqVendor); - obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); - - tls = timeline.getSessions('main'); - - %%Send a test pulse low, then high to clocking channel & check we read it back - idx = cellfun(@(s2)strcmp('chrono',s2), {timeline.Inputs.name}); - outputSingleScan(obj.session, false) - x1 = tls.inputSingleScan; - outputSingleScan(obj.session, true) - x2 = tls.inputSingleScan; - assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... - 'The clocking pulse test could not be read back'); + function init(obj, timeline) + if obj.enable + fprintf(1, 'initializing %s\n', obj.toStr); + obj.session = daq.createSession(obj.daqVendor); + obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); + + tls = timeline.getSessions('main'); + + %%Send a test pulse low, then high to clocking channel & check we read it back + idx = cellfun(@(s2)strcmp('chrono',s2), {timeline.Inputs.name}); + outputSingleScan(obj.session, false) + x1 = tls.inputSingleScan; + outputSingleScan(obj.session, true) + x2 = tls.inputSingleScan; + assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... + 'The clocking pulse test could not be read back'); + end + end + + function start(~, ~) + %fprintf(1, 'start chrono\n'); + % -- pass end - function onStart(~, ~) - fprintf(1, 'start chrono\n'); - + function process(obj, timeline, event) + if obj.enable + if obj.verbose + fprintf(1, 'process %s\n', obj.name); + end + % sign of the chrono signal is + % flipped on each call (at LastClockSentSysTime), and the + % time of the previous flip is found in the data and its + % timestamp noted. This is used by tl.time() to convert + % between system time and acquisition time. + % + % LastTimestamp is the time of the last scan in the previous + % data chunk, and is used to ensure no data samples have been + % lost. + + %%% The chrono "out" value is flipped at a recorded time, and + %%% the sample index that this flip is measured is noted + % First, find the index of the flip in the latest chunk of data + idx = elementByName(timeline.Inputs, 'chrono'); + clockChangeIdx = find(sign(event.Data(:,timeline.Inputs(idx).arrayColumn) - 2.5) == obj.NextChronoSign, 1); + + %Ensure the clocking pulse was detected + if ~isempty(clockChangeIdx) + clockChangeTimestamp = event.TimeStamps(clockChangeIdx); + timeline.CurrSysTimeTimelineOffset = timeline.LastClockSentSysTime - clockChangeTimestamp; + else + warning('Rigging:Timeline:timing', 'clocking pulse not detected - probably lagging more than one data chunk'); + end + + %Now send the next clock pulse + obj.NextChronoSign = -obj.NextChronoSign; % flip next chrono + t = GetSecs; % system time before output + outputSingleScan(obj.session, obj.NextChronoSign > 0); % send next chrono flip + timeline.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time + end end - function onProcess(obj, timeline, event) - fprintf(1, 'process chrono\n'); - - % sign of the chrono signal is - % flipped on each call (at LastClockSentSysTime), and the - % time of the previous flip is found in the data and its - % timestamp noted. This is used by tl.time() to convert - % between system time and acquisition time. - % - % LastTimestamp is the time of the last scan in the previous - % data chunk, and is used to ensure no data samples have been - % lost. - - %%% The chrono "out" value is flipped at a recorded time, and - %%% the sample index that this flip is measured is noted - % First, find the index of the flip in the latest chunk of data - idx = elementByName(timeline.Inputs, 'chrono'); - clockChangeIdx = find(sign(event.Data(:,timeline.Inputs(idx).arrayColumn) - 2.5) == obj.NextChronoSign, 1); - - %Ensure the clocking pulse was detected - if ~isempty(clockChangeIdx) - clockChangeTimestamp = event.TimeStamps(clockChangeIdx); - timeline.CurrSysTimeTimelineOffset = timeline.LastClockSentSysTime - clockChangeTimestamp; - else - warning('Rigging:Timeline:timing', 'clocking pulse not detected - probably lagging more than one data chunk'); + function stop(obj,~) + if enable + if obj.verbose + fprintf(1, 'stop %s\n', obj.name); + end + stop(obj.session); + release(obj.session); + obj.session = []; end - - %Now send the next clock pulse - obj.NextChronoSign = -obj.NextChronoSign; % flip next chrono - t = GetSecs; % system time before output - outputSingleScan(obj.session, obj.NextChronoSign > 0); % send next chrono flip - timeline.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time - end - function onStop(obj,~) - fprintf(1, 'stop chrono\n'); - stop(obj.session); - release(obj.session); - obj.session = []; + function s = toStr(obj) + s = sprintf('"%s" on %s/%s (chrono)', obj.name, ... + obj.daqDeviceID, obj.daqChannelID); end end diff --git a/+hw/tlOutputClock.m b/+hw/tlOutputClock.m index dc65a171..f5e206fb 100644 --- a/+hw/tlOutputClock.m +++ b/+hw/tlOutputClock.m @@ -12,8 +12,11 @@ daqVendor = 'ni' initialDelay = 0 frequency = 60; - dutyCycle = 0.2; - clockChan + dutyCycle = 0.2; + end + + properties (Transient) + clockChan end methods @@ -23,37 +26,50 @@ obj.daqChannelID = daqChannelID; end - function onInit(obj, ~) - fprintf(1, 'initialize Clock\n'); - obj.session = daq.createSession(obj.daqVendor); - obj.session.IsContinuous = true; - clocked = obj.session.addCounterOutputChannel(obj.daqDeviceID, obj.daqChannelID, 'PulseGeneration'); - clocked.Frequency = obj.frequency; - clocked.DutyCycle = obj.dutyCycle; - clocked.InitialDelay = obj.initialDelay; - obj.clockChan = clocked; - + function init(obj, ~) + if obj.enable + fprintf(1, 'initializing %s\n', obj.toStr); + + obj.session = daq.createSession(obj.daqVendor); + obj.session.IsContinuous = true; + clocked = obj.session.addCounterOutputChannel(obj.daqDeviceID, obj.daqChannelID, 'PulseGeneration'); + clocked.Frequency = obj.frequency; + clocked.DutyCycle = obj.dutyCycle; + clocked.InitialDelay = obj.initialDelay; + obj.clockChan = clocked; + end end - function onStart(obj, ~) - fprintf(1, 'start Clock\n'); - - startBackground(obj.session); + function start(obj, ~) + if obj.enable + if obj.verbose + fprintf(1, 'start %s\n', obj.name); + end + startBackground(obj.session); + end end - function onProcess(~, ~, ~) - fprintf(1, 'process Clock\n'); - + function process(~, ~, ~) + %fprintf(1, 'process Clock\n'); + % -- pass end - function onStop(obj,~) - fprintf(1, 'stop Clock\n'); - - stop(obj.session); - release(obj.session); - obj.session = []; + function stop(obj,~) + if obj.enable + if obj.verbose + fprintf(1, 'stop %s\n', obj.name); + end + + stop(obj.session); + release(obj.session); + obj.session = []; + end end + function s = toStr(obj) + s = sprintf('"%s" on %s/%s (clock, %dHz, %.2f duty cycle)', obj.name, ... + obj.daqDeviceID, obj.daqChannelID, obj.frequency, obj.dutyCycle); + end end end diff --git a/+hw/tlOutputStartStopSync.m b/+hw/tlOutputStartStopSync.m index 577b942e..3222ab46 100644 --- a/+hw/tlOutputStartStopSync.m +++ b/+hw/tlOutputStartStopSync.m @@ -21,42 +21,53 @@ obj.daqChannelID = daqChannelID; end - function onInit(obj, ~) - fprintf(1, 'initialize StartStopSync\n'); - obj.session = daq.createSession(obj.daqVendor); - obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); - outputSingleScan(obj.session, false); % ensure that it starts down - % by the way, if you use this to control a light for - % synchronization, note that you can configure in nidaqMX a - % "default" value for the channel, so for example it will stay - % "false" at all times even if the computer reboots. + function init(obj, ~) + if obj.enable + fprintf(1, 'initializing %s\n', obj.toStr); + obj.session = daq.createSession(obj.daqVendor); + obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); + outputSingleScan(obj.session, false); % ensure that it starts down + % by the way, if you use this to control a light for + % synchronization, note that you can configure in nidaqMX a + % "default" value for the channel, so for example it will stay + % "false" at all times even if the computer reboots. + end end - function onStart(obj, ~) - fprintf(1, 'start StartStopSync\n'); - - pause(obj.initialDelay); - outputSingleScan(obj.session, true); - pause(obj.pulseDuration); - outputSingleScan(obj.session, false); - + function start(obj, ~) + if obj.enable + if obj.verbose + fprintf(1, 'start %s\n', obj.name); + end + pause(obj.initialDelay); + outputSingleScan(obj.session, true); + pause(obj.pulseDuration); + outputSingleScan(obj.session, false); + end end - function onProcess(~, ~, ~) - fprintf(1, 'process StartStopSync\n'); - + function process(~, ~, ~) + %fprintf(1, 'process StartStopSync\n'); + % -- pass end - function onStop(obj,~) - fprintf(1, 'stop StartStopSync\n'); - - outputSingleScan(obj.session, true); - pause(obj.pulseDuration); - outputSingleScan(obj.session, false); - - stop(obj.session); - release(obj.session); - obj.session = []; + function stop(obj,~) + if obj.enable + fprintf(1, 'stop %s\n', obj.name); + + outputSingleScan(obj.session, true); + pause(obj.pulseDuration); + outputSingleScan(obj.session, false); + + stop(obj.session); + release(obj.session); + obj.session = []; + end + end + + function s = toStr(obj) + s = sprintf('"%s" on %s/%s (StartStopSync, pulse duration %.2f)', obj.name, ... + obj.daqDeviceID, obj.daqChannelID, obj.pulseDuration); end end From 8b36d7cf5bcabbd2f6e820a75a8a0f448bca3dd5 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Fri, 26 Jan 2018 13:44:55 +0000 Subject: [PATCH 040/515] add saving out Outputs as struct --- +hw/Timeline.m | 17 +++++++++++++---- +hw/tlOutputChrono.m | 15 ++++++++++----- +hw/tlOutputStartStopSync.m | 4 +++- 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 2318ae54..25c0781f 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -70,7 +70,8 @@ DaqSampleRate = 1000 % rate at which daq aquires data in Hz, see Rate DaqSamplesPerNotify % determines the number of data samples to be processed each time, see Timeline.process(), constructor and NotifyWhenDataAvailableExceeds - Outputs % array of output classes, defining any signals you desire to be sent from the daq. + Outputs = hw.tlOutputChrono('chrono', 'Dev1', 'port0/line1') + % array of output classes, defining any signals you desire to be sent from the daq. % see hw.tlOutput, and, e.g. hw.tlOutputClock. Inputs = struct('name', 'chrono',... @@ -79,6 +80,7 @@ 'measurement', 'Voltage',... 'terminalConfig', 'SingleEnded') UseInputs = {'chrono'} % array of inputs to record while tl is running + StopDelay = 2 % currently pauses for at least 2 secs as 'hack' before stopping main DAQ session MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) AquiredDataType = 'double' % default data type for the acquired data array (i.e. Data.rawDAQData) @@ -86,8 +88,11 @@ LivePlot = false % if true the data are plotted as the data are aquired LivePlotParams = []; WriteBufferToDisk = false % if true the data buffer is written to disk as they're aquired NB: in the future this will happen by default - - % moved these here so chrono class can access - NS + + end + + properties (Transient) + % moved these here (i.e. unprotected) so chrono class can access - NS CurrSysTimeTimelineOffset % difference between the system time when the last chrono flip occured and the timestamp recorded by the DAQ, see tl.process() LastTimestamp % the last timestamp returned from the daq during the DataAvailable event. Used to check sampling continuity, see tl.process() LastClockSentSysTime % the mean of the system time before and after the last chrono flip. Used to calculate CurrSysTimeTimelineOffset, see tl.process() @@ -114,7 +119,6 @@ % Adds chrono, aquireLive and clock to the outputs list, % along with default ports and delays obj.DaqSamplesPerNotify = 1/obj.SamplingInterval; % calculate DaqSamplesPerNotify - obj.Outputs = hw.tlOutputChrono('chrono', obj.DaqIds, 'port0/line1'); if nargin % if old tl hardware struct provided, use these to populate properties obj.Inputs = hw.inputs; obj.DaqVendor = hw.daqVendor; @@ -122,6 +126,7 @@ obj.DaqSampleRate = hw.daqSampleRate; obj.DaqSamplesPerNotify = hw.daqSamplesPerNotify; end + end function start(obj, expRef, Alyx) @@ -417,6 +422,10 @@ function stop(obj) obj.Data.lastClockSentSysTime = obj.LastClockSentSysTime; obj.Data.currSysTimeTimelineOffset = obj.CurrSysTimeTimelineOffset; + for outIdx = 1:numel(obj.Outputs) + obj.Data.hw.Outputs{outIdx} = struct(obj.Outputs(outIdx)); + end + % save tl to all paths superSave(obj.Data.savePaths, struct('Timeline', obj.Data)); diff --git a/+hw/tlOutputChrono.m b/+hw/tlOutputChrono.m index ad16ff3c..766a6f39 100644 --- a/+hw/tlOutputChrono.m +++ b/+hw/tlOutputChrono.m @@ -39,13 +39,18 @@ function init(obj, timeline) end end - function start(~, ~) - %fprintf(1, 'start chrono\n'); - % -- pass + function start(obj, ~) + if obj.enable + if obj.verbose + fprintf(1, 'start %s\n', obj.name); + end + + outputSingleScan(obj.session, false) % this will be the clocking pulse detected the first time process is called + end end function process(obj, timeline, event) - if obj.enable + if obj.enable && timeline.IsRunning && ~isempty(obj.session) if obj.verbose fprintf(1, 'process %s\n', obj.name); end @@ -82,7 +87,7 @@ function process(obj, timeline, event) end function stop(obj,~) - if enable + if obj.enable if obj.verbose fprintf(1, 'stop %s\n', obj.name); end diff --git a/+hw/tlOutputStartStopSync.m b/+hw/tlOutputStartStopSync.m index 3222ab46..15b975ff 100644 --- a/+hw/tlOutputStartStopSync.m +++ b/+hw/tlOutputStartStopSync.m @@ -53,7 +53,9 @@ function process(~, ~, ~) function stop(obj,~) if obj.enable - fprintf(1, 'stop %s\n', obj.name); + if obj.verbose + fprintf(1, 'stop %s\n', obj.name); + end outputSingleScan(obj.session, true); pause(obj.pulseDuration); From dbbcd8a7207ddeb0317f8728bde11f12efd4c299 Mon Sep 17 00:00:00 2001 From: ArminLak Date: Mon, 29 Jan 2018 11:46:47 +0000 Subject: [PATCH 041/515] Updated paths server 1 now 'zubjects' --- +dat/paths.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 9d69d38e..94c564f8 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -13,7 +13,7 @@ rig = thishost; end -server1Name = '\\zserver.cortexlab.net'; +server1Name = '\\zubjects.cortexlab.net'; % server2Name = '\\zserver2.cortexlab.net'; % server3Name = '\\zserver3.cortexlab.net'; % 2017-02-18 MW - Currently % unused by Rigbox @@ -29,7 +29,7 @@ p.localRepository = 'C:\LocalExpData'; % for all data types, under the new system of having data grouped by mouse % rather than data type -p.mainRepository = fullfile(server1Name, 'Data2', 'Subjects'); +p.mainRepository = fullfile(server1Name, 'Subjects'); % Repository for info about experiments, i.e. stimulus, behavioural, % Timeline etc p.expInfoRepository = p.mainRepository; From bed3a79eb67edc4836687fdfbc09001f1ef2322e Mon Sep 17 00:00:00 2001 From: ArminLak Date: Mon, 29 Jan 2018 11:49:36 +0000 Subject: [PATCH 042/515] Changed dat.paths server 1 name now 'zubjects' --- +dat/paths.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 222cbf5e..a9bb73fe 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -13,7 +13,7 @@ rig = thishost; end -server1Name = '\\zserver.cortexlab.net'; +server1Name = '\\zubjects.cortexlab.net'; % server2Name = '\\zserver2.cortexlab.net'; % server3Name = '\\zserver3.cortexlab.net'; % 2017-02-18 MW - Currently % unused by Rigbox @@ -27,7 +27,7 @@ p.localRepository = 'C:\LocalExpData'; % for all data types, under the new system of having data grouped by mouse % rather than data type -p.mainRepository = fullfile(server1Name, 'Data2', 'Subjects'); +p.mainRepository = fullfile(server1Name, 'Subjects'); % Repository for info about experiments, i.e. stimulus, behavioural, % Timeline etc p.expInfoRepository = p.mainRepository; From 64dc8d462a070c917d8be4e9ef8659ed832a388f Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 29 Jan 2018 11:59:14 +0000 Subject: [PATCH 043/515] new paths --- +dat/paths.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 9d69d38e..94c564f8 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -13,7 +13,7 @@ rig = thishost; end -server1Name = '\\zserver.cortexlab.net'; +server1Name = '\\zubjects.cortexlab.net'; % server2Name = '\\zserver2.cortexlab.net'; % server3Name = '\\zserver3.cortexlab.net'; % 2017-02-18 MW - Currently % unused by Rigbox @@ -29,7 +29,7 @@ p.localRepository = 'C:\LocalExpData'; % for all data types, under the new system of having data grouped by mouse % rather than data type -p.mainRepository = fullfile(server1Name, 'Data2', 'Subjects'); +p.mainRepository = fullfile(server1Name, 'Subjects'); % Repository for info about experiments, i.e. stimulus, behavioural, % Timeline etc p.expInfoRepository = p.mainRepository; From a9afa12ee75244fce0cb98094985809b5ed02360 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 29 Jan 2018 12:51:56 +0000 Subject: [PATCH 044/515] fix timeline synchronization with expServer --- +hw/Timeline.m | 8 ++++---- +hw/tlOutputChrono.m | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 25c0781f..de73332b 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -93,7 +93,7 @@ properties (Transient) % moved these here (i.e. unprotected) so chrono class can access - NS - CurrSysTimeTimelineOffset % difference between the system time when the last chrono flip occured and the timestamp recorded by the DAQ, see tl.process() + CurrSysTimeTimelineOffset = 0 % difference between the system time when the last chrono flip occured and the timestamp recorded by the DAQ, see tl.process() LastTimestamp % the last timestamp returned from the daq during the DataAvailable event. Used to check sampling continuity, see tl.process() LastClockSentSysTime % the mean of the system time before and after the last chrono flip. Used to calculate CurrSysTimeTimelineOffset, see tl.process() end @@ -422,9 +422,9 @@ function stop(obj) obj.Data.lastClockSentSysTime = obj.LastClockSentSysTime; obj.Data.currSysTimeTimelineOffset = obj.CurrSysTimeTimelineOffset; - for outIdx = 1:numel(obj.Outputs) - obj.Data.hw.Outputs{outIdx} = struct(obj.Outputs(outIdx)); - end +% for outIdx = 1:numel(obj.Outputs) +% obj.Data.hw.Outputs{outIdx} = struct(obj.Outputs(outIdx)); +% end % save tl to all paths superSave(obj.Data.savePaths, struct('Timeline', obj.Data)); diff --git a/+hw/tlOutputChrono.m b/+hw/tlOutputChrono.m index 766a6f39..e98d74a0 100644 --- a/+hw/tlOutputChrono.m +++ b/+hw/tlOutputChrono.m @@ -36,16 +36,19 @@ function init(obj, timeline) x2 = tls.inputSingleScan; assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... 'The clocking pulse test could not be read back'); + + timeline.CurrSysTimeTimelineOffset = GetSecs; end end - function start(obj, ~) + function start(obj, timeline) if obj.enable if obj.verbose fprintf(1, 'start %s\n', obj.name); end - + t = GetSecs; % system time before output outputSingleScan(obj.session, false) % this will be the clocking pulse detected the first time process is called + timeline.LastClockSentSysTime = (t + GetSecs)/2; end end @@ -70,6 +73,11 @@ function process(obj, timeline, event) idx = elementByName(timeline.Inputs, 'chrono'); clockChangeIdx = find(sign(event.Data(:,timeline.Inputs(idx).arrayColumn) - 2.5) == obj.NextChronoSign, 1); + if obj.verbose + fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... + timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); + end + %Ensure the clocking pulse was detected if ~isempty(clockChangeIdx) clockChangeTimestamp = event.TimeStamps(clockChangeIdx); @@ -83,6 +91,11 @@ function process(obj, timeline, event) t = GetSecs; % system time before output outputSingleScan(obj.session, obj.NextChronoSign > 0); % send next chrono flip timeline.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time + if obj.verbose + fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... + timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); + end + end end From 405f2ba10bddff4b6de321a067e5cabe061eea24 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 29 Jan 2018 13:32:33 +0000 Subject: [PATCH 045/515] Fix'd MPEP UDP Listeners error --- cortexlab/+io/MpepUDPDataHosts.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cortexlab/+io/MpepUDPDataHosts.m b/cortexlab/+io/MpepUDPDataHosts.m index 821b215f..0c239943 100644 --- a/cortexlab/+io/MpepUDPDataHosts.m +++ b/cortexlab/+io/MpepUDPDataHosts.m @@ -204,12 +204,12 @@ function expEnded(obj) function start(obj, ref) [expRef, ai] = dat.parseAlyxInstance(ref); obj.AlyxInstance = ai; - [subject, seriesNum, expNum] = dat.expRefToMpep(obj.ExpRef); + [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); alyxmsg = sprintf('alyx %s %d %d %s', subject, seriesNum, expNum, ref); confirmedBroadcast(obj, alyxmsg); + % equivalent to startExp(expRef) expStarted(obj, expRef); - end function stop(obj) From de92c0cac77b0dd75c2f7c2797ddbbf010288a61 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 29 Jan 2018 14:06:53 +0000 Subject: [PATCH 046/515] add lots of comments --- +hw/Timeline.m | 7 ++++++- +hw/tlOutput.m | 14 +++++++------- +hw/tlOutputAcqLive.m | 12 ++++++++---- +hw/tlOutputChrono.m | 14 ++++++++++---- +hw/tlOutputClock.m | 10 +++++++--- +hw/tlOutputStartStopSync.m | 8 ++++++-- 6 files changed, 44 insertions(+), 21 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index ed705fea..d259c25c 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -182,6 +182,7 @@ function start(obj, expRef, Alyx) pause(5e-3); end + % Start each output for outidx = 1:numel(obj.Outputs) obj.Outputs(outidx).start(obj); end @@ -389,7 +390,8 @@ function stop(obj) inputsIdx = cellfun(@(x)find(strcmp({obj.Inputs.name}, x),1), obj.UseInputs); % this block finds the daqChannelID for chrono and acqLive if - % they exist + % they exist, plus some clock parameters - all for legacy + % metadata saving, see below outputClasses = arrayfun(@class, obj.Outputs, 'uni', false); chronoChan = []; nextChrono = []; acqLiveChan = []; useClock = false; clockF = []; clockD = []; chronoOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputChrono'),1); @@ -408,6 +410,7 @@ function stop(obj) clockD = obj.Outputs(clockOutputIdx).dutyCycle; end + % legacy metadata obj.Data.hw = struct('daqVendor', obj.DaqVendor, 'daqDevice', obj.DaqIds,... 'daqSampleRate', obj.DaqSampleRate, 'daqSamplesPerNotify', obj.DaqSamplesPerNotify,... 'chronoOutDaqChannelID', chronoChan, 'acqLiveOutDaqChannelID', acqLiveChan,... @@ -422,6 +425,7 @@ function stop(obj) obj.Data.lastClockSentSysTime = obj.LastClockSentSysTime; obj.Data.currSysTimeTimelineOffset = obj.CurrSysTimeTimelineOffset; + % saving hardware metadata for each output % for outIdx = 1:numel(obj.Outputs) % obj.Data.hw.Outputs{outIdx} = struct(obj.Outputs(outIdx)); % end @@ -547,6 +551,7 @@ function process(obj, ~, event) 'Discontinuity of DAQ acquistion detected: last timestamp was %f and this one is %f',... obj.LastTimestamp, event.TimeStamps(1)); + % process methods for outputs for outidx = 1:numel(obj.Outputs) obj.Outputs(outidx).process(obj, event); end diff --git a/+hw/tlOutput.m b/+hw/tlOutput.m index e178fd9d..697b2041 100644 --- a/+hw/tlOutput.m +++ b/+hw/tlOutput.m @@ -4,13 +4,13 @@ % % Below is a list of some subclasses and their functions: % hw.tlOutputClock - clocked output on a counter channel - % hw.tlOutputChrono - the default, flip/flip status check output + % hw.tlOutputChrono - the default, flip/flop status check output % hw.tlOutputAcqLive - a digital channel that is on for the duration % of the recording % hw.tlOutputStartStopSync - a digital channel that turns on only at % the beginning and end of the recording % - % The timeline object will call the onInit, onStart, onProcess, and onStop + % The timeline object will call the init, start, process, and stop % methods. % % Part of Rigbox @@ -18,7 +18,7 @@ % 2018-01 NS created properties - name + name % user choice, text enable = true % will not do anything with it unless this is true verbose = false % output status updates. Initialization message outputs regardless of verbose. end @@ -28,10 +28,10 @@ end methods (Abstract) - init(obj, timeline) - start(obj, timeline) - process(obj, timeline, event) - stop(obj, timeline) + init(obj, timeline) % called when timeline is initialized (see hw.Timeline/init), e.g. to open daq session and set parameters + start(obj, timeline) % called when timeline is started (see hw.Timeline/start), e.g. to start outputs + process(obj, timeline, event) % called every time Timeline processes a chunk of data, in case output needs to react to it + stop(obj, timeline) % called when timeline is stopped (see hw.Timeline/stop), to close and clean up s = toStr(obj) % a string that describes the object succintly end diff --git a/+hw/tlOutputAcqLive.m b/+hw/tlOutputAcqLive.m index a8fae92a..089e1710 100644 --- a/+hw/tlOutputAcqLive.m +++ b/+hw/tlOutputAcqLive.m @@ -10,7 +10,7 @@ daqDeviceID daqChannelID daqVendor = 'ni' - initialDelay = 0 + initialDelay = 0 % sec, time to wait before starting end methods @@ -21,31 +21,35 @@ end function init(obj, ~) + % called when timeline is initialized (see hw.Timeline/init) if obj.enable fprintf(1, 'initializing %s\n', obj.toStr); obj.session = daq.createSession(obj.daqVendor); obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); - outputSingleScan(obj.session, false); + outputSingleScan(obj.session, false); % start in the off/false state end end function start(obj, ~) + % called when timeline is started (see hw.Timeline/start) if obj.enable if obj.verbose fprintf(1, 'start %s\n', obj.name); end - pause(obj.initialDelay); - outputSingleScan(obj.session, true); + pause(obj.initialDelay); % wait for some duration before starting + outputSingleScan(obj.session, true); % set digital output true: acquisition is "live" end end function process(~, ~, ~) + % called every time Timeline processes a chunk of data %fprintf(1, 'process acqLive\n'); % -- pass end function stop(obj,~) + % called when timeline is stopped (see hw.Timeline/stop) if obj.enable if obj.verbose fprintf(1, 'stop %s\n', obj.name); diff --git a/+hw/tlOutputChrono.m b/+hw/tlOutputChrono.m index e98d74a0..f0c9f230 100644 --- a/+hw/tlOutputChrono.m +++ b/+hw/tlOutputChrono.m @@ -1,6 +1,8 @@ classdef tlOutputChrono < hw.tlOutput %hw.tlOutputChrono Timeline uses this to monitor that - % acquisition is proceeding normally during a recording. + % acquisition is proceeding normally during a recording and to update + % the synchronization between the system time and the timeline time (to + % prevent drift between daq and computer clock). % See also hw.tlOutput and hw.Timeline % % Part of Rigbox @@ -21,6 +23,7 @@ end function init(obj, timeline) + % called when timeline is initialized (see hw.Timeline/init) if obj.enable fprintf(1, 'initializing %s\n', obj.toStr); obj.session = daq.createSession(obj.daqVendor); @@ -37,22 +40,24 @@ function init(obj, timeline) assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... 'The clocking pulse test could not be read back'); - timeline.CurrSysTimeTimelineOffset = GetSecs; + timeline.CurrSysTimeTimelineOffset = GetSecs; % to initialize this, will be a bit off but fixed after the first pulse end end - function start(obj, timeline) + function start(obj, timeline) + % called when timeline is started (see hw.Timeline/start) if obj.enable if obj.verbose fprintf(1, 'start %s\n', obj.name); end t = GetSecs; % system time before output outputSingleScan(obj.session, false) % this will be the clocking pulse detected the first time process is called - timeline.LastClockSentSysTime = (t + GetSecs)/2; + timeline.LastClockSentSysTime = (t + GetSecs)/2; end end function process(obj, timeline, event) + % called every time Timeline processes a chunk of data if obj.enable && timeline.IsRunning && ~isempty(obj.session) if obj.verbose fprintf(1, 'process %s\n', obj.name); @@ -100,6 +105,7 @@ function process(obj, timeline, event) end function stop(obj,~) + % called when timeline is stopped (see hw.Timeline/stop) if obj.enable if obj.verbose fprintf(1, 'stop %s\n', obj.name); diff --git a/+hw/tlOutputClock.m b/+hw/tlOutputClock.m index f5e206fb..6c26685b 100644 --- a/+hw/tlOutputClock.m +++ b/+hw/tlOutputClock.m @@ -10,9 +10,9 @@ daqDeviceID daqChannelID daqVendor = 'ni' - initialDelay = 0 - frequency = 60; - dutyCycle = 0.2; + initialDelay = 0 % delay from session start to clock output + frequency = 60; % Hz, of the clocking pulse + dutyCycle = 0.2; % proportion of each cycle that the pulse is "true" end properties (Transient) @@ -27,6 +27,7 @@ end function init(obj, ~) + % called when timeline is initialized (see hw.Timeline/init) if obj.enable fprintf(1, 'initializing %s\n', obj.toStr); @@ -41,6 +42,7 @@ function init(obj, ~) end function start(obj, ~) + % called when timeline is started (see hw.Timeline/start) if obj.enable if obj.verbose fprintf(1, 'start %s\n', obj.name); @@ -50,11 +52,13 @@ function start(obj, ~) end function process(~, ~, ~) + % called every time Timeline processes a chunk of data %fprintf(1, 'process Clock\n'); % -- pass end function stop(obj,~) + % called when timeline is stopped (see hw.Timeline/stop) if obj.enable if obj.verbose fprintf(1, 'stop %s\n', obj.name); diff --git a/+hw/tlOutputStartStopSync.m b/+hw/tlOutputStartStopSync.m index 15b975ff..cd47c20a 100644 --- a/+hw/tlOutputStartStopSync.m +++ b/+hw/tlOutputStartStopSync.m @@ -10,8 +10,8 @@ daqDeviceID daqChannelID daqVendor = 'ni' - initialDelay = 0 - pulseDuration = 0.2; + initialDelay = 0 % sec, time between start of acquisition and onset of this pulse + pulseDuration = 0.2; % sec, time that the pulse is on at beginning and end end methods @@ -22,6 +22,7 @@ end function init(obj, ~) + % called when timeline is initialized (see hw.Timeline/init) if obj.enable fprintf(1, 'initializing %s\n', obj.toStr); obj.session = daq.createSession(obj.daqVendor); @@ -35,6 +36,7 @@ function init(obj, ~) end function start(obj, ~) + % called when timeline is started (see hw.Timeline/start) if obj.enable if obj.verbose fprintf(1, 'start %s\n', obj.name); @@ -47,11 +49,13 @@ function start(obj, ~) end function process(~, ~, ~) + % called every time Timeline processes a chunk of data %fprintf(1, 'process StartStopSync\n'); % -- pass end function stop(obj,~) + % called when timeline is stopped (see hw.Timeline/stop) if obj.enable if obj.verbose fprintf(1, 'stop %s\n', obj.name); From ee0b8b23263d6e9e844a269d1efa0bc9da5945a7 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 29 Jan 2018 16:05:02 +0000 Subject: [PATCH 047/515] add saving of metadata for Output channels in Timeline into json --- +hw/Timeline.m | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index d259c25c..1ec8a36d 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -426,9 +426,13 @@ function stop(obj) obj.Data.currSysTimeTimelineOffset = obj.CurrSysTimeTimelineOffset; % saving hardware metadata for each output -% for outIdx = 1:numel(obj.Outputs) -% obj.Data.hw.Outputs{outIdx} = struct(obj.Outputs(outIdx)); -% end + warning('off', 'MATLAB:structOnObject'); % sorry, don't care + for outIdx = 1:numel(obj.Outputs) + s = struct(obj.Outputs(outIdx)); + s.class = class(obj.Outputs(outIdx)); + obj.Data.hw.Outputs{outIdx} = s; + end + warning('on', 'MATLAB:structOnObject'); % save tl to all paths superSave(obj.Data.savePaths, struct('Timeline', obj.Data)); @@ -438,7 +442,7 @@ function stop(obj) % save local copy savejson('hw', obj.Data.hw, fullfile(fileparts(obj.Data.savePaths{1}), 'TimelineHW.json')); % save server copy - savejson('hw', obj.Data.hw, fullfile(fileparts(obj.Data.savePaths{1}), 'TimelineHW.json')); + savejson('hw', obj.Data.hw, fullfile(fileparts(obj.Data.savePaths{2}), 'TimelineHW.json')); else warning('JSONlab not found - hardware information not saved to ALF') end From 7d074d531a366868d560f42d26a7540d04ef546c Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 29 Jan 2018 16:16:27 +0000 Subject: [PATCH 048/515] update TODO re: timeline alyx --- +hw/Timeline.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 1ec8a36d..a836df0c 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -465,8 +465,7 @@ function stop(obj) warning('couldnt register files to alyx'); end end - %TODO: Register ALF components to alyx, instead of the main - %Timeline.mat file + %TODO: Register ALF components to alyx, incl TimelineHW.json % delete data from memory, tl is now officially no longer running obj.Data = []; From 783247ca56ce44abe44cafcebf57cc3a4729a9be Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 29 Jan 2018 16:27:52 +0000 Subject: [PATCH 049/515] update file format when registering timeline file to alyx --- +hw/Timeline.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 1ec8a36d..a2414421 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -453,16 +453,18 @@ function stop(obj) if ~isempty(which('alf.timelineToALF'))&&~isempty(which('writeNPY')) alf.timelineToALF(obj.Data, [],... fileparts(dat.expFilePath(obj.Data.expRef, 'timeline', 'master'))) + else + warning('did not write files into alf format. Check that alyx-matlab and npy-matlab repositories are in path'); end % register Timeline.mat file to Alyx database [subject,~,~] = dat.parseExpRef(obj.Data.expRef); if ~isempty(obj.AlyxInstance) && ~strcmp(subject,'default') try - alyx.registerFile(obj.Data.savePaths{end}, 'alf',... + alyx.registerFile(obj.Data.savePaths{end}, 'mat',... obj.AlyxInstance.subsessionURL, 'Timeline', [], obj.AlyxInstance); catch - warning('couldnt register files to alyx'); + warning('couldn''t register files to alyx'); end end %TODO: Register ALF components to alyx, instead of the main From dad17bffb0d15553aa1fbf4b674bed0a107b2ac7 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 29 Jan 2018 17:23:43 +0000 Subject: [PATCH 050/515] Fix for water calibrations reverted change Nick had previously made in hw.PulseSwitcher where only the first index of input array was used. --- +hw/+ptb/Window.m | 7 ++-- +hw/PulseSwitcher.m | 2 +- cortexlab/+tl/bindMpepServer.m | 60 +++++++++++++++++++++++++++++----- 3 files changed, 56 insertions(+), 13 deletions(-) diff --git a/+hw/+ptb/Window.m b/+hw/+ptb/Window.m index 294d2628..8cab6568 100644 --- a/+hw/+ptb/Window.m +++ b/+hw/+ptb/Window.m @@ -571,8 +571,7 @@ function applyCalibration(obj, cal) list = find(diff(thisTable) <= 0, 1); if ~isempty(list) - announce = sprintf('Gamma table %d NOT MONOTONIC. We are adjusting.',igun); - disp(announce) + fprintf('Gamma table %d NOT MONOTONIC. We are adjusting.',igun); % We assume that the non-monotonic points only differ due to noise % and so we can resort them without any consequences @@ -606,12 +605,12 @@ function applyCalibration(obj, cal) interp1(monTable,posLocs-1,(0:(numEntries-1))/(numEntries-1))'; end - if any(isnan(c.monitorGamInv)), + if any(isnan(c.monitorGamInv)) msgbox('Warning: NaNs in inverse gamma table -- may need to recalibrate.'); end end - function storeDaqData(obj, src, event) + function storeDaqData(obj, ~, event) n = length(event.TimeStamps); ii = obj.DaqData.nSamples+(1:n); obj.DaqData.timeStamps(ii) = event.TimeStamps; diff --git a/+hw/PulseSwitcher.m b/+hw/PulseSwitcher.m index 4321bf60..e5b0e5f3 100644 --- a/+hw/PulseSwitcher.m +++ b/+hw/PulseSwitcher.m @@ -21,7 +21,7 @@ end function samples = waveform(obj, sampleRate, command) - [dt, npulses, f] = obj.ParamsFun(command(1)); + [dt, npulses, f] = obj.ParamsFun(command); wavelength = 1/f; duty = dt/wavelength; assert(duty <= (1 + 1e-3), 'Pulse width larger than wavelength (duty=%.2f)', duty); diff --git a/cortexlab/+tl/bindMpepServer.m b/cortexlab/+tl/bindMpepServer.m index 3ddd033e..37e67188 100644 --- a/cortexlab/+tl/bindMpepServer.m +++ b/cortexlab/+tl/bindMpepServer.m @@ -19,8 +19,8 @@ end mpepSendPort = 1103; % send responses back to this remote port - quitKey = KbName('esc'); +manualStartKey = KbName('m'); %% Start UDP communication listeners = struct(... @@ -36,6 +36,13 @@ tls.close = @closeConns; tls.process = @process; tls.listen = @listen; +tls.AlyxInstance = []; + + +%% Initialize timeline +rig = hw.devices([], false); +tlObj = rig.timeline; +tls.tlObj = tlObj; %% Helper functions @@ -52,10 +59,10 @@ function process() function processListener(listener) sz = pnet(listener.socket, 'readpacket', 1000, 'noblock'); if sz > 0 - t = tl.time(false); % save the time we got the UDP packet + t = tlObj.time(false); % save the time we got the UDP packet msg = pnet(listener.socket, 'read'); - if tl.running - tl.record([listener.name 'UDP'], msg, t); % record the UDP event in Timeline + if tlObj.IsRunning + tlObj.record([listener.name 'UDP'], msg, t); % record the UDP event in Timeline end listener.callback(listener, msg); % call special handling function end @@ -71,23 +78,28 @@ function processMpep(listener, msg) failed = false; % flag for preventing UDP echo %% Experiment-level events start/stop timeline switch lower(info.instruction) + case 'alyx' + fprintf(1, 'received alyx token message\n'); + idx = find(msg==' ', 1, 'last'); + [~, ai] = dat.parseAlyxInstance(msg(idx+1:end)); + tls.AlyxInstance = ai; case 'expstart' % create a file path & experiment ref based on experiment info try % start Timeline - tl.start(info.expRef); + tlObj.start(info.expRef, tls.AlyxInstance); % re-record the UDP event in Timeline since it wasn't started % when we tried earlier. Treat it as having arrived at time zero. - tl.record('mpepUDP', msg, 0); + tlObj.record('mpepUDP', msg, 0); catch ex % flag up failure so we do not echo the UDP message back below failed = true; disp(getReport(ex)); end case 'expend' - tl.stop(); % stop Timeline + tlObj.stop(); % stop Timeline case 'expinterrupt' - tl.stop(); % stop Timeline + tlObj.stop(); % stop Timeline end if ~failed %% echo the UDP message back to the sender @@ -106,6 +118,7 @@ function listen() % listen to keyboard events KbQueueCreate(); KbQueueStart(); + newExpRef = []; cleanup1 = onCleanup(@KbQueueRelease); log('Polling for UDP messages. PRESS <%s> TO QUIT', KbName(quitKey)); running = true; @@ -116,6 +129,37 @@ function listen() if firstPress(quitKey) running = false; end + if firstPress(manualStartKey) && ~tlObj.IsRunning + + if isempty(tls.AlyxInstance) + % first get an alyx instance + ai = alyx.loginWindow(); + else + ai = tls.AlyxInstance; + end + + [mouseName, ~] = dat.subjectSelector([],ai); + + if ~isempty(mouseName) + clear expParams; + expParams.experimentType = 'timelineManualStart'; + [newExpRef, ~, subsessionURL] = dat.newExp(mouseName, now, expParams, ai); + ai.subsessionURL = subsessionURL; + tls.AlyxInstance = ai; + + %[subjectRef, expDate, expSequence] = dat.parseExpRef(newExpRef); + %newExpRef = dat.constructExpRef(mouseName, now, expNum); + communicator.send('AlyxSend', {tls.AlyxInstance}); + communicator.send('status', { 'starting', newExpRef}); + tlObj.start(newExpRef, ai); + end + KbQueueFlush; + elseif firstPress(manualStartKey) && tlObj.IsRunning && ~isempty(newExpRef) + fprintf(1, 'stopping timeline\n'); + tlObj.stop(); + communicator.send('status', { 'completed', newExpRef}); + newExpRef = []; + end if toc(tid) > 0.2 pause(1e-3); % allow timeline aquisition every so often tid = tic; From b63ec9fa6bb3ca22dad8c636a779a85672d5ae38 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 30 Jan 2018 18:48:32 +0000 Subject: [PATCH 051/515] bindMpepServer echo port bindMpepServer now echos messages to port of origin --- cortexlab/+tl/bindMpepServer.m | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cortexlab/+tl/bindMpepServer.m b/cortexlab/+tl/bindMpepServer.m index 37e67188..ccbc953f 100644 --- a/cortexlab/+tl/bindMpepServer.m +++ b/cortexlab/+tl/bindMpepServer.m @@ -18,9 +18,9 @@ mpepListenPort = 1001; % listen for commands on this port end -mpepSendPort = 1103; % send responses back to this remote port +% mpepSendPort = 1103; % send responses back to this remote port quitKey = KbName('esc'); -manualStartKey = KbName('m'); +manualStartKey = KbName('t'); %% Start UDP communication listeners = struct(... @@ -109,7 +109,7 @@ function processMpep(listener, msg) % connected = true; % end pnet(listener.socket, 'write', msg); - pnet(listener.socket, 'writepacket', ipstr, mpepSendPort); + pnet(listener.socket, 'writepacket', ipstr, port); end end @@ -118,7 +118,6 @@ function listen() % listen to keyboard events KbQueueCreate(); KbQueueStart(); - newExpRef = []; cleanup1 = onCleanup(@KbQueueRelease); log('Polling for UDP messages. PRESS <%s> TO QUIT', KbName(quitKey)); running = true; @@ -154,11 +153,10 @@ function listen() tlObj.start(newExpRef, ai); end KbQueueFlush; - elseif firstPress(manualStartKey) && tlObj.IsRunning && ~isempty(newExpRef) + elseif firstPress(manualStartKey) && tlObj.IsRunning fprintf(1, 'stopping timeline\n'); tlObj.stop(); communicator.send('status', { 'completed', newExpRef}); - newExpRef = []; end if toc(tid) > 0.2 pause(1e-3); % allow timeline aquisition every so often From 6317ccbeed0276edef749b8d6f3f9180c2922cc0 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 31 Jan 2018 10:22:24 +0000 Subject: [PATCH 052/515] Removed irrelevent code Code was copied from bindMpepServerWithWS and isn't relevent here --- cortexlab/+tl/bindMpepServer.m | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cortexlab/+tl/bindMpepServer.m b/cortexlab/+tl/bindMpepServer.m index ccbc953f..533e375b 100644 --- a/cortexlab/+tl/bindMpepServer.m +++ b/cortexlab/+tl/bindMpepServer.m @@ -145,18 +145,12 @@ function listen() [newExpRef, ~, subsessionURL] = dat.newExp(mouseName, now, expParams, ai); ai.subsessionURL = subsessionURL; tls.AlyxInstance = ai; - - %[subjectRef, expDate, expSequence] = dat.parseExpRef(newExpRef); - %newExpRef = dat.constructExpRef(mouseName, now, expNum); - communicator.send('AlyxSend', {tls.AlyxInstance}); - communicator.send('status', { 'starting', newExpRef}); tlObj.start(newExpRef, ai); end KbQueueFlush; elseif firstPress(manualStartKey) && tlObj.IsRunning fprintf(1, 'stopping timeline\n'); tlObj.stop(); - communicator.send('status', { 'completed', newExpRef}); end if toc(tid) > 0.2 pause(1e-3); % allow timeline aquisition every so often From 64dad61724319ae06fbed35e0920e2641a028894 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 31 Jan 2018 18:02:26 +0000 Subject: [PATCH 053/515] TL classes now have the correct case Also More documentation and TLOutputAcqLive merged with StartStopSync --- +hw/Timeline.m | 42 +++++-------- +hw/tlOutput.m | 35 ++++++----- +hw/tlOutputAcqLive.m | 97 ++++++++++++++++++------------ +hw/tlOutputChrono.m | 137 +++++++++++++++++++++++------------------- +hw/tlOutputClock.m | 84 ++++++++++++++------------ 5 files changed, 214 insertions(+), 181 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 2168306e..e465c212 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -69,18 +69,13 @@ DaqIds = 'Dev1' % Device ID can be found with daq.getDevices() DaqSampleRate = 1000 % rate at which daq aquires data in Hz, see Rate DaqSamplesPerNotify % determines the number of data samples to be processed each time, see Timeline.process(), constructor and NotifyWhenDataAvailableExceeds - - Outputs = hw.tlOutputChrono('chrono', 'Dev1', 'port0/line1') - % array of output classes, defining any signals you desire to be sent from the daq. - % see hw.tlOutput, and, e.g. hw.tlOutputClock. - + Outputs = hw.tlOutputChrono('chrono', 'Dev1', 'port1/line0') % array of output classes, defining any signals you desire to be sent from the daq. See Also HW.TLOUTPUT, HW.TLOUTPUTCLOCK Inputs = struct('name', 'chrono',... 'arrayColumn', -1,... % -1 is default indicating unused, this is update when the channels are added during tl.start() 'daqChannelID', 'ai0',... 'measurement', 'Voltage',... 'terminalConfig', 'SingleEnded') UseInputs = {'chrono'} % array of inputs to record while tl is running - StopDelay = 2 % currently pauses for at least 2 secs as 'hack' before stopping main DAQ session MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) AquiredDataType = 'double' % default data type for the acquired data array (i.e. Data.rawDAQData) @@ -88,7 +83,6 @@ LivePlot = false % if true the data are plotted as the data are aquired LivePlotParams = []; WriteBufferToDisk = false % if true the data buffer is written to disk as they're aquired NB: in the future this will happen by default - end properties (Transient) @@ -115,9 +109,12 @@ methods function obj = Timeline(hw) - % Constructor method + % TIMELINE Constructor method + % HW.TIMELINE(hw) constructor can take a timeline hardware + % structure as an input, replicating a previous instance. % Adds chrono, aquireLive and clock to the outputs list, % along with default ports and delays + obj.DaqSamplesPerNotify = 1/obj.SamplingInterval; % calculate DaqSamplesPerNotify if nargin % if old tl hardware struct provided, use these to populate properties obj.Inputs = hw.inputs; @@ -126,12 +123,11 @@ obj.DaqSampleRate = hw.daqSampleRate; obj.DaqSamplesPerNotify = hw.daqSamplesPerNotify; end - end function start(obj, expRef, Alyx) - % Starts tl data acquisition - % TL.START(obj, ref, Alyx) starts all DAQ sessions and adds + % START Starts timeline data acquisition + % START(obj, ref, Alyx) starts all DAQ sessions and adds % the relevent output and input channels. if obj.IsRunning % check if it's already running, and if so, stop it @@ -178,14 +174,10 @@ function start(obj, expRef, Alyx) startBackground(obj.Sessions('main')); % start aquisition % wait for first acquisition processing to begin - while ~obj.IsRunning - pause(5e-3); - end + while ~obj.IsRunning; pause(5e-3); end % Start each output - for outidx = 1:numel(obj.Outputs) - obj.Outputs(outidx).start(obj); - end + arrayfun(@start, obj.Outputs) % Report success fprintf('Timeline started successfully for ''%s''.\n', expRef); @@ -233,7 +225,7 @@ function record(obj, name, event, t) end function secs = time(obj, strict) - % Time relative to Timeline acquisition + % TIME Time relative to Timeline acquisition % secs = TL.TIME([strict]) Returns the time in seconds relative to % Timeline data acquistion. 'strict' is optional (defaults to true), and % if true, this function will fail if Timeline is not running. If false, @@ -252,7 +244,7 @@ function record(obj, name, event, t) end function secs = ptbSecsToTimeline(obj, secs) - % Convert from Pyschtoolbox to Timeline time + % PTBSECSTOTIMELINE Convert from Pyschtoolbox to Timeline time % secs = TL.PTBSECSTOTIMELINE(secs) takes a timestamp 'secs' obtained % from Pyschtoolbox's functions and converts to Timeline-relative time. % See also TL.TIME(). @@ -262,7 +254,7 @@ function record(obj, name, event, t) function addInput(obj, name, channelID, measurement, terminalConfig, use) % Add a new input to the object's Input property - % TL.ADDINPUT(name, channelID, measurement, terminalConfig, use) + % ADDINPUT(name, channelID, measurement, terminalConfig, use) % adds a new input 'name' to the Inputs list. If use is % true, the input is also added to the UseInputs array. @@ -307,7 +299,7 @@ function addInput(obj, name, channelID, measurement, terminalConfig, use) end function wiringInfo(obj, name) - % TL.WIRINGINFO Return information about how the input/output + % WIRINGINFO Return information about how the input/output % 'name' is wired. If no name is provided, the different port % naming conventions of the NI DAQ are returned. if nargin < 2 @@ -364,9 +356,7 @@ function stop(obj) end % kill acquisition output signals - for outidx = 1:numel(obj.Outputs) - obj.Outputs(outidx).stop(obj); - end + arrayfun(@stop, obj.Outputs) pause(obj.StopDelay) % stop actual DAQ aquisition @@ -530,9 +520,7 @@ function init(obj) end % Initialize outputs - for outidx = 1:numel(obj.Outputs) - obj.Outputs(outidx).init(obj); - end + arrayfun(@(o)o.init(obj), obj.Outputs) end function process(obj, ~, event) diff --git a/+hw/tlOutput.m b/+hw/tlOutput.m index 697b2041..322a1e7f 100644 --- a/+hw/tlOutput.m +++ b/+hw/tlOutput.m @@ -1,14 +1,13 @@ -classdef tlOutput < matlab.mixin.Heterogeneous & handle - %hw.tlOutput Code to specify an output channel for timeline +classdef TLOutput < matlab.mixin.Heterogeneous & handle + % HW.TLOUTPUT Code to specify an output channel for timeline % This is an abstract class. % % Below is a list of some subclasses and their functions: - % hw.tlOutputClock - clocked output on a counter channel - % hw.tlOutputChrono - the default, flip/flop status check output - % hw.tlOutputAcqLive - a digital channel that is on for the duration - % of the recording - % hw.tlOutputStartStopSync - a digital channel that turns on only at - % the beginning and end of the recording + % hw.TLOutputClock - clocked output on a counter channel + % hw.TLOutputChrono - the default, flip/flop status check output + % hw.TLOutputAcqLive - a digital channel that signals that + % aquisition has begun or ended with either a constant on signal or a + % brief pulse. % % The timeline object will call the init, start, process, and stop % methods. @@ -18,21 +17,21 @@ % 2018-01 NS created properties - name % user choice, text - enable = true % will not do anything with it unless this is true - verbose = false % output status updates. Initialization message outputs regardless of verbose. + Name % The name of the timeline output, for easy identification + Enable = true % Will not do anything with it unless this is true + Verbose = false % Flag to output status updates. Initialization message outputs regardless of verbose. end - properties (Transient) - session + properties (Transient, Hidden) + Session % Holds an NI DAQ session object end methods (Abstract) - init(obj, timeline) % called when timeline is initialized (see hw.Timeline/init), e.g. to open daq session and set parameters - start(obj, timeline) % called when timeline is started (see hw.Timeline/start), e.g. to start outputs - process(obj, timeline, event) % called every time Timeline processes a chunk of data, in case output needs to react to it - stop(obj, timeline) % called when timeline is stopped (see hw.Timeline/stop), to close and clean up - s = toStr(obj) % a string that describes the object succintly + init(obj, timeline) % Called when timeline is initialized (see HW.TIMELINE/INIT), e.g. to open daq session and set parameters + start(obj, timeline) % Called when timeline is started (see HW.TIMELINE/START), e.g. to start outputs + process(obj, timeline, event) % Called every time Timeline processes a chunk of data, in case output needs to react to it + stop(obj, timeline) % Called when timeline is stopped (see HW.TIMELINE/STOP), to close and clean up + s = toStr(obj) % A string that describes the object succintly end end diff --git a/+hw/tlOutputAcqLive.m b/+hw/tlOutputAcqLive.m index 089e1710..a7610a3e 100644 --- a/+hw/tlOutputAcqLive.m +++ b/+hw/tlOutputAcqLive.m @@ -1,45 +1,59 @@ -classdef tlOutputAcqLive < hw.tlOutput - %hw.tlOutputAcqLive A digital signal that goes up when the recording starts, - % down when it ends. - % See also hw.tlOutput and hw.Timeline +classdef TLOutputAcqLive < hw.TlOutput + % HW.TLOUTPUTACQLIVE A digital signal that goes up when the recording starts, + % down when it ends. + % Used for triggaring external instruments during data aquisition. + % + % See also HW.TLOUTPUT and HW.TIMELINE % % Part of Rigbox % 2018-01 NS properties - daqDeviceID - daqChannelID - daqVendor = 'ni' - initialDelay = 0 % sec, time to wait before starting + DaqDeviceID + DaqChannelID + DaqVendor = 'ni' + InitialDelay = 0 % sec, time to wait before starting + PulseDuration = Inf; % sec, time that the pulse is on at beginning and end end methods - function obj = tlOutputAcqLive(name, daqDeviceID, daqChannelID) - obj.name = name; - obj.daqDeviceID = daqDeviceID; - obj.daqChannelID = daqChannelID; + function obj = TLOutputAcqLive(name, daqDeviceID, daqChannelID) + % TLOUTPUTCHRONO Constructor method + obj.Name = name; + obj.DaqDeviceID = daqDeviceID; + obj.DaqChannelID = daqChannelID; end function init(obj, ~) - % called when timeline is initialized (see hw.Timeline/init) - if obj.enable - fprintf(1, 'initializing %s\n', obj.toStr); - obj.session = daq.createSession(obj.daqVendor); - obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); - outputSingleScan(obj.session, false); % start in the off/false state - end + % INIT Initialize the output session + % INIT(obj, timeline) is called when timeline is initialized. + % Creates the DAQ session and ensures it is outputting a low + % (digital off) signal. + % + % See Also HW.TIMELINE/INIT + if obj.Enable + fprintf(1, 'initializing %s\n', obj.toStr); + obj.Session = daq.createSession(obj.DaqVendor); + obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); + outputSingleScan(obj.Session, false); % start in the off/false state + end end function start(obj, ~) - % called when timeline is started (see hw.Timeline/start) - if obj.enable - if obj.verbose - fprintf(1, 'start %s\n', obj.name); - end - - pause(obj.initialDelay); % wait for some duration before starting - outputSingleScan(obj.session, true); % set digital output true: acquisition is "live" + % START Output a high voltage signal + % Called when timeline is started, this outputs the first high + % voltage signal to triggar external instrument aquisition + % + % See Also HW.TIMELINE/START + if obj.Enable + if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end + pause(obj.InitialDelay); % wait for some duration before starting + outputSingleScan(obj.Session, true); % set digital output true: acquisition is "live" + if obj.PulseDuration ~= Inf + pause(obj.PulseDuration); + outputSingleScan(obj.Session, false); end + end end function process(~, ~, ~) @@ -49,20 +63,29 @@ function process(~, ~, ~) end function stop(obj,~) - % called when timeline is stopped (see hw.Timeline/stop) - if obj.enable - if obj.verbose - fprintf(1, 'stop %s\n', obj.name); - end - stop(obj.session); - release(obj.session); - obj.session = []; + % STOP Stops the DAQ session object. + % Called when timeline is stopped. Outputs a low voltage signal, + % the stops and releases the session object. + % + % See Also HW.TIMELINE/STOP + if obj.Enable + % set digital output false: acquisition is no longer "live" + if obj.PulseDuration ~= Inf + outputSingleScan(obj.Session, true); + pause(obj.PulseDuration); + end + outputSingleScan(obj.Session, false); + + if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end + stop(obj.Session); + release(obj.Session); + obj.Session = []; end end function s = toStr(obj) - s = sprintf('"%s" on %s/%s (acqLive, initial delay %.2f)', obj.name, ... - obj.daqDeviceID, obj.daqChannelID, obj.initialDelay); + s = sprintf('"%s" on %s/%s (acqLive, initial delay %.2f)', obj.Name, ... + obj.DaqDeviceID, obj.DaqChannelID, obj.InitialDelay); end end diff --git a/+hw/tlOutputChrono.m b/+hw/tlOutputChrono.m index f0c9f230..bad6aed1 100644 --- a/+hw/tlOutputChrono.m +++ b/+hw/tlOutputChrono.m @@ -1,89 +1,101 @@ -classdef tlOutputChrono < hw.tlOutput - %hw.tlOutputChrono Timeline uses this to monitor that - % acquisition is proceeding normally during a recording and to update - % the synchronization between the system time and the timeline time (to - % prevent drift between daq and computer clock). - % See also hw.tlOutput and hw.Timeline +classdef TLOutputChrono < hw.TlOutput + % HW.TLOUTPUTCHRONO Principle output channel class which sets timeline clock offset + % Timeline uses this to monitor that acquisition is proceeding normally + % during a recording and to update the synchronization between the + % system time and the timeline time (to prevent drift between daq and + % computer clock). + % + % See also HW.TLOUTPUT and HW.TIMELINE % % Part of Rigbox % 2018-01 NS properties - daqDeviceID - daqChannelID - daqVendor = 'ni' - NextChronoSign = 1 % the value to output on the chrono channel, the sign is changed each 'Process' event + DaqDeviceID + DaqChannelID + DaqVendor = 'ni' % Name of the DAQ vendor + NextChronoSign = 1 % The value to output on the chrono channel, the sign is changed each 'Process' event end methods - function obj = tlOutputChrono(name, daqDeviceID, daqChannelID) - obj.name = name; - obj.daqDeviceID = daqDeviceID; - obj.daqChannelID = daqChannelID; + function obj = TLOutputChrono(name, daqDeviceID, daqChannelID) + % TLOUTPUTCHRONO Constructor method + obj.Name = name; + obj.DaqDeviceID = daqDeviceID; + obj.DaqChannelID = daqChannelID; end function init(obj, timeline) - % called when timeline is initialized (see hw.Timeline/init) - if obj.enable + % INIT Initialize the output session + % INIT(obj, timeline) is called when timeline is initialized. + % Creates the DAQ session and ensures that the clocking pulse test + % can not be read back + % + % See Also HW.TIMELINE/INIT + if obj.Enable fprintf(1, 'initializing %s\n', obj.toStr); - obj.session = daq.createSession(obj.daqVendor); - obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); + obj.Session = daq.createSession(obj.DaqVendor); + obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); tls = timeline.getSessions('main'); %%Send a test pulse low, then high to clocking channel & check we read it back idx = cellfun(@(s2)strcmp('chrono',s2), {timeline.Inputs.name}); - outputSingleScan(obj.session, false) + outputSingleScan(obj.Session, false) x1 = tls.inputSingleScan; - outputSingleScan(obj.session, true) + outputSingleScan(obj.Session, true) x2 = tls.inputSingleScan; assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... 'The clocking pulse test could not be read back'); - timeline.CurrSysTimeTimelineOffset = GetSecs; % to initialize this, will be a bit off but fixed after the first pulse end end function start(obj, timeline) - % called when timeline is started (see hw.Timeline/start) - if obj.enable - if obj.verbose - fprintf(1, 'start %s\n', obj.name); - end - t = GetSecs; % system time before output - outputSingleScan(obj.session, false) % this will be the clocking pulse detected the first time process is called - timeline.LastClockSentSysTime = (t + GetSecs)/2; - end + % START Starts the first chrono flip + % Called when timeline is started, this outputs the first low + % voltage output on the chrono output channel + % + % See Also HW.TIMELINE/START + if obj.Enable % If the object is to be used + if obj.Verbose; fprintf(1, 'start %s\n', obj.name); end + t = GetSecs; % system time before output + outputSingleScan(obj.session, false) % this will be the clocking pulse detected the first time process is called + timeline.LastClockSentSysTime = (t + GetSecs)/2; + end end function process(obj, timeline, event) - % called every time Timeline processes a chunk of data - if obj.enable && timeline.IsRunning && ~isempty(obj.session) - if obj.verbose - fprintf(1, 'process %s\n', obj.name); + % PROCESS Record the timestamp of last chrono flip, and output again + % OBJ.PROCESS(TIMELINE, EVENT) is called every time Timeline + % processes a chunk of data. The sign of the chrono signal is + % flipped on each call (at LastClockSentSysTime), and the time of + % the previous flip is found in the data and its timestamp noted. + % This is used by TL.TIME() to convert between system time and + % acquisition time. + % + % LastTimestamp is the time of the last scan in the previous data + % chunk, and is used to ensure no data samples have been lost. + % + % See Also TL.TIME() + + if obj.Enable && timeline.IsRunning && ~isempty(obj.Session) + if obj.Verbose + fprintf(1, 'process %s\n', obj.Name); end - % sign of the chrono signal is - % flipped on each call (at LastClockSentSysTime), and the - % time of the previous flip is found in the data and its - % timestamp noted. This is used by tl.time() to convert - % between system time and acquisition time. - % - % LastTimestamp is the time of the last scan in the previous - % data chunk, and is used to ensure no data samples have been - % lost. - %%% The chrono "out" value is flipped at a recorded time, and - %%% the sample index that this flip is measured is noted - % First, find the index of the flip in the latest chunk of data + % The chrono "out" value is flipped at a recorded time, and the + % sample index that this flip is measured is noted First, find + % the index of the flip in the latest chunk of data idx = elementByName(timeline.Inputs, 'chrono'); clockChangeIdx = find(sign(event.Data(:,timeline.Inputs(idx).arrayColumn) - 2.5) == obj.NextChronoSign, 1); - if obj.verbose + if obj.Verbose fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); end - %Ensure the clocking pulse was detected + % Ensure the clocking pulse was detected if ~isempty(clockChangeIdx) clockChangeTimestamp = event.TimeStamps(clockChangeIdx); timeline.CurrSysTimeTimelineOffset = timeline.LastClockSentSysTime - clockChangeTimestamp; @@ -91,34 +103,35 @@ function process(obj, timeline, event) warning('Rigging:Timeline:timing', 'clocking pulse not detected - probably lagging more than one data chunk'); end - %Now send the next clock pulse + % Now send the next clock pulse obj.NextChronoSign = -obj.NextChronoSign; % flip next chrono t = GetSecs; % system time before output - outputSingleScan(obj.session, obj.NextChronoSign > 0); % send next chrono flip + outputSingleScan(obj.Session, obj.NextChronoSign > 0); % send next chrono flip timeline.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time - if obj.verbose + if obj.Verbose fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); end - end end function stop(obj,~) - % called when timeline is stopped (see hw.Timeline/stop) - if obj.enable - if obj.verbose - fprintf(1, 'stop %s\n', obj.name); - end - stop(obj.session); - release(obj.session); - obj.session = []; + % STOP Stops the DAQ session object. + % Called when timeline is stopped. Stops and releases the + % session object. + % + % See Also HW.TIMELINE/STOP + if obj.Enable + if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end + stop(obj.Session); + release(obj.Session); + obj.Session = []; end end function s = toStr(obj) - s = sprintf('"%s" on %s/%s (chrono)', obj.name, ... - obj.daqDeviceID, obj.daqChannelID); + s = sprintf('"%s" on %s/%s (chrono)', obj.Name, ... + obj.DaqDeviceID, obj.DaqChannelID); end end diff --git a/+hw/tlOutputClock.m b/+hw/tlOutputClock.m index 6c26685b..f7a3bfaa 100644 --- a/+hw/tlOutputClock.m +++ b/+hw/tlOutputClock.m @@ -1,52 +1,61 @@ -classdef tlOutputClock < hw.tlOutput - %hw.tlOutputClock A a regular pulse at a specified frequency and duty - % cycle. Can be used to trigger camera frames, e.g. - % See also hw.tlOutput and hw.Timeline +classdef TLOutputClock < hw.TlOutput + % HW.TLOUTPUTCLOCK A regular pulse at a specified frequency and duty + % cycle. Can be used to trigger camera frames. + % + % See also HW.TLOUTPUT and HW.TIMELINE % % Part of Rigbox % 2018-01 NS properties - daqDeviceID - daqChannelID - daqVendor = 'ni' - initialDelay = 0 % delay from session start to clock output - frequency = 60; % Hz, of the clocking pulse - dutyCycle = 0.2; % proportion of each cycle that the pulse is "true" + DaqDeviceID + DaqChannelID + DaqVendor = 'ni' + InitialDelay = 0 % delay from session start to clock output + Frequency = 60; % Hz, of the clocking pulse + DutyCycle = 0.2; % proportion of each cycle that the pulse is "true" end - properties (Transient) - clockChan + properties (Transient, Hidden) + ClockChan % Holds an instance of the PulseGeneration channel end methods - function obj = tlOutputClock(name, daqDeviceID, daqChannelID) - obj.name = name; - obj.daqDeviceID = daqDeviceID; - obj.daqChannelID = daqChannelID; + function obj = TLOutputClock(name, daqDeviceID, daqChannelID) + % TLOUTPUTCHRONO Constructor method + obj.Name = name; + obj.DaqDeviceID = daqDeviceID; + obj.DaqChannelID = daqChannelID; end function init(obj, ~) - % called when timeline is initialized (see hw.Timeline/init) - if obj.enable + % INIT Initialize the output session + % INIT(obj, timeline) is called when timeline is initialized. + % Creates the DAQ session and adds a PulseGeneration channel with + % the specified frequency, duty cycle and delay. + % + % See Also HW.TIMELINE/INIT + if obj.Enable fprintf(1, 'initializing %s\n', obj.toStr); - obj.session = daq.createSession(obj.daqVendor); + obj.session = daq.createSession(obj.DaqVendor); obj.session.IsContinuous = true; - clocked = obj.session.addCounterOutputChannel(obj.daqDeviceID, obj.daqChannelID, 'PulseGeneration'); - clocked.Frequency = obj.frequency; - clocked.DutyCycle = obj.dutyCycle; - clocked.InitialDelay = obj.initialDelay; - obj.clockChan = clocked; + clocked = obj.Session.addCounterOutputChannel(obj.DaqDeviceID, obj.DaqChannelID, 'PulseGeneration'); + clocked.Frequency = obj.Frequency; + clocked.DutyCycle = obj.DutyCycle; + clocked.InitialDelay = obj.InitialDelay; + obj.ClockChan = clocked; end end function start(obj, ~) - % called when timeline is started (see hw.Timeline/start) - if obj.enable - if obj.verbose - fprintf(1, 'start %s\n', obj.name); - end + % START Starts the clocking pulse + % Called when timeline is started, this uses STARTBACKGROUND to + % start the clocking pulse + % + % See Also HW.TIMELINE/START + if obj.Enable + if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end startBackground(obj.session); end end @@ -58,12 +67,13 @@ function process(~, ~, ~) end function stop(obj,~) - % called when timeline is stopped (see hw.Timeline/stop) - if obj.enable - if obj.verbose - fprintf(1, 'stop %s\n', obj.name); - end - + % STOP Stops the DAQ session object. + % Called when timeline is stopped. Stops and releases the + % session object. + % + % See Also HW.TIMELINE/STOP + if obj.Enable + if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end stop(obj.session); release(obj.session); obj.session = []; @@ -71,8 +81,8 @@ function stop(obj,~) end function s = toStr(obj) - s = sprintf('"%s" on %s/%s (clock, %dHz, %.2f duty cycle)', obj.name, ... - obj.daqDeviceID, obj.daqChannelID, obj.frequency, obj.dutyCycle); + s = sprintf('"%s" on %s/%s (clock, %dHz, %.2f duty cycle)', obj.Name, ... + obj.DaqDeviceID, obj.DaqChannelID, obj.Frequency, obj.DutyCycle); end end From 17c2570b394155baa4d1946a9ed191ef245006aa Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 31 Jan 2018 18:02:58 +0000 Subject: [PATCH 054/515] Removed classes --- +hw/tlOutput.m | 38 ---------- +hw/tlOutputAcqLive.m | 94 ------------------------ +hw/tlOutputChrono.m | 140 ------------------------------------ +hw/tlOutputClock.m | 90 ----------------------- +hw/tlOutputStartStopSync.m | 82 --------------------- 5 files changed, 444 deletions(-) delete mode 100644 +hw/tlOutput.m delete mode 100644 +hw/tlOutputAcqLive.m delete mode 100644 +hw/tlOutputChrono.m delete mode 100644 +hw/tlOutputClock.m delete mode 100644 +hw/tlOutputStartStopSync.m diff --git a/+hw/tlOutput.m b/+hw/tlOutput.m deleted file mode 100644 index 322a1e7f..00000000 --- a/+hw/tlOutput.m +++ /dev/null @@ -1,38 +0,0 @@ -classdef TLOutput < matlab.mixin.Heterogeneous & handle - % HW.TLOUTPUT Code to specify an output channel for timeline - % This is an abstract class. - % - % Below is a list of some subclasses and their functions: - % hw.TLOutputClock - clocked output on a counter channel - % hw.TLOutputChrono - the default, flip/flop status check output - % hw.TLOutputAcqLive - a digital channel that signals that - % aquisition has begun or ended with either a constant on signal or a - % brief pulse. - % - % The timeline object will call the init, start, process, and stop - % methods. - % - % Part of Rigbox - - % 2018-01 NS created - - properties - Name % The name of the timeline output, for easy identification - Enable = true % Will not do anything with it unless this is true - Verbose = false % Flag to output status updates. Initialization message outputs regardless of verbose. - end - - properties (Transient, Hidden) - Session % Holds an NI DAQ session object - end - - methods (Abstract) - init(obj, timeline) % Called when timeline is initialized (see HW.TIMELINE/INIT), e.g. to open daq session and set parameters - start(obj, timeline) % Called when timeline is started (see HW.TIMELINE/START), e.g. to start outputs - process(obj, timeline, event) % Called every time Timeline processes a chunk of data, in case output needs to react to it - stop(obj, timeline) % Called when timeline is stopped (see HW.TIMELINE/STOP), to close and clean up - s = toStr(obj) % A string that describes the object succintly - end - -end - diff --git a/+hw/tlOutputAcqLive.m b/+hw/tlOutputAcqLive.m deleted file mode 100644 index a7610a3e..00000000 --- a/+hw/tlOutputAcqLive.m +++ /dev/null @@ -1,94 +0,0 @@ -classdef TLOutputAcqLive < hw.TlOutput - % HW.TLOUTPUTACQLIVE A digital signal that goes up when the recording starts, - % down when it ends. - % Used for triggaring external instruments during data aquisition. - % - % See also HW.TLOUTPUT and HW.TIMELINE - % - % Part of Rigbox - % 2018-01 NS - - properties - DaqDeviceID - DaqChannelID - DaqVendor = 'ni' - InitialDelay = 0 % sec, time to wait before starting - PulseDuration = Inf; % sec, time that the pulse is on at beginning and end - end - - methods - function obj = TLOutputAcqLive(name, daqDeviceID, daqChannelID) - % TLOUTPUTCHRONO Constructor method - obj.Name = name; - obj.DaqDeviceID = daqDeviceID; - obj.DaqChannelID = daqChannelID; - end - - function init(obj, ~) - % INIT Initialize the output session - % INIT(obj, timeline) is called when timeline is initialized. - % Creates the DAQ session and ensures it is outputting a low - % (digital off) signal. - % - % See Also HW.TIMELINE/INIT - if obj.Enable - fprintf(1, 'initializing %s\n', obj.toStr); - obj.Session = daq.createSession(obj.DaqVendor); - obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); - outputSingleScan(obj.Session, false); % start in the off/false state - end - end - - function start(obj, ~) - % START Output a high voltage signal - % Called when timeline is started, this outputs the first high - % voltage signal to triggar external instrument aquisition - % - % See Also HW.TIMELINE/START - if obj.Enable - if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end - pause(obj.InitialDelay); % wait for some duration before starting - outputSingleScan(obj.Session, true); % set digital output true: acquisition is "live" - if obj.PulseDuration ~= Inf - pause(obj.PulseDuration); - outputSingleScan(obj.Session, false); - end - end - end - - function process(~, ~, ~) - % called every time Timeline processes a chunk of data - %fprintf(1, 'process acqLive\n'); - % -- pass - end - - function stop(obj,~) - % STOP Stops the DAQ session object. - % Called when timeline is stopped. Outputs a low voltage signal, - % the stops and releases the session object. - % - % See Also HW.TIMELINE/STOP - if obj.Enable - % set digital output false: acquisition is no longer "live" - if obj.PulseDuration ~= Inf - outputSingleScan(obj.Session, true); - pause(obj.PulseDuration); - end - outputSingleScan(obj.Session, false); - - if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end - stop(obj.Session); - release(obj.Session); - obj.Session = []; - end - end - - function s = toStr(obj) - s = sprintf('"%s" on %s/%s (acqLive, initial delay %.2f)', obj.Name, ... - obj.DaqDeviceID, obj.DaqChannelID, obj.InitialDelay); - end - - end - -end - diff --git a/+hw/tlOutputChrono.m b/+hw/tlOutputChrono.m deleted file mode 100644 index bad6aed1..00000000 --- a/+hw/tlOutputChrono.m +++ /dev/null @@ -1,140 +0,0 @@ -classdef TLOutputChrono < hw.TlOutput - % HW.TLOUTPUTCHRONO Principle output channel class which sets timeline clock offset - % Timeline uses this to monitor that acquisition is proceeding normally - % during a recording and to update the synchronization between the - % system time and the timeline time (to prevent drift between daq and - % computer clock). - % - % See also HW.TLOUTPUT and HW.TIMELINE - % - % Part of Rigbox - % 2018-01 NS - - properties - DaqDeviceID - DaqChannelID - DaqVendor = 'ni' % Name of the DAQ vendor - NextChronoSign = 1 % The value to output on the chrono channel, the sign is changed each 'Process' event - end - - methods - function obj = TLOutputChrono(name, daqDeviceID, daqChannelID) - % TLOUTPUTCHRONO Constructor method - obj.Name = name; - obj.DaqDeviceID = daqDeviceID; - obj.DaqChannelID = daqChannelID; - end - - function init(obj, timeline) - % INIT Initialize the output session - % INIT(obj, timeline) is called when timeline is initialized. - % Creates the DAQ session and ensures that the clocking pulse test - % can not be read back - % - % See Also HW.TIMELINE/INIT - if obj.Enable - fprintf(1, 'initializing %s\n', obj.toStr); - obj.Session = daq.createSession(obj.DaqVendor); - obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); - - tls = timeline.getSessions('main'); - - %%Send a test pulse low, then high to clocking channel & check we read it back - idx = cellfun(@(s2)strcmp('chrono',s2), {timeline.Inputs.name}); - outputSingleScan(obj.Session, false) - x1 = tls.inputSingleScan; - outputSingleScan(obj.Session, true) - x2 = tls.inputSingleScan; - assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... - 'The clocking pulse test could not be read back'); - timeline.CurrSysTimeTimelineOffset = GetSecs; % to initialize this, will be a bit off but fixed after the first pulse - end - end - - function start(obj, timeline) - % START Starts the first chrono flip - % Called when timeline is started, this outputs the first low - % voltage output on the chrono output channel - % - % See Also HW.TIMELINE/START - if obj.Enable % If the object is to be used - if obj.Verbose; fprintf(1, 'start %s\n', obj.name); end - t = GetSecs; % system time before output - outputSingleScan(obj.session, false) % this will be the clocking pulse detected the first time process is called - timeline.LastClockSentSysTime = (t + GetSecs)/2; - end - end - - function process(obj, timeline, event) - % PROCESS Record the timestamp of last chrono flip, and output again - % OBJ.PROCESS(TIMELINE, EVENT) is called every time Timeline - % processes a chunk of data. The sign of the chrono signal is - % flipped on each call (at LastClockSentSysTime), and the time of - % the previous flip is found in the data and its timestamp noted. - % This is used by TL.TIME() to convert between system time and - % acquisition time. - % - % LastTimestamp is the time of the last scan in the previous data - % chunk, and is used to ensure no data samples have been lost. - % - % See Also TL.TIME() - - if obj.Enable && timeline.IsRunning && ~isempty(obj.Session) - if obj.Verbose - fprintf(1, 'process %s\n', obj.Name); - end - - % The chrono "out" value is flipped at a recorded time, and the - % sample index that this flip is measured is noted First, find - % the index of the flip in the latest chunk of data - idx = elementByName(timeline.Inputs, 'chrono'); - clockChangeIdx = find(sign(event.Data(:,timeline.Inputs(idx).arrayColumn) - 2.5) == obj.NextChronoSign, 1); - - if obj.Verbose - fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... - timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); - end - - % Ensure the clocking pulse was detected - if ~isempty(clockChangeIdx) - clockChangeTimestamp = event.TimeStamps(clockChangeIdx); - timeline.CurrSysTimeTimelineOffset = timeline.LastClockSentSysTime - clockChangeTimestamp; - else - warning('Rigging:Timeline:timing', 'clocking pulse not detected - probably lagging more than one data chunk'); - end - - % Now send the next clock pulse - obj.NextChronoSign = -obj.NextChronoSign; % flip next chrono - t = GetSecs; % system time before output - outputSingleScan(obj.Session, obj.NextChronoSign > 0); % send next chrono flip - timeline.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time - if obj.Verbose - fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... - timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); - end - end - end - - function stop(obj,~) - % STOP Stops the DAQ session object. - % Called when timeline is stopped. Stops and releases the - % session object. - % - % See Also HW.TIMELINE/STOP - if obj.Enable - if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end - stop(obj.Session); - release(obj.Session); - obj.Session = []; - end - end - - function s = toStr(obj) - s = sprintf('"%s" on %s/%s (chrono)', obj.Name, ... - obj.DaqDeviceID, obj.DaqChannelID); - end - - end - -end - diff --git a/+hw/tlOutputClock.m b/+hw/tlOutputClock.m deleted file mode 100644 index f7a3bfaa..00000000 --- a/+hw/tlOutputClock.m +++ /dev/null @@ -1,90 +0,0 @@ -classdef TLOutputClock < hw.TlOutput - % HW.TLOUTPUTCLOCK A regular pulse at a specified frequency and duty - % cycle. Can be used to trigger camera frames. - % - % See also HW.TLOUTPUT and HW.TIMELINE - % - % Part of Rigbox - % 2018-01 NS - - properties - DaqDeviceID - DaqChannelID - DaqVendor = 'ni' - InitialDelay = 0 % delay from session start to clock output - Frequency = 60; % Hz, of the clocking pulse - DutyCycle = 0.2; % proportion of each cycle that the pulse is "true" - end - - properties (Transient, Hidden) - ClockChan % Holds an instance of the PulseGeneration channel - end - - methods - function obj = TLOutputClock(name, daqDeviceID, daqChannelID) - % TLOUTPUTCHRONO Constructor method - obj.Name = name; - obj.DaqDeviceID = daqDeviceID; - obj.DaqChannelID = daqChannelID; - end - - function init(obj, ~) - % INIT Initialize the output session - % INIT(obj, timeline) is called when timeline is initialized. - % Creates the DAQ session and adds a PulseGeneration channel with - % the specified frequency, duty cycle and delay. - % - % See Also HW.TIMELINE/INIT - if obj.Enable - fprintf(1, 'initializing %s\n', obj.toStr); - - obj.session = daq.createSession(obj.DaqVendor); - obj.session.IsContinuous = true; - clocked = obj.Session.addCounterOutputChannel(obj.DaqDeviceID, obj.DaqChannelID, 'PulseGeneration'); - clocked.Frequency = obj.Frequency; - clocked.DutyCycle = obj.DutyCycle; - clocked.InitialDelay = obj.InitialDelay; - obj.ClockChan = clocked; - end - end - - function start(obj, ~) - % START Starts the clocking pulse - % Called when timeline is started, this uses STARTBACKGROUND to - % start the clocking pulse - % - % See Also HW.TIMELINE/START - if obj.Enable - if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end - startBackground(obj.session); - end - end - - function process(~, ~, ~) - % called every time Timeline processes a chunk of data - %fprintf(1, 'process Clock\n'); - % -- pass - end - - function stop(obj,~) - % STOP Stops the DAQ session object. - % Called when timeline is stopped. Stops and releases the - % session object. - % - % See Also HW.TIMELINE/STOP - if obj.Enable - if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end - stop(obj.session); - release(obj.session); - obj.session = []; - end - end - - function s = toStr(obj) - s = sprintf('"%s" on %s/%s (clock, %dHz, %.2f duty cycle)', obj.Name, ... - obj.DaqDeviceID, obj.DaqChannelID, obj.Frequency, obj.DutyCycle); - end - end - -end - diff --git a/+hw/tlOutputStartStopSync.m b/+hw/tlOutputStartStopSync.m deleted file mode 100644 index cd47c20a..00000000 --- a/+hw/tlOutputStartStopSync.m +++ /dev/null @@ -1,82 +0,0 @@ -classdef tlOutputStartStopSync < hw.tlOutput - %hw.tlOutputStartStopSync A digital signal that goes up when the recording starts, - % but just briefly, then down again at the end. - % See also hw.tlOutput and hw.Timeline - % - % Part of Rigbox - % 2018-01 NS - - properties - daqDeviceID - daqChannelID - daqVendor = 'ni' - initialDelay = 0 % sec, time between start of acquisition and onset of this pulse - pulseDuration = 0.2; % sec, time that the pulse is on at beginning and end - end - - methods - function obj = tlOutputStartStopSync(name, daqDeviceID, daqChannelID) - obj.name = name; - obj.daqDeviceID = daqDeviceID; - obj.daqChannelID = daqChannelID; - end - - function init(obj, ~) - % called when timeline is initialized (see hw.Timeline/init) - if obj.enable - fprintf(1, 'initializing %s\n', obj.toStr); - obj.session = daq.createSession(obj.daqVendor); - obj.session.addDigitalChannel(obj.daqDeviceID, obj.daqChannelID, 'OutputOnly'); - outputSingleScan(obj.session, false); % ensure that it starts down - % by the way, if you use this to control a light for - % synchronization, note that you can configure in nidaqMX a - % "default" value for the channel, so for example it will stay - % "false" at all times even if the computer reboots. - end - end - - function start(obj, ~) - % called when timeline is started (see hw.Timeline/start) - if obj.enable - if obj.verbose - fprintf(1, 'start %s\n', obj.name); - end - pause(obj.initialDelay); - outputSingleScan(obj.session, true); - pause(obj.pulseDuration); - outputSingleScan(obj.session, false); - end - end - - function process(~, ~, ~) - % called every time Timeline processes a chunk of data - %fprintf(1, 'process StartStopSync\n'); - % -- pass - end - - function stop(obj,~) - % called when timeline is stopped (see hw.Timeline/stop) - if obj.enable - if obj.verbose - fprintf(1, 'stop %s\n', obj.name); - end - - outputSingleScan(obj.session, true); - pause(obj.pulseDuration); - outputSingleScan(obj.session, false); - - stop(obj.session); - release(obj.session); - obj.session = []; - end - end - - function s = toStr(obj) - s = sprintf('"%s" on %s/%s (StartStopSync, pulse duration %.2f)', obj.name, ... - obj.daqDeviceID, obj.daqChannelID, obj.pulseDuration); - end - - end - -end - From 5262d19425b5ce71a125346fdb0f171eb810dfda Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 31 Jan 2018 18:03:25 +0000 Subject: [PATCH 055/515] Re-added classes with correct case --- +hw/TLOutput.m | 38 ++++++++++++ +hw/TLOutputAcqLive.m | 94 ++++++++++++++++++++++++++++ +hw/TLOutputChrono.m | 140 ++++++++++++++++++++++++++++++++++++++++++ +hw/TLOutputClock.m | 90 +++++++++++++++++++++++++++ 4 files changed, 362 insertions(+) create mode 100644 +hw/TLOutput.m create mode 100644 +hw/TLOutputAcqLive.m create mode 100644 +hw/TLOutputChrono.m create mode 100644 +hw/TLOutputClock.m diff --git a/+hw/TLOutput.m b/+hw/TLOutput.m new file mode 100644 index 00000000..322a1e7f --- /dev/null +++ b/+hw/TLOutput.m @@ -0,0 +1,38 @@ +classdef TLOutput < matlab.mixin.Heterogeneous & handle + % HW.TLOUTPUT Code to specify an output channel for timeline + % This is an abstract class. + % + % Below is a list of some subclasses and their functions: + % hw.TLOutputClock - clocked output on a counter channel + % hw.TLOutputChrono - the default, flip/flop status check output + % hw.TLOutputAcqLive - a digital channel that signals that + % aquisition has begun or ended with either a constant on signal or a + % brief pulse. + % + % The timeline object will call the init, start, process, and stop + % methods. + % + % Part of Rigbox + + % 2018-01 NS created + + properties + Name % The name of the timeline output, for easy identification + Enable = true % Will not do anything with it unless this is true + Verbose = false % Flag to output status updates. Initialization message outputs regardless of verbose. + end + + properties (Transient, Hidden) + Session % Holds an NI DAQ session object + end + + methods (Abstract) + init(obj, timeline) % Called when timeline is initialized (see HW.TIMELINE/INIT), e.g. to open daq session and set parameters + start(obj, timeline) % Called when timeline is started (see HW.TIMELINE/START), e.g. to start outputs + process(obj, timeline, event) % Called every time Timeline processes a chunk of data, in case output needs to react to it + stop(obj, timeline) % Called when timeline is stopped (see HW.TIMELINE/STOP), to close and clean up + s = toStr(obj) % A string that describes the object succintly + end + +end + diff --git a/+hw/TLOutputAcqLive.m b/+hw/TLOutputAcqLive.m new file mode 100644 index 00000000..a7610a3e --- /dev/null +++ b/+hw/TLOutputAcqLive.m @@ -0,0 +1,94 @@ +classdef TLOutputAcqLive < hw.TlOutput + % HW.TLOUTPUTACQLIVE A digital signal that goes up when the recording starts, + % down when it ends. + % Used for triggaring external instruments during data aquisition. + % + % See also HW.TLOUTPUT and HW.TIMELINE + % + % Part of Rigbox + % 2018-01 NS + + properties + DaqDeviceID + DaqChannelID + DaqVendor = 'ni' + InitialDelay = 0 % sec, time to wait before starting + PulseDuration = Inf; % sec, time that the pulse is on at beginning and end + end + + methods + function obj = TLOutputAcqLive(name, daqDeviceID, daqChannelID) + % TLOUTPUTCHRONO Constructor method + obj.Name = name; + obj.DaqDeviceID = daqDeviceID; + obj.DaqChannelID = daqChannelID; + end + + function init(obj, ~) + % INIT Initialize the output session + % INIT(obj, timeline) is called when timeline is initialized. + % Creates the DAQ session and ensures it is outputting a low + % (digital off) signal. + % + % See Also HW.TIMELINE/INIT + if obj.Enable + fprintf(1, 'initializing %s\n', obj.toStr); + obj.Session = daq.createSession(obj.DaqVendor); + obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); + outputSingleScan(obj.Session, false); % start in the off/false state + end + end + + function start(obj, ~) + % START Output a high voltage signal + % Called when timeline is started, this outputs the first high + % voltage signal to triggar external instrument aquisition + % + % See Also HW.TIMELINE/START + if obj.Enable + if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end + pause(obj.InitialDelay); % wait for some duration before starting + outputSingleScan(obj.Session, true); % set digital output true: acquisition is "live" + if obj.PulseDuration ~= Inf + pause(obj.PulseDuration); + outputSingleScan(obj.Session, false); + end + end + end + + function process(~, ~, ~) + % called every time Timeline processes a chunk of data + %fprintf(1, 'process acqLive\n'); + % -- pass + end + + function stop(obj,~) + % STOP Stops the DAQ session object. + % Called when timeline is stopped. Outputs a low voltage signal, + % the stops and releases the session object. + % + % See Also HW.TIMELINE/STOP + if obj.Enable + % set digital output false: acquisition is no longer "live" + if obj.PulseDuration ~= Inf + outputSingleScan(obj.Session, true); + pause(obj.PulseDuration); + end + outputSingleScan(obj.Session, false); + + if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end + stop(obj.Session); + release(obj.Session); + obj.Session = []; + end + end + + function s = toStr(obj) + s = sprintf('"%s" on %s/%s (acqLive, initial delay %.2f)', obj.Name, ... + obj.DaqDeviceID, obj.DaqChannelID, obj.InitialDelay); + end + + end + +end + diff --git a/+hw/TLOutputChrono.m b/+hw/TLOutputChrono.m new file mode 100644 index 00000000..bad6aed1 --- /dev/null +++ b/+hw/TLOutputChrono.m @@ -0,0 +1,140 @@ +classdef TLOutputChrono < hw.TlOutput + % HW.TLOUTPUTCHRONO Principle output channel class which sets timeline clock offset + % Timeline uses this to monitor that acquisition is proceeding normally + % during a recording and to update the synchronization between the + % system time and the timeline time (to prevent drift between daq and + % computer clock). + % + % See also HW.TLOUTPUT and HW.TIMELINE + % + % Part of Rigbox + % 2018-01 NS + + properties + DaqDeviceID + DaqChannelID + DaqVendor = 'ni' % Name of the DAQ vendor + NextChronoSign = 1 % The value to output on the chrono channel, the sign is changed each 'Process' event + end + + methods + function obj = TLOutputChrono(name, daqDeviceID, daqChannelID) + % TLOUTPUTCHRONO Constructor method + obj.Name = name; + obj.DaqDeviceID = daqDeviceID; + obj.DaqChannelID = daqChannelID; + end + + function init(obj, timeline) + % INIT Initialize the output session + % INIT(obj, timeline) is called when timeline is initialized. + % Creates the DAQ session and ensures that the clocking pulse test + % can not be read back + % + % See Also HW.TIMELINE/INIT + if obj.Enable + fprintf(1, 'initializing %s\n', obj.toStr); + obj.Session = daq.createSession(obj.DaqVendor); + obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); + + tls = timeline.getSessions('main'); + + %%Send a test pulse low, then high to clocking channel & check we read it back + idx = cellfun(@(s2)strcmp('chrono',s2), {timeline.Inputs.name}); + outputSingleScan(obj.Session, false) + x1 = tls.inputSingleScan; + outputSingleScan(obj.Session, true) + x2 = tls.inputSingleScan; + assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... + 'The clocking pulse test could not be read back'); + timeline.CurrSysTimeTimelineOffset = GetSecs; % to initialize this, will be a bit off but fixed after the first pulse + end + end + + function start(obj, timeline) + % START Starts the first chrono flip + % Called when timeline is started, this outputs the first low + % voltage output on the chrono output channel + % + % See Also HW.TIMELINE/START + if obj.Enable % If the object is to be used + if obj.Verbose; fprintf(1, 'start %s\n', obj.name); end + t = GetSecs; % system time before output + outputSingleScan(obj.session, false) % this will be the clocking pulse detected the first time process is called + timeline.LastClockSentSysTime = (t + GetSecs)/2; + end + end + + function process(obj, timeline, event) + % PROCESS Record the timestamp of last chrono flip, and output again + % OBJ.PROCESS(TIMELINE, EVENT) is called every time Timeline + % processes a chunk of data. The sign of the chrono signal is + % flipped on each call (at LastClockSentSysTime), and the time of + % the previous flip is found in the data and its timestamp noted. + % This is used by TL.TIME() to convert between system time and + % acquisition time. + % + % LastTimestamp is the time of the last scan in the previous data + % chunk, and is used to ensure no data samples have been lost. + % + % See Also TL.TIME() + + if obj.Enable && timeline.IsRunning && ~isempty(obj.Session) + if obj.Verbose + fprintf(1, 'process %s\n', obj.Name); + end + + % The chrono "out" value is flipped at a recorded time, and the + % sample index that this flip is measured is noted First, find + % the index of the flip in the latest chunk of data + idx = elementByName(timeline.Inputs, 'chrono'); + clockChangeIdx = find(sign(event.Data(:,timeline.Inputs(idx).arrayColumn) - 2.5) == obj.NextChronoSign, 1); + + if obj.Verbose + fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... + timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); + end + + % Ensure the clocking pulse was detected + if ~isempty(clockChangeIdx) + clockChangeTimestamp = event.TimeStamps(clockChangeIdx); + timeline.CurrSysTimeTimelineOffset = timeline.LastClockSentSysTime - clockChangeTimestamp; + else + warning('Rigging:Timeline:timing', 'clocking pulse not detected - probably lagging more than one data chunk'); + end + + % Now send the next clock pulse + obj.NextChronoSign = -obj.NextChronoSign; % flip next chrono + t = GetSecs; % system time before output + outputSingleScan(obj.Session, obj.NextChronoSign > 0); % send next chrono flip + timeline.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time + if obj.Verbose + fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... + timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); + end + end + end + + function stop(obj,~) + % STOP Stops the DAQ session object. + % Called when timeline is stopped. Stops and releases the + % session object. + % + % See Also HW.TIMELINE/STOP + if obj.Enable + if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end + stop(obj.Session); + release(obj.Session); + obj.Session = []; + end + end + + function s = toStr(obj) + s = sprintf('"%s" on %s/%s (chrono)', obj.Name, ... + obj.DaqDeviceID, obj.DaqChannelID); + end + + end + +end + diff --git a/+hw/TLOutputClock.m b/+hw/TLOutputClock.m new file mode 100644 index 00000000..f7a3bfaa --- /dev/null +++ b/+hw/TLOutputClock.m @@ -0,0 +1,90 @@ +classdef TLOutputClock < hw.TlOutput + % HW.TLOUTPUTCLOCK A regular pulse at a specified frequency and duty + % cycle. Can be used to trigger camera frames. + % + % See also HW.TLOUTPUT and HW.TIMELINE + % + % Part of Rigbox + % 2018-01 NS + + properties + DaqDeviceID + DaqChannelID + DaqVendor = 'ni' + InitialDelay = 0 % delay from session start to clock output + Frequency = 60; % Hz, of the clocking pulse + DutyCycle = 0.2; % proportion of each cycle that the pulse is "true" + end + + properties (Transient, Hidden) + ClockChan % Holds an instance of the PulseGeneration channel + end + + methods + function obj = TLOutputClock(name, daqDeviceID, daqChannelID) + % TLOUTPUTCHRONO Constructor method + obj.Name = name; + obj.DaqDeviceID = daqDeviceID; + obj.DaqChannelID = daqChannelID; + end + + function init(obj, ~) + % INIT Initialize the output session + % INIT(obj, timeline) is called when timeline is initialized. + % Creates the DAQ session and adds a PulseGeneration channel with + % the specified frequency, duty cycle and delay. + % + % See Also HW.TIMELINE/INIT + if obj.Enable + fprintf(1, 'initializing %s\n', obj.toStr); + + obj.session = daq.createSession(obj.DaqVendor); + obj.session.IsContinuous = true; + clocked = obj.Session.addCounterOutputChannel(obj.DaqDeviceID, obj.DaqChannelID, 'PulseGeneration'); + clocked.Frequency = obj.Frequency; + clocked.DutyCycle = obj.DutyCycle; + clocked.InitialDelay = obj.InitialDelay; + obj.ClockChan = clocked; + end + end + + function start(obj, ~) + % START Starts the clocking pulse + % Called when timeline is started, this uses STARTBACKGROUND to + % start the clocking pulse + % + % See Also HW.TIMELINE/START + if obj.Enable + if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end + startBackground(obj.session); + end + end + + function process(~, ~, ~) + % called every time Timeline processes a chunk of data + %fprintf(1, 'process Clock\n'); + % -- pass + end + + function stop(obj,~) + % STOP Stops the DAQ session object. + % Called when timeline is stopped. Stops and releases the + % session object. + % + % See Also HW.TIMELINE/STOP + if obj.Enable + if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end + stop(obj.session); + release(obj.session); + obj.session = []; + end + end + + function s = toStr(obj) + s = sprintf('"%s" on %s/%s (clock, %dHz, %.2f duty cycle)', obj.Name, ... + obj.DaqDeviceID, obj.DaqChannelID, obj.Frequency, obj.DutyCycle); + end + end + +end + From f93e62318847c84b068cc33396d0d77d5d9c3e45 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 31 Jan 2018 19:02:07 +0000 Subject: [PATCH 056/515] Comment formatting --- +hw/DummyFeedback.m | 23 ---------------------- +hw/TLOutput.m | 32 ++++++++++++++++++++++-------- +hw/TLOutputAcqLive.m | 40 ++++++++++++++++++++++++++++---------- +hw/TLOutputChrono.m | 22 ++++++++++++++++----- +hw/TLOutputClock.m | 37 ++++++++++++++++++++++++++--------- +hw/Timeline.m | 45 ++++++++++++++++++++++++++----------------- 6 files changed, 126 insertions(+), 73 deletions(-) delete mode 100644 +hw/DummyFeedback.m diff --git a/+hw/DummyFeedback.m b/+hw/DummyFeedback.m deleted file mode 100644 index ca3da58a..00000000 --- a/+hw/DummyFeedback.m +++ /dev/null @@ -1,23 +0,0 @@ -classdef DummyFeedback < hw.RewardController - %HW.DUMMYFEEDBACK hw.RewardController implementation that does nothing - % Detailed explanation goes here - % - % Part of Rigbox - - % 2012-10 CB created - - properties - end - - methods - function deliverBackground(obj, size) - % do nothing for now - fprintf('reward %f\n', size); - logSample(obj, size, obj.Clock.now); - end - function deliverMultiple(obj, size, interval, n) - % do nothing for now - end - end -end - diff --git a/+hw/TLOutput.m b/+hw/TLOutput.m index 322a1e7f..0d7dff65 100644 --- a/+hw/TLOutput.m +++ b/+hw/TLOutput.m @@ -1,5 +1,5 @@ classdef TLOutput < matlab.mixin.Heterogeneous & handle - % HW.TLOUTPUT Code to specify an output channel for timeline + %HW.TLOUTPUT Code to specify an output channel for timeline % This is an abstract class. % % Below is a list of some subclasses and their functions: @@ -10,7 +10,18 @@ % brief pulse. % % The timeline object will call the init, start, process, and stop - % methods. + % methods. Example: + % + % tl = hw.Timeline; + % tl.Outputs(1) = hw.TLOutputAcqLive('Instra-Triggar', 'Dev1', + % 'PFI4'); + % tl.start('2018-01-01_1_mouse2', alyxInstance); + % >> initializing Instra-Triggar + % >> start Instra-Triggar + % >> Timeline started successfully + % tl.stop; + % + % See Also HW.TLOutputChrono, HW.TLOutputAcqLive, HW.TLOutputClock % % Part of Rigbox @@ -22,16 +33,21 @@ Verbose = false % Flag to output status updates. Initialization message outputs regardless of verbose. end - properties (Transient, Hidden) + properties (Transient, Hidden, Access = protected) Session % Holds an NI DAQ session object end methods (Abstract) - init(obj, timeline) % Called when timeline is initialized (see HW.TIMELINE/INIT), e.g. to open daq session and set parameters - start(obj, timeline) % Called when timeline is started (see HW.TIMELINE/START), e.g. to start outputs - process(obj, timeline, event) % Called every time Timeline processes a chunk of data, in case output needs to react to it - stop(obj, timeline) % Called when timeline is stopped (see HW.TIMELINE/STOP), to close and clean up - s = toStr(obj) % A string that describes the object succintly + % Called when timeline is initialized (see HW.TIMELINE/INIT), e.g. to open daq session and set parameters + init(obj, timeline) + % Called when timeline is started (see HW.TIMELINE/START), e.g. to start outputs + start(obj, timeline) + % Called every time Timeline processes a chunk of data, in case output needs to react to it + process(obj, timeline, event) + % Called when timeline is stopped (see HW.TIMELINE/STOP), to close and clean up + stop(obj, timeline) + % Returns a string that describes the object succintly + s = toStr(obj) end end diff --git a/+hw/TLOutputAcqLive.m b/+hw/TLOutputAcqLive.m index a7610a3e..314f73b0 100644 --- a/+hw/TLOutputAcqLive.m +++ b/+hw/TLOutputAcqLive.m @@ -1,17 +1,30 @@ classdef TLOutputAcqLive < hw.TlOutput - % HW.TLOUTPUTACQLIVE A digital signal that goes up when the recording starts, + %HW.TLOUTPUTACQLIVE A digital signal that goes up when the recording starts, % down when it ends. - % Used for triggaring external instruments during data aquisition. + % Used for triggaring external instruments during data aquisition. Will + % either output a constant high voltage signal while Timeline is + % running, or if obj.PulseDuration is set to a value > 0 and < Inf, the + % DAQ will output a pulse of that duration at the start and end of the + % aquisition. % - % See also HW.TLOUTPUT and HW.TIMELINE + % Example: + % tl = hw.Timeline; + % tl.Outputs(1) = hw.TLOutputAcqLive('Instra-Triggar', 'Dev1', 'PFI4'); + % tl.start('2018-01-01_1_mouse2', alyxInstance); + % >> initializing Instra-Triggar + % >> start Instra-Triggar + % >> Timeline started successfully + % tl.stop; + % + % See also HW.TLOUTPUT, HW.TIMELINE % % Part of Rigbox % 2018-01 NS properties - DaqDeviceID - DaqChannelID - DaqVendor = 'ni' + DaqDeviceID % The name of the DAQ device ID, e.g. 'Dev1', see DAQ.GETDEVICES + DaqChannelID % The name of the DAQ channel ID, e.g. 'port1/line0', see DAQ.GETDEVICES + DaqVendor = 'ni' % Name of the DAQ vendor InitialDelay = 0 % sec, time to wait before starting PulseDuration = Inf; % sec, time that the pulse is on at beginning and end end @@ -57,9 +70,14 @@ function start(obj, ~) end function process(~, ~, ~) - % called every time Timeline processes a chunk of data - %fprintf(1, 'process acqLive\n'); - % -- pass + % PROCESS() Listener for processing acquired Timeline data + % PROCESS(obj, source, event) is a listener callback + % function for handling tl data acquisition. Called by the + % 'main' DAQ session with latest chunk of data. + % + % See Also HW.TIMELINE/PROCESS + %fprintf(1, 'process acqLive\n'); + % -- pass end function stop(obj,~) @@ -84,10 +102,12 @@ function stop(obj,~) end function s = toStr(obj) + % TOSTR Returns a string that describes the object succintly + % + % See Also INIT s = sprintf('"%s" on %s/%s (acqLive, initial delay %.2f)', obj.Name, ... obj.DaqDeviceID, obj.DaqChannelID, obj.InitialDelay); end - end end diff --git a/+hw/TLOutputChrono.m b/+hw/TLOutputChrono.m index bad6aed1..609865ba 100644 --- a/+hw/TLOutputChrono.m +++ b/+hw/TLOutputChrono.m @@ -1,18 +1,27 @@ classdef TLOutputChrono < hw.TlOutput - % HW.TLOUTPUTCHRONO Principle output channel class which sets timeline clock offset + %HW.TLOUTPUTCHRONO Principle output channel class which sets timeline clock offset % Timeline uses this to monitor that acquisition is proceeding normally % during a recording and to update the synchronization between the % system time and the timeline time (to prevent drift between daq and % computer clock). % - % See also HW.TLOUTPUT and HW.TIMELINE + % Example: + % tl = hw.Timeline; + % tl.Outputs(1) = hw.TLOutputChrono('Chrono', 'Dev1', 'PFI4'); + % tl.start('2018-01-01_1_mouse2', alyxInstance); + % >> initializing Chrono + % >> start Chrono + % >> Timeline started successfully + % tl.stop; + % + % See also HW.TLOUTPUT, HW.TIMELINE % % Part of Rigbox % 2018-01 NS properties - DaqDeviceID - DaqChannelID + DaqDeviceID % The name of the DAQ device ID, e.g. 'Dev1', see DAQ.GETDEVICES + DaqChannelID % The name of the DAQ channel ID, e.g. 'port1/line0', see DAQ.GETDEVICES DaqVendor = 'ni' % Name of the DAQ vendor NextChronoSign = 1 % The value to output on the chrono channel, the sign is changed each 'Process' event end @@ -77,7 +86,7 @@ function process(obj, timeline, event) % LastTimestamp is the time of the last scan in the previous data % chunk, and is used to ensure no data samples have been lost. % - % See Also TL.TIME() + % See Also HW.TIMELINE/TIME() and HW.TIMELINE/PROCESS if obj.Enable && timeline.IsRunning && ~isempty(obj.Session) if obj.Verbose @@ -130,6 +139,9 @@ function stop(obj,~) end function s = toStr(obj) + % TOSTR Returns a string that describes the object succintly + % + % See Also INIT s = sprintf('"%s" on %s/%s (chrono)', obj.Name, ... obj.DaqDeviceID, obj.DaqChannelID); end diff --git a/+hw/TLOutputClock.m b/+hw/TLOutputClock.m index f7a3bfaa..1e0210ec 100644 --- a/+hw/TLOutputClock.m +++ b/+hw/TLOutputClock.m @@ -1,22 +1,32 @@ classdef TLOutputClock < hw.TlOutput - % HW.TLOUTPUTCLOCK A regular pulse at a specified frequency and duty + %HW.TLOUTPUTCLOCK A regular pulse at a specified frequency and duty % cycle. Can be used to trigger camera frames. % - % See also HW.TLOUTPUT and HW.TIMELINE + % Example: + % tl = hw.Timeline; + % tl.Outputs(end+1) = hw.TLOutputClock('Cam-Triggar', 'Dev1', 'PFI4'); + % tl.Outputs(end).InitialDelay = 5 % Add initial delay before start + % tl.start('2018-01-01_1_mouse2', alyxInstance); + % >> initializing Cam-Triggar + % >> start Cam-Triggar + % >> Timeline started successfully + % tl.stop; + % + % See also HW.TLOUTPUT, HW.TIMELINE % % Part of Rigbox % 2018-01 NS properties - DaqDeviceID - DaqChannelID - DaqVendor = 'ni' + DaqDeviceID % The name of the DAQ device ID, e.g. 'Dev1', see DAQ.GETDEVICES + DaqChannelID % The name of the DAQ channel ID, e.g. 'port1/line0', see DAQ.GETDEVICES + DaqVendor = 'ni' % Name of the DAQ vendor InitialDelay = 0 % delay from session start to clock output Frequency = 60; % Hz, of the clocking pulse DutyCycle = 0.2; % proportion of each cycle that the pulse is "true" end - properties (Transient, Hidden) + properties (Transient, Hidden, Access = protected) ClockChan % Holds an instance of the PulseGeneration channel end @@ -61,9 +71,15 @@ function start(obj, ~) end function process(~, ~, ~) - % called every time Timeline processes a chunk of data - %fprintf(1, 'process Clock\n'); - % -- pass + % PROCESS() Listener for processing acquired Timeline data + % PROCESS(obj, source, event) is a listener callback + % function for handling tl data acquisition. Called by the + % 'main' DAQ session with latest chunk of data. + % + % See Also HW.TIMELINE/PROCESS + + %fprintf(1, 'process Clock\n'); + % -- pass end function stop(obj,~) @@ -81,6 +97,9 @@ function stop(obj,~) end function s = toStr(obj) + % TOSTR Returns a string that describes the object succintly + % + % See Also INIT s = sprintf('"%s" on %s/%s (clock, %dHz, %.2f duty cycle)', obj.Name, ... obj.DaqDeviceID, obj.DaqChannelID, obj.Frequency, obj.DutyCycle); end diff --git a/+hw/Timeline.m b/+hw/Timeline.m index e465c212..d5862738 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -129,6 +129,8 @@ function start(obj, expRef, Alyx) % START Starts timeline data acquisition % START(obj, ref, Alyx) starts all DAQ sessions and adds % the relevent output and input channels. + % + % See Also HW.TLOUTPUT/START if obj.IsRunning % check if it's already running, and if so, stop it disp('Timeline already running, stopping first'); @@ -230,7 +232,8 @@ function record(obj, name, event, t) % Timeline data acquistion. 'strict' is optional (defaults to true), and % if true, this function will fail if Timeline is not running. If false, % it will just return the time using Psychtoolbox GetSecs if it's not - % running. See also TL.PTBSECSTOTIMELINE(). + % running. + % See also TL.PTBSECSTOTIMELINE(). if nargin < 2; strict = true; end if obj.IsRunning secs = GetSecs - obj.CurrSysTimeTimelineOffset; @@ -329,6 +332,7 @@ function wiringInfo(obj, name) end function v = get.SamplingInterval(obj) + %GET.SAMPLINGINTERVAL Defined as the reciprocal of obj.DaqSampleRate v = 1/obj.DaqSampleRate; end @@ -350,6 +354,7 @@ function stop(obj) % TL.STOP() Deletes the listener, saves the aquired data, % stops all running DAQ sessions % + % See Also HW.TLOUTPUT/STOP if ~obj.IsRunning warning('Nothing to do, Timeline is not running!') return @@ -476,8 +481,11 @@ function stop(obj) end function s = getSessions(obj, name) + % GETSESSIONS() Returns the Sessions property % returns the Sessions property. Some things (e.g. output - % classes) need this. + % classes) need this. + % + % See Also HW.TLOUTPUT s = obj.Sessions(name); end @@ -489,13 +497,15 @@ function init(obj) % TL.INIT() creates all the DAQ sessions % and stores them in the Sessions map by their Outputs name. % Also add a 'main' session to which all input channels are - % added. See daq.createSession + % added. + % + % See Also DAQ.CREATESESSION - %%Create channels for each input + %%reate channels for each input [use, idx] = intersect({obj.Inputs.name}, obj.UseInputs);% find which inputs to use assert(numel(idx) == numel(obj.UseInputs), 'Not all inputs were recognised'); - inputSession = daq.createSession(obj.DaqVendor); - inputSession.Rate = obj.DaqSampleRate; + inputSession = daq.createSession(obj.DaqVendor); %create DAQ session for input aquisition + inputSession.Rate = obj.DaqSampleRate; % set the aquisition sample rate inputSession.IsContinuous = true; % once started, continue acquiring until manually stopped inputSession.NotifyWhenDataAvailableExceeds = obj.DaqSamplesPerNotify; % when to process data obj.Sessions('main') = inputSession; @@ -519,12 +529,12 @@ function init(obj) obj.Inputs(strcmp({obj.Inputs.name}, obj.UseInputs(i))).arrayColumn = i; end - % Initialize outputs - arrayfun(@(o)o.init(obj), obj.Outputs) + %Initialize outputs + arrayfun(@(out)out.init(obj), obj.Outputs) end - function process(obj, ~, event) - % Listener for processing acquired Timeline data + function process(obj, source, event) + % PROCESS() Listener for processing acquired Timeline data % TL.PROCESS(source, event) is a listener callback % function for handling tl data acquisition. Called by the % 'main' DAQ session with latest chunk of data. This is @@ -538,18 +548,18 @@ function process(obj, ~, event) % LastTimestamp is the time of the last scan in the previous % data chunk, and is used to ensure no data samples have been % lost. + % + % See Also HW.TLOUTPUT/PROCESS - % assert continuity of this data from previous + %Assert continuity of this data from previous assert(abs(event.TimeStamps(1) - obj.LastTimestamp - obj.SamplingInterval) < 1e-8,... 'Discontinuity of DAQ acquistion detected: last timestamp was %f and this one is %f',... obj.LastTimestamp, event.TimeStamps(1)); - % process methods for outputs - for outidx = 1:numel(obj.Outputs) - obj.Outputs(outidx).process(obj, event); - end + %Process methods for outputs + arrayfun(@(out)out.process(source, event), obj.Outputs); - %%% Store new samples into the timeline array + %Store new samples into the timeline array prevSampleCount = obj.Data.rawDAQSampleCount; newSampleCount = prevSampleCount + size(event.Data, 1); @@ -570,10 +580,9 @@ function process(obj, ~, event) datToWrite = cast(event.Data, obj.AquiredDataType); % Ensure data are the correct type fwrite(obj.DataFID, datToWrite', obj.AquiredDataType); % Write to file end - % if plotting the channels live, plot the new data + %If plotting the channels live, plot the new data if obj.LivePlot; obj.livePlot(event.Data); end - end function livePlot(obj, data) From 963fd5522e9b7bb3fddd078c2a99f9d5e0d57dbd Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Feb 2018 10:41:48 +0000 Subject: [PATCH 057/515] More documentation and minor fixes --- +hw/TLOutputAcqLive.m | 6 +++++- +hw/TLOutputChrono.m | 33 +++++++++++++++++++-------------- +hw/TLOutputClock.m | 15 +++++++-------- +hw/Timeline.m | 36 +++++++++++++++++------------------- 4 files changed, 48 insertions(+), 42 deletions(-) diff --git a/+hw/TLOutputAcqLive.m b/+hw/TLOutputAcqLive.m index 314f73b0..5dbfaf82 100644 --- a/+hw/TLOutputAcqLive.m +++ b/+hw/TLOutputAcqLive.m @@ -1,4 +1,4 @@ -classdef TLOutputAcqLive < hw.TlOutput +classdef TLOutputAcqLive < hw.TLOutput %HW.TLOUTPUTACQLIVE A digital signal that goes up when the recording starts, % down when it ends. % Used for triggaring external instruments during data aquisition. Will @@ -47,7 +47,11 @@ function init(obj, ~) if obj.Enable fprintf(1, 'initializing %s\n', obj.toStr); obj.Session = daq.createSession(obj.DaqVendor); + % Turn off warning about clocked sampling availability + warning('off', 'daq:Session:onDemandOnlyChannelsAdded'); + % Add on-demand digital channel obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); + warning('on', 'daq:Session:onDemandOnlyChannelsAdded'); outputSingleScan(obj.Session, false); % start in the off/false state end end diff --git a/+hw/TLOutputChrono.m b/+hw/TLOutputChrono.m index 609865ba..059d3a85 100644 --- a/+hw/TLOutputChrono.m +++ b/+hw/TLOutputChrono.m @@ -1,4 +1,4 @@ -classdef TLOutputChrono < hw.TlOutput +classdef TLOutputChrono < hw.TLOutput %HW.TLOUTPUTCHRONO Principle output channel class which sets timeline clock offset % Timeline uses this to monitor that acquisition is proceeding normally % during a recording and to update the synchronization between the @@ -26,6 +26,11 @@ NextChronoSign = 1 % The value to output on the chrono channel, the sign is changed each 'Process' event end + properties (SetAccess = private) + CurrSysTimeTimelineOffset = 0 % difference between the system time when the last chrono flip occured and the timestamp recorded by the DAQ, see tl.process() + LastClockSentSysTime % the mean of the system time before and after the last chrono flip. Used to calculate CurrSysTimeTimelineOffset, see tl.process() + end + methods function obj = TLOutputChrono(name, daqDeviceID, daqChannelID) % TLOUTPUTCHRONO Constructor method @@ -44,8 +49,11 @@ function init(obj, timeline) if obj.Enable fprintf(1, 'initializing %s\n', obj.toStr); obj.Session = daq.createSession(obj.DaqVendor); + % Turn off warning about clocked sampling availability + warning('off', 'daq:Session:onDemandOnlyChannelsAdded'); + % Add on-demand digital channel obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); - + warning('on', 'daq:Session:onDemandOnlyChannelsAdded'); tls = timeline.getSessions('main'); %%Send a test pulse low, then high to clocking channel & check we read it back @@ -56,11 +64,11 @@ function init(obj, timeline) x2 = tls.inputSingleScan; assert(x1(timeline.Inputs(idx).arrayColumn) < 2.5 && x2(timeline.Inputs(idx).arrayColumn) > 2.5,... 'The clocking pulse test could not be read back'); - timeline.CurrSysTimeTimelineOffset = GetSecs; % to initialize this, will be a bit off but fixed after the first pulse + obj.CurrSysTimeTimelineOffset = GetSecs; % to initialize this, will be a bit off but fixed after the first pulse end end - function start(obj, timeline) + function start(obj, ~) % START Starts the first chrono flip % Called when timeline is started, this outputs the first low % voltage output on the chrono output channel @@ -69,8 +77,8 @@ function start(obj, timeline) if obj.Enable % If the object is to be used if obj.Verbose; fprintf(1, 'start %s\n', obj.name); end t = GetSecs; % system time before output - outputSingleScan(obj.session, false) % this will be the clocking pulse detected the first time process is called - timeline.LastClockSentSysTime = (t + GetSecs)/2; + outputSingleScan(obj.Session, false) % this will be the clocking pulse detected the first time process is called + obj.LastClockSentSysTime = (t + GetSecs)/2; end end @@ -83,9 +91,6 @@ function process(obj, timeline, event) % This is used by TL.TIME() to convert between system time and % acquisition time. % - % LastTimestamp is the time of the last scan in the previous data - % chunk, and is used to ensure no data samples have been lost. - % % See Also HW.TIMELINE/TIME() and HW.TIMELINE/PROCESS if obj.Enable && timeline.IsRunning && ~isempty(obj.Session) @@ -101,13 +106,13 @@ function process(obj, timeline, event) if obj.Verbose fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... - timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); + obj.CurrSysTimeTimelineOffset, obj.LastClockSentSysTime); end % Ensure the clocking pulse was detected if ~isempty(clockChangeIdx) clockChangeTimestamp = event.TimeStamps(clockChangeIdx); - timeline.CurrSysTimeTimelineOffset = timeline.LastClockSentSysTime - clockChangeTimestamp; + obj.CurrSysTimeTimelineOffset = obj.LastClockSentSysTime - clockChangeTimestamp; else warning('Rigging:Timeline:timing', 'clocking pulse not detected - probably lagging more than one data chunk'); end @@ -116,10 +121,10 @@ function process(obj, timeline, event) obj.NextChronoSign = -obj.NextChronoSign; % flip next chrono t = GetSecs; % system time before output outputSingleScan(obj.Session, obj.NextChronoSign > 0); % send next chrono flip - timeline.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time + obj.LastClockSentSysTime = (t + GetSecs)/2; % record mean before/after system time if obj.Verbose fprintf(1, ' CurrOffset=%.2f, LastClock=%.2f\n', ... - timeline.CurrSysTimeTimelineOffset, timeline.LastClockSentSysTime); + obj.CurrSysTimeTimelineOffset, obj.LastClockSentSysTime); end end end @@ -141,7 +146,7 @@ function stop(obj,~) function s = toStr(obj) % TOSTR Returns a string that describes the object succintly % - % See Also INIT + % See Also HW.TIMELINE/INIT s = sprintf('"%s" on %s/%s (chrono)', obj.Name, ... obj.DaqDeviceID, obj.DaqChannelID); end diff --git a/+hw/TLOutputClock.m b/+hw/TLOutputClock.m index 1e0210ec..4784f531 100644 --- a/+hw/TLOutputClock.m +++ b/+hw/TLOutputClock.m @@ -1,4 +1,4 @@ -classdef TLOutputClock < hw.TlOutput +classdef TLOutputClock < hw.TLOutput %HW.TLOUTPUTCLOCK A regular pulse at a specified frequency and duty % cycle. Can be used to trigger camera frames. % @@ -47,9 +47,8 @@ function init(obj, ~) % See Also HW.TIMELINE/INIT if obj.Enable fprintf(1, 'initializing %s\n', obj.toStr); - - obj.session = daq.createSession(obj.DaqVendor); - obj.session.IsContinuous = true; + obj.Session = daq.createSession(obj.DaqVendor); + obj.Session.IsContinuous = true; clocked = obj.Session.addCounterOutputChannel(obj.DaqDeviceID, obj.DaqChannelID, 'PulseGeneration'); clocked.Frequency = obj.Frequency; clocked.DutyCycle = obj.DutyCycle; @@ -66,7 +65,7 @@ function start(obj, ~) % See Also HW.TIMELINE/START if obj.Enable if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end - startBackground(obj.session); + startBackground(obj.Session); end end @@ -90,9 +89,9 @@ function stop(obj,~) % See Also HW.TIMELINE/STOP if obj.Enable if obj.Verbose; fprintf(1, 'stop %s\n', obj.Name); end - stop(obj.session); - release(obj.session); - obj.session = []; + stop(obj.Session); + release(obj.Session); + obj.Session = []; end end diff --git a/+hw/Timeline.m b/+hw/Timeline.m index d5862738..7d650fa6 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -5,13 +5,14 @@ % is called 'chrono' and consists of a digital squarewave that flips each % time a new chunk of data is availible from the DAQ (see % NotifyWhenDataAvailableExceeds for more information). A callback -% function to this event (see tl.process()) collects the timestamp from the -% DAQ of the precise scan where the chrono signal flipped. The +% function to this event (see tl.process()) collects the timestamp from +% the DAQ of the precise scan where the chrono signal flipped. The % difference between this and the system time recorded when the flip % command was given is recorded as the CurrSysTimeTimelineOffset and can % be used to unify all timestamps across computers during an experiment -% (see tl.time() and tl.ptbSecsToTimeline()). In is assumed that the -% time between sending the chrono pulse and recieving it is negligible. +% (see tl.time(), tl.ptbSecsToTimeline() and hw.TLOutputChrono). In is +% assumed that the time between sending the chrono pulse and recieving it +% is negligible. % % There are other available clocking signals, for instance: 'acqLive' and 'clock'. % The former outputs a high (+5V) signal the entire time tl is aquiring @@ -57,7 +58,7 @@ % memory limitations when aquiring a lot of data % - Delete local binary files once timeline has successfully saved to zserver? % -% See also HW.TIMELINECLOCK +% See also HW.TIMELINECLOCK, HW.TLOUTPUT % % Part of Rigbox @@ -69,7 +70,7 @@ DaqIds = 'Dev1' % Device ID can be found with daq.getDevices() DaqSampleRate = 1000 % rate at which daq aquires data in Hz, see Rate DaqSamplesPerNotify % determines the number of data samples to be processed each time, see Timeline.process(), constructor and NotifyWhenDataAvailableExceeds - Outputs = hw.tlOutputChrono('chrono', 'Dev1', 'port1/line0') % array of output classes, defining any signals you desire to be sent from the daq. See Also HW.TLOUTPUT, HW.TLOUTPUTCLOCK + Outputs = hw.TLOutputChrono('chrono', 'Dev1', 'port1/line0') % array of output classes, defining any signals you desire to be sent from the daq. See Also HW.TLOUTPUT, HW.TLOUTPUTCLOCK Inputs = struct('name', 'chrono',... 'arrayColumn', -1,... % -1 is default indicating unused, this is update when the channels are added during tl.start() 'daqChannelID', 'ai0',... @@ -84,14 +85,7 @@ LivePlotParams = []; WriteBufferToDisk = false % if true the data buffer is written to disk as they're aquired NB: in the future this will happen by default end - - properties (Transient) - % moved these here (i.e. unprotected) so chrono class can access - NS - CurrSysTimeTimelineOffset = 0 % difference between the system time when the last chrono flip occured and the timestamp recorded by the DAQ, see tl.process() - LastTimestamp % the last timestamp returned from the daq during the DataAvailable event. Used to check sampling continuity, see tl.process() - LastClockSentSysTime % the mean of the system time before and after the last chrono flip. Used to calculate CurrSysTimeTimelineOffset, see tl.process() - end - + properties (Dependent) SamplingInterval % defined as 1/DaqSampleRate IsRunning = false % flag is set to true when the first chrono pulse is aquired and set to false when tl is stopped (and everything saved), see tl.process and tl.stop @@ -99,7 +93,8 @@ properties (Transient, Access = protected) Listener % holds the listener for 'DataAvailable', see DataAvailable and Timeline.process() - Sessions = containers.Map % map of daq sessions and their channels, created at tl.start() + Sessions = containers.Map % map of daq sessions and their channels, created at tl.start() + LastTimestamp % the last timestamp returned from the daq during the DataAvailable event. Used to check sampling continuity, see tl.process() Ref % the expRef string. See tl.start() AlyxInstance % a struct contraining the Alyx token, user and url for ile registration. See tl.start() Data % A structure containing timeline data @@ -389,10 +384,13 @@ function stop(obj) % metadata saving, see below outputClasses = arrayfun(@class, obj.Outputs, 'uni', false); chronoChan = []; nextChrono = []; acqLiveChan = []; useClock = false; clockF = []; clockD = []; + LastClockSentSysTime = []; CurrSysTimeTimelineOffset = []; chronoOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputChrono'),1); if ~isempty(chronoOutputIdx) chronoChan = obj.Outputs(chronoOutputIdx).daqChannelID; nextChrono = obj.Outputs(chronoOutputIdx).NextChronoSign; + LastClockSentSysTime = obj.Outputs(chronoOutputIdx).LastClockSentSysTime; + CurrSysTimeTimelineOffset = obj.Outputs(chronoOutputIdx).CurrSysTimeTimelineOffset; end acqLiveOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputAcqLive'),1); if ~isempty(acqLiveOutputIdx) @@ -417,8 +415,8 @@ function stop(obj) obj.Data.isRunning = obj.IsRunning; obj.Data.nextChronoSign = nextChrono; obj.Data.lastTimestamp = obj.LastTimestamp; - obj.Data.lastClockSentSysTime = obj.LastClockSentSysTime; - obj.Data.currSysTimeTimelineOffset = obj.CurrSysTimeTimelineOffset; + obj.Data.lastClockSentSysTime = LastClockSentSysTime; + obj.Data.currSysTimeTimelineOffset = CurrSysTimeTimelineOffset; % saving hardware metadata for each output warning('off', 'MATLAB:structOnObject'); % sorry, don't care @@ -533,7 +531,7 @@ function init(obj) arrayfun(@(out)out.init(obj), obj.Outputs) end - function process(obj, source, event) + function process(obj, ~, event) % PROCESS() Listener for processing acquired Timeline data % TL.PROCESS(source, event) is a listener callback % function for handling tl data acquisition. Called by the @@ -557,7 +555,7 @@ function process(obj, source, event) obj.LastTimestamp, event.TimeStamps(1)); %Process methods for outputs - arrayfun(@(out)out.process(source, event), obj.Outputs); + arrayfun(@(out)out.process(obj, event), obj.Outputs); %Store new samples into the timeline array prevSampleCount = obj.Data.rawDAQSampleCount; From 20903ef00a1e3906140a540d5ea23b26520afd4d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Feb 2018 13:46:08 +0000 Subject: [PATCH 058/515] Can now instantiate new timeline object with a previous hw struct --- +hw/TLOutputAcqLive.m | 28 ++++++++++++++++++++++------ +hw/TLOutputChrono.m | 22 ++++++++++++++++++---- +hw/TLOutputClock.m | 27 ++++++++++++++++++++++----- +hw/Timeline.m | 41 +++++++++++++++++++++++++---------------- 4 files changed, 87 insertions(+), 31 deletions(-) diff --git a/+hw/TLOutputAcqLive.m b/+hw/TLOutputAcqLive.m index 5dbfaf82..faf6a999 100644 --- a/+hw/TLOutputAcqLive.m +++ b/+hw/TLOutputAcqLive.m @@ -30,11 +30,27 @@ end methods - function obj = TLOutputAcqLive(name, daqDeviceID, daqChannelID) + function obj = TLOutputAcqLive(hw) % TLOUTPUTCHRONO Constructor method - obj.Name = name; - obj.DaqDeviceID = daqDeviceID; - obj.DaqChannelID = daqChannelID; + % Can take the struct form of a previous instance (as saved in the + % Timeline hw struct) to intantiate a new object with the same + % properties. + % + % See Also HW.TIMELINE + if nargin + obj.Name = hw.Name; + obj.DaqDeviceID = hw.DaqDeviceID; + obj.DaqVendor = hw.DaqVendor; + obj.DaqChannelID = hw.DaqChannelID; + obj.InitialDelay = hw.InitialDelay; + obj.PulseDuration = hw.PulseDuration; + obj.Enable = hw.Enable; + obj.Verbose = hw.Verbose; + else % Some safe defaults + obj.Name = 'Acquire Live'; + obj.DaqDeviceID = 'Dev1'; + obj.DaqChannelID = 'port1/line2'; + end end function init(obj, ~) @@ -109,8 +125,8 @@ function stop(obj,~) % TOSTR Returns a string that describes the object succintly % % See Also INIT - s = sprintf('"%s" on %s/%s (acqLive, initial delay %.2f)', obj.Name, ... - obj.DaqDeviceID, obj.DaqChannelID, obj.InitialDelay); + s = sprintf('"%s" on %s/%s (acqLive, initial delay %.2f, pulse duration %.2f)',... + obj.Name, obj.DaqDeviceID, obj.DaqChannelID, obj.InitialDelay, obj.PulseDuration); end end diff --git a/+hw/TLOutputChrono.m b/+hw/TLOutputChrono.m index 059d3a85..373cad10 100644 --- a/+hw/TLOutputChrono.m +++ b/+hw/TLOutputChrono.m @@ -32,11 +32,25 @@ end methods - function obj = TLOutputChrono(name, daqDeviceID, daqChannelID) + function obj = TLOutputChrono(hw) % TLOUTPUTCHRONO Constructor method - obj.Name = name; - obj.DaqDeviceID = daqDeviceID; - obj.DaqChannelID = daqChannelID; + % Can take the struct form of a previous instance (as saved in the + % Timeline hw struct) to intantiate a new object with the same + % properties. + % + % See Also HW.TIMELINE + if nargin + obj.Name = hw.Name; + obj.DaqDeviceID = hw.DaqDeviceID; + obj.DaqVendor = hw.DaqVendor; + obj.DaqChannelID = hw.DaqChannelID; + obj.Enable = hw.Enable; + obj.Verbose = hw.Verbose; + else % Some safe defaults + obj.Name = 'Chrono'; + obj.DaqDeviceID = 'Dev1'; + obj.DaqChannelID = 'port1/line0'; + end end function init(obj, timeline) diff --git a/+hw/TLOutputClock.m b/+hw/TLOutputClock.m index 4784f531..b258ae9e 100644 --- a/+hw/TLOutputClock.m +++ b/+hw/TLOutputClock.m @@ -19,7 +19,7 @@ properties DaqDeviceID % The name of the DAQ device ID, e.g. 'Dev1', see DAQ.GETDEVICES - DaqChannelID % The name of the DAQ channel ID, e.g. 'port1/line0', see DAQ.GETDEVICES + DaqChannelID % The name of the DAQ channel ID, e.g. 'ctr0', see DAQ.GETDEVICES DaqVendor = 'ni' % Name of the DAQ vendor InitialDelay = 0 % delay from session start to clock output Frequency = 60; % Hz, of the clocking pulse @@ -31,11 +31,28 @@ end methods - function obj = TLOutputClock(name, daqDeviceID, daqChannelID) + function obj = TLOutputClock(hw) % TLOUTPUTCHRONO Constructor method - obj.Name = name; - obj.DaqDeviceID = daqDeviceID; - obj.DaqChannelID = daqChannelID; + % Can take the struct form of a previous instance (as saved in the + % Timeline hw struct) to intantiate a new object with the same + % properties. + % + % See Also HW.TIMELINE + if nargin + obj.Name = hw.Name; + obj.DaqDeviceID = hw.DaqDeviceID; + obj.DaqVendor = hw.DaqVendor; + obj.DaqChannelID = hw.DaqChannelID; + obj.InitialDelay = hw.InitialDelay; + obj.Frequency = hw.Frequency; + obj.DutyCycle = hw.DutyCycle; + obj.Enable = hw.Enable; + obj.Verbose = hw.Verbose; + else % Some safe defaults + obj.Name = 'Clock'; + obj.DaqDeviceID = 'Dev1'; + obj.DaqChannelID = 'ctr0'; + end end function init(obj, ~) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 7d650fa6..6b208f78 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -70,19 +70,20 @@ DaqIds = 'Dev1' % Device ID can be found with daq.getDevices() DaqSampleRate = 1000 % rate at which daq aquires data in Hz, see Rate DaqSamplesPerNotify % determines the number of data samples to be processed each time, see Timeline.process(), constructor and NotifyWhenDataAvailableExceeds - Outputs = hw.TLOutputChrono('chrono', 'Dev1', 'port1/line0') % array of output classes, defining any signals you desire to be sent from the daq. See Also HW.TLOUTPUT, HW.TLOUTPUTCLOCK + Outputs % array of output classes, defining any signals you desire to be sent from the daq. See Also HW.TLOUTPUT, HW.TLOUTPUTCLOCK Inputs = struct('name', 'chrono',... 'arrayColumn', -1,... % -1 is default indicating unused, this is update when the channels are added during tl.start() 'daqChannelID', 'ai0',... 'measurement', 'Voltage',... - 'terminalConfig', 'SingleEnded') + 'terminalConfig', 'SingleEnded',... + 'figureScale', 1) UseInputs = {'chrono'} % array of inputs to record while tl is running StopDelay = 2 % currently pauses for at least 2 secs as 'hack' before stopping main DAQ session MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) AquiredDataType = 'double' % default data type for the acquired data array (i.e. Data.rawDAQData) UseTimeline = false % used by expServer. If true, timeline is started by default (otherwise can be toggled with the t key) LivePlot = false % if true the data are plotted as the data are aquired - LivePlotParams = []; + FigureScale = []; % figure position in normalized units, default is [0 0 1 1] (full screen) WriteBufferToDisk = false % if true the data buffer is written to disk as they're aquired NB: in the future this will happen by default end @@ -112,11 +113,17 @@ obj.DaqSamplesPerNotify = 1/obj.SamplingInterval; % calculate DaqSamplesPerNotify if nargin % if old tl hardware struct provided, use these to populate properties + % Configure the inputs obj.Inputs = hw.inputs; obj.DaqVendor = hw.daqVendor; obj.DaqIds = hw.daqDevice; obj.DaqSampleRate = hw.daqSampleRate; obj.DaqSamplesPerNotify = hw.daqSamplesPerNotify; + % Configure the outputs + outputs = catStructs(hw.Outputs); + obj.Outputs = objfun(@(o)eval([o.Class '(o)']), outputs, 'Uni', false); + obj.Outputs = [obj.Outputs{:}]; + else end end @@ -231,7 +238,8 @@ function record(obj, name, event, t) % See also TL.PTBSECSTOTIMELINE(). if nargin < 2; strict = true; end if obj.IsRunning - secs = GetSecs - obj.CurrSysTimeTimelineOffset; + idx = arrayfun(@(out)isa(out, 'hw.TLOutputChrono'), obj.Outputs); + secs = GetSecs - obj.Outputs(idx).CurrSysTimeTimelineOffset; elseif strict error('Tried to use Timeline clock when Timeline is not running'); else @@ -247,7 +255,8 @@ function record(obj, name, event, t) % from Pyschtoolbox's functions and converts to Timeline-relative time. % See also TL.TIME(). assert(obj.IsRunning, 'Timeline is not running.'); - secs = secs - obj.CurrSysTimeTimelineOffset; + idx = arrayfun(@(out)isa(out, 'hw.TLOutputChrono'), obj.Outputs); + secs = secs - obj.Outputs(idx).CurrSysTimeTimelineOffset; end function addInput(obj, name, channelID, measurement, terminalConfig, use) @@ -385,22 +394,22 @@ function stop(obj) outputClasses = arrayfun(@class, obj.Outputs, 'uni', false); chronoChan = []; nextChrono = []; acqLiveChan = []; useClock = false; clockF = []; clockD = []; LastClockSentSysTime = []; CurrSysTimeTimelineOffset = []; - chronoOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputChrono'),1); + chronoOutputIdx = find(strcmp(outputClasses, 'hw.TLOutputChrono'),1); if ~isempty(chronoOutputIdx) - chronoChan = obj.Outputs(chronoOutputIdx).daqChannelID; + chronoChan = obj.Outputs(chronoOutputIdx).DaqChannelID; nextChrono = obj.Outputs(chronoOutputIdx).NextChronoSign; LastClockSentSysTime = obj.Outputs(chronoOutputIdx).LastClockSentSysTime; CurrSysTimeTimelineOffset = obj.Outputs(chronoOutputIdx).CurrSysTimeTimelineOffset; end - acqLiveOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputAcqLive'),1); + acqLiveOutputIdx = find(strcmp(outputClasses, 'hw.TLOutputAcqLive'),1); if ~isempty(acqLiveOutputIdx) - acqLiveChan = obj.Outputs(acqLiveOutputIdx).daqChannelID; + acqLiveChan = obj.Outputs(acqLiveOutputIdx).DaqChannelID; end - clockOutputIdx = find(strcmp(outputClasses, 'hw.tlOutputClock'),1); + clockOutputIdx = find(strcmp(outputClasses, 'hw.TLOutputClock'),1); if ~isempty(clockOutputIdx) useClock = true; - clockF = obj.Outputs(clockOutputIdx).frequency; - clockD = obj.Outputs(clockOutputIdx).dutyCycle; + clockF = obj.Outputs(clockOutputIdx).Frequency; + clockD = obj.Outputs(clockOutputIdx).DutyCycle; end % legacy metadata @@ -422,7 +431,7 @@ function stop(obj) warning('off', 'MATLAB:structOnObject'); % sorry, don't care for outIdx = 1:numel(obj.Outputs) s = struct(obj.Outputs(outIdx)); - s.class = class(obj.Outputs(outIdx)); + s.Class = class(obj.Outputs(outIdx)); obj.Data.hw.Outputs{outIdx} = s; end warning('on', 'MATLAB:structOnObject'); @@ -588,10 +597,10 @@ function livePlot(obj, data) % TL.LIVEPLOT(source, event) plots the data aquired by the % DAQ while the PlotLive property is true. if isempty(obj.Axes) - f = figure(); % create a figure for plotting aquired data + f = figure('Units', 'Normalized', 'Position', [0 0 1 1]); % create a figure for plotting aquired data obj.Axes = gca; % store a handle to the axes - if isfield(obj.LivePlotParams, 'figPosition') && ~isempty(obj.LivePlotParams.figPosition) - set(f, 'Position', obj.LivePlotParams.figPosition); % set the figure position + if isprop(obj, 'FigurePosition') && ~isempty(obj.FigurePosition) + set(f, 'Position', obj.FigurePosition); % set the figure position end end From 789ed31267e5e81747d535e219596e5c073f6570 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Feb 2018 13:50:43 +0000 Subject: [PATCH 059/515] Deletes ClockChan on stop --- +hw/TLOutputClock.m | 1 + 1 file changed, 1 insertion(+) diff --git a/+hw/TLOutputClock.m b/+hw/TLOutputClock.m index b258ae9e..624bb764 100644 --- a/+hw/TLOutputClock.m +++ b/+hw/TLOutputClock.m @@ -109,6 +109,7 @@ function stop(obj,~) stop(obj.Session); release(obj.Session); obj.Session = []; + obj.ClockChan = []; end end From 6b007d6e0b37607ac70c7e57d65ba44bf7c72c20 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Feb 2018 14:07:42 +0000 Subject: [PATCH 060/515] Change to axes scaling --- +hw/Timeline.m | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 6b208f78..a4942e07 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -76,7 +76,7 @@ 'daqChannelID', 'ai0',... 'measurement', 'Voltage',... 'terminalConfig', 'SingleEnded',... - 'figureScale', 1) + 'axesScale', 1) % multiplicative vertical scaling for when live plotting the input UseInputs = {'chrono'} % array of inputs to record while tl is running StopDelay = 2 % currently pauses for at least 2 secs as 'hack' before stopping main DAQ session MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) @@ -259,7 +259,8 @@ function record(obj, name, event, t) secs = secs - obj.Outputs(idx).CurrSysTimeTimelineOffset; end - function addInput(obj, name, channelID, measurement, terminalConfig, use) + function addInput(obj, name, channelID, measurement,... + terminalConfig, axesScale, use) % Add a new input to the object's Input property % ADDINPUT(name, channelID, measurement, terminalConfig, use) % adds a new input 'name' to the Inputs list. If use is @@ -269,8 +270,11 @@ function addInput(obj, name, channelID, measurement, terminalConfig, use) % DAQ default for that port if nargin < 5; terminalConfig = []; end + % if use is not specified, assume user wants normal scaling + if nargin < 6; axesScale = 1; end + % if use is not specified, assume user wants to record input - if nargin < 6; use = true; end + if nargin < 7; use = true; end assert(~any(strcmp(name, {obj.Inputs.name})),... 'An input by the name of ''%s'' has already been added.', name); @@ -297,7 +301,8 @@ function addInput(obj, name, channelID, measurement, terminalConfig, use) 'arrayColumn', -1,... % -1 is default indicating unused 'daqChannelID', channelID,... 'measurement', measurement,... - 'terminalConfig', terminalConfig); + 'terminalConfig', terminalConfig,... + 'axesScale', axesScale); obj.Inputs = [obj.Inputs s]; % add the new input if use; obj.UseInputs = [obj.UseInputs {name}]; end % add to UseInputs @@ -616,10 +621,7 @@ function livePlot(obj, data) % (multiplicative) and can be set manually in the config. A % nicer future version would put a scroll wheel callback on the % figure and scale by scrolling the one that's hovered over - scales = ones(1, nChans); - if isfield(obj.LivePlotParams, 'figScales') && ~isempty(obj.LivePlotParams.figScales) - scales(1:numel(obj.LivePlotParams.figScales)) = obj.LivePlotParams.figScales; - end + scales = pick([obj.Inputs.axesScale], cellfun(@(x)find(strcmp({obj.Inputs.name}, x),1), obj.UseInputs)); traces = get(obj.Axes, 'Children'); if isempty(traces) From af54939731d905dbc2efd3e2f87defbc8cb292a8 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Feb 2018 14:26:40 +0000 Subject: [PATCH 061/515] Better output defaults --- +hw/Timeline.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index a4942e07..a1b7cedd 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -70,7 +70,7 @@ DaqIds = 'Dev1' % Device ID can be found with daq.getDevices() DaqSampleRate = 1000 % rate at which daq aquires data in Hz, see Rate DaqSamplesPerNotify % determines the number of data samples to be processed each time, see Timeline.process(), constructor and NotifyWhenDataAvailableExceeds - Outputs % array of output classes, defining any signals you desire to be sent from the daq. See Also HW.TLOUTPUT, HW.TLOUTPUTCLOCK + Outputs = hw.TLOutputChrono % array of output classes, defining any signals you desire to be sent from the daq. See Also HW.TLOUTPUT, HW.TLOUTPUTCLOCK Inputs = struct('name', 'chrono',... 'arrayColumn', -1,... % -1 is default indicating unused, this is update when the channels are added during tl.start() 'daqChannelID', 'ai0',... @@ -123,7 +123,6 @@ outputs = catStructs(hw.Outputs); obj.Outputs = objfun(@(o)eval([o.Class '(o)']), outputs, 'Uni', false); obj.Outputs = [obj.Outputs{:}]; - else end end From da45bd4195cf9b6f343577e1d89c201ae6a2a82f Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Feb 2018 17:07:24 +0000 Subject: [PATCH 062/515] Stopping outputs now happens after stop delay! --- +hw/Timeline.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index a1b7cedd..5b0a2de3 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -367,11 +367,10 @@ function stop(obj) warning('Nothing to do, Timeline is not running!') return end - - % kill acquisition output signals - arrayfun(@stop, obj.Outputs) - pause(obj.StopDelay) + + % stop acquisition output signals + arrayfun(@stop, obj.Outputs) % stop actual DAQ aquisition stop(obj.Sessions('main')); From 393c3468c631f27db0f52947d3b4fb70748a5dcd Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Feb 2018 17:39:16 +0000 Subject: [PATCH 063/515] Updated the CW defaults to be more reasonable --- cortexlab/+exp/choiceWorldParams.m | 33 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/cortexlab/+exp/choiceWorldParams.m b/cortexlab/+exp/choiceWorldParams.m index 377678fc..cbd07930 100644 --- a/cortexlab/+exp/choiceWorldParams.m +++ b/cortexlab/+exp/choiceWorldParams.m @@ -25,17 +25,17 @@ '''Reward'' volume delivered after stimulus onset'); % trial temporal structure -setValue('onsetVisStimDelay', 0.1, 's',... +setValue('onsetVisStimDelay', 0, 's',... 'Duration between the start of the onset tone and visual stimulus presentation'); setValue('onsetToneDuration', 0.1, 's',... 'Duration of the onset tone'); setValue('onsetToneRampDuration', 0.01, 's',... 'Duration of the onset tone amplitude ramp (up and down each this length)'); -setValue('preStimQuiescentPeriod', [2; 3], 's',... +setValue('preStimQuiescentPeriod', [0.2; 0.6], 's',... 'Required period of no input before stimulus presentation'); -setValue('bgCueDelay', 0.3, 's',... +setValue('bgCueDelay', 0, 's',... 'Delay period between target column presentation and grating cue'); -setValue('cueInteractiveDelay', 1, 's',... +setValue('cueInteractiveDelay', 0, 's',... 'Delay period between grating cue presentation and interactive phase'); setValue('hideCueDelay', inf, 's',... 'Delay period between cue presentation onset to hide it'); @@ -47,7 +47,7 @@ 'Duration of negative feedback phase (with stimulus locked in response position)'); setValue('feedbackDeliveryDelay', 0, 's',... 'Delay period between response completion and feedback provided'); -setValue('negFeedbackSoundDuration', 2, 's',... +setValue('negFeedbackSoundDuration', 0.5, 's',... 'Duration of negative feedback noise burst'); setValue('interTrialDelay', 0, 's', 'Delay between trials'); setValue('waitOnEarlyResponse', false, 'logical',... @@ -58,7 +58,7 @@ % visual stimulus characteristics setValue('targetWidth', 35, '°',... 'Width of target columns (visual angle)'); -setValue('distBetweenTargets', 80, '°',... +setValue('distBetweenTargets', 180, '°',... 'Width between target column centres (visual angle)'); setValue('targetAltitude', 0, '°',... 'Visual angle of target centre above horizon'); @@ -66,31 +66,31 @@ 'Horizontal translation of targets to reach response threshold (visual angle)'); setValue('cueSpatialFrequency', 0.1, 'cyc/°',... 'Spatial frequency of grating cue at the initial location on the horizon'); -setValue('cueSigma', [5; 5], '°',... +setValue('cueSigma', [9; 9], '°',... 'Size (w,h) of the grating, in terms of Gabor ? parameter (visual angle)'); -setValue('targetOrientation', 90, '°',... +setValue('targetOrientation', 45, '°',... 'Orientation of gabor grating (cw from horizontal)'); setValue('bgColour', 0*255*ones(3, 1), 'rgb',... 'Colour of background area'); setValue('targetColour', 0.5*255*ones(3, 1), 'rgb',... 'Colour of target columns'); -setValue('visWheelGain', 3, '°/mm',... +setValue('visWheelGain', 3.5, '°/mm',... 'Visual stimulus translation per movement at wheel surface (for stimuli ahead)'); % audio setValue('onsetToneMaxAmp', 1, 'normalised',... 'Maximum amplitude of onset tone'); -setValue('onsetToneFreq', 12e3, 'Hz',... +setValue('onsetToneFreq', 11e3, 'Hz',... 'Frequency of the onset tone'); -setValue('negFeedbackSoundAmp', 0.025, 'normalised',... +setValue('negFeedbackSoundAmp', 0.01, 'normalised',... 'Amplitude of negative feedback noise burst'); % misc -setValue('quiescenceThreshold', 1, 'sensor units',... +setValue('quiescenceThreshold', 10, 'sensor units',... 'Input movement must be under this threshold to count as quiescent'); %% configure trial-specific parameters -contrast = [0.5 0.4 0.2 0.1 0.05 0]; % contrast list to use on one side or the other +contrast = [1 0.5 0.25 0.12 0.06 0]; % contrast list to use on one side or the other % compute contrast one each target - ones side has contrast, other has zero targetCon = [contrast, zeros(1, numel(contrast));... zeros(1, numel(contrast)), contrast]; @@ -100,12 +100,11 @@ -ones(1, numel(contrast)), ones(1, numel(contrast)); ... -ones(1, numel(contrast) - 1) 1 -ones(1, numel(contrast) - 1) 1]; % repeat all incorrect trials except zero contrast ones -repIncorrect = abs(diff(targetCon)) > 0; +repIncorrect = abs(diff(targetCon)) > 0.25; % by default only use only the 50% contrast condition -useConditions = abs(diff(targetCon)) == 0.5 | abs(diff(targetCon)) == 0.2... - | abs(diff(targetCon)) == 0.1; +useConditions = abs(diff(targetCon)) == 0.5 | abs(diff(targetCon)) == 1; % uniform repeats for at least 300 trials -nReps = ceil(300*useConditions./sum(useConditions)); +nReps = ceil(1000*useConditions./sum(useConditions)); setValue('visCueContrast', targetCon, 'normalised', 'Contrast of grating cue at each target'); setValue('feedbackForResponse', feedback, 'normalised', 'Feedback given for each target'); setValue('repeatIncorrectTrial', repIncorrect, 'logical',... From d6c5f2a38e23aa875ccadfc7fe6793a565a4bf73 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Feb 2018 17:59:57 +0000 Subject: [PATCH 064/515] Little change to doc --- +hw/Timeline.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 5b0a2de3..e03e212a 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -40,7 +40,7 @@ % %Set tl to be started by default % timeline.UseTimeline = true; % %To set up chrono a wire must bridge the terminals defined in -% timeline.Outputs.daqChannelID and timeline.Inputs.daqChannelID +% timeline.Outputs(1).DaqChannelID and timeline.Inputs(1).daqChannelID % timeline.wiringInfo('chrono'); % %Add the rotary encoder % timeline.addInput('rotaryEncoder', 'ctr0', 'Position'); From 2adcb1546775688e80d6b20eaa184da0394f080e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 2 Feb 2018 10:42:45 +0000 Subject: [PATCH 065/515] Added timer function for executing delayed outputs --- +hw/TLOutputAcqLive.m | 21 ++++++++++++++++++++- +hw/TLOutputClock.m | 21 +++++++++++++++++++-- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/+hw/TLOutputAcqLive.m b/+hw/TLOutputAcqLive.m index faf6a999..a08b2d4b 100644 --- a/+hw/TLOutputAcqLive.m +++ b/+hw/TLOutputAcqLive.m @@ -29,6 +29,10 @@ PulseDuration = Inf; % sec, time that the pulse is on at beginning and end end + properties (Transient, Access = private) + Timer + end + methods function obj = TLOutputAcqLive(hw) % TLOUTPUTCHRONO Constructor method @@ -69,6 +73,13 @@ function init(obj, ~) obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); warning('on', 'daq:Session:onDemandOnlyChannelsAdded'); outputSingleScan(obj.Session, false); % start in the off/false state + % If the initial delay is greater than zero, create a timer for + % starting the signal late + if obj.InitialDelay > 0 + obj.Timer = timer('StartDelay', obj.InitialDelay); + obj.Timer.TimerFcn = @(~,~)obj.start(); + obj.Timer.StopFcn = @(src,~)delete(src); + end end end @@ -79,8 +90,15 @@ function start(obj, ~) % % See Also HW.TIMELINE/START if obj.Enable + % If the initial delay is greater than 0 and the timer is empty, + % create and start the timer + if ~isempty(obj.Timer) && obj.InitialDelay > 0 ... + && strcmp(obj.Timer.Running, 'off') + start(obj.Timer); % wait for some duration before starting + return + end + if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end - pause(obj.InitialDelay); % wait for some duration before starting outputSingleScan(obj.Session, true); % set digital output true: acquisition is "live" if obj.PulseDuration ~= Inf pause(obj.PulseDuration); @@ -118,6 +136,7 @@ function stop(obj,~) stop(obj.Session); release(obj.Session); obj.Session = []; + obj.Timer = []; end end diff --git a/+hw/TLOutputClock.m b/+hw/TLOutputClock.m index 624bb764..487b8e0c 100644 --- a/+hw/TLOutputClock.m +++ b/+hw/TLOutputClock.m @@ -28,6 +28,7 @@ properties (Transient, Hidden, Access = protected) ClockChan % Holds an instance of the PulseGeneration channel + Timer end methods @@ -71,6 +72,14 @@ function init(obj, ~) clocked.DutyCycle = obj.DutyCycle; clocked.InitialDelay = obj.InitialDelay; obj.ClockChan = clocked; + + % If the initial delay is greater than zero, create a timer for + % starting the signal late + if obj.InitialDelay > 0 + obj.Timer = timer('StartDelay', obj.InitialDelay); + obj.Timer.TimerFcn = @(~,~)obj.start(); + obj.Timer.StopFcn = @(src,~)delete(src); + end end end @@ -81,8 +90,15 @@ function start(obj, ~) % % See Also HW.TIMELINE/START if obj.Enable - if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end - startBackground(obj.Session); + % If the initial delay is greater than 0 and the timer is empty, + % create and start the timer + if ~isempty(obj.Timer) && obj.InitialDelay > 0 ... + && strcmp(obj.Timer.Running, 'off') + start(obj.Timer); % wait for some duration before starting + return + end + if obj.Verbose; fprintf(1, 'start %s\n', obj.Name); end + startBackground(obj.Session); end end @@ -110,6 +126,7 @@ function stop(obj,~) release(obj.Session); obj.Session = []; obj.ClockChan = []; + obj.Timer = []; end end From 5689c4b3ce8f6220cf0922f5db34cbf601f673b5 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 2 Feb 2018 19:19:21 +0000 Subject: [PATCH 066/515] Some minor changes dar.newExp now doesn't try to create any sessions when not logged in --- +dat/newExp.m | 131 +++++++++++++++++++++--------------------- +hw/TLOutputAcqLive.m | 4 +- +hw/TLOutputClock.m | 6 +- 3 files changed, 70 insertions(+), 71 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index 6e2c0720..6a86e07f 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -1,9 +1,9 @@ function [expRef, expSeq, url] = newExp(subject, expDate, expParams, AlyxInstance) %DAT.NEWEXP Create a new unique experiment in the database -% [ref, seq, url] = DAT.NEWEXP(subject, expDate, expParams[, AlyxInstance]) +% [ref, seq, url] = DAT.NEWEXP(subject, expDate, expParams[, AlyxInstance]) % Create a new experiment by creating the relevant folder tree in the % local and main data repositories in the following format: -% +% % subject/ % |_ YYYY-MM-DD/ % |_ expSeq/ @@ -66,14 +66,14 @@ % now make the folder(s) to hold the new experiment assert(all(cellfun(@(p) mkdir(p), expPath)), 'Creating experiment directories failed'); -if ~strcmp(subject,'default') % Ignore fake subject +if ~strcmp(subject, 'default') % Ignore fake subject % if the Alyx Instance is set, find or create BASE session expDate = alyx.datestr(expDate); % date in Alyx format if ~isempty(AlyxInstance) % Get list of base sessions sessions = alyx.getData(AlyxInstance,... - ['sessions?type=Base&subject=' subject]); - + ['sessions?type=Base&subject=' subject]); + %If the date of this latest base session is not the same date as %today, then create a new base session for today if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), expDate(1:10)) @@ -83,75 +83,74 @@ d.narrative = 'auto-generated session'; d.start_time = expDate; d.type = 'Base'; -% d.users = {AlyxInstance.username}; - + % d.users = {AlyxInstance.username}; + base_submit = alyx.postData(AlyxInstance, 'sessions', d); assert(isfield(base_submit,'subject'),... - 'Submitted base session did not return appropriate values'); - + 'Submitted base session did not return appropriate values'); + %Now retrieve the sessions again sessions = alyx.getData(AlyxInstance,... - ['sessions?type=Base&subject=' subject]); + ['sessions?type=Base&subject=' subject]); end latest_base = sessions{end}; - else % If not logged in to Alyx... - latest_base.url = []; % set the base url to null - end - %Now create a new SUBSESSION, using the same experiment number - d = struct; - d.subject = subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = expDate; - d.type = 'Experiment'; - d.parent_session = latest_base.url; - d.number = expSeq; -% d.users = {AlyxInstance.username}; + %Now create a new SUBSESSION, using the same experiment number + d = struct; + d.subject = subject; + d.procedures = {'Behavior training/tasks'}; + d.narrative = 'auto-generated session'; + d.start_time = expDate; + d.type = 'Experiment'; + d.parent_session = latest_base.url; + d.number = expSeq; + % d.users = {AlyxInstance.username}; - subsession = alyx.postData(AlyxInstance, 'sessions', d); - assert(isfield(subsession,'subject'),... - 'Failed to create new sub-session in Alyx for %s', subject); - url = subsession.url; -else - url = []; -end - -% if the parameters had an experiment definition function, save a copy in -% the experiment's folder -if isfield(expParams, 'defFunction') - assert(file.exists(expParams.defFunction),... - 'Experiment definition function does not exist: %s', expParams.defFunction); - assert(all(cellfun(@(p)copyfile(expParams.defFunction, p),... - dat.expFilePath(expRef, 'expDefFun'))),... - 'Copying definition function to experiment folders failed'); -end - -% now save the experiment parameters variable -superSave(dat.expFilePath(expRef, 'parameters'), struct('parameters', expParams)); - -try % save a copy of parameters in json - % First, change all functions to strings - f_idx = structfun(@(s)isa(s, 'function_handle'), expParams); - fields = fieldnames(expParams); - paramCell = struct2cell(expParams); - paramCell(f_idx) = cellfun(@func2str, paramCell(f_idx),'UniformOutput', false); - expParams = cell2struct(paramCell, fields); - % Generate JSON path and save - jsonPath = fullfile(fileparts(dat.expFilePath(expRef, 'parameters', 'master')),... - [expRef, '_parameters.json']); - savejson('parameters', expParams, jsonPath); - % Register our JSON parameter set to Alyx - if ~strcmp(subject,'default') - alyx.registerFile(jsonPath, 'json', url, 'Parameters', [], AlyxInstance); + try + subsession = alyx.postData(AlyxInstance, 'sessions', d); + url = subsession.url; + catch + url = []; + end + else % If not logged in to Alyx... + url = []; % set the base url to null end -catch ex - warning(ex.identifier, 'Failed to save paramters as JSON: %s.\n Registering mat file instead', ex.message) - % Register our parameter set to Alyx - if ~strcmp(subject,'default') - alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... - url, 'Parameters', [], AlyxInstance); + + % if the parameters had an experiment definition function, save a copy in + % the experiment's folder + if isfield(expParams, 'defFunction') + assert(file.exists(expParams.defFunction),... + 'Experiment definition function does not exist: %s', expParams.defFunction); + assert(all(cellfun(@(p)copyfile(expParams.defFunction, p),... + dat.expFilePath(expRef, 'expDefFun'))),... + 'Copying definition function to experiment folders failed'); end -end - + + % now save the experiment parameters variable + superSave(dat.expFilePath(expRef, 'parameters'), struct('parameters', expParams)); + + try % save a copy of parameters in json + % First, change all functions to strings + f_idx = structfun(@(s)isa(s, 'function_handle'), expParams); + fields = fieldnames(expParams); + paramCell = struct2cell(expParams); + paramCell(f_idx) = cellfun(@func2str, paramCell(f_idx),'UniformOutput', false); + expParams = cell2struct(paramCell, fields); + % Generate JSON path and save + jsonPath = fullfile(fileparts(dat.expFilePath(expRef, 'parameters', 'master')),... + [expRef, '_parameters.json']); + savejson('parameters', expParams, jsonPath); + % Register our JSON parameter set to Alyx + if ~strcmp(subject,'default') + alyx.registerFile(jsonPath, 'json', url, 'Parameters', [], AlyxInstance); + end + catch ex + warning(ex.identifier, 'Failed to save paramters as JSON: %s.\n Registering mat file instead', ex.message) + % Register our parameter set to Alyx + if ~strcmp(subject,'default') + alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... + url, 'Parameters', [], AlyxInstance); + end + end + end \ No newline at end of file diff --git a/+hw/TLOutputAcqLive.m b/+hw/TLOutputAcqLive.m index a08b2d4b..6d2cd20e 100644 --- a/+hw/TLOutputAcqLive.m +++ b/+hw/TLOutputAcqLive.m @@ -25,8 +25,8 @@ DaqDeviceID % The name of the DAQ device ID, e.g. 'Dev1', see DAQ.GETDEVICES DaqChannelID % The name of the DAQ channel ID, e.g. 'port1/line0', see DAQ.GETDEVICES DaqVendor = 'ni' % Name of the DAQ vendor - InitialDelay = 0 % sec, time to wait before starting - PulseDuration = Inf; % sec, time that the pulse is on at beginning and end + InitialDelay double {mustBeNonnegative} = 0 % sec, time to wait before starting + PulseDuration {mustBeNonnegative} = Inf; % sec, time that the pulse is on at beginning and end end properties (Transient, Access = private) diff --git a/+hw/TLOutputClock.m b/+hw/TLOutputClock.m index 487b8e0c..74830732 100644 --- a/+hw/TLOutputClock.m +++ b/+hw/TLOutputClock.m @@ -21,9 +21,9 @@ DaqDeviceID % The name of the DAQ device ID, e.g. 'Dev1', see DAQ.GETDEVICES DaqChannelID % The name of the DAQ channel ID, e.g. 'ctr0', see DAQ.GETDEVICES DaqVendor = 'ni' % Name of the DAQ vendor - InitialDelay = 0 % delay from session start to clock output - Frequency = 60; % Hz, of the clocking pulse - DutyCycle = 0.2; % proportion of each cycle that the pulse is "true" + InitialDelay double {mustBeNonnegative} = 0 % delay from session start to clock output + Frequency double = 60; % Hz, of the clocking pulse + DutyCycle double = 0.2; % proportion of each cycle that the pulse is "true" end properties (Transient, Hidden, Access = protected) From e0a45abdd9c54026306ade2286b11fa79ff8184a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 2 Feb 2018 23:27:48 +0000 Subject: [PATCH 067/515] MC and expServer Alyx object compatibility --- +dat/addLogEntry.m | 1 + +dat/updateLogEntry.m | 6 +- +eui/AlyxPanel.m | 1183 +++++++++++++++--------------- +eui/ExpPanel.m | 15 +- +eui/MControl.m | 23 +- +exp/Experiment.m | 18 +- +exp/SignalsExp.m | 100 ++- +exp/StartServices.m | 11 +- +hw/Timeline.m | 8 +- +srv/StimulusControl.m | 6 +- +srv/expServer.m | 4 +- cortexlab/+io/MpepUDPDataHosts.m | 69 +- 12 files changed, 746 insertions(+), 698 deletions(-) diff --git a/+dat/addLogEntry.m b/+dat/addLogEntry.m index fcbeb676..7ef7a240 100644 --- a/+dat/addLogEntry.m +++ b/+dat/addLogEntry.m @@ -26,6 +26,7 @@ %% create and store entry e = entry(nextidx); log(nextidx) = e; +% Store an instance of Alyx for narrative registration if nargin > 5; e.AlyxInstance = AlyxInstance; end %% store updated log to *all* repos locations diff --git a/+dat/updateLogEntry.m b/+dat/updateLogEntry.m index fefad909..bf3e94ee 100644 --- a/+dat/updateLogEntry.m +++ b/+dat/updateLogEntry.m @@ -11,10 +11,8 @@ function updateLogEntry(subject, id, newEntry) % 2013-03 CB created if isfield(newEntry, 'AlyxInstance')&&~isempty(newEntry.comments) - data = struct('subject', dat.parseExpRef(newEntry.value.ref),... - 'narrative', strrep(mat2DStrTo1D(newEntry.comments),newline,'\n')); - alyx.putData(newEntry.AlyxInstance,... - newEntry.AlyxInstance.subsessionURL, data); + % Update session narrative on Alyx + newEntry.AlyxInstance.updateNarrative(subject, obj.LogEntry.comments); newEntry = rmfield(newEntry, 'AlyxInstance'); end diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 6b9704b5..86349026 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -1,626 +1,605 @@ classdef AlyxPanel < handle - % EUI.ALYXPANEL A GUI for interating with the Alyx database - % This class is emplyed by mc (but may also be used stand-alone) to - % post weights and water administations to the Alyx database. - % - % eui.AlyxPanel() opens a stand-alone GUI. eui.AlyxPanel(parent) - % constructs the panel inside a parent object. - % - % Use the login button to retrieve a token from the database. - % Use the subject drop-down to select the subject. - % Subject weights can be entered using the 'Manual weighing' button. - % Previous weighings and water infomation can be viewed by pressing - % the 'Subject history' button. - % Water administrations can be recorded by entering a value in ml - % into the text box. Pressing return does not post the water, but - % updates the text to the right of the box, showing the amount of - % water remaining (i.e. the amount below the subject's calculated - % minimum requirement for that day. The check box to the right of - % the text box is to indicate whether the water was liquid - % (unchecked) or gel (checked). To post the water to Alyx, press the - % 'Give water' button. - % To post gel for future date (for example weekend hydrogel), Click - % the 'Give gel in future' button and enter in all the values - % starting at tomorrow then the day after, etc. - % The 'All WR subjects' button shows the amount of water remaining - % today for all mice that are currently on water restriction. - % - % The 'default' subject is for testing and is usually ignored. - % - % See also ALYX, EUI.MCONTROL - % - % 2017-03 NS created - % 2017-10 MW made into class - properties (SetAccess = private) - AlyxInstance = []; % A struct containing the database URL, a token and the username of the who is logged in - QueuedWeights = {}; % Holds weighings until someone logs in, to be posted - SubjectList % List of active subjects from database - Subject = 'default' % The name of the currently selected subject - end - - properties (Access = private) - LoggingDisplay % Control for showing log output - RootContainer % Handle of the uix.Panel object named 'Alyx' - NewExpSubject % Drop-down menu subject list - LoginText % Text displaying whether/which user is logged in - LoginButton % Button to log in to Alyx - WaterEntry % Text box for entering the amout of water to give - IsHydrogel % UI checkbox indicating whether to water to be given is in gel form - WaterRequiredText % Handle to text UI element displaying the water required - WaterRemainingText % Handle to text UI element displaying the water remaining - LoginTimer % Timer to keep track of how long the user has been logged in, when this expires the user is automatically logged out - WaterRemaining % Holds the current water required for the selected subject + % EUI.ALYXPANEL A GUI for interating with the Alyx database + % This class is emplyed by mc (but may also be used stand-alone) to + % post weights and water administations to the Alyx database. + % + % eui.AlyxPanel() opens a stand-alone GUI. eui.AlyxPanel(parent) + % constructs the panel inside a parent object. + % + % Use the login button to retrieve a token from the database. + % Use the subject drop-down to select the subject. + % Subject weights can be entered using the 'Manual weighing' button. + % Previous weighings and water infomation can be viewed by pressing + % the 'Subject history' button. + % Water administrations can be recorded by entering a value in ml + % into the text box. Pressing return does not post the water, but + % updates the text to the right of the box, showing the amount of + % water remaining (i.e. the amount below the subject's calculated + % minimum requirement for that day. The check box to the right of + % the text box is to indicate whether the water was liquid + % (unchecked) or gel (checked). To post the water to Alyx, press the + % 'Give water' button. + % To post gel for future date (for example weekend hydrogel), Click + % the 'Give gel in future' button and enter in all the values + % starting at tomorrow then the day after, etc. + % The 'All WR subjects' button shows the amount of water remaining + % today for all mice that are currently on water restriction. + % + % The 'default' subject is for testing and is usually ignored. + % + % See also ALYX, EUI.MCONTROL + % + % 2017-03 NS created + % 2017-10 MW made into class + properties (SetAccess = private) + AlyxInstance = Alyx; % An Alyx object to interfacing with the database + SubjectList % List of active subjects from database + Subject = 'default' % The name of the currently selected subject + end + + properties (Access = private) + LoggingDisplay % Control for showing log output + RootContainer % Handle of the uix.Panel object named 'Alyx' + NewExpSubject % Drop-down menu subject list + LoginText % Text displaying whether/which user is logged in + LoginButton % Button to log in to Alyx + WaterEntry % Text box for entering the amout of water to give + IsHydrogel % UI checkbox indicating whether to water to be given is in gel form + WaterRequiredText % Handle to text UI element displaying the water required + WaterRemainingText % Handle to text UI element displaying the water remaining + LoginTimer % Timer to keep track of how long the user has been logged in, when this expires the user is automatically logged out + WaterRemaining % Holds the current water required for the selected subject + end + + events (NotifyAccess = 'protected') + Connected % Notified when logged in to database + Disconnected % Notified when logged out of database + end + + methods + function obj = AlyxPanel(parent) + % Constructor to build all the UI elements and set callbacks to + % the relevant functions. If a handle to parant UI object is + % not specified, a seperate figure is created. An optional + % handle to a logging display panal may be provided, otherwise + % one is created. + + if ~nargin % No parant object: create new figure + f = figure('Name', 'alyx GUI',... + 'MenuBar', 'none',... + 'Toolbar', 'none',... + 'NumberTitle', 'off',... + 'Units', 'normalized',... + 'OuterPosition', [0.1 0.1 0.4 .4]); + parent = uiextras.VBox('Parent', f,... + 'Visible', 'on'); + % subject selector + sbox = uix.HBox('Parent', parent); + bui.label('Select subject: ', sbox); + obj.NewExpSubject = bui.Selector(sbox, {'default'}); % Subject dropdown box + % set a callback on subject selection so that we can show water + % requirements for new mice as they are selected. This should + % be set by any other GUI that instantiates this object (e.g. + % MControl using this as a panel. + obj.NewExpSubject.addlistener('SelectionChanged', @(src, evt)obj.dispWaterReq(src, evt)); + end + + obj.RootContainer = uix.Panel('Parent', parent, 'Title', 'Alyx'); + alyxbox = uiextras.VBox('Parent', obj.RootContainer); + + loginbox = uix.HBox('Parent', alyxbox); + % Login infomation + obj.LoginText = bui.label('Not logged in', loginbox); + % Button to log in and out of Alyx + obj.LoginButton = uicontrol('Parent', loginbox,... + 'Style', 'pushbutton', ... + 'String', 'Login', ... + 'Enable', 'on',... + 'Callback', @(~,~)obj.login); + loginbox.Widths = [-1 75]; + + waterReqbox = uix.HBox('Parent', alyxbox); + obj.WaterRequiredText = bui.label('Log in to see water requirements', waterReqbox); % water required text + % Button to refresh all data retrieved from Alyx + uicontrol('Parent', waterReqbox,... + 'Style', 'pushbutton', ... + 'String', 'Refresh', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.dispWaterReq); + waterReqbox.Widths = [-1 75]; + + waterbox = uix.HBox('Parent', alyxbox); + % Button to launch a dialog displaying water and weight info for a given mouse + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'Subject history', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.viewSubjectHistory); + % Button to launch a dialog displaying water and weight info for all mice + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'All WR subjects', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.viewAllSubjects); + % Button to open a dialog for manually submitting a mouse weight + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'Manual weighing', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.recordWeight); + % Button to launch dialog for submitting gel administrations + % for future dates + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'Give gel in future', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.giveFutureGel); + % Check box to indicate whether water was gel or liquid + obj.IsHydrogel = uicontrol('Parent', waterbox,... + 'Style', 'checkbox', ... + 'String', 'Hydrogel?', ... + 'HorizontalAlignment', 'right',... + 'Value', true, ... + 'Enable', 'off'); + % Input for submitting amount of water + obj.WaterEntry = uicontrol('Parent', waterbox,... + 'Style', 'edit',... + 'BackgroundColor', [1 1 1],... + 'HorizontalAlignment', 'right',... + 'Enable', 'off',... + 'String', '0.00', ... + 'Callback', @(src, evt)obj.changeWaterText(src, evt)); + % Button for submitting water administration + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'Give water', ... + 'Enable', 'off',... + 'Callback', @(~,~)giveWater(obj)); + % Label Indicating the amount of water remaining + obj.WaterRemainingText = bui.label('[]', waterbox); + waterbox.Widths = [100 100 100 100 75 75 75 75]; + + launchbox = uix.HBox('Parent', alyxbox); + % Button for launching subject page in browser + uicontrol('Parent', launchbox,... + 'Style', 'pushbutton', ... + 'String', 'Launch webpage for Subject', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.launchSubjectURL); + % Button for launching (and creating) a session for a given subject in the browser + uicontrol('Parent', launchbox,... + 'Style', 'pushbutton', ... + 'String', 'Launch webpage for Session', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.launchSessionURL); + + if ~nargin + % logging message area + obj.LoggingDisplay = uicontrol('Parent', parent, 'Style', 'listbox',... + 'Enable', 'inactive', 'String', {}); + parent.Sizes = [50 150 150]; + else + % Use parent's logging display + obj.LoggingDisplay = findobj('Tag', 'Logging Display'); + end end - events (NotifyAccess = 'protected') - Connected % Notified when logged in to database - Disconnected % Notified when logged out of database + function delete(obj) + % To be called before destroying AlyxPanel object. Deletes the + % loggin timer + disp('AlyxPanel destructor called'); + if obj.RootContainer.isvalid; delete(obj.RootContainer); end + if ~isempty(obj.LoginTimer) % If there is a timer object + stop(obj.LoginTimer) % Stop the timer... + delete(obj.LoginTimer) % ... delete it... + obj.LoginTimer = []; % ... and remove it + end end - methods - function obj = AlyxPanel(parent) - % Constructor to build all the UI elements and set callbacks to - % the relevant functions. If a handle to parant UI object is - % not specified, a seperate figure is created. An optional - % handle to a logging display panal may be provided, otherwise - % one is created. - - if ~nargin % No parant object: create new figure - f = figure('Name', 'alyx GUI',... - 'MenuBar', 'none',... - 'Toolbar', 'none',... - 'NumberTitle', 'off',... - 'Units', 'normalized',... - 'OuterPosition', [0.1 0.1 0.4 .4]); - parent = uiextras.VBox('Parent', f,... - 'Visible', 'on'); - % subject selector - sbox = uix.HBox('Parent', parent); - bui.label('Select subject: ', sbox); - obj.NewExpSubject = bui.Selector(sbox, {'default'}); % Subject dropdown box - % set a callback on subject selection so that we can show water - % requirements for new mice as they are selected. This should - % be set by any other GUI that instantiates this object (e.g. - % MControl using this as a panel. - obj.NewExpSubject.addlistener('SelectionChanged', @(src, evt)obj.dispWaterReq(src, evt)); - end - - obj.RootContainer = uix.Panel('Parent', parent, 'Title', 'Alyx'); - alyxbox = uiextras.VBox('Parent', obj.RootContainer); - - loginbox = uix.HBox('Parent', alyxbox); - % Login infomation - obj.LoginText = bui.label('Not logged in', loginbox); - % Button to log in and out of Alyx - obj.LoginButton = uicontrol('Parent', loginbox,... - 'Style', 'pushbutton', ... - 'String', 'Login', ... - 'Enable', 'on',... - 'Callback', @(~,~)obj.login); - loginbox.Widths = [-1 75]; - - waterReqbox = uix.HBox('Parent', alyxbox); - obj.WaterRequiredText = bui.label('Log in to see water requirements', waterReqbox); % water required text - % Button to refresh all data retrieved from Alyx - uicontrol('Parent', waterReqbox,... - 'Style', 'pushbutton', ... - 'String', 'Refresh', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.dispWaterReq); - waterReqbox.Widths = [-1 75]; - - waterbox = uix.HBox('Parent', alyxbox); - % Button to launch a dialog displaying water and weight info for a given mouse - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'Subject history', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.viewSubjectHistory); - % Button to launch a dialog displaying water and weight info for all mice - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'All WR subjects', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.viewAllSubjects); - % Button to open a dialog for manually submitting a mouse weight - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'Manual weighing', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.recordWeight); - % Button to launch dialog for submitting gel administrations - % for future dates - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'Give gel in future', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.giveFutureGel); - % Check box to indicate whether water was gel or liquid - obj.IsHydrogel = uicontrol('Parent', waterbox,... - 'Style', 'checkbox', ... - 'String', 'Hydrogel?', ... - 'HorizontalAlignment', 'right',... - 'Value', true, ... - 'Enable', 'off'); - % Input for submitting amount of water - obj.WaterEntry = uicontrol('Parent', waterbox,... - 'Style', 'edit',... - 'BackgroundColor', [1 1 1],... - 'HorizontalAlignment', 'right',... - 'Enable', 'off',... - 'String', '0.00', ... - 'Callback', @(src, evt)obj.changeWaterText(src, evt)); - % Button for submitting water administration - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'Give water', ... - 'Enable', 'off',... - 'Callback', @(~,~)giveWater(obj)); - % Label Indicating the amount of water remaining - obj.WaterRemainingText = bui.label('[]', waterbox); - waterbox.Widths = [100 100 100 100 75 75 75 75]; - - launchbox = uix.HBox('Parent', alyxbox); - % Button for launching subject page in browser - uicontrol('Parent', launchbox,... - 'Style', 'pushbutton', ... - 'String', 'Launch webpage for Subject', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.launchSubjectURL); - % Button for launching (and creating) a session for a given subject in the browser - uicontrol('Parent', launchbox,... - 'Style', 'pushbutton', ... - 'String', 'Launch webpage for Session', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.launchSessionURL); - - if ~nargin - % logging message area - obj.LoggingDisplay = uicontrol('Parent', parent, 'Style', 'listbox',... - 'Enable', 'inactive', 'String', {}); - parent.Sizes = [50 150 150]; - else - % Use parent's logging display - obj.LoggingDisplay = findobj('Tag', 'Logging Display'); + function login(obj) + % Used both to log in and out of Alyx. Logging means to + % generate an Alyx token with which to send/request data. + % Logging out does not cause the token to expire, instead the + % token is simply deleted from this object. + + % Are we logging in or out? + if ~obj.AlyxInstance.IsLoggedIn % logging in + % attempt login + obj.AlyxInstance.login(); % returns an instance if success, empty if you cancel + if obj.AlyxInstance.IsLoggedIn % successful + % Start log in timer, to automatically log out after 30 + % minutes of 'inactivity' (defined as not calling + % dispWaterReq) + obj.LoginTimer = timer('StartDelay', 30*60, 'TimerFcn', @(~,~)obj.login); + start(obj.LoginTimer) + % Enable all buttons + set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); + set(obj.LoginText, 'String', ['You are logged in as ', obj.AlyxInstance.User]); % display which user is logged in + set(obj.LoginButton, 'String', 'Logout'); + + % try updating the subject selectors in other panels + s = obj.AlyxInstance.getData('subjects?stock=False&alive=True'); + + respUser = cellfun(@(x)x.responsible_user, s, 'uni', false); + subjNames = cellfun(@(x)x.nickname, s, 'uni', false); + + thisUserSubs = sort(subjNames(strcmp(respUser, obj.AlyxInstance.User))); + otherUserSubs = sort(subjNames); + % note that we leave this User's mice also in + % otherUserSubs, in case they get confused and look + % there. + + newSubs = [{'default'}, thisUserSubs, otherUserSubs]; + obj.NewExpSubject.Option = newSubs; + obj.SubjectList = newSubs; + + notify(obj, 'Connected'); % Notify listeners of login + obj.log('Logged into Alyx successfully as %s', obj.AlyxInstance.User); + + % any database subjects that weren't in the old list of + % subjects will need a folder in expInfo. + firstTimeSubs = newSubs(~ismember(newSubs, dat.listSubjects)); + for fts = 1:length(firstTimeSubs) + thisDir = fullfile(dat.reposPath('expInfo', 'master'), firstTimeSubs{fts}); + if ~exist(thisDir, 'dir') + fprintf(1, 'making expInfo directory for %s\n', firstTimeSubs{fts}); + mkdir(thisDir); end + end + else + obj.log('Did not log into Alyx'); end - - function delete(obj) - % To be called before destroying AlyxPanel object. Deletes the - % loggin timer - disp('AlyxPanel destructor called'); - if obj.RootContainer.isvalid; delete(obj.RootContainer); end - if ~isempty(obj.LoginTimer) % If there is a timer object - stop(obj.LoginTimer) % Stop the timer... - delete(obj.LoginTimer) % ... delete it... - obj.LoginTimer = []; % ... and remove it - end + else % logging out + obj.AlyxInstance.logout; + if ~isempty(obj.LoginTimer) % If there is a timer object + stop(obj.LoginTimer) % Stop the timer... + delete(obj.LoginTimer) % ... delete it... + obj.LoginTimer = []; % ... and remove it end - - function login(obj) - % Used both to log in and out of Alyx. Logging means to - % generate an Alyx token with which to send/request data. - % Logging out does not cause the token to expire, instead the - % token is simply deleted from this object. - - % Are we logging in or out? - if isempty(obj.AlyxInstance) % logging in - % attempt login - [ai, username] = alyx.loginWindow(); % returns an instance if success, empty if you cancel - if ~isempty(ai) % successful - obj.AlyxInstance = ai; - obj.AlyxInstance.username = username; - % Start log in timer, to automatically log out after 30 - % minutes of 'inactivity' (defined as not calling - % dispWaterReq) - obj.LoginTimer = timer('StartDelay', 30*60, 'TimerFcn', @(~,~)obj.login); - start(obj.LoginTimer) - % Enable all buttons - set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); - set(obj.LoginText, 'String', ['You are logged in as ', username]); % display which user is logged in - set(obj.LoginButton, 'String', 'Logout'); - - % try updating the subject selectors in other panels - s = alyx.getData(ai, 'subjects?stock=False&alive=True'); - - respUser = cellfun(@(x)x.responsible_user, s, 'uni', false); - subjNames = cellfun(@(x)x.nickname, s, 'uni', false); - - thisUserSubs = sort(subjNames(strcmp(respUser, username))); - otherUserSubs = sort(subjNames); - % note that we leave this User's mice also in - % otherUserSubs, in case they get confused and look - % there. - - newSubs = [{'default'}, thisUserSubs, otherUserSubs]; - obj.NewExpSubject.Option = newSubs; - obj.SubjectList = newSubs; - - notify(obj, 'Connected'); % Notify listeners of login - obj.log('Logged into Alyx successfully as %s', username); - - % any database subjects that weren't in the old list of - % subjects will need a folder in expInfo. - firstTimeSubs = newSubs(~ismember(newSubs, dat.listSubjects)); - for fts = 1:length(firstTimeSubs) - thisDir = fullfile(dat.reposPath('expInfo', 'master'), firstTimeSubs{fts}); - if ~exist(thisDir, 'dir') - fprintf(1, 'making expInfo directory for %s\n', firstTimeSubs{fts}); - mkdir(thisDir); - end - end - - % post any un-posted weighings - if ~isempty(obj.QueuedWeights) - try - for w = 1:length(obj.QueuedWeights) - d = obj.QueuedWeights{w}; - wobj = alyx.postData(obj.AlyxInstance, 'weighings/', d); - obj.log('Alyx weight posting succeeded: %.2f for %s', wobj.weight, wobj.subject); - end - obj.QueuedWeights = {}; - catch - obj.log('Failed to post stored weighings') - end - end - else - obj.log('Did not log into Alyx'); - end - else % logging out - obj.AlyxInstance = []; - obj.SubjectList = []; - if ~isempty(obj.LoginTimer) % If there is a timer object - stop(obj.LoginTimer) % Stop the timer... - delete(obj.LoginTimer) % ... delete it... - obj.LoginTimer = []; % ... and remove it - end - set(obj.LoginText, 'String', 'Not logged in') - % Disable all buttons - set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'off') - set(obj.LoginButton, 'Enable', 'on', 'String', 'Login') % ... except the login button - notify(obj, 'Disconnected'); % Notify listeners of logout - obj.log('Logged out of Alyx'); - end + set(obj.LoginText, 'String', 'Not logged in') + % Disable all buttons + set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'off') + set(obj.LoginButton, 'Enable', 'on', 'String', 'Login') % ... except the login button + notify(obj, 'Disconnected'); % Notify listeners of logout + obj.log('Logged out of Alyx'); + end + end + + function giveWater(obj) + % Callback to the give water button. Posts the value entered + % in the text box as either liquid or gel depending on the + % state of the 'is hydrogel' check box + thisDate = now; + amount = str2double(get(obj.WaterEntry, 'String')); + isHydrogel = logical(get(obj.IsHydrogel, 'Value')); + if obj.AlyxInstance.IsLoggedIn && amount~=0 && ~isnan(amount) + wa = obj.AlyxInstance.postWater(obj.Subject, amount, thisDate, isHydrogel); + if ~isempty(wa) % returned us a created water administration object successfully + wstr = iff(isHydrogel, 'Hydrogel', 'Water'); + obj.log('%s administration of %.2f for %s posted successfully to alyx', wstr, amount, obj.Subject); end - - function giveWater(obj) - % Callback to the give water button. Posts the value entered - % in the text box as either liquid or gel depending on the - % state of the 'is hydrogel' check box - ai = obj.AlyxInstance; - thisDate = now; - amount = str2double(get(obj.WaterEntry, 'String')); - isHydrogel = logical(get(obj.IsHydrogel, 'Value')); - if ~isempty(ai)&&amount~=0&&~isnan(amount) - wa = alyx.postWater(ai, obj.Subject, amount, thisDate, isHydrogel); - if ~isempty(wa) % returned us a created water administration object successfully - wstr = iff(isHydrogel, 'Hydrogel', 'Water'); - obj.log('%s administration of %.2f for %s posted successfully to alyx', wstr, amount, obj.Subject); - end - end - % update the water required text - dispWaterReq(obj); + end + % update the water required text + dispWaterReq(obj); + end + + function giveFutureGel(obj) + % Open a dialog allowing one to input water submissions for + % future dates + thisDate = now; + prompt=sprintf('Enter space-separated numbers \n[tomorrow, day after that, day after that.. etc] \nEnter 0 to skip a day'); + answer = inputdlg(prompt,'Future Gel Amounts', [1 50]); + if isempty(answer)||~obj.AlyxInstance.IsLoggedIn + return % user pressed 'Close' or 'x' + end + amount = str2num(answer{:}); %#ok + weekendDates = thisDate + (1:length(amount)); + for d = 1:length(weekendDates) + if amount(d) > 0 + obj.AlyxInstance.postWater(obj.Subject, amount(d), weekendDates(d), 1); + obj.log(['Hydrogel administration of %.2f for %s posted successfully to alyx for '... + datestr(weekendDates(d))], amount(d), obj.Subject); end - - function giveFutureGel(obj) - % Open a dialog allowing one to input water submissions for - % future dates - ai = obj.AlyxInstance; - thisDate = now; - prompt=sprintf('Enter space-separated numbers \n[tomorrow, day after that, day after that.. etc] \nEnter 0 to skip a day'); - answer = inputdlg(prompt,'Future Gel Amounts', [1 50]); - if isempty(answer)||isempty(ai); return; end % user pressed 'Close' or 'x' - amount = str2num(answer{:}); %#ok - weekendDates = thisDate + (1:length(amount)); - for d = 1:length(weekendDates) - if amount(d) > 0 - alyx.postWater(ai, obj.Subject, amount(d), weekendDates(d), 1); - obj.log(['Hydrogel administration of %.2f for %s posted successfully to alyx for ' datestr(weekendDates(d))], amount(d), obj.Subject); - end - end + end + end + + function dispWaterReq(obj, src, ~) + % Display the amount of water required by the selected subject + % for it to reach its minimum requirement. This function is + % also used to update the selected subject, for example it is + % this funtion to use as a callback to subject dropdown + % listeners + ai = obj.AlyxInstance; + % Set the selected subject if it is an input + if nargin>1; obj.Subject = src.Selected; end + if ~ai.IsLoggedIn + set(obj.WaterRequiredText, 'String', 'Log in to see water requirements'); + return + end + % Refresh the timer as the user isn't inactive + stop(obj.LoginTimer); start(obj.LoginTimer) + try + s = ai.getData(ai.makeEndpoint(['subjects/' obj.Subject])); % struct with data about the subject + if s.water_requirement_total==0 + set(obj.WaterRequiredText, 'String', sprintf('Subject %s not on water restriction', obj.Subject)); + else + set(obj.WaterRequiredText, 'String', ... + sprintf('Subject %s requires %.2f of %.2f today', ... + obj.Subject, s.water_requirement_remaining, s.water_requirement_total)); + obj.WaterRemaining = s.water_requirement_remaining; end - - function dispWaterReq(obj, src, ~) - % Display the amount of water required by the selected subject - % for it to reach its minimum requirement. This function is - % also used to update the selected subject, for example it is - % this funtion to use as a callback to subject dropdown - % listeners - ai = obj.AlyxInstance; - % Set the selected subject if it is an input - if nargin>1; obj.Subject = src.Selected; end - if isempty(ai) - set(obj.WaterRequiredText, 'String', 'Log in to see water requirements'); + catch me + d = loadjson(me.message); + if isfield(d, 'detail') && strcmp(d.detail, 'Not found.') + set(obj.WaterRequiredText, 'String', sprintf('Subject %s not found in alyx', obj.Subject)); + end + end + end + + function changeWaterText(obj, src, ~) + % Update the panel text to show the amount of water still + % required for the subject to reach its minimum requirement. + % This text is updated before the value in the water text box + % has been posted to Alyx. For example if the user is unsure + % how much gel over the minimum they have weighed out, pressing + % return will display this without posting to Alyx + % + % See also DISPWATERREQ, GIVEWATER + if ~obj.AlyxInstance.IsLoggedIn && ~isempty(obj.WaterRemaining) + rem = obj.WaterRemaining; + curr = str2double(src.String); + set(obj.WaterRemainingText, 'String', sprintf('(%.2f)', rem-curr)); + end + end + + function recordWeight(obj, weight, subject) + % Post a subject's weight to Alyx. If no inputs are provided, + % create an input dialog for the user to input a weight. If no + % subject is provided, use this object's currently selected + % subject. + % + % See also VIEWSUBJECTHISTORY, VIEWALLSUBJECTS + ai = obj.AlyxInstance; + if nargin < 3; subject = obj.Subject; end + if nargin < 2 + prompt = {sprintf('weight of %s:', subject)}; + dlgTitle = 'Manual weight logging'; + numLines = 1; + defaultAns = {'',''}; + weight = inputdlg(prompt, dlgTitle, numLines, defaultAns); + if isempty(weight); return; end + end + % inputdlg returns weight as a cell, otherwise it may now be + weight = ensureCell(weight); % ensure it's a cell + % convert to double if weight is a string + weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); + try + w = postWeight(ai, weight, subject); %FIXME: If multiple things flushed, length(w)>1 + obj.log('Alyx weight posting succeeded: %.2f for %s', w.weight, w.subject); + catch + if ~ai.IsLoggedIn % if not logged in, save the weight for later + obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); + else + obj.log('Warning: Alyx weight posting failed!'); + end + end + % Update weight and refresh login timer + obj.dispWaterReq + end + + function launchSessionURL(obj) + % Launch the Webpage for the current base session in the + % default Web browser. If no session exists for today's date, + % a new base session is created accordingly. + % + % See also LAUNCHSUBJECTURL + ai = obj.AlyxInstance; + % determine whether there is a session for this subj and date + thisDate = ai.datestr(now); + sessions = ai.getData(['sessions?type=Base&subject=' obj.Subject]); + + % If the date of this latest base session is not the same date + % as today, then create a new one for today + if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), thisDate(1:10)) + % Ask user whether he/she wants to create new session + % Construct a questdlg with three options + choice = questdlg('Would you like to create a new base session?', ... + ['No base session exists for ' datestr(now, 'yyyy-mm-dd')], ... + 'Yes','No','No'); + % Handle response + switch choice + case 'Yes' + % Create our base session + d = struct; + d.subject = obj.Subject; + d.procedures = {'Behavior training/tasks'}; + d.narrative = 'auto-generated session'; + d.start_time = thisDate; + d.type = 'Base'; + + thisSess = ai.postData('sessions', d); + if ~isfield(thisSess,'subject') % fail + warning('Submitted base session did not return appropriate values'); + warning('Submitted data below:'); + disp(d) + warning('Return values below:'); + disp(thisSess) return + else % success + obj.log(['Created new base session in Alyx for ' obj.Subject]); end - % Refresh the timer as the user isn't inactive - stop(obj.LoginTimer); start(obj.LoginTimer) - try - s = alyx.getData(ai, alyx.makeEndpoint(ai, ['subjects/' obj.Subject])); % struct with data about the subject - if s.water_requirement_total==0 - set(obj.WaterRequiredText, 'String', sprintf('Subject %s not on water restriction', obj.Subject)); - else - set(obj.WaterRequiredText, 'String', ... - sprintf('Subject %s requires %.2f of %.2f today', ... - obj.Subject, s.water_requirement_remaining, s.water_requirement_total)); - obj.WaterRemaining = s.water_requirement_remaining; - end - catch me - d = loadjson(me.message); - if isfield(d, 'detail') && strcmp(d.detail, 'Not found.') - set(obj.WaterRequiredText, 'String', sprintf('Subject %s not found in alyx', obj.Subject)); - end - end + case 'No' + return end + else + thisSess = sessions{end}; + end + + % parse the uuid from the url in the session object + u = thisSess.url; + uuid = u(find(u=='/', 1, 'last')+1:end); + + % make the admin url + adminURL = fullfile(ai.baseURL, 'admin', 'actions', 'session', uuid, 'change'); + + % launch the website + web(adminURL, '-browser'); + end + + function launchSubjectURL(obj) + ai = obj.AlyxInstance; + if ~ai.IsLoggedIn + s = ai.getData(ai.makeEndpoint(['subjects/' obj.Subject])); + subjURL = fullfile(ai.BaseURL, 'admin', 'subjects', 'subject', s.id, 'change'); % this is wrong - need uuid + web(subjURL, '-browser'); + end + end + + function viewSubjectHistory(obj, ax) + % View historical information about a subject. + % Opens a new window and plots a set of weight graphs as well + % as displaying a table with the water and weight entries for + % the selected subject. If an axes handle is provided, this + % function plots a single weight graph + + % If not logged in or 'default' is selected, return + if ~obj.AlyxInstance.IsLoggedIn||strcmp(obj.Subject, 'default'); return; end + % collect the data for the table + endpnt = sprintf('water-requirement/%s?start_date=2016-01-01&end_date=%s', obj.Subject, datestr(now, 'yyyy-mm-dd')); + wr = obj.AlyxInstance.getData(endpnt); + records = catStructs(wr.records, nan); + % no weighings found + if isempty(wr.records) + obj.log('No weight data found for subject %s', obj.Subject); + return + end + dates = cellfun(@(x)datenum(x), {records.date}); + + % build the figure to show it + if nargin==1 + f = figure('Name', obj.Subject, 'NumberTitle', 'off'); % popup a new figure for this + p = get(f, 'Position'); + set(f, 'Position', [p(1) p(2) 1100 p(4)]); + histbox = uix.HBox('Parent', f, 'BackgroundColor', 'w'); + plotBox = uix.VBox('Parent', histbox, 'BackgroundColor', 'w'); + ax = axes('Parent', plotBox); + end + + plot(ax, dates, [records.weight_measured], '.-'); + hold(ax, 'on'); + plot(ax, dates, [records.weight_expected]*0.7, 'r', 'LineWidth', 2.0); + plot(ax, dates, [records.weight_expected]*0.8, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); + box(ax, 'off'); + if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end + if nargin == 1 + set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) + else + ax.XTickLabel = arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false); + end + ylabel(ax, 'weight (g)'); + + if nargin==1 + ax = axes('Parent', plotBox); + plot(ax, dates, [records.weight_measured]./[records.weight_expected], '.-'); + hold(ax, 'on'); + plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); + plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); + box(ax, 'off'); + xlim(ax, [min(dates) max(dates)]); + set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) + ylabel(ax, 'weight as pct (%)'); - function changeWaterText(obj, src, ~) - % Update the panel text to show the amount of water still - % required for the subject to reach its minimum requirement. - % This text is updated before the value in the water text box - % has been posted to Alyx. For example if the user is unsure - % how much gel over the minimum they have weighed out, pressing - % return will display this without posting to Alyx - % - % See also DISPWATERREQ, GIVEWATER - ai = obj.AlyxInstance; - if ~isempty(ai) && ~isempty(obj.WaterRemaining) - rem = obj.WaterRemaining; - curr = str2double(src.String); - set(obj.WaterRemainingText, 'String', sprintf('(%.2f)', rem-curr)); - end - end + axWater = axes('Parent',plotBox); + plot(axWater, dates, [records.water_given]+[records.hydrogel_given], '.-'); + hold(axWater, 'on'); + plot(axWater, dates, [records.hydrogel_given], '.-'); + plot(axWater, dates, [records.water_given], '.-'); + plot(axWater, dates, [records.water_expected], 'r', 'LineWidth', 2.0); + box(axWater, 'off'); + xlim(axWater, [min(dates) max(dates)]); + set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) + ylabel(axWater, 'water/hydrogel (mL)'); - function recordWeight(obj, weight, subject) - % Post a subject's weight to Alyx. If no inputs are provided, - % create an input dialog for the user to input a weight. If no - % subject is provided, use this object's currently selected - % subject. - % - % See also VIEWSUBJECTHISTORY, VIEWALLSUBJECTS - ai = obj.AlyxInstance; - if nargin < 3; subject = obj.Subject; end - if nargin < 2 - prompt = {sprintf('weight of %s:', subject)}; - dlgTitle = 'Manual weight logging'; - numLines = 1; - defaultAns = {'',''}; - weight = inputdlg(prompt, dlgTitle, numLines, defaultAns); - if isempty(weight); return; end - end - % inputdlg returns weight as a cell, otherwise it may now be - weight = ensureCell(weight); % ensure it's a cell - % convert to double if weight is a string - weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); - d.subject = subject; - d.weight = weight; - if isempty(ai) % if not logged in, save the weight for later - obj.QueuedWeights{end+1} = d; - obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); - else % otherwise immediately post to Alyx - d.user = ai.username; - try - w = alyx.postData(ai, 'weighings/', d); - obj.log('Alyx weight posting succeeded: %.2f for %s', w.weight, w.subject); - catch - obj.log('Warning: Alyx weight posting failed!'); - end - end - end + % Create table of useful weight and water information, + % sorted by date + histTable = uitable('Parent', histbox,... + 'FontName', 'Consolas',... + 'RowName', []); + weightsByDate = num2cell([records.weight_measured]); + weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); + weightsByDate(isnan([records.weight_measured])) = {[]}; + weightPctByDate = num2cell([records.weight_measured]./[records.weight_expected]); + weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); + weightPctByDate(isnan([records.weight_measured])) = {[]}; - function launchSessionURL(obj) - % Launch the Webpage for the current base session in the - % default Web browser. If no session exists for today's date, - % a new base session is created accordingly. - % - % See also LAUNCHSUBJECTURL - ai = obj.AlyxInstance; - % determine whether there is a session for this subj and date - thisDate = alyx.datestr(now); - sessions = alyx.getData(ai, ['sessions?type=Base&subject=' obj.Subject]); - - % If the date of this latest base session is not the same date - % as today, then create a new one for today - if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), thisDate(1:10)) - % Ask user whether he/she wants to create new session - % Construct a questdlg with three options - choice = questdlg('Would you like to create a new base session?', ... - ['No base session exists for ' datestr(now, 'yyyy-mm-dd')], ... - 'Yes','No','No'); - % Handle response - switch choice - case 'Yes' - % Create our base session - d = struct; - d.subject = obj.Subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = thisDate; - d.type = 'Base'; - - thisSess = alyx.postData(ai, 'sessions', d); - if ~isfield(thisSess,'subject') % fail - warning('Submitted base session did not return appropriate values'); - warning('Submitted data below:'); - disp(d) - warning('Return values below:'); - disp(thisSess) - return - else % success - obj.log(['Created new base session in Alyx for ' obj.Subject]); - end - case 'No' - return - end - else - thisSess = sessions{end}; - end - - % parse the uuid from the url in the session object - u = thisSess.url; - uuid = u(find(u=='/', 1, 'last')+1:end); - - % make the admin url - adminURL = fullfile(ai.baseURL, 'admin', 'actions', 'session', uuid, 'change'); - - % launch the website - web(adminURL, '-browser'); - end + dat = horzcat(... + arrayfun(@(x)datestr(x), dates', 'uni', false), ... + weightsByDate', ... + arrayfun(@(x)sprintf('%.1f', 0.8*x), [records.weight_expected]', 'uni', false), ... + weightPctByDate'); + waterDat = (... + num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... + [records.water_given]'+[records.hydrogel_given]', [records.water_expected]',... + [records.water_given]'+[records.hydrogel_given]'-[records.water_expected]'))); + waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); + dat = horzcat(dat, waterDat); - function launchSubjectURL(obj) - ai = obj.AlyxInstance; - if ~isempty(ai) - s = alyx.getData(ai, alyx.makeEndpoint(ai, ['subjects/' obj.Subject])); - subjURL = fullfile(ai.baseURL, 'admin', 'subjects', 'subject', s.id, 'change'); % this is wrong - need uuid - web(subjURL, '-browser'); - end - end + set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... + 'Data', dat(end:-1:1,:),... + 'ColumnEditable', false(1,5)); + histbox.Widths = [ -1 725]; + end + end + + function viewAllSubjects(obj) + ai = obj.AlyxInstance; + if ai.IsLoggedIn + wr = ai.getData(ai.makeEndpoint('water-restricted-subjects')); - function viewSubjectHistory(obj, ax) - % View historical information about a subject. - % Opens a new window and plots a set of weight graphs as well - % as displaying a table with the water and weight entries for - % the selected subject. If an axes handle is provided, this - % function plots a single weight graph - ai = obj.AlyxInstance; - % If not logged in or 'default' is selected, return - if isempty(ai)||strcmp(obj.Subject, 'default'); return; end - % collect the data for the table - endpnt = sprintf('water-requirement/%s?start_date=2016-01-01&end_date=%s', obj.Subject, datestr(now, 'yyyy-mm-dd')); - wr = alyx.getData(ai, endpnt); - records = catStructs(wr.records, nan); - % no weighings found - if isempty(wr.records) - obj.log('No weight data found for subject %s', obj.Subject); - return - end - dates = cellfun(@(x)datenum(x), {records.date}); - - % build the figure to show it - if nargin==1 - f = figure('Name', obj.Subject, 'NumberTitle', 'off'); % popup a new figure for this - p = get(f, 'Position'); - set(f, 'Position', [p(1) p(2) 1100 p(4)]); - histbox = uix.HBox('Parent', f, 'BackgroundColor', 'w'); - plotBox = uix.VBox('Parent', histbox, 'BackgroundColor', 'w'); - ax = axes('Parent', plotBox); - end - - plot(ax, dates, [records.weight_measured], '.-'); - hold(ax, 'on'); - plot(ax, dates, [records.weight_expected]*0.7, 'r', 'LineWidth', 2.0); - plot(ax, dates, [records.weight_expected]*0.8, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); - box(ax, 'off'); - if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end - if nargin == 1 - set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) - else - ax.XTickLabel = arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false); - end - ylabel(ax, 'weight (g)'); - - if nargin==1 - ax = axes('Parent', plotBox); - plot(ax, dates, [records.weight_measured]./[records.weight_expected], '.-'); - hold(ax, 'on'); - plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); - plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); - box(ax, 'off'); - xlim(ax, [min(dates) max(dates)]); - set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) - ylabel(ax, 'weight as pct (%)'); - - axWater = axes('Parent',plotBox); - plot(axWater, dates, [records.water_given]+[records.hydrogel_given], '.-'); - hold(axWater, 'on'); - plot(axWater, dates, [records.hydrogel_given], '.-'); - plot(axWater, dates, [records.water_given], '.-'); - plot(axWater, dates, [records.water_expected], 'r', 'LineWidth', 2.0); - box(axWater, 'off'); - xlim(axWater, [min(dates) max(dates)]); - set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) - ylabel(axWater, 'water/hydrogel (mL)'); - - % Create table of useful weight and water information, - % sorted by date - histTable = uitable('Parent', histbox,... - 'FontName', 'Consolas',... - 'RowName', []); - weightsByDate = num2cell([records.weight_measured]); - weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); - weightsByDate(isnan([records.weight_measured])) = {[]}; - weightPctByDate = num2cell([records.weight_measured]./[records.weight_expected]); - weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); - weightPctByDate(isnan([records.weight_measured])) = {[]}; - - dat = horzcat(... - arrayfun(@(x)datestr(x), dates', 'uni', false), ... - weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*x), [records.weight_expected]', 'uni', false), ... - weightPctByDate'); - waterDat = (... - num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... - [records.water_given]'+[records.hydrogel_given]', [records.water_expected]',... - [records.water_given]'+[records.hydrogel_given]'-[records.water_expected]'))); - waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); - dat = horzcat(dat, waterDat); - - set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... - 'Data', dat(end:-1:1,:),... - 'ColumnEditable', false(1,5)); - histbox.Widths = [ -1 725]; - end - end + subjs = cellfun(@(x)x.nickname, wr, 'uni', false); + waterReqTotal = cellfun(@(x)x.water_requirement_total, wr, 'uni', false); + waterReqRemain = cellfun(@(x)x.water_requirement_remaining, wr, 'uni', false); - function viewAllSubjects(obj) - ai = obj.AlyxInstance; - if ~isempty(ai) - - wr = alyx.getData(ai, alyx.makeEndpoint(ai, 'water-restricted-subjects')); - - subjs = cellfun(@(x)x.nickname, wr, 'uni', false); - waterReqTotal = cellfun(@(x)x.water_requirement_total, wr, 'uni', false); - waterReqRemain = cellfun(@(x)x.water_requirement_remaining, wr, 'uni', false); - - % build a figure to show it - f = figure; % popup a new figure for this - wrBox = uix.VBox('Parent', f); - wrTable = uitable('Parent', wrBox,... - 'FontName', 'Consolas',... - 'RowName', []); - - htmlColor = @(colorNum)reshape(dec2hex(round(colorNum'*255),2)',1,6); - % colorgen = @(colorNum,text) ['
',text,'
']; - colorgen = @(colorNum,text) ['',text,'']; - - wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3], sprintf('%.2f',x)), waterReqRemain, 'uni', false); - - set(wrTable, 'ColumnName', {'Name', 'Water Required', 'Remaining Requirement'}, ... - 'Data', horzcat(subjs', ... - cellfun(@(x)sprintf('%.2f',x),waterReqTotal', 'uni', false), ... - wrdat'), ... - 'ColumnEditable', false(1,3)); - end - end + % build a figure to show it + f = figure; % popup a new figure for this + wrBox = uix.VBox('Parent', f); + wrTable = uitable('Parent', wrBox,... + 'FontName', 'Consolas',... + 'RowName', []); - function log(obj, varargin) - % Function for displaying timestamped information about - % occurrences. If the LoggingDisplay property is unset, the - % message is printed to the command prompt. - % log(formatSpec, A1,... An) - % - % See also FPRINTF - message = sprintf(varargin{:}); - if ~isempty(obj.LoggingDisplay) - timestamp = datestr(now, 'dd-mm-yyyy HH:MM:SS'); - str = sprintf('[%s] %s', timestamp, message); - current = get(obj.LoggingDisplay, 'String'); - %NB: If more that one instance of MATLAB is open, we use - %the last opened LoggingDisplay - set(obj.LoggingDisplay(end), 'String', [current; str], 'Value', numel(current) + 1); - else - fprintf(message) - end - end + htmlColor = @(colorNum)reshape(dec2hex(round(colorNum'*255),2)',1,6); + % colorgen = @(colorNum,text) ['
',text,'
']; + colorgen = @(colorNum,text) ['',text,'']; + + wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3], sprintf('%.2f',x)), waterReqRemain, 'uni', false); + + set(wrTable, 'ColumnName', {'Name', 'Water Required', 'Remaining Requirement'}, ... + 'Data', horzcat(subjs', ... + cellfun(@(x)sprintf('%.2f',x),waterReqTotal', 'uni', false), ... + wrdat'), ... + 'ColumnEditable', false(1,3)); + end end + function log(obj, varargin) + % Function for displaying timestamped information about + % occurrences. If the LoggingDisplay property is unset, the + % message is printed to the command prompt. + % log(formatSpec, A1,... An) + % + % See also FPRINTF + message = sprintf(varargin{:}); + if ~isempty(obj.LoggingDisplay) + timestamp = datestr(now, 'dd-mm-yyyy HH:MM:SS'); + str = sprintf('[%s] %s', timestamp, message); + current = get(obj.LoggingDisplay, 'String'); + %NB: If more that one instance of MATLAB is open, we use + %the last opened LoggingDisplay + set(obj.LoggingDisplay(end), 'String', [current; str], 'Value', numel(current) + 1); + else + fprintf(message) + end + end + end + end \ No newline at end of file diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index 5ccb95b6..4e6c2cb0 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -11,7 +11,6 @@ % experiment type, for example CHOICEEXPPANEL for ChoiceWorld and % SQUEAKEXPPANEL for Signals experiments. % - % % % See also SQUEAKEXPPANEL, CHOICEEXPPANEL, MCONTROL, MC % @@ -207,12 +206,12 @@ function expStarted(obj, rig, evt) end end - function expStopped(obj, rig, evt) + function expStopped(obj, rig, ~) % EXPSTOPPED Callback for the ExpStopped event. - % Updates the ExpRunning flag, the panel title and status label to - % show that the experiment has ended. This function also records to Alyx the - % amount of water, if any, that the subject received during the - % task. + % expStopped(obj, rig, event) Updates the ExpRunning flag, the + % panel title and status label to show that the experiment has + % ended. This function also records to Alyx the amount of water, + % if any, that the subject received during the task. % % See also EXPSTARTED, ALYX.POSTWATER set(obj.StatusLabel, 'String', 'Completed'); %staus to completed @@ -245,7 +244,7 @@ function expStopped(obj, rig, evt) end if ~any(amount); return; end % Return if no water was given try - alyx.postWater(ai, subject, amount*0.001, now, false); + ai.postWater(subject, amount*0.001, now, false); catch warning('Failed to post the water %s recieved during the experiment to Alyx', amount*0.001, subject); end @@ -299,7 +298,7 @@ function saveLogEntry(obj) % subsession's narrative field. % % See also DAT.UPDATELOGENTRY, COMMENTSCHANGED - dat.updateLogEntry(obj.SubjectRef, obj.LogEntry.id, obj.LogEntry); + dat.updateLogEntry(dat.parseExpRef(obj.SubjectRef), obj.LogEntry.id, obj.LogEntry); end function viewParams(obj) diff --git a/+eui/MControl.m b/+eui/MControl.m index 0f09f9ff..9d706860 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -121,7 +121,7 @@ function newScalesReading(obj, ~, ~) function tabChanged(obj) % Function to change which subject Alyx uses when user changes tab - if isempty(obj.AlyxPanel.AlyxInstance); return; end + if ~obj.AlyxPanel.AlyxInstance.IsLoggedIn; return; end if obj.TabPanel.SelectedChild == 1 % Log tab obj.AlyxPanel.dispWaterReq(obj.LogSubject); else % SelectedChild == 2 Experiment tab @@ -335,11 +335,10 @@ function rigExpStopped(obj, rig, evt) % Announce that the experiment has stopped set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'on'); % Re-enable 'Start' button so a new experiment can be started on that rig end % Alyx water reporting: indicate amount of water this mouse still needs - if ~isempty(rig.AlyxInstance) + if rig.AlyxInstance.IsLoggedIn try subject = dat.parseExpRef(evt.Ref); - sd = alyx.getData(rig.AlyxInstance, ... - sprintf('subjects/%s', subject)); + sd = rig.AlyxInstance.getData(sprintf('subjects/%s', subject)); obj.log('Water requirement remaining for %s: %.2f (%.2f already given)', ... subject, sd.water_requirement_remaining, ... sd.water_requirement_total-sd.water_requirement_remaining); @@ -347,7 +346,9 @@ function rigExpStopped(obj, rig, evt) % Announce that the experiment has stopped subject = dat.parseExpRef(evt.Ref); obj.log('Warning: unable to query Alyx about %s''s water requirements', subject); end - rig.AlyxInstance = []; % remove AlyxInstance from rig; no longer required + % Remove AlyxInstance from rig; no longer required + delete(rig.AlyxInstance); + rig.AlyxInstance = []; end end @@ -532,7 +533,8 @@ function beginExp(obj) set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'off'); % Grey out buttons rig = obj.RemoteRigs.Selected; % Find which rig is selected % Save the current instance of Alyx so that eui.ExpPanel can register water to the correct account - if isempty(obj.AlyxPanel.AlyxInstance)&&~strcmp(obj.NewExpSubject.Selected,'default') + ai = obj.AlyxPanel.AlyxInstance; + if ~ai.IsLoggedIn && ~strcmp(obj.NewExpSubject.Selected,'default') try obj.AlyxPanel.login(); catch @@ -546,12 +548,11 @@ function beginExp(obj) obj.Parameters.set('services', services(:),... 'List of experiment services to use during the experiment'); % Create new experiment reference - [expRef, ~, url] = dat.newExp(obj.NewExpSubject.Selected, now,... - obj.Parameters.Struct, obj.AlyxPanel.AlyxInstance); + [expRef, ~] = ai.newExp(obj.NewExpSubject.Selected, now,... + obj.Parameters.Struct); % Add a copy of the AlyxInstance to the rig object for later % water registration, &c. - rig.AlyxInstance = obj.AlyxPanel.AlyxInstance; - rig.AlyxInstance.subsessionURL = url; + rig.AlyxInstance = ai.copy; panel = eui.ExpPanel.live(obj.ActiveExpsGrid, expRef, rig, obj.Parameters.Struct); obj.LastExpPanel = panel; @@ -569,7 +570,7 @@ function updateWeightPlot(obj) entries = obj.Log.entriesByType('weight-grams'); datenums = floor([entries.date]); obj.WeightAxes.clear(); - if ~isempty(obj.AlyxPanel.AlyxInstance)&&~strcmp(obj.LogSubject.Selected,'default') + if obj.AlyxPanel.AlyxInstance.IsLoggedIn && ~strcmp(obj.LogSubject.Selected,'default') obj.AlyxPanel.viewSubjectHistory(obj.WeightAxes.Handle) rotateticklabel(obj.WeightAxes.Handle, 45); else diff --git a/+exp/Experiment.m b/+exp/Experiment.m index b0229875..e26860a0 100644 --- a/+exp/Experiment.m +++ b/+exp/Experiment.m @@ -773,20 +773,20 @@ function saveData(obj) savepaths = dat.expFilePath(obj.Data.expRef, 'block'); superSave(savepaths, struct('block', obj.Data)); - if isempty(obj.AlyxInstance) + if ~obj.AlyxInstance.IsLoggedIn warning('No Alyx token set'); else try - [subject,~,~] = dat.parseExpRef(obj.Data.expRef); - if strcmp(subject,'default'); return; end + subject = dat.parseExpRef(obj.Data.expRef); + if strcmp(subject, 'default'); return; end % Register saved files - alyx.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.subsessionURL, 'Block', [], obj.AlyxInstance); + obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... + obj.AlyxInstance.subsessionURL, 'Block', []); % Save the session end time - alyx.putData(obj.AlyxInstance, obj.AlyxInstance.subsessionURL,... - struct('end_time', alyx.datestr(now), 'subject', subject)); - catch - warning('couldnt register files to alyx because no subsession found'); + obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... + struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); + catch ex + warning(ex.identifer, 'Failed to register files to Alyx: %s', ex.message); end end end diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 74c3e059..96d8a62f 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -1,5 +1,5 @@ classdef SignalsExp < handle - %exp.SignalsExp Base class for stimuli-delivering experiments + %EXP.SIGNALSEXP Base class for stimuli-delivering experiments % The class defines a framework for event- and state-based experiments. % Visual and auditory stimuli can be controlled by experiment phases. % Phases changes are managed by an event-handling system. @@ -33,6 +33,8 @@ %saved into the block data field 'rigName'. RigName + %Communcator object for sending signals updates to mc. Set by + %expServer Communicator = io.DummyCommunicator %Delay (secs) before starting main experiment phase after experiment @@ -44,21 +46,30 @@ %wasn't requested). PostDelay = 0 - IsPaused = false %flag indicating whether the experiment is paused + %Flag indicating whether the experiment is paused + IsPaused = false + %Holds the wheel object, 'mouseInput' from the rig object. See also + %USERIG, HW.DAQROTARYENCODER Wheel + %Holds the object for interating with the lick detector. See also + %HW.DAQEDGECOUNTER LickDetector + %Holds the object for interating with the DAQ outputs (reward valve, + %etc.) See also HW.DAQCONTROLLER DaqController + %Get the handle to the PTB window opened by expServer StimWindowPtr TextureById LayersByStim - Occ % occulus model + %Occulus viewing model + Occ Time @@ -70,20 +81,28 @@ Visual - Audio + Audio % = aud.AudioRegistry + %Holds the parameters structure for this experiment Params ParamsLog + %The bounds for the photodiode square SyncBounds + %Sync colour cycle (usually [0, 255]) - cycles through these each + %time the screen flips. SyncColourCycle - NextSyncIdx %index into SyncColourCycle for next sync colour -% Audio = aud.AudioRegistry + %Index into SyncColourCycle for next sync colour + NextSyncIdx + + %Holds the session for the DAQ photodiode echo, used if + %rig.stimWindow.DaqSyncEchoPort is defined. See also USERIG + DaqSyncEcho - %AlyxToken from client + % Alyx instance from client. See also SAVEDATA AlyxInstance = [] end @@ -94,6 +113,9 @@ %Data from the currently running experiment, if any. Data = struct + %Data binary file ID and pars file ID for intermittent saving + DataFID + %Currently active phases of the experiment. Cell array of their names %(i.e. strings) ActivePhases = {} @@ -104,7 +126,6 @@ SignalUpdates = struct('name', cell(500,1), 'value', cell(500,1), 'timestamp', cell(500,1)) NumSignalUpdates = 0 - end properties (Access = protected) @@ -112,7 +133,8 @@ %are awaiting activation pending completion of their delay period. Pending - IsLooping = false %flag indicating whether to continue in experiment loop + %Flag indicating whether to continue in experiment loop + IsLooping = false AsyncFlipping = false @@ -191,19 +213,48 @@ end function useRig(obj, rig) + % USERIG(OBJ, RIG) Initialize all hardware for experiment + % Takes the rig hardware structure and loads the relevant + % parameters into the class properties, namely the DAQ output + % channels and the stimWindow properties. + % + % See Also HW.PTB.WINDOW, DAQCONTROLLER + obj.Clock = rig.clock; obj.Data.rigName = rig.name; + % Sync bounds parameter for photodiode square obj.SyncBounds = rig.stimWindow.SyncBounds; + % Sync colour cycle (usually [0, 255]) - cycles through these each + % time the screen flips. obj.SyncColourCycle = rig.stimWindow.SyncColourCycle; + % If the DaqSyncEchoPort is defined, each time the screen flips, the + % DAQ will output an alternating high or low. This signals will + % follow the photodiode signal. + if ~isempty(rig.stimWindow.DaqSyncEchoPort) + % Create the DAQ session for the sync echo + obj.DaqSyncEcho = daq.createSession(rig.stimWindow.DaqVendor); + % Add the digital channel using parameters defined in + % rig.stimWindow + obj.DaqSession.addDigitalChannel(rig.stimWindow.DaqDev,... + rig.stimWindow.DaqSyncEchoPort, 'OutputOnly'); + % Output an initial 0V signal + obj.DaqSession.outputSingleScan(false); + end + % Initialize the sync square colour to be index 1 obj.NextSyncIdx = 1; + % Get the handle to the PTB window opened by expServer obj.StimWindowPtr = rig.stimWindow.PtbHandle; + % Generate the viewing model based on the screen information from the + % rig struct, if availiable obj.Occ = vis.init(obj.StimWindowPtr); if isfield(rig, 'screens') obj.Occ.screens = rig.screens; else warning('squeak:hw', 'No screen configuration specified. Visual locations will be wrong.'); end + % Load the DAQ outputs obj.DaqController = rig.daqController; + % Load the wheel obj.Wheel = rig.mouseInput; if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; @@ -562,6 +613,15 @@ function init(obj) outlist = mapToCell(@(n,v)queuefun(['outputs.' n],v),... fieldnames(obj.Outputs), struct2cell(obj.Outputs)); obj.Listeners = vertcat(obj.Listeners, evtlist(:), outlist(:)); + + % open binary file for saving block data. This can later be retrieved + % in case of a crash + fprintf(1, 'opening binary file for writing\n'); + localPath = dat.expFilePath(obj.Data.expRef, 'block', 'local'); % get the local exp data path + obj.DataFID = fopen([localPath(1:end-4) '.dat'], 'w'); % open a binary data file + % save params now so if things crash later you at least have this record of the data type and size so you can load the dat + obj.DataFID(2) = fopen([localPath(1:end-4) '.par'], 'w'); % open a parameter file + end function cleanup(obj) @@ -642,7 +702,6 @@ function mainLoop(obj) %% check for and process any input checkInput(obj); - %% execute pending event handlers that have become due for i = 1:ndue due = obj.Pending(dueIdx(i)); @@ -680,6 +739,10 @@ function mainLoop(obj) Screen('FillRect', obj.StimWindowPtr, col, obj.SyncBounds); % cyclically increment the next sync idx obj.NextSyncIdx = mod(obj.NextSyncIdx, size(obj.SyncColourCycle, 1)) + 1; + if ~isempty(obj.DaqSyncEcho) + % update sync echo + outputSingleScan(obj.DaqSyncEcho, mean(col) > 0); + end end renderTime = now(obj.Clock); % start the 'flip' of the frame onto the screen @@ -828,21 +891,20 @@ function saveData(obj) savepaths = dat.expFilePath(obj.Data.expRef, 'block'); superSave(savepaths, struct('block', obj.Data)); - if isempty(obj.AlyxInstance) + if ~obj.AlyxInstance.IsLoggedIn warning('No Alyx token set'); else try - [subject,~,~] = dat.parseExpRef(obj.Data.expRef); - if strcmp(subject,'default'); return; end + subject = dat.parseExpRef(obj.Data.expRef); + if strcmp(subject, 'default'); return; end % Register saved files - alyx.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.subsessionURL, 'Block', [], obj.AlyxInstance); + obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... + obj.AlyxInstance.subsessionURL, 'Block', []); % Save the session end time - alyx.putData(obj.AlyxInstance, obj.AlyxInstance.subsessionURL,... - struct('end_time', alyx.datestr(now), 'subject', subject)); + obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... + struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); catch ex - warning('couldnt register files to alyx'); - disp(ex) + warning(ex.identifer, 'Failed to register files to Alyx: %s', ex.message); end end diff --git a/+exp/StartServices.m b/+exp/StartServices.m index 0c3ac13c..8c8b72bb 100644 --- a/+exp/StartServices.m +++ b/+exp/StartServices.m @@ -27,13 +27,16 @@ obj.Services = value; end - function perform(obj, eventInfo, dueTime) - ref = dat.parseAlyxInstance(eventInfo.Experiment.Data.expRef,... - eventInfo.Experiment.AlyxInstance); + function perform(obj, eventInfo, ~) + %PERFORM Starts each service sequentially + % perform(obj, eventInfo, dueTime) + % + expRef = eventInfo.Experiment.Data.expRef; + ai = eventInfo.Experiment.AlyxInstance; n = numel(obj.Services); for i = 1:n try - obj.Services{i}.start(ref); + obj.Services{i}.start(expRef, ai); fprintf('Started ''%s''\n', obj.Services{i}.Title); catch ex %stop services that were started up till now diff --git a/+hw/Timeline.m b/+hw/Timeline.m index e03e212a..e83b455e 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -463,11 +463,11 @@ function stop(obj) end % register Timeline.mat file to Alyx database - [subject,~,~] = dat.parseExpRef(obj.Data.expRef); - if ~isempty(obj.AlyxInstance) && ~strcmp(subject,'default') + subject = dat.parseExpRef(obj.Data.expRef); + if obj.AlyxInstance.IsLoggedIn && ~strcmp(subject,'default') try - alyx.registerFile(obj.Data.savePaths{end}, 'mat',... - obj.AlyxInstance.subsessionURL, 'Timeline', [], obj.AlyxInstance); + obj.AlyxInstance.registerFile(obj.Data.savePaths{end}, 'mat',... + obj.AlyxInstance.SessionURL, 'Timeline', []); catch warning('couldn''t register files to alyx'); end diff --git a/+srv/StimulusControl.m b/+srv/StimulusControl.m index a8b4e1b8..34db88fe 100644 --- a/+srv/StimulusControl.m +++ b/+srv/StimulusControl.m @@ -268,8 +268,10 @@ function send(obj, id, data) assert(~isNil(msg), 'Timed out waiting for message with id ''%s''', id); remove(obj.Responses, id); % no longer waiting, remove place holder end - - function errorOnFail(obj, r) + end + + methods (Static) + function errorOnFail(r) if iscell(r) && strcmp(r{1}, 'fail') error(r{3}); end diff --git a/+srv/expServer.m b/+srv/expServer.m index 4e4bec05..1ac91302 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -7,7 +7,7 @@ function expServer(useTimelineOverride, bgColour) % 2013-06 CB created %% Parameters -global AGL GL GLU +global AGL GL GLU %#ok listenPort = io.WSJCommunicator.DefaultListenPort; quitKey = KbName('q'); rewardToggleKey = KbName('w'); @@ -23,7 +23,7 @@ function expServer(useTimelineOverride, bgColour) rng('shuffle'); % communicator for receiving commands from clients communicator = io.WSJCommunicator.server(listenPort); -listener = event.listener(communicator, 'MessageReceived',... +addlistener(communicator, 'MessageReceived',... @(~,msg) handleMessage(msg.Id, msg.Data, msg.Sender)); communicator.EventMode = false; communicator.open(); diff --git a/cortexlab/+io/MpepUDPDataHosts.m b/cortexlab/+io/MpepUDPDataHosts.m index 1f476d97..07bd3cea 100644 --- a/cortexlab/+io/MpepUDPDataHosts.m +++ b/cortexlab/+io/MpepUDPDataHosts.m @@ -20,7 +20,7 @@ DigitalOutDaqChannelId Verbose = false % whether to output I/O messages etc Timeline % An instance of timeline for for recording UDP messages - AlyxInstance + AlyxInstance % An instance of Alyx for registering files, etc. end properties (SetAccess = protected) @@ -41,8 +41,8 @@ properties (Access = private) ExpRef pResponseTimeout = 10 - %When an mpep UDP is sent out, the message is saved here to later check - %the same message is received back + % When an mpep UDP is sent out, the message is saved here to later check + % the same message is received back LastSentMessage DigitalOutSession Timer @@ -62,11 +62,11 @@ function open(obj) obj.Socket = pnet('udpsocket', obj.LocalPort); % bind listening socket - % set timeout to intial value + % Set timeout to intial value pnet(obj.Socket, 'setreadtimeout', obj.ResponseTimeout); - % save IP addresses for remote hosts + % Save IP addresses for remote hosts obj.RemoteIPs = ipaddress(obj.RemoteHosts); - % open the DAQ session, if configured + % Open the DAQ session, if configured if ~isempty(obj.DigitalOutDaqChannelId) obj.DigitalOutSession = daq.createSession(obj.DaqVendor); obj.DigitalOutSession.addDigitalChannel(... @@ -76,7 +76,7 @@ function open(obj) end function close(obj) - % cleanup timeout timer, close network socket and release DAQ session + % Cleanup timeout timer, close network socket and release DAQ session if ~isempty(obj.Timer) stop(obj.Timer); delete(obj.Timer); @@ -109,12 +109,12 @@ function delete(obj) function expStarted(obj, ref) obj.ExpRef = ref; % save the experiment reference - %% send the ExpStart UDP + % Send the ExpStart UDP [subject, seriesNum, expNum] = dat.expRefToMpep(obj.ExpRef); expStartMsg = sprintf('ExpStart %s %d %d', subject, seriesNum, expNum); confirmedBroadcast(obj, expStartMsg); - %% send the BlockStart UDP + % Send the BlockStart UDP % start a block (we only use one per experiment) blockStartMsg = sprintf('BlockStart %s %d %d 1', subject, seriesNum, expNum); confirmedBroadcast(obj, blockStartMsg); @@ -123,16 +123,16 @@ function expStarted(obj, ref) function stimStarted(obj, num, duration) validateResponses(obj); % validate any outstanding responses obj.StimNum = num; - %% send the StimStart UDP + % Send the StimStart UDP [subject, seriesNum, expNum] = dat.expRefToMpep(obj.ExpRef); msg = sprintf('StimStart %s %d %d 1 %d %d',... %2014/4/8 DS: why trial number is always 1??? subject, seriesNum, expNum, obj.StimNum, duration + 1); confirmedBroadcast(obj, msg); - % create a timeout timer + % Create a timeout timer timeoutTimer = timer('StartDelay', duration, 'TimerFcn', @(t,d) stimEnded(obj, num)); - %% set digital out line up if any + % Set digital out line up if any if ~isempty(obj.DigitalOutSession) obj.DigitalOutSession.outputSingleScan(true); if obj.Verbose @@ -159,14 +159,14 @@ function stimEnded(obj, num) delete(obj.Timer); obj.Timer = []; end - %% set digital out line down if any + % Set digital out line down if any if ~isempty(obj.DigitalOutSession) obj.DigitalOutSession.outputSingleScan(false); if obj.Verbose fprintf('DAQ digital out -> false\n'); end end - %% send the StimEnd UDP + % Send the StimEnd UDPS [subject, seriesNum, expNum] = dat.expRefToMpep(obj.ExpRef); msg = sprintf('StimEnd %s %d %d 1 %d', subject, seriesNum, expNum, num); broadcast(obj, msg); @@ -182,38 +182,41 @@ function stimEnded(obj, num) end function expEnded(obj) - %% If StimStart was sent without corresponding StimEnd, send it now + % If StimStart was sent without corresponding StimEnd, send it now if obj.StimOn stimEnded(obj); end validateResponses(obj); % validate any outstanding responses - %% send the BlockEnd UDP + % Send the BlockEnd UDP [subject, seriesNum, expNum] = dat.expRefToMpep(obj.ExpRef); blockEndMsg = sprintf('BlockEnd %s %d %d 1', subject, seriesNum, expNum); confirmedBroadcast(obj, blockEndMsg); - %% send the ExpEnd UDP - % start a block (we only use one per experiment) + % Send the ExpEnd UDP + % Start a block (we only use one per experiment) expEndMsg = sprintf('ExpEnd %s %d %d', subject, seriesNum, expNum); confirmedBroadcast(obj, expEndMsg); obj.ExpRef = []; end - function start(obj, ref) - [expRef, ai] = dat.parseAlyxInstance(ref); - obj.AlyxInstance = ai; - [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); - alyxmsg = sprintf('alyx %s %d %d %s', subject, seriesNum, expNum, ref); - confirmedBroadcast(obj, alyxmsg); + function start(obj, expRef, ai) + % Deal with Alyx instance first + if ~isempty(ai) + obj.AlyxInstance = ai; + UDP_msg = ai.parseAlyxInstance; + [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); + alyxmsg = sprintf('alyx %s %d %d %s', subject, seriesNum, expNum, UDP_msg); + confirmedBroadcast(obj, alyxmsg); + end - % equivalent to startExp(expRef) + % Equivalent to startExp(expRef) expStarted(obj, expRef); end function stop(obj) - % equivalent to endExp() + % Equivalent to endExp() expEnded(obj); end @@ -221,7 +224,7 @@ function stop(obj) obj.broadcast('hello'); try ok = awaitResponses(obj); - catch ex + catch ok = false; end end @@ -243,14 +246,14 @@ function confirmedBroadcast(obj, msg) end function broadcast(obj, msg) - % send UDP to all remote hosts + % Send UDP to all remote hosts cellfun(@(host) obj.sendPacket(msg, host), obj.RemoteHosts); obj.LastSentMessage = msg; end function validateResponses(obj) - %If a recent UDP message was sent and the response hasn't been - %received and checked that it matches what was sent, check it now. + % If a recent UDP message was sent and the response hasn't been + % received and checked that it matches what was sent, check it now. if ~isempty(obj.LastSentMessage) ok = awaitResponses(obj); assert(all(ok), 'A valid UDP confirmation was not received within timeout period'); @@ -258,12 +261,12 @@ function validateResponses(obj) end function ok = awaitResponses(obj) - %% check response is what we sent (with Timeout) + % Check response is what we sent (with Timeout) expecting = obj.LastSentMessage; % IP address of remote hosts we are expecting confirmation from waiting = ipaddress(obj.RemoteHosts); ok = false(size(waiting)); - % receive 'num remote hosts' of packets + % Receive 'num remote hosts' of packets for i = 1:numel(obj.RemoteHosts) tic [msg, ip] = obj.readPacket; @@ -279,7 +282,7 @@ function validateResponses(obj) end function sendPacket(obj, msg, host) - % send the packet with 'msg' + % Send the packet with 'msg' pnet(obj.Socket, 'write', msg); pnet(obj.Socket, 'writepacket', host, obj.RemotePort); if obj.Verbose From c84aecbb3419556469b71b1e2faef2343abbb0e9 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 5 Feb 2018 12:18:13 +0000 Subject: [PATCH 068/515] Moved non-alyx related changes to different branch --- +exp/SignalsExp.m | 63 +++++------------------------------------------ 1 file changed, 6 insertions(+), 57 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 96d8a62f..cbcacb1f 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -69,7 +69,7 @@ LayersByStim %Occulus viewing model - Occ + Occ Time @@ -96,13 +96,9 @@ SyncColourCycle %Index into SyncColourCycle for next sync colour - NextSyncIdx + NextSyncIdx - %Holds the session for the DAQ photodiode echo, used if - %rig.stimWindow.DaqSyncEchoPort is defined. See also USERIG - DaqSyncEcho - - % Alyx instance from client. See also SAVEDATA + %Alyx instance from client. See also SAVEDATA AlyxInstance = [] end @@ -113,9 +109,6 @@ %Data from the currently running experiment, if any. Data = struct - %Data binary file ID and pars file ID for intermittent saving - DataFID - %Currently active phases of the experiment. Cell array of their names %(i.e. strings) ActivePhases = {} @@ -126,6 +119,7 @@ SignalUpdates = struct('name', cell(500,1), 'value', cell(500,1), 'timestamp', cell(500,1)) NumSignalUpdates = 0 + end properties (Access = protected) @@ -133,8 +127,7 @@ %are awaiting activation pending completion of their delay period. Pending - %Flag indicating whether to continue in experiment loop - IsLooping = false + IsLooping = false %flag indicating whether to continue in experiment loop AsyncFlipping = false @@ -213,48 +206,19 @@ end function useRig(obj, rig) - % USERIG(OBJ, RIG) Initialize all hardware for experiment - % Takes the rig hardware structure and loads the relevant - % parameters into the class properties, namely the DAQ output - % channels and the stimWindow properties. - % - % See Also HW.PTB.WINDOW, DAQCONTROLLER - obj.Clock = rig.clock; obj.Data.rigName = rig.name; - % Sync bounds parameter for photodiode square obj.SyncBounds = rig.stimWindow.SyncBounds; - % Sync colour cycle (usually [0, 255]) - cycles through these each - % time the screen flips. obj.SyncColourCycle = rig.stimWindow.SyncColourCycle; - % If the DaqSyncEchoPort is defined, each time the screen flips, the - % DAQ will output an alternating high or low. This signals will - % follow the photodiode signal. - if ~isempty(rig.stimWindow.DaqSyncEchoPort) - % Create the DAQ session for the sync echo - obj.DaqSyncEcho = daq.createSession(rig.stimWindow.DaqVendor); - % Add the digital channel using parameters defined in - % rig.stimWindow - obj.DaqSession.addDigitalChannel(rig.stimWindow.DaqDev,... - rig.stimWindow.DaqSyncEchoPort, 'OutputOnly'); - % Output an initial 0V signal - obj.DaqSession.outputSingleScan(false); - end - % Initialize the sync square colour to be index 1 obj.NextSyncIdx = 1; - % Get the handle to the PTB window opened by expServer obj.StimWindowPtr = rig.stimWindow.PtbHandle; - % Generate the viewing model based on the screen information from the - % rig struct, if availiable obj.Occ = vis.init(obj.StimWindowPtr); if isfield(rig, 'screens') obj.Occ.screens = rig.screens; else warning('squeak:hw', 'No screen configuration specified. Visual locations will be wrong.'); end - % Load the DAQ outputs obj.DaqController = rig.daqController; - % Load the wheel obj.Wheel = rig.mouseInput; if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; @@ -613,15 +577,6 @@ function init(obj) outlist = mapToCell(@(n,v)queuefun(['outputs.' n],v),... fieldnames(obj.Outputs), struct2cell(obj.Outputs)); obj.Listeners = vertcat(obj.Listeners, evtlist(:), outlist(:)); - - % open binary file for saving block data. This can later be retrieved - % in case of a crash - fprintf(1, 'opening binary file for writing\n'); - localPath = dat.expFilePath(obj.Data.expRef, 'block', 'local'); % get the local exp data path - obj.DataFID = fopen([localPath(1:end-4) '.dat'], 'w'); % open a binary data file - % save params now so if things crash later you at least have this record of the data type and size so you can load the dat - obj.DataFID(2) = fopen([localPath(1:end-4) '.par'], 'w'); % open a parameter file - end function cleanup(obj) @@ -739,10 +694,6 @@ function mainLoop(obj) Screen('FillRect', obj.StimWindowPtr, col, obj.SyncBounds); % cyclically increment the next sync idx obj.NextSyncIdx = mod(obj.NextSyncIdx, size(obj.SyncColourCycle, 1)) + 1; - if ~isempty(obj.DaqSyncEcho) - % update sync echo - outputSingleScan(obj.DaqSyncEcho, mean(col) > 0); - end end renderTime = now(obj.Clock); % start the 'flip' of the frame onto the screen @@ -907,9 +858,7 @@ function saveData(obj) warning(ex.identifer, 'Failed to register files to Alyx: %s', ex.message); end end - end end -end - +end \ No newline at end of file From 71115a34a1b9b153402b539e94f1b503546b6c27 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 5 Feb 2018 13:19:43 +0000 Subject: [PATCH 069/515] Fix for new experiments without alyx instance --- +dat/newExp.m | 108 +++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 55 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index 6a86e07f..acd3c48e 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -30,9 +30,9 @@ expParams = []; end -if nargin < 4 +if nargin < 4 || isempty(AlyxInstance) % no instance of Alyx, don't create session on Alyx - AlyxInstance = []; + AlyxInstance = alyx.loginWindow; end if ischar(expDate) @@ -66,69 +66,67 @@ % now make the folder(s) to hold the new experiment assert(all(cellfun(@(p) mkdir(p), expPath)), 'Creating experiment directories failed'); -if ~strcmp(subject, 'default') % Ignore fake subject +if ~strcmp(subject,'default') % Ignore fake subject % if the Alyx Instance is set, find or create BASE session expDate = alyx.datestr(expDate); % date in Alyx format - if ~isempty(AlyxInstance) - % Get list of base sessions - sessions = alyx.getData(AlyxInstance,... - ['sessions?type=Base&subject=' subject]); - - %If the date of this latest base session is not the same date as - %today, then create a new base session for today - if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), expDate(1:10)) - d = struct; - d.subject = subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = expDate; - d.type = 'Base'; - % d.users = {AlyxInstance.username}; - - base_submit = alyx.postData(AlyxInstance, 'sessions', d); - assert(isfield(base_submit,'subject'),... - 'Submitted base session did not return appropriate values'); - - %Now retrieve the sessions again - sessions = alyx.getData(AlyxInstance,... - ['sessions?type=Base&subject=' subject]); - end - latest_base = sessions{end}; - - %Now create a new SUBSESSION, using the same experiment number + % Get list of base sessions + sessions = alyx.getData(AlyxInstance,... + ['sessions?type=Base&subject=' subject]); + + %If the date of this latest base session is not the same date as + %today, then create a new base session for today + if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), expDate(1:10)) d = struct; d.subject = subject; d.procedures = {'Behavior training/tasks'}; d.narrative = 'auto-generated session'; d.start_time = expDate; - d.type = 'Experiment'; - d.parent_session = latest_base.url; - d.number = expSeq; - % d.users = {AlyxInstance.username}; + d.type = 'Base'; + % d.users = {AlyxInstance.username}; - try - subsession = alyx.postData(AlyxInstance, 'sessions', d); - url = subsession.url; - catch - url = []; - end - else % If not logged in to Alyx... - url = []; % set the base url to null - end - - % if the parameters had an experiment definition function, save a copy in - % the experiment's folder - if isfield(expParams, 'defFunction') - assert(file.exists(expParams.defFunction),... - 'Experiment definition function does not exist: %s', expParams.defFunction); - assert(all(cellfun(@(p)copyfile(expParams.defFunction, p),... - dat.expFilePath(expRef, 'expDefFun'))),... - 'Copying definition function to experiment folders failed'); + base_submit = alyx.postData(AlyxInstance, 'sessions', d); + assert(isfield(base_submit,'subject'),... + 'Submitted base session did not return appropriate values'); + + %Now retrieve the sessions again + sessions = alyx.getData(AlyxInstance,... + ['sessions?type=Base&subject=' subject]); end + latest_base = sessions{end}; - % now save the experiment parameters variable - superSave(dat.expFilePath(expRef, 'parameters'), struct('parameters', expParams)); + %Now create a new SUBSESSION, using the same experiment number + d = struct; + d.subject = subject; + d.procedures = {'Behavior training/tasks'}; + d.narrative = 'auto-generated session'; + d.start_time = expDate; + d.type = 'Experiment'; + d.parent_session = latest_base.url; + d.number = expSeq; + % d.users = {AlyxInstance.username}; + subsession = alyx.postData(AlyxInstance, 'sessions', d); + assert(isfield(subsession,'subject'),... + 'Failed to create new sub-session in Alyx for %s', subject); + url = subsession.url; +else + url = []; +end + +% if the parameters had an experiment definition function, save a copy in +% the experiment's folder +if isfield(expParams, 'defFunction') + assert(file.exists(expParams.defFunction),... + 'Experiment definition function does not exist: %s', expParams.defFunction); + assert(all(cellfun(@(p)copyfile(expParams.defFunction, p),... + dat.expFilePath(expRef, 'expDefFun'))),... + 'Copying definition function to experiment folders failed'); +end + +% now save the experiment parameters variable +superSave(dat.expFilePath(expRef, 'parameters'), struct('parameters', expParams)); + +if ~isempty(expParams) try % save a copy of parameters in json % First, change all functions to strings f_idx = structfun(@(s)isa(s, 'function_handle'), expParams); @@ -152,5 +150,5 @@ url, 'Parameters', [], AlyxInstance); end end - +end end \ No newline at end of file From 9621ddcb42fbd68a43de46164e46b7c8136ec470 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 5 Feb 2018 13:47:05 +0000 Subject: [PATCH 070/515] Doesn't force login if subject is 'default' --- +dat/newExp.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index acd3c48e..2358ac04 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -30,7 +30,7 @@ expParams = []; end -if nargin < 4 || isempty(AlyxInstance) +if (nargin < 4 || isempty(AlyxInstance)) && ~strcmp(subject, 'default') % no instance of Alyx, don't create session on Alyx AlyxInstance = alyx.loginWindow; end @@ -66,7 +66,7 @@ % now make the folder(s) to hold the new experiment assert(all(cellfun(@(p) mkdir(p), expPath)), 'Creating experiment directories failed'); -if ~strcmp(subject,'default') % Ignore fake subject +if ~strcmp(subject, 'default') % Ignore fake subject % if the Alyx Instance is set, find or create BASE session expDate = alyx.datestr(expDate); % date in Alyx format % Get list of base sessions @@ -139,13 +139,13 @@ [expRef, '_parameters.json']); savejson('parameters', expParams, jsonPath); % Register our JSON parameter set to Alyx - if ~strcmp(subject,'default') + if ~strcmp(subject, 'default') alyx.registerFile(jsonPath, 'json', url, 'Parameters', [], AlyxInstance); end catch ex warning(ex.identifier, 'Failed to save paramters as JSON: %s.\n Registering mat file instead', ex.message) % Register our parameter set to Alyx - if ~strcmp(subject,'default') + if ~strcmp(subject, 'default') alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... url, 'Parameters', [], AlyxInstance); end From 87184782e29a7ad7beb2ee1f69cb304ac9f0982c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 6 Feb 2018 18:19:24 +0000 Subject: [PATCH 071/515] Fixes for file registration Fix'd some typos --- +exp/Experiment.m | 4 ++-- +exp/SignalsExp.m | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/+exp/Experiment.m b/+exp/Experiment.m index e26860a0..5671b983 100644 --- a/+exp/Experiment.m +++ b/+exp/Experiment.m @@ -781,12 +781,12 @@ function saveData(obj) if strcmp(subject, 'default'); return; end % Register saved files obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.subsessionURL, 'Block', []); + obj.AlyxInstance.SessionURL, 'Block', []); % Save the session end time obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); catch ex - warning(ex.identifer, 'Failed to register files to Alyx: %s', ex.message); + warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); end end end diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index cbcacb1f..f83e238b 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -850,12 +850,12 @@ function saveData(obj) if strcmp(subject, 'default'); return; end % Register saved files obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.subsessionURL, 'Block', []); + obj.AlyxInstance.SessionURL, 'Block', []); % Save the session end time obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); catch ex - warning(ex.identifer, 'Failed to register files to Alyx: %s', ex.message); + warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); end end end From 48d13432569b08d0686552145f60996fa3508cce Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 7 Feb 2018 13:10:15 +0000 Subject: [PATCH 072/515] Fix'd expServer quit bug Listeners properly deleted and expServer now ends when q key is pressed, as before. --- +srv/expServer.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/+srv/expServer.m b/+srv/expServer.m index 1ac91302..a4c6149d 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -23,7 +23,7 @@ function expServer(useTimelineOverride, bgColour) rng('shuffle'); % communicator for receiving commands from clients communicator = io.WSJCommunicator.server(listenPort); -addlistener(communicator, 'MessageReceived',... +listener = event.listener(communicator, 'MessageReceived',... @(~,msg) handleMessage(msg.Id, msg.Data, msg.Sender)); communicator.EventMode = false; communicator.open(); @@ -46,6 +46,7 @@ function expServer(useTimelineOverride, bgColour) cleanup = onCleanup(@() fun.applyForce({ @() communicator.close(),... + @() delete(listener),... @ShowCursor,... @KbQueueRelease,... @() rig.stimWindow.close(),... From 2d464423799b26edb9ee0830dfee78b32d2d9d47 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 7 Feb 2018 18:59:49 +0000 Subject: [PATCH 073/515] Fixes to AlyxPanel and ExpPanel * Comments now saved properly in ExpPanel * More detail given about subject in stand-alone AlyxPanel * PutData now a public method :'( --- +dat/updateLogEntry.m | 6 ++++-- +eui/AlyxPanel.m | 36 ++++++++++++++++++++++++++++++------ +eui/ExpPanel.m | 2 +- +eui/MControl.m | 3 ++- 4 files changed, 37 insertions(+), 10 deletions(-) diff --git a/+dat/updateLogEntry.m b/+dat/updateLogEntry.m index bf3e94ee..ecbf3265 100644 --- a/+dat/updateLogEntry.m +++ b/+dat/updateLogEntry.m @@ -10,9 +10,11 @@ function updateLogEntry(subject, id, newEntry) % 2013-03 CB created -if isfield(newEntry, 'AlyxInstance')&&~isempty(newEntry.comments) +if isfield(newEntry, 'AlyxInstance') % Update session narrative on Alyx - newEntry.AlyxInstance.updateNarrative(subject, obj.LogEntry.comments); + if ~isempty(newEntry.comments) + newEntry.comments = newEntry.AlyxInstance.updateNarrative(subject, newEntry.comments); + end newEntry = rmfield(newEntry, 'AlyxInstance'); end diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 86349026..48fb4f70 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -263,6 +263,7 @@ function login(obj) notify(obj, 'Disconnected'); % Notify listeners of logout obj.log('Logged out of Alyx'); end + obj.dispWaterReq() end function giveWater(obj) @@ -320,12 +321,35 @@ function dispWaterReq(obj, src, ~) stop(obj.LoginTimer); start(obj.LoginTimer) try s = ai.getData(ai.makeEndpoint(['subjects/' obj.Subject])); % struct with data about the subject - if s.water_requirement_total==0 - set(obj.WaterRequiredText, 'String', sprintf('Subject %s not on water restriction', obj.Subject)); + if s.water_requirement_total==0 % Subject not on water restriction + set(obj.WaterRequiredText, 'ForegroundColor', 'black',... + 'String', sprintf('Subject %s not on water restriction', obj.Subject)); else - set(obj.WaterRequiredText, 'String', ... - sprintf('Subject %s requires %.2f of %.2f today', ... - obj.Subject, s.water_requirement_remaining, s.water_requirement_total)); + % Get information on weight and water given + endpnt = sprintf('water-requirement/%s?start_date=%s&end_date=%s',... + obj.Subject, datestr(now, 'yyyy-mm-dd'),datestr(now, 'yyyy-mm-dd')); + wr = ai.getData(endpnt); % Get today's weight and water record + record = wr.records{1}; + weight = getOr(record, 'weight_measured', NaN); % Get today's measured weight + water = getOr(record, 'water_given', 0); % Get total water given + gel = getOr(record, 'hydrogel_given', 0); % Get total gel given + % Set colour based on weight percentage + weight_pct = weight/record.weight_expected; + if weight_pct < 0.8 % Mouse below 80% original weight + colour = [0.91, 0.41, 0.17]; % Orange + weight_pct = '< 80%'; + elseif weight_pct < 0.7 % Mouse below 70% original weight + colour = 'red'; + weight_pct = '< 70%'; + else + colour = 'black'; % Mouse above 80% or no weight measured today + weight_pct = '> 80%'; + end + % Set text + set(obj.WaterRequiredText, 'ForegroundColor', colour, 'String', ... + sprintf('Subject %s requires %.2f of %.2f today\n\t Weight today: %.2f (%s) Water today: %.2f', ... + obj.Subject, s.water_requirement_remaining, s.water_requirement_total, weight, weight_pct, sum([water gel]))); + % Set WaterRemaining attribute for changeWaterText callback obj.WaterRemaining = s.water_requirement_remaining; end catch me @@ -345,7 +369,7 @@ function changeWaterText(obj, src, ~) % return will display this without posting to Alyx % % See also DISPWATERREQ, GIVEWATER - if ~obj.AlyxInstance.IsLoggedIn && ~isempty(obj.WaterRemaining) + if obj.AlyxInstance.IsLoggedIn && ~isempty(obj.WaterRemaining) rem = obj.WaterRemaining; curr = str2double(src.String); set(obj.WaterRemainingText, 'String', sprintf('(%.2f)', rem-curr)); diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index 4e6c2cb0..7878f6da 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -298,7 +298,7 @@ function saveLogEntry(obj) % subsession's narrative field. % % See also DAT.UPDATELOGENTRY, COMMENTSCHANGED - dat.updateLogEntry(dat.parseExpRef(obj.SubjectRef), obj.LogEntry.id, obj.LogEntry); + dat.updateLogEntry(obj.SubjectRef, obj.LogEntry.id, obj.LogEntry); end function viewParams(obj) diff --git a/+eui/MControl.m b/+eui/MControl.m index 9d706860..23beda8f 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -537,8 +537,9 @@ function beginExp(obj) if ~ai.IsLoggedIn && ~strcmp(obj.NewExpSubject.Selected,'default') try obj.AlyxPanel.login(); + assert(ai.IsLoggedIn); catch - log('Warning: Must be logged in to Alyx before running an experiment') + obj.log('Warning: Must be logged in to Alyx before running an experiment') return end end From 4f9eaeae0732d6e8fdaf53d331dddad057f5d6a2 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 8 Feb 2018 11:29:46 +0000 Subject: [PATCH 074/515] Headless flag set by expServer * expServer now won't try to show dialogs * update to posting Alyx narrative --- +dat/updateLogEntry.m | 2 +- +srv/expServer.m | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/+dat/updateLogEntry.m b/+dat/updateLogEntry.m index ecbf3265..7970edea 100644 --- a/+dat/updateLogEntry.m +++ b/+dat/updateLogEntry.m @@ -13,7 +13,7 @@ function updateLogEntry(subject, id, newEntry) if isfield(newEntry, 'AlyxInstance') % Update session narrative on Alyx if ~isempty(newEntry.comments) - newEntry.comments = newEntry.AlyxInstance.updateNarrative(subject, newEntry.comments); + newEntry.comments = newEntry.AlyxInstance.updateNarrative(newEntry.comments); end newEntry = rmfield(newEntry, 'AlyxInstance'); end diff --git a/+srv/expServer.m b/+srv/expServer.m index a4c6149d..f43a1749 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -171,6 +171,7 @@ function handleMessage(id, data, host) case 'run' % exp run request [expRef, preDelay, postDelay, Alyx] = args{:}; + Alyx.Headless = true; % Supress all dialog prompts if dat.expExists(expRef) log('Starting experiment ''%s''', expRef); communicator.send(id, []); From 0b1b5c61327ec528033ae876a9c548ad3353b22c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 9 Feb 2018 14:45:52 +0000 Subject: [PATCH 075/515] Fix for when record empty in dispWaterReq --- +eui/AlyxPanel.m | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 48fb4f70..1340d164 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -314,7 +314,8 @@ function dispWaterReq(obj, src, ~) % Set the selected subject if it is an input if nargin>1; obj.Subject = src.Selected; end if ~ai.IsLoggedIn - set(obj.WaterRequiredText, 'String', 'Log in to see water requirements'); + set(obj.WaterRequiredText, 'ForegroundColor', 'black',... + 'String', 'Log in to see water requirements'); return end % Refresh the timer as the user isn't inactive @@ -329,12 +330,17 @@ function dispWaterReq(obj, src, ~) endpnt = sprintf('water-requirement/%s?start_date=%s&end_date=%s',... obj.Subject, datestr(now, 'yyyy-mm-dd'),datestr(now, 'yyyy-mm-dd')); wr = ai.getData(endpnt); % Get today's weight and water record - record = wr.records{1}; + if ~isempty(wr.records) + record = wr.records{end}; + else + record = struct(); + end weight = getOr(record, 'weight_measured', NaN); % Get today's measured weight water = getOr(record, 'water_given', 0); % Get total water given gel = getOr(record, 'hydrogel_given', 0); % Get total gel given + weight_expected = getOr(record, 'weight_expected', NaN); % Set colour based on weight percentage - weight_pct = weight/record.weight_expected; + weight_pct = weight/weight_expected; if weight_pct < 0.8 % Mouse below 80% original weight colour = [0.91, 0.41, 0.17]; % Orange weight_pct = '< 80%'; @@ -355,7 +361,8 @@ function dispWaterReq(obj, src, ~) catch me d = loadjson(me.message); if isfield(d, 'detail') && strcmp(d.detail, 'Not found.') - set(obj.WaterRequiredText, 'String', sprintf('Subject %s not found in alyx', obj.Subject)); + set(obj.WaterRequiredText, 'ForegroundColor', 'black',... + 'String', sprintf('Subject %s not found in alyx', obj.Subject)); end end end From d813ff04c25ae26d738c415afed32f105af6bc5e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 13 Feb 2018 10:52:52 +0000 Subject: [PATCH 076/515] Alyx now a value class We need it to be copyable and there are no plans for events --- +eui/AlyxPanel.m | 9 +++++---- +eui/MControl.m | 14 +++++++------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 1340d164..ee9618af 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -205,12 +205,13 @@ function login(obj) % Are we logging in or out? if ~obj.AlyxInstance.IsLoggedIn % logging in % attempt login - obj.AlyxInstance.login(); % returns an instance if success, empty if you cancel + obj.AlyxInstance = obj.AlyxInstance.login(); % returns an instance if success, empty if you cancel if obj.AlyxInstance.IsLoggedIn % successful % Start log in timer, to automatically log out after 30 % minutes of 'inactivity' (defined as not calling % dispWaterReq) - obj.LoginTimer = timer('StartDelay', 30*60, 'TimerFcn', @(~,~)obj.login); + obj.LoginTimer = timer('StartDelay', 30*60, 'TimerFcn',... + @(~,~)obj.login, 'BusyMode', 'queue'); start(obj.LoginTimer) % Enable all buttons set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); @@ -250,7 +251,7 @@ function login(obj) obj.log('Did not log into Alyx'); end else % logging out - obj.AlyxInstance.logout; + obj = obj.AlyxInstance.logout; if ~isempty(obj.LoginTimer) % If there is a timer object stop(obj.LoginTimer) % Stop the timer... delete(obj.LoginTimer) % ... delete it... @@ -319,7 +320,7 @@ function dispWaterReq(obj, src, ~) return end % Refresh the timer as the user isn't inactive - stop(obj.LoginTimer); start(obj.LoginTimer) + stop(obj.LoginTimer); start(obj.LoginTimer) try s = ai.getData(ai.makeEndpoint(['subjects/' obj.Subject])); % struct with data about the subject if s.water_requirement_total==0 % Subject not on water restriction diff --git a/+eui/MControl.m b/+eui/MControl.m index 23beda8f..d0dbc286 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -347,7 +347,8 @@ function rigExpStopped(obj, rig, evt) % Announce that the experiment has stopped obj.log('Warning: unable to query Alyx about %s''s water requirements', subject); end % Remove AlyxInstance from rig; no longer required - delete(rig.AlyxInstance); +% delete(rig.AlyxInstance); % Line invalid now Alyx no longer +% handel class rig.AlyxInstance = []; end end @@ -533,11 +534,10 @@ function beginExp(obj) set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'off'); % Grey out buttons rig = obj.RemoteRigs.Selected; % Find which rig is selected % Save the current instance of Alyx so that eui.ExpPanel can register water to the correct account - ai = obj.AlyxPanel.AlyxInstance; - if ~ai.IsLoggedIn && ~strcmp(obj.NewExpSubject.Selected,'default') + if ~obj.AlyxPanel.AlyxInstance.IsLoggedIn && ~strcmp(obj.NewExpSubject.Selected,'default') try obj.AlyxPanel.login(); - assert(ai.IsLoggedIn); + assert(obj.AlyxPanel.AlyxInstance.IsLoggedIn); catch obj.log('Warning: Must be logged in to Alyx before running an experiment') return @@ -549,11 +549,11 @@ function beginExp(obj) obj.Parameters.set('services', services(:),... 'List of experiment services to use during the experiment'); % Create new experiment reference - [expRef, ~] = ai.newExp(obj.NewExpSubject.Selected, now,... - obj.Parameters.Struct); + [expRef, ~] = obj.AlyxPanel.AlyxInstance.newExp(... + obj.NewExpSubject.Selected, now, obj.Parameters.Struct); % Add a copy of the AlyxInstance to the rig object for later % water registration, &c. - rig.AlyxInstance = ai.copy; + rig.AlyxInstance = obj.AlyxPanel.AlyxInstance; panel = eui.ExpPanel.live(obj.ActiveExpsGrid, expRef, rig, obj.Parameters.Struct); obj.LastExpPanel = panel; From 723986c2dea77e9c6285a34d5cf8e19646e433e3 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 13 Feb 2018 13:28:16 +0000 Subject: [PATCH 077/515] Log out bug fix --- +eui/AlyxPanel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index ee9618af..a5bff35b 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -251,7 +251,7 @@ function login(obj) obj.log('Did not log into Alyx'); end else % logging out - obj = obj.AlyxInstance.logout; + obj.AlyxInstance = obj.AlyxInstance.logout; if ~isempty(obj.LoginTimer) % If there is a timer object stop(obj.LoginTimer) % Stop the timer... delete(obj.LoginTimer) % ... delete it... From daa0e0d2a70d3235816a53c56614579f704d5516 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 14 Feb 2018 10:47:01 +0000 Subject: [PATCH 078/515] Registration without sessionURL --- +eui/MControl.m | 3 ++- +exp/Experiment.m | 12 ++++++++---- +exp/SignalsExp.m | 12 ++++++++---- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/+eui/MControl.m b/+eui/MControl.m index d0dbc286..3dd65802 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -549,11 +549,12 @@ function beginExp(obj) obj.Parameters.set('services', services(:),... 'List of experiment services to use during the experiment'); % Create new experiment reference - [expRef, ~] = obj.AlyxPanel.AlyxInstance.newExp(... + [expRef, ~, url] = obj.AlyxPanel.AlyxInstance.newExp(... obj.NewExpSubject.Selected, now, obj.Parameters.Struct); % Add a copy of the AlyxInstance to the rig object for later % water registration, &c. rig.AlyxInstance = obj.AlyxPanel.AlyxInstance; + rig.AlyxInstance.SessionURL = url; panel = eui.ExpPanel.live(obj.ActiveExpsGrid, expRef, rig, obj.Parameters.Struct); obj.LastExpPanel = panel; diff --git a/+exp/Experiment.m b/+exp/Experiment.m index 5671b983..a4c6bf33 100644 --- a/+exp/Experiment.m +++ b/+exp/Experiment.m @@ -777,14 +777,18 @@ function saveData(obj) warning('No Alyx token set'); else try - subject = dat.parseExpRef(obj.Data.expRef); + [subject, expDate, seq] = dat.parseExpRef(obj.Data.expRef); if strcmp(subject, 'default'); return; end % Register saved files obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.SessionURL, 'Block', []); + {subject, expDate, seq}, 'Block', []); % Save the session end time - obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... - struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); + if ~isempty(obj.AlyxInstance.SessionURL) + obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... + struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); + else + % Infer from date session and retrieve using expFilePath + end catch ex warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); end diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index f83e238b..12309f75 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -846,14 +846,18 @@ function saveData(obj) warning('No Alyx token set'); else try - subject = dat.parseExpRef(obj.Data.expRef); + [subject, expDate, seq] = dat.parseExpRef(obj.Data.expRef); if strcmp(subject, 'default'); return; end % Register saved files obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.SessionURL, 'Block', []); + {subject, expDate, seq}, 'Block', []); % Save the session end time - obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... - struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); + if ~isempty(obj.AlyxInstance.SessionURL) + obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... + struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); + else + % Infer from date session and retrieve using expFilePath + end catch ex warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); end From 1593968d6c52b9283bf230aad4150ba6455885b5 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 14 Feb 2018 10:48:50 +0000 Subject: [PATCH 079/515] Timeline registers files without URL --- +hw/Timeline.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index e83b455e..50593790 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -463,11 +463,11 @@ function stop(obj) end % register Timeline.mat file to Alyx database - subject = dat.parseExpRef(obj.Data.expRef); + [subject, expDate, seq] = dat.parseExpRef(obj.Data.expRef); if obj.AlyxInstance.IsLoggedIn && ~strcmp(subject,'default') try obj.AlyxInstance.registerFile(obj.Data.savePaths{end}, 'mat',... - obj.AlyxInstance.SessionURL, 'Timeline', []); + {subject, expDate, seq}, 'Timeline', []); catch warning('couldn''t register files to alyx'); end From 6addcfbc56693729c148c758fa5269f485e0b90f Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 14 Feb 2018 11:23:33 +0000 Subject: [PATCH 080/515] UI Changes to MC * Rig list alphabetized * Can no longer begin experiment without loading params --- +eui/MControl.m | 17 ++++++++++++++--- +srv/stimulusControllers.m | 4 +++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/+eui/MControl.m b/+eui/MControl.m index 3dd65802..367f9428 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -264,6 +264,7 @@ function loadParamProfile(obj, profile) matchTypes = factory(strcmp({factory.label}, typeName)).matchTypes(); subject = obj.NewExpSubject.Selected; % Find which subject is selected label = 'none'; + set(obj.BeginExpButton, 'Enable', 'off') % Can't run experiment without params! switch lower(profile) case '' % if strcmp(obj.NewExpType.Selected, '') @@ -308,6 +309,7 @@ function loadParamProfile(obj, profile) if ~isempty(paramStruct) % Now parameters are loaded, pass to ParamEditor for display, etc. obj.ParamEditor = eui.ParamEditor(obj.Parameters, obj.ParamPanel); % Build parameter list in Global panel by calling eui.ParamEditor obj.ParamEditor.addlistener('Changed', @(src,~) obj.paramChanged); + set(obj.BeginExpButton, 'Enable', 'on') % Re-enable start button end end @@ -332,7 +334,10 @@ function rigExpStarted(obj, rig, evt) % Announce that the experiment has started function rigExpStopped(obj, rig, evt) % Announce that the experiment has stopped in the log box obj.log('''%s'' on ''%s'' stopped', evt.Ref, rig.Name); if rig == obj.RemoteRigs.Selected - set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'on'); % Re-enable 'Start' button so a new experiment can be started on that rig + set(obj.RigOptionsButton, 'Enable', 'on'); % Enable 'Options' + end + if obj.Parameters.Struct~=nil % If params loaded + set(obj.BeginExpButton, 'Enable', 'on'); % Re-enable 'Start' button so a new experiment can be started on that rig end % Alyx water reporting: indicate amount of water this mouse still needs if rig.AlyxInstance.IsLoggedIn @@ -394,7 +399,10 @@ function rigConnected(obj, rig, ~) else % The rig is idle... obj.log('Connected to ''%s''', rig.Name); % ...say so in the log box if rig == obj.RemoteRigs.Selected - set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'on'); % Enable 'Start' button + set(obj.RigOptionsButton, 'Enable', 'on'); % Enable 'Options' button + end + if obj.Parameters.Struct~=nil % If parameters loaded + set(obj.BeginExpButton, 'Enable', 'on'); end end end @@ -445,7 +453,10 @@ function remoteRigChanged(obj) obj.log('Could not connect to ''%s'' (%s)', rig.Name, errmsg); end elseif strcmp(rig.Status, 'idle') - set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'on'); + set(obj.RigOptionsButton, 'Enable', 'on'); + if obj.Parameters.Struct~=nil + set(obj.BeginExpButton, 'Enable', 'on'); + end else obj.rigConnected(rig); end diff --git a/+srv/stimulusControllers.m b/+srv/stimulusControllers.m index 05406f51..0ac89a83 100644 --- a/+srv/stimulusControllers.m +++ b/+srv/stimulusControllers.m @@ -9,6 +9,8 @@ p = dat.paths; sc = loadVar(fullfile(p.globalConfig, 'remote.mat'), 'stimulusControllers'); - +% Order alphabetically +[~, I] = sort(arrayfun(@(o)o.Name, sc, 'UniformOutput', false)); +sc = sc(I); end From efa4a5a8960bf0de6bf3f06ce579c2488b76f1af Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 14 Feb 2018 19:30:50 +0000 Subject: [PATCH 081/515] Fixes to BasicUDPService --- +hw/Timeline.m | 4 ++-- +srv/BasicUDPService.m | 33 ++++++++++++++++++++++----------- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 50593790..e9a6aac2 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -468,8 +468,8 @@ function stop(obj) try obj.AlyxInstance.registerFile(obj.Data.savePaths{end}, 'mat',... {subject, expDate, seq}, 'Timeline', []); - catch - warning('couldn''t register files to alyx'); + catch ex + warning(ex.identifier, 'couldn''t register files to Alyx: %s', ex.message); end end %TODO: Register ALF components to alyx, incl TimelineHW.json diff --git a/+srv/BasicUDPService.m b/+srv/BasicUDPService.m index f384704b..91779d86 100644 --- a/+srv/BasicUDPService.m +++ b/+srv/BasicUDPService.m @@ -131,13 +131,15 @@ function bind(obj) fopen(obj.Socket); end - function start(obj, expRef) + function start(obj, expRef, ai) + ref = Alyx.parseAlyxInstance(expRef, ai); % Send start message to remotehost and await confirmation - obj.confirmedSend(sprintf('GOGO%s*%s', expRef, hostname)); + obj.confirmedSend(sprintf('GOGO%s*%s', ref, hostname)); while obj.AwaitingConfirmation&&... ~strcmp(obj.LastReceivedMessage, obj.LastSentMessage) pause(0.2); end + if strcmp(obj.Status, 'exception'); error('Confirmation failed'); end end function stop(obj) @@ -163,14 +165,13 @@ function confirmedSend(obj, msg) % Add timer to impose a response timeout if ~isinf(obj.ResponseTimeout) obj.ResponseTimer = timer('StartDelay', obj.ResponseTimeout,... - 'TimerFcn', @(src,evt)obj.processMsg(src,evt), 'StopFcn', @(src,~)delete(src)); + 'TimerFcn', @(src,evt)obj.processMsg(src,evt), 'StopFcn', @(src,~)stop(src)); start(obj.ResponseTimer) % start the timer end end function receiveUDP(obj) obj.LastReceivedMessage = strtrim(fscanf(obj.Socket)); - % Remove any more accumulated inputs to the listener % obj.Socket.flushinput(); notify(obj, 'MessageReceived') @@ -196,16 +197,24 @@ function processMsg(obj, src, evt) return end % We no longer need the timer, stop it - if ~isempty(obj.ResponseTimer); stop(obj.ResponseTimer); end + if ~isempty(obj.ResponseTimer) + stop(obj.ResponseTimer); + delete(obj.ResponseTimer); + obj.ResponseTimer = []; + end if obj.AwaitingConfirmation % Reset AwaitingConfirmation obj.AwaitingConfirmation = false; - % Check the confirmation message is the same as the sent message - assert(~isempty(response)&&... % something received - strcmp(response.status, 'WHAT')||... % status update - strcmp(obj.LastReceivedMessage, obj.LastSentMessage),... % is echo - 'Confirmation failed') + try % Check the confirmation message is the same as the sent message + assert(~isempty(response)&&... % something received + strcmp(response.status, 'WHAT')||... % status update + strcmp(obj.LastReceivedMessage, obj.LastSentMessage),... % is echo + 'Confirmation failed') + catch ex + obj.Status = 'exception'; + rethrow(ex) + end end % At the moment we just disply some stuff, other functions listening % to the MessageReceived event can do their thing @@ -224,6 +233,7 @@ function processMsg(obj, src, evt) obj.LocalStatus = 'running'; obj.sendUDP(obj.LastReceivedMessage) catch ex + obj.LocalStatus = 'exception'; error('Failed to start service: %s', ex.message) end end @@ -241,6 +251,7 @@ function processMsg(obj, src, evt) obj.LocalStatus = 'idle'; obj.sendUDP(obj.LastReceivedMessage) catch + obj.LocalStatus = 'exception'; error('Failed to stop service') end end @@ -261,7 +272,7 @@ function processMsg(obj, src, evt) obj.Status = 'unavailable'; end else - % Ignore if it is our on + % Ignore if it is our own if strcmp(response.host, hostname); return; end try obj.sendUDP(['WHAT' parsed.id obj.LocalStatus '*' obj.RemoteHost]) From dc3d43de84f440dc264ad09ae7c6d78386927ac4 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 15 Feb 2018 16:24:45 +0000 Subject: [PATCH 082/515] List subjects now added to Alyx --- +eui/AlyxPanel.m | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index a5bff35b..4a097d5a 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -217,20 +217,8 @@ function login(obj) set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); set(obj.LoginText, 'String', ['You are logged in as ', obj.AlyxInstance.User]); % display which user is logged in set(obj.LoginButton, 'String', 'Logout'); - - % try updating the subject selectors in other panels - s = obj.AlyxInstance.getData('subjects?stock=False&alive=True'); - - respUser = cellfun(@(x)x.responsible_user, s, 'uni', false); - subjNames = cellfun(@(x)x.nickname, s, 'uni', false); - - thisUserSubs = sort(subjNames(strcmp(respUser, obj.AlyxInstance.User))); - otherUserSubs = sort(subjNames); - % note that we leave this User's mice also in - % otherUserSubs, in case they get confused and look - % there. - - newSubs = [{'default'}, thisUserSubs, otherUserSubs]; + + newSubs = obj.AlyxInstance.listSubjects; obj.NewExpSubject.Option = newSubs; obj.SubjectList = newSubs; From b266dd454f6f553a302d77b3c7b49bd3a321cbf8 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 15 Feb 2018 17:06:55 +0000 Subject: [PATCH 083/515] AlyxPanel enhancement now more accurately determines whether a mouse is on water restriction by comparing with data from water-restricted-subjects endpoint --- +eui/AlyxPanel.m | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 4a097d5a..a391f2da 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -217,7 +217,8 @@ function login(obj) set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); set(obj.LoginText, 'String', ['You are logged in as ', obj.AlyxInstance.User]); % display which user is logged in set(obj.LoginButton, 'String', 'Logout'); - + + % try updating the subject selectors in other panels newSubs = obj.AlyxInstance.listSubjects; obj.NewExpSubject.Option = newSubs; obj.SubjectList = newSubs; @@ -310,8 +311,9 @@ function dispWaterReq(obj, src, ~) % Refresh the timer as the user isn't inactive stop(obj.LoginTimer); start(obj.LoginTimer) try - s = ai.getData(ai.makeEndpoint(['subjects/' obj.Subject])); % struct with data about the subject - if s.water_requirement_total==0 % Subject not on water restriction + s = catStructs(ai.getData('water-restricted-subjects')); % struct with data about restricted subjects + idx = strcmp(obj.Subject, {s.nickname}); + if ~any(idx) % Subject not on water restriction set(obj.WaterRequiredText, 'ForegroundColor', 'black',... 'String', sprintf('Subject %s not on water restriction', obj.Subject)); else @@ -343,9 +345,9 @@ function dispWaterReq(obj, src, ~) % Set text set(obj.WaterRequiredText, 'ForegroundColor', colour, 'String', ... sprintf('Subject %s requires %.2f of %.2f today\n\t Weight today: %.2f (%s) Water today: %.2f', ... - obj.Subject, s.water_requirement_remaining, s.water_requirement_total, weight, weight_pct, sum([water gel]))); + obj.Subject, s(idx).water_requirement_remaining, s(idx).water_requirement_total, weight, weight_pct, sum([water gel]))); % Set WaterRemaining attribute for changeWaterText callback - obj.WaterRemaining = s.water_requirement_remaining; + obj.WaterRemaining = s(idx).water_requirement_remaining; end catch me d = loadjson(me.message); From 5926288265d9fa5de1ee29b4f3f70c9340a9d625 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 15 Feb 2018 17:08:47 +0000 Subject: [PATCH 084/515] doesn't try to post 'default' comments Won't post default's comments to Alyx --- +dat/updateLogEntry.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+dat/updateLogEntry.m b/+dat/updateLogEntry.m index 7970edea..0882ba2a 100644 --- a/+dat/updateLogEntry.m +++ b/+dat/updateLogEntry.m @@ -12,7 +12,7 @@ function updateLogEntry(subject, id, newEntry) if isfield(newEntry, 'AlyxInstance') % Update session narrative on Alyx - if ~isempty(newEntry.comments) + if ~isempty(newEntry.comments) && ~strcmp(subject, 'default') newEntry.comments = newEntry.AlyxInstance.updateNarrative(newEntry.comments); end newEntry = rmfield(newEntry, 'AlyxInstance'); From fcf2a2b1326a632ab3437bfce2ae0501e67831f6 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 19 Feb 2018 14:24:27 +0000 Subject: [PATCH 085/515] Temp roll-back register with url until alyx dev merge --- +exp/SignalsExp.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 12309f75..6723095d 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -850,7 +850,9 @@ function saveData(obj) if strcmp(subject, 'default'); return; end % Register saved files obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - {subject, expDate, seq}, 'Block', []); + obj.AlyxInstance.SessionURL, 'Block', []); +% obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... +% {subject, expDate, seq}, 'Block', []); % Save the session end time if ~isempty(obj.AlyxInstance.SessionURL) obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... From b5fa0a02d2729a1e89dc2dfb694f4dc0675b7ff2 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 20 Feb 2018 17:45:29 +0000 Subject: [PATCH 086/515] Fix'd beginExp bug can no longer start experiment on rig already running one --- +eui/MControl.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/+eui/MControl.m b/+eui/MControl.m index 367f9428..f46c4e96 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -309,7 +309,9 @@ function loadParamProfile(obj, profile) if ~isempty(paramStruct) % Now parameters are loaded, pass to ParamEditor for display, etc. obj.ParamEditor = eui.ParamEditor(obj.Parameters, obj.ParamPanel); % Build parameter list in Global panel by calling eui.ParamEditor obj.ParamEditor.addlistener('Changed', @(src,~) obj.paramChanged); - set(obj.BeginExpButton, 'Enable', 'on') % Re-enable start button + if strcmp(obj.RemoteRigs.Selected.Status, 'idle') + set(obj.BeginExpButton, 'Enable', 'on') % Re-enable start button + end end end From 7ff31c20291cb283f2ed3d7f5197825b79f05946 Mon Sep 17 00:00:00 2001 From: jjlee42 Date: Wed, 21 Feb 2018 20:20:06 +0000 Subject: [PATCH 087/515] Errors clearer in MpepUDPDataHosts --- cortexlab/+io/MpepUDPDataHosts.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cortexlab/+io/MpepUDPDataHosts.m b/cortexlab/+io/MpepUDPDataHosts.m index 07bd3cea..c6b4f34f 100644 --- a/cortexlab/+io/MpepUDPDataHosts.m +++ b/cortexlab/+io/MpepUDPDataHosts.m @@ -273,8 +273,8 @@ function validateResponses(obj) dt = toc; match = find(strcmp(waiting, ip), 1); assert(~isempty(match),... - 'Received UDP packet after %.2fs from unexpected IP address ''%s'',\nmessage was ''%s''',... - dt, ip, msg); + 'Received UDP packet after %.2fs from unexpected IP address ''%s'',\nmessage was ''%s''\nAwaiting response from %s',... + dt, ip, msg, strjoin(obj.RemoteHosts, ', ')); waiting(match) = []; % remove matching IP from confirmation list ok(i) = isequal(expecting, msg); end From 8e98c779e306983aaace80d11dd22a20d3975f3a Mon Sep 17 00:00:00 2001 From: jjlee42 Date: Wed, 21 Feb 2018 20:26:09 +0000 Subject: [PATCH 088/515] Fix'd parseAlyxInstance --- cortexlab/+io/MpepUDPDataHosts.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortexlab/+io/MpepUDPDataHosts.m b/cortexlab/+io/MpepUDPDataHosts.m index c6b4f34f..1f743832 100644 --- a/cortexlab/+io/MpepUDPDataHosts.m +++ b/cortexlab/+io/MpepUDPDataHosts.m @@ -205,7 +205,7 @@ function start(obj, expRef, ai) % Deal with Alyx instance first if ~isempty(ai) obj.AlyxInstance = ai; - UDP_msg = ai.parseAlyxInstance; + UDP_msg = Alyx.parseAlyxInstance(expRef, ai); [subject, seriesNum, expNum] = dat.expRefToMpep(expRef); alyxmsg = sprintf('alyx %s %d %d %s', subject, seriesNum, expNum, UDP_msg); confirmedBroadcast(obj, alyxmsg); From 93c69f0f4a98eee45f0832d5181ebf4eceb92874 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 21 Feb 2018 20:29:17 +0000 Subject: [PATCH 089/515] Updated bindMpepServer --- +hw/Timeline.m | 10 +++++----- cortexlab/+dat/subjectSelector.m | 4 ++-- cortexlab/+tl/bindMpepServer.m | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index e9a6aac2..0613a3b5 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -126,9 +126,9 @@ end end - function start(obj, expRef, Alyx) + function start(obj, expRef, ai) % START Starts timeline data acquisition - % START(obj, ref, Alyx) starts all DAQ sessions and adds + % START(obj, ref, AlyxInstance) starts all DAQ sessions and adds % the relevent output and input channels. % % See Also HW.TLOUTPUT/START @@ -138,7 +138,7 @@ function start(obj, expRef, Alyx) obj.stop(); end obj.Ref = expRef; % set the current experiment ref - obj.AlyxInstance = Alyx; % set the current instance of Alyx + obj.AlyxInstance = ai; % set the current instance of Alyx init(obj); % start the relevent sessions and add channels obj.Listener = obj.Sessions('main').addlistener('DataAvailable', @obj.process); % add listener @@ -463,11 +463,11 @@ function stop(obj) end % register Timeline.mat file to Alyx database - [subject, expDate, seq] = dat.parseExpRef(obj.Data.expRef); + [subject, ~, ~] = dat.parseExpRef(obj.Data.expRef); if obj.AlyxInstance.IsLoggedIn && ~strcmp(subject,'default') try obj.AlyxInstance.registerFile(obj.Data.savePaths{end}, 'mat',... - {subject, expDate, seq}, 'Timeline', []); + obj.AlyxInstance.SessionURL, 'Timeline', []); catch ex warning(ex.identifier, 'couldn''t register files to Alyx: %s', ex.message); end diff --git a/cortexlab/+dat/subjectSelector.m b/cortexlab/+dat/subjectSelector.m index 23df89b9..17097fe7 100644 --- a/cortexlab/+dat/subjectSelector.m +++ b/cortexlab/+dat/subjectSelector.m @@ -6,7 +6,7 @@ % from alyx; otherwise, from dat.listSubjects % % example usage: -% >> alyxInstance = alyx.loginWindow(); +% >> alyxInstance = Alyx.login; % >> [subj, expNum] = subjectSelector([], alyxInstance); % % Created by NS 2017 @@ -44,7 +44,7 @@ if nargin>1 ai = varargin{2}; - set(subjectDropdown, 'String', dat.listSubjects(ai)); + set(subjectDropdown, 'String', ai.listSubjects); else set(subjectDropdown, 'String', dat.listSubjects); end diff --git a/cortexlab/+tl/bindMpepServer.m b/cortexlab/+tl/bindMpepServer.m index 533e375b..9e15219e 100644 --- a/cortexlab/+tl/bindMpepServer.m +++ b/cortexlab/+tl/bindMpepServer.m @@ -81,7 +81,7 @@ function processMpep(listener, msg) case 'alyx' fprintf(1, 'received alyx token message\n'); idx = find(msg==' ', 1, 'last'); - [~, ai] = dat.parseAlyxInstance(msg(idx+1:end)); + [~, ai] = Alyx.parseAlyxInstance(msg(idx+1:end)); tls.AlyxInstance = ai; case 'expstart' % create a file path & experiment ref based on experiment info @@ -132,7 +132,7 @@ function listen() if isempty(tls.AlyxInstance) % first get an alyx instance - ai = alyx.loginWindow(); + ai = Alyx; else ai = tls.AlyxInstance; end @@ -142,8 +142,8 @@ function listen() if ~isempty(mouseName) clear expParams; expParams.experimentType = 'timelineManualStart'; - [newExpRef, ~, subsessionURL] = dat.newExp(mouseName, now, expParams, ai); - ai.subsessionURL = subsessionURL; + [newExpRef, ~, subsessionURL] = ai.newExp(mouseName, now, expParams); + ai.SessionURL = subsessionURL; tls.AlyxInstance = ai; tlObj.start(newExpRef, ai); end From 4999899343876473bcf6d50947838ce21e37e7ba Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 22 Feb 2018 21:25:34 +0000 Subject: [PATCH 090/515] Fixed Web page launch buttons in AlyxPanel --- +eui/AlyxPanel.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index a391f2da..5bfdeec6 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -462,7 +462,7 @@ function launchSessionURL(obj) uuid = u(find(u=='/', 1, 'last')+1:end); % make the admin url - adminURL = fullfile(ai.baseURL, 'admin', 'actions', 'session', uuid, 'change'); + adminURL = fullfile(ai.BaseURL, 'admin', 'actions', 'session', uuid, 'change'); % launch the website web(adminURL, '-browser'); @@ -470,7 +470,7 @@ function launchSessionURL(obj) function launchSubjectURL(obj) ai = obj.AlyxInstance; - if ~ai.IsLoggedIn + if ai.IsLoggedIn s = ai.getData(ai.makeEndpoint(['subjects/' obj.Subject])); subjURL = fullfile(ai.BaseURL, 'admin', 'subjects', 'subject', s.id, 'change'); % this is wrong - need uuid web(subjURL, '-browser'); From 185a3617083077726502f6ac019dce80551f88b0 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 28 Feb 2018 11:11:47 +0000 Subject: [PATCH 091/515] Optimized sqeakExpPanel & reverted newExp * Removed for loop in SqueakExpPanel * Improved plotting of discrimination task * dat.newExp no longer interacts with Alyx. For this, use Alyx.newExp. --- +dat/newExp.m | 113 +++++------------------------- +eui/SqueakExpPanel.m | 6 +- cortexlab/+psy/plot2AUFC.m | 140 ++++++++++++++++++++++--------------- 3 files changed, 100 insertions(+), 159 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index 6a86e07f..7618d371 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -1,4 +1,4 @@ -function [expRef, expSeq, url] = newExp(subject, expDate, expParams, AlyxInstance) +function [expRef, expSeq] = newExp(subject, expDate, expParams) %DAT.NEWEXP Create a new unique experiment in the database % [ref, seq, url] = DAT.NEWEXP(subject, expDate, expParams[, AlyxInstance]) % Create a new experiment by creating the relevant folder tree in the @@ -9,10 +9,7 @@ % |_ expSeq/ % % If experiment parameters are passed into the function, they are saved -% here, as a mat and in JSON (if possible). If an instance of Alyx is -% passed and a base session for the experiment date is not found, one is -% created in the Alyx database. A corresponding subsession is also -% created and the parameters file is registered with the sub-session. +% here. % % See also DAT.PATHS % @@ -30,11 +27,6 @@ expParams = []; end -if nargin < 4 - % no instance of Alyx, don't create session on Alyx - AlyxInstance = []; -end - if ischar(expDate) % if the passed expDate is a string, parse it into a datenum expDate = datenum(expDate, 'yyyy-mm-dd'); @@ -66,91 +58,18 @@ % now make the folder(s) to hold the new experiment assert(all(cellfun(@(p) mkdir(p), expPath)), 'Creating experiment directories failed'); -if ~strcmp(subject, 'default') % Ignore fake subject - % if the Alyx Instance is set, find or create BASE session - expDate = alyx.datestr(expDate); % date in Alyx format - if ~isempty(AlyxInstance) - % Get list of base sessions - sessions = alyx.getData(AlyxInstance,... - ['sessions?type=Base&subject=' subject]); - - %If the date of this latest base session is not the same date as - %today, then create a new base session for today - if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), expDate(1:10)) - d = struct; - d.subject = subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = expDate; - d.type = 'Base'; - % d.users = {AlyxInstance.username}; - - base_submit = alyx.postData(AlyxInstance, 'sessions', d); - assert(isfield(base_submit,'subject'),... - 'Submitted base session did not return appropriate values'); - - %Now retrieve the sessions again - sessions = alyx.getData(AlyxInstance,... - ['sessions?type=Base&subject=' subject]); - end - latest_base = sessions{end}; - - %Now create a new SUBSESSION, using the same experiment number - d = struct; - d.subject = subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = expDate; - d.type = 'Experiment'; - d.parent_session = latest_base.url; - d.number = expSeq; - % d.users = {AlyxInstance.username}; - - try - subsession = alyx.postData(AlyxInstance, 'sessions', d); - url = subsession.url; - catch - url = []; - end - else % If not logged in to Alyx... - url = []; % set the base url to null - end - - % if the parameters had an experiment definition function, save a copy in - % the experiment's folder - if isfield(expParams, 'defFunction') - assert(file.exists(expParams.defFunction),... - 'Experiment definition function does not exist: %s', expParams.defFunction); - assert(all(cellfun(@(p)copyfile(expParams.defFunction, p),... - dat.expFilePath(expRef, 'expDefFun'))),... - 'Copying definition function to experiment folders failed'); - end - - % now save the experiment parameters variable - superSave(dat.expFilePath(expRef, 'parameters'), struct('parameters', expParams)); - - try % save a copy of parameters in json - % First, change all functions to strings - f_idx = structfun(@(s)isa(s, 'function_handle'), expParams); - fields = fieldnames(expParams); - paramCell = struct2cell(expParams); - paramCell(f_idx) = cellfun(@func2str, paramCell(f_idx),'UniformOutput', false); - expParams = cell2struct(paramCell, fields); - % Generate JSON path and save - jsonPath = fullfile(fileparts(dat.expFilePath(expRef, 'parameters', 'master')),... - [expRef, '_parameters.json']); - savejson('parameters', expParams, jsonPath); - % Register our JSON parameter set to Alyx - if ~strcmp(subject,'default') - alyx.registerFile(jsonPath, 'json', url, 'Parameters', [], AlyxInstance); - end - catch ex - warning(ex.identifier, 'Failed to save paramters as JSON: %s.\n Registering mat file instead', ex.message) - % Register our parameter set to Alyx - if ~strcmp(subject,'default') - alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... - url, 'Parameters', [], AlyxInstance); - end - end - + +% if the parameters had an experiment definition function, save a copy in +% the experiment's folder +if isfield(expParams, 'defFunction') + assert(file.exists(expParams.defFunction),... + 'Experiment definition function does not exist: %s', expParams.defFunction); + assert(all(cellfun(@(p)copyfile(expParams.defFunction, p),... + dat.expFilePath(expRef, 'expDefFun'))),... + 'Copying definition function to experiment folders failed'); +end + +% now save the experiment parameters variable +superSave(dat.expFilePath(expRef, 'parameters'), struct('parameters', expParams)); + end \ No newline at end of file diff --git a/+eui/SqueakExpPanel.m b/+eui/SqueakExpPanel.m index 865a0c0d..39320746 100644 --- a/+eui/SqueakExpPanel.m +++ b/+eui/SqueakExpPanel.m @@ -23,12 +23,8 @@ function update(obj) update@eui.ExpPanel(obj); processUpdates(obj); % update labels with latest signal values -% labels = cell2mat(values(obj.LabelsMap))'; labelsMapVals = values(obj.LabelsMap)'; - labels = gobjects(size(values(obj.LabelsMap))); - for i=1:length(labelsMapVals) % using for loop (sorry Chris!) to populate object array 2017-02-14 MW - labels(i) = labelsMapVals{i}; - end + labels = deal([labelsMapVals{:}]); if ~isempty(labels) % colour decay by recency on labels dt = cellfun(@(t)etime(clock,t),... ensureCell(get(labels, 'UserData'))); diff --git a/cortexlab/+psy/plot2AUFC.m b/cortexlab/+psy/plot2AUFC.m index 0c260f24..66037cb6 100644 --- a/cortexlab/+psy/plot2AUFC.m +++ b/cortexlab/+psy/plot2AUFC.m @@ -1,73 +1,99 @@ function plot2AUFC(ax, block) - -% numCompletedTrials = block.numCompletedTrials; - -[block.trial(arrayfun(@(a)isempty(a.contrast), block.trial)).contrast] = deal(nan); +[block.trial(arrayfun(@(a)isempty(a.contrastLeft), block.trial)).contrastLeft] = deal(nan); +[block.trial(arrayfun(@(a)isempty(a.contrastRight), block.trial)).contrastRight] = deal(nan); [block.trial(arrayfun(@(a)isempty(a.response), block.trial)).response] = deal(nan); [block.trial(arrayfun(@(a)isempty(a.repeatNum), block.trial)).repeatNum] = deal(nan); [block.trial(arrayfun(@(a)isempty(a.feedback), block.trial)).feedback] = deal(nan); -contrast = [block.trial.contrast]; +contrast = []; +contrast(1,:) = [block.trial.contrastLeft]; +contrast(2,:) = [block.trial.contrastRight]; +% contrast = diff(contrast); response = [block.trial.response]; repeatNum = [block.trial.repeatNum]; -% feedback = [block.trial.feedback]; -if any(structfun(@isempty, block.trial(end))) % strip incomplete trials - contrast = contrast(1:end-1); - response = response(1:end-1); - repeatNum = repeatNum(1:end-1); +if any(structfun(@isnan, block.trial(end))) % strip incomplete trials + contrast = contrast(:,1:end-1); + response = response(1:end-1); + repeatNum = repeatNum(1:end-1); end respTypes = unique(response); numRespTypes = numel(respTypes); -cVals = unique(contrast); +if size(contrast, 1) > 1 + allContrast = contrast; + contrast = diff(contrast, [], 1); +else + allContrast = [0;0]; +end -psychoM = zeros(numRespTypes,length(cVals)); -psychoMCI = zeros(numRespTypes,length(cVals)); -numTrials = zeros(1,length(cVals)); -numChooseR = zeros(numRespTypes, length(cVals)); -for r = 1:numRespTypes - for c = 1:length(cVals) - incl = repeatNum==1&contrast==cVals(c); - numTrials(c) = sum(incl); - numChooseR(r,c) = sum(response==respTypes(r)&incl); - - psychoM(r, c) = numChooseR(r,c)/numTrials(c); - psychoMCI(r, c) = 1.96*sqrt(psychoM(r, c)*(1-psychoM(r, c))/numTrials(c)); +if any(allContrast(1,:)>0 & allContrast(2,:)>0) + + % mode for plotting task with two stimuli at once + cValsLeft = unique(allContrast(1,:)); + cValsRight = unique(allContrast(2,:)); + nCL = numel(cValsLeft); + nCR = numel(cValsRight); + % pedVals = cVals(1:end-1); + % numPeds = numel(pedVals); + + respTypes = unique(response); + numRespTypes = numel(respTypes); + numTrials = nan(1, nCL, nCR); + numChooseR = nan(numRespTypes, nCL, nCR); + psychoM = nan(numRespTypes, nCL, nCR); + for r = 1:numRespTypes + for c1 = 1:nCL + for c2 = 1:nCR + incl = repeatNum==1&allContrast(1,:)==cValsLeft(c1)&allContrast(2,:) == cValsRight(c2); + numTrials(1,c1,c2) = sum(incl); + numChooseR(r,c1,c2) = sum(response==respTypes(r)&incl); + psychoM(r,c1,c2) = numChooseR(r,c1,c2)/numTrials(1,c1,c2); + %psychoMCI(r, c,las) = 1.96*sqrt(psychoM(r, c,las)*(1-psychoM(r, c,las))/numTrials(1,c,las)); + end end -end - -colors = [0 1 1 - 1 0 0 - 0 1 0];%hsv(numRespTypes); -% hsv(3) - -for r = 1:numRespTypes - - xdata = 100*cVals; - ydata = 100*psychoM(r,:); -% errBars = 100*psychoMCI(r,:); - - plot(ax, xdata, ydata, '-o', 'Color', colors(r,:), 'LineWidth', 1.0); - - % set all NaN values to 0 so the fill function can proceed just - % skipping over those points. -% ydata(isnan(ydata)) = 0; -% errBars(isnan(errBars)) = 0; - - %TODO:update to use plt.hshade -% fillhandle = fill([xdata xdata(end:-1:1)],... -% [ydata+errBars ydata(end:-1:1)-errBars(end:-1:1)], colors(r,:),... -% 'Parent', ax); -% set(fillhandle, 'FaceAlpha', 0.15, 'EdgeAlpha', 0); - %,... + end + cla(ax) + psychoMCmap = reshape(permute(psychoM, [2 1 3]), numRespTypes*nCR, nCL)'; + psychoMCmap(isnan(psychoMCmap))=-1; + imagesc(ax, psychoMCmap) + colormap(colormap_pinkgreyscale) + + set(ax, 'XTick', 1:nCR*numRespTypes, 'XTickLabel', cValsRight(repmat(1:nCR, [1 numRespTypes]))); + set(ax, 'YTick', 1:nCL, 'YTickLabel', cValsLeft(1:nCL)); + + for r = 1:numRespTypes-1 + plot(ax, nCR*r+[0.5 0.5], [0.5 nCL+0.5], 'Color', [0.8 0.8 0.8], 'LineWidth', 2.0); + end + + xlim(ax, [0.5 nCR*numRespTypes+0.5]) + ylim(ax, [0.5 nCL+0.5]) + caxis(ax, [-1 1]); + axis(ax, 'image') +else + + cVals = unique(contrast); + colors = iff(numRespTypes>2,[0 1 1; 0 1 0; 1 0 0], [0 1 1; 1 0 0]); + psychoM = zeros(numRespTypes,length(cVals)); + psychoMCI = zeros(numRespTypes,length(cVals)); + numTrials = zeros(1,length(cVals)); + numChooseR = zeros(numRespTypes, length(cVals)); + for r = 1:numRespTypes + for c = 1:length(cVals) + incl = repeatNum==1&contrast==cVals(c); + numTrials(c) = sum(incl); + numChooseR(r,c) = sum(response==respTypes(r)&incl); - -% hold on; - - + psychoM(r, c) = numChooseR(r,c)/numTrials(c); + psychoMCI(r, c) = 1.96*sqrt(psychoM(r, c)*(1-psychoM(r, c))/numTrials(c)); + end + errorbar(ax, 100*cVals, 100*psychoM(r,:), 100*psychoMCI(r,:),... + '-o', 'Color', colors(r,:), 'LineWidth', 1.0); + end + + ylim(ax, [-1 101]); + xdata = cVals(~isnan(cVals))*100; + if numel(xdata) > 1 + xlim(ax, xdata([1 end])*1.1); + end end -ylim(ax, [-1 101]); -xdata = xdata(~isnan(xdata)); -if numel(xdata) > 1 - xlim(ax, xdata([1 end])*1.1); end From 3963d2298e7bcaae70e3fc3887495f7f1b350596 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 1 Mar 2018 17:23:20 +0000 Subject: [PATCH 092/515] Fix'd empty AlyxInstance bug Alyx instance now less likely to cause error when unset --- +eui/AlyxPanel.m | 2 +- +hw/Timeline.m | 2 +- cortexlab/+tl/bindMpepServer.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 5bfdeec6..368aae21 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -32,7 +32,7 @@ % 2017-03 NS created % 2017-10 MW made into class properties (SetAccess = private) - AlyxInstance = Alyx; % An Alyx object to interfacing with the database + AlyxInstance = Alyx('',''); % An Alyx object to interfacing with the database SubjectList % List of active subjects from database Subject = 'default' % The name of the currently selected subject end diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 0613a3b5..4850b519 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -464,7 +464,7 @@ function stop(obj) % register Timeline.mat file to Alyx database [subject, ~, ~] = dat.parseExpRef(obj.Data.expRef); - if obj.AlyxInstance.IsLoggedIn && ~strcmp(subject,'default') + if ~isempty(obj.AlyxInstance) && obj.AlyxInstance.IsLoggedIn && ~strcmp(subject,'default') try obj.AlyxInstance.registerFile(obj.Data.savePaths{end}, 'mat',... obj.AlyxInstance.SessionURL, 'Timeline', []); diff --git a/cortexlab/+tl/bindMpepServer.m b/cortexlab/+tl/bindMpepServer.m index 9e15219e..9b4a5024 100644 --- a/cortexlab/+tl/bindMpepServer.m +++ b/cortexlab/+tl/bindMpepServer.m @@ -36,7 +36,7 @@ tls.close = @closeConns; tls.process = @process; tls.listen = @listen; -tls.AlyxInstance = []; +tls.AlyxInstance = Alyx('',''); %% Initialize timeline From 1d870f72ed178f464f7a20a0e5cbbe51b43f1ee3 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 15 Mar 2018 17:26:29 +0000 Subject: [PATCH 093/515] Behavioural data saved and registered as npy files If expDef contains 'choiceworld', key data are extracted from the block file and saved as npy files, before registering to Alyx. --- +exp/SignalsExp.m | 133 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 108 insertions(+), 25 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 6723095d..c22e1e10 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -838,32 +838,115 @@ function activateEventHandler(obj, handler, eventInfo, dueTime) end function saveData(obj) - % save the data to the appropriate locations indicated by expRef - savepaths = dat.expFilePath(obj.Data.expRef, 'block'); - superSave(savepaths, struct('block', obj.Data)); - - if ~obj.AlyxInstance.IsLoggedIn - warning('No Alyx token set'); - else - try - [subject, expDate, seq] = dat.parseExpRef(obj.Data.expRef); - if strcmp(subject, 'default'); return; end - % Register saved files - obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.SessionURL, 'Block', []); -% obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... -% {subject, expDate, seq}, 'Block', []); - % Save the session end time - if ~isempty(obj.AlyxInstance.SessionURL) - obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... - struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); - else - % Infer from date session and retrieve using expFilePath - end - catch ex - warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); - end + % save the data to the appropriate locations indicated by expRef + savepaths = dat.expFilePath(obj.Data.expRef, 'block'); + superSave(savepaths, struct('block', obj.Data)); + [subject, ~, ~] = dat.parseExpRef(obj.Data.expRef); + + % if this is a 'ChoiceWorld' experiment, let's save out for + % relevant data for basic behavioural analysis and register them to + % Alyx + if contains(lower(obj.Data.expDef), 'choiceworld') ... + && ~strcmp(subject, 'default') && isfield(obj.Data, 'events') ... + && ~strcmp(obj.Data.endStatus,'aborted') + try + expPath = dat.expPath(obj.Data.expRef, 'main', 'master'); + % Write feedback + + feedback = getOr(obj.Data.events, 'feedbackValues', NaN); + feedback = double(feedback); + feedback(feedback == 0) = -1; + if ~isnan(feedback) + writeNPY(feedback(:), fullfile(expPath, 'cwFeedback.type.npy')); + alf.writeEventseries(expPath, 'cwFeedback',... + obj.Data.events.feedbackTimes, [], []); + else + warning('No ''feedback'' events recorded, cannot register to Alyx') + end + + % Write go cue + interactiveOn = getOr(obj.Data.events, 'interactiveOnTimes', NaN); + if ~isnan(interactiveOn) + alf.writeEventseries(expPath, 'cwGoCue', interactiveOn, [], []); + else + warning('No ''interactiveOn'' events recorded, cannot register to Alyx') + end + + % Write response + response = getOr(obj.Data.events, 'responseValues', NaN); + if min(response) == -1 + response(response == 0) = 3; + response(response == 1) = 2; + response(response == -1) = 1; + end + if ~isnan(response) + writeNPY(response(:), fullfile(expPath, 'cwResponse.choice.npy')); + alf.writeEventseries(expPath, 'cwResponse',... + obj.Data.events.responseTimes, [], []); + else + warning('No ''feedback'' events recorded, cannot register to Alyx') + end + + % Write stim on times + stimOnTimes = getOr(obj.Data.events, 'stimulusOnTimes', NaN); + if ~isnan(stimOnTimes) + alf.writeEventseries(expPath, 'cwStimOn', stimOnTimes, [], []); + else + warning('No ''stimulusOn'' events recorded, cannot register to Alyx') + end + contL = getOr(obj.Data.events, 'contrastLeftValues', NaN); + contR = getOr(obj.Data.events, 'contrastRightValues', NaN); + if ~isnan(contL)&&~isnan(contR) + writeNPY(contL(:), fullfile(expPath, 'cwStimOn.contrastLeft.npy')); + writeNPY(contR(:), fullfile(expPath, 'cwStimOn.contrastRight.npy')); + else + warning('No ''contrastLeft'' and/or ''contrastRight'' events recorded, cannot register to Alyx') + end + + % Write trial intervals + alf.writeInterval(expPath, 'cwTrials',... + obj.Data.events.newTrialTimes(:), obj.Data.events.endTrialTimes(:), [], []); + repNum = obj.Data.events.repeatNumValues(:); + writeNPY(repNum == 1, fullfile(expPath, 'cwTrials.inclTrials.npy')); + writeNPY(repNum, fullfile(expPath, 'cwTrials.repNum.npy')); + + % Write wheel times, position and velocity + wheelValues = obj.Data.inputs.wheelValues(:); + wheelValues = wheelValues*(3.1*2*pi/(4*1024)); + wheelTimes = obj.Data.inputs.wheelTimes(:); + alf.writeTimeseries(expPath, 'Wheel', wheelTimes, [], []); + writeNPY(wheelValues, fullfile(expPath, 'Wheel.position.npy')); + writeNPY(wheelValues./wheelTimes, fullfile(expPath, 'Wheel.velocity.npy')); + + % Register them to Alyx + obj.AlyxInstance.registerALFtoAlyx(expPath); + catch ex + warning(ex.identifier, 'Failed to register alf files: %s.', ex.message); + end + end + + if isempty(obj.AlyxInstance) + warning('No Alyx token set'); + else + try + [subject, expDate, seq] = dat.parseExpRef(obj.Data.expRef); + if strcmp(subject, 'default'); return; end + % Register saved files + obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... + obj.AlyxInstance.SessionURL, 'Block', []); +% obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... +% {subject, expDate, seq}, 'Block', []); + % Save the session end time + if ~isempty(obj.AlyxInstance.SessionURL) + obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... + struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); + else + % Infer from date session and retrieve using expFilePath + end + catch ex + warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); end + end end end From 5520c4cb9b2e00d617321d54599e5fd9ad49562d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 15 Mar 2018 17:43:03 +0000 Subject: [PATCH 094/515] Reverted to session url registration Registering files with expRef not yet implemented --- +exp/Experiment.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/+exp/Experiment.m b/+exp/Experiment.m index a4c6bf33..acdd7f9f 100644 --- a/+exp/Experiment.m +++ b/+exp/Experiment.m @@ -781,7 +781,9 @@ function saveData(obj) if strcmp(subject, 'default'); return; end % Register saved files obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - {subject, expDate, seq}, 'Block', []); + obj.AlyxInstance.SessionURL, 'Block', []); +% obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... +% {subject, expDate, seq}, 'Block', []); % Save the session end time if ~isempty(obj.AlyxInstance.SessionURL) obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... From 47042707d0f395fd46287fb2530093a6c4f1e645 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 16 Mar 2018 11:30:03 +0000 Subject: [PATCH 095/515] Added lick detector input to signals --- +exp/SignalsExp.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index c22e1e10..5d9b00d7 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -156,6 +156,7 @@ obj.Events.newTrial = net.origin('newTrial'); obj.Events.expStop = net.origin('expStop'); obj.Inputs.wheel = net.origin('wheel'); + obj.Inputs.lick = net.origin('lick'); obj.Inputs.keyboard = net.origin('keyboard'); % get global parameters & conditional parameters structs [~, globalStruct, allCondStruct] = toConditionServer(... @@ -674,6 +675,14 @@ function mainLoop(obj) % tic wx = readAbsolutePosition(obj.Wheel); post(obj.Inputs.wheel, wx); + if ~isempty(obj.LickDetector) + % read and log the current lick count + [nlicks, ~, licked] = readPosition(obj.LickDetector); + if licked + post(obj.Inputs.lick, nlicks); + fprintf('lick count now %i\n', nlicks); + end + end post(obj.Time, now(obj.Clock)); runSchedule(obj.Net); From 867d98ff5218cb876b6652d9752b4668b91daafb Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 16 Mar 2018 11:55:33 +0000 Subject: [PATCH 096/515] Parameters now charector type friendly Also default numTrials is 1000 total trials --- +exp/inferParameters.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index bc879029..145f5978 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -42,7 +42,9 @@ end sz = iff(isempty(fieldnames(parsStruct)), 1,... % if there are no paramters sz = 1 structfun(@(a)size(a,2), parsStruct)); % otherwise get number of columns - parsStruct.numRepeats = ones(1,max(sz)); % add 'numRepeats' parameter + isChar = structfun(@ischar, parsStruct); % we disregard charecter arrays + % add 'numRepeats' parameter, where total number of trials = 1000 + parsStruct.numRepeats = ones(1,max(sz(~isChar)))*floor(1000/max(sz(~isChar))); parsStruct.defFunction = expdef; parsStruct.type = 'custom'; % Define the ExpPanel to use (automatically by name convention for now) From 6b4b46bda74122aa12ed9907674e89856f0982e2 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 16 Mar 2018 12:42:00 +0000 Subject: [PATCH 097/515] Fix'd a couple of indexing bugs --- +exp/SignalsExp.m | 4 ++-- +exp/inferParameters.m | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 5d9b00d7..12dc3732 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -905,7 +905,7 @@ function saveData(obj) end contL = getOr(obj.Data.events, 'contrastLeftValues', NaN); contR = getOr(obj.Data.events, 'contrastRightValues', NaN); - if ~isnan(contL)&&~isnan(contR) + if ~any(isnan(contL))&&~any(isnan(contR)) writeNPY(contL(:), fullfile(expPath, 'cwStimOn.contrastLeft.npy')); writeNPY(contR(:), fullfile(expPath, 'cwStimOn.contrastRight.npy')); else @@ -928,7 +928,7 @@ function saveData(obj) writeNPY(wheelValues./wheelTimes, fullfile(expPath, 'Wheel.velocity.npy')); % Register them to Alyx - obj.AlyxInstance.registerALFtoAlyx(expPath); + obj.AlyxInstance.registerALF(expPath); catch ex warning(ex.identifier, 'Failed to register alf files: %s.', ex.message); end diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 145f5978..51c57a01 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -43,8 +43,9 @@ sz = iff(isempty(fieldnames(parsStruct)), 1,... % if there are no paramters sz = 1 structfun(@(a)size(a,2), parsStruct)); % otherwise get number of columns isChar = structfun(@ischar, parsStruct); % we disregard charecter arrays + if any(isChar); sz = sz(~isChar); end % add 'numRepeats' parameter, where total number of trials = 1000 - parsStruct.numRepeats = ones(1,max(sz(~isChar)))*floor(1000/max(sz(~isChar))); + parsStruct.numRepeats = ones(1,max(sz))*floor(1000/max(sz)); parsStruct.defFunction = expdef; parsStruct.type = 'custom'; % Define the ExpPanel to use (automatically by name convention for now) From 8a51bd3cdb892d8015a2edab7f5b7b8562fcfa32 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 19 Mar 2018 17:02:00 +0000 Subject: [PATCH 098/515] update bindMpepServerWithWS to modern --- cortexlab/+tl/bindMpepServerWithWS.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cortexlab/+tl/bindMpepServerWithWS.m b/cortexlab/+tl/bindMpepServerWithWS.m index 0adbafca..32ef7ade 100644 --- a/cortexlab/+tl/bindMpepServerWithWS.m +++ b/cortexlab/+tl/bindMpepServerWithWS.m @@ -156,7 +156,7 @@ function listen() if isempty(tls.AlyxInstance) % first get an alyx instance - ai = alyx.loginWindow(); + ai = Alyx; else ai = tls.AlyxInstance; end @@ -166,8 +166,8 @@ function listen() if ~isempty(mouseName) clear expParams; expParams.experimentType = 'timelineManualStart'; - [newExpRef, newExpSeq, subsessionURL] = dat.newExp(mouseName, now, expParams, ai); - ai.subsessionURL = subsessionURL; + [newExpRef, ~, subsessionURL] = ai.newExp(mouseName, now, expParams); + ai.SessionURL = subsessionURL; tls.AlyxInstance = ai; %[subjectRef, expDate, expSequence] = dat.parseExpRef(newExpRef); From 2e92e454ab507b7803aeadf60ada83b24b78322b Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 19 Mar 2018 18:12:07 +0000 Subject: [PATCH 099/515] add offset option to sinepulsegen --- +hw/SinePulseGenerator.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/+hw/SinePulseGenerator.m b/+hw/SinePulseGenerator.m index 95576183..3dc9f174 100644 --- a/+hw/SinePulseGenerator.m +++ b/+hw/SinePulseGenerator.m @@ -38,6 +38,8 @@ % add a zero so it turns off at the end samples = [samples'; 0]; + + samples = samples+obj.Offset; end end From fbaa46231b696579c21d5efb4956a503fc2c0fba Mon Sep 17 00:00:00 2001 From: nsteinme Date: Mon, 19 Mar 2018 18:12:32 +0000 Subject: [PATCH 100/515] add set-able samplerate for daq controller --- +hw/DaqController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/+hw/DaqController.m b/+hw/DaqController.m index 4a480fcf..a9835d40 100644 --- a/+hw/DaqController.m +++ b/+hw/DaqController.m @@ -45,6 +45,9 @@ SignalGenerators = hw.PulseSwitcher.empty DaqIds = 'Dev1' % device ID's for each channel, e.g. 'Dev1' DaqChannelIds = {} % DAQ's ID for each channel, e.g. 'ao0' + SampleRate = 1000 % output sample rate ("scans/sec") of the daq device + % 1000 is also the default of the ni daq devices themselves, so if + % you don't change this, it doesn't actually do anything. end properties (Transient) @@ -66,6 +69,7 @@ function createDaqChannels(obj) if isempty(obj.DaqSession) obj.DaqSession = daq.createSession('ni'); + obj.DaqSession.Rate = obj.SampleRate; end if isempty(obj.DigitalDaqSession)&&any(~obj.AnalogueChannelsIdx) obj.DigitalDaqSession = daq.createSession('ni'); From e598fc6084cf47089e6f5a7ec6cac1bc304ac658 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 20 Mar 2018 18:12:43 +0000 Subject: [PATCH 101/515] StimulusControl has default Alyx object --- +srv/StimulusControl.m | 2 +- cortexlab/+psy/plot2AUFC.m | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/+srv/StimulusControl.m b/+srv/StimulusControl.m index 34db88fe..9e6f8114 100644 --- a/+srv/StimulusControl.m +++ b/+srv/StimulusControl.m @@ -43,7 +43,7 @@ end properties (Transient, Hidden) - AlyxInstance = [] % Property to store rig specific Alyx token + AlyxInstance = Alyx('','') % Property to store rig specific Alyx token end properties (Constant) diff --git a/cortexlab/+psy/plot2AUFC.m b/cortexlab/+psy/plot2AUFC.m index 66037cb6..61744ebf 100644 --- a/cortexlab/+psy/plot2AUFC.m +++ b/cortexlab/+psy/plot2AUFC.m @@ -10,11 +10,15 @@ function plot2AUFC(ax, block) % contrast = diff(contrast); response = [block.trial.response]; repeatNum = [block.trial.repeatNum]; -if any(structfun(@isnan, block.trial(end))) % strip incomplete trials - contrast = contrast(:,1:end-1); - response = response(1:end-1); - repeatNum = repeatNum(1:end-1); -end +incl = ~any(isnan([contrast;response;repeatNum])); +contrast = contrast(incl); +response = response(incl); +repeatNum = repeatNum(incl); +% if any(structfun(@isnan, block.trial(end))) % strip incomplete trials +% contrast = contrast(:,1:end-1); +% response = response(1:end-1); +% repeatNum = repeatNum(1:end-1); +% end respTypes = unique(response); numRespTypes = numel(respTypes); From 283ef018a1543dee97ae584787f78d2016632517 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 22 Mar 2018 12:30:37 +0000 Subject: [PATCH 102/515] AlyxPanel now has active flag when inactive, Alyx instance is set to Headless mode and the login button is disabled. --- +eui/AlyxPanel.m | 24 ++++++++++++++++++------ +eui/MControl.m | 4 ---- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 368aae21..4945e0ca 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -57,12 +57,15 @@ end methods - function obj = AlyxPanel(parent) - % Constructor to build all the UI elements and set callbacks to - % the relevant functions. If a handle to parant UI object is - % not specified, a seperate figure is created. An optional - % handle to a logging display panal may be provided, otherwise - % one is created. + function obj = AlyxPanel(parent, active) + % Constructor to build all the UI elements and set callbacks to the + % relevant functions. If a handle to parant UI object is not + % specified, a seperate figure is created. An optional handle to a + % logging display panal may be provided, otherwise one is created. If + % the active flag is set to false (default is true), the panel is + % inactive and the instance of Alyx will be set to headless. + % + % See also Alyx if ~nargin % No parant object: create new figure f = figure('Name', 'alyx GUI',... @@ -84,6 +87,9 @@ obj.NewExpSubject.addlistener('SelectionChanged', @(src, evt)obj.dispWaterReq(src, evt)); end + % Default to active AlyxPanel + if nargin < 2; active = true; end + obj.RootContainer = uix.Panel('Parent', parent, 'Title', 'Alyx'); alyxbox = uiextras.VBox('Parent', obj.RootContainer); @@ -98,6 +104,12 @@ 'Callback', @(~,~)obj.login); loginbox.Widths = [-1 75]; + % If active flag set as false, make Alyx headless + if ~active + obj.AlyxInstance.Headless = true; + set(obj.LoginButton, 'Enable', 'off') + end + waterReqbox = uix.HBox('Parent', alyxbox); obj.WaterRequiredText = bui.label('Log in to see water requirements', waterReqbox); % water required text % Button to refresh all data retrieved from Alyx diff --git a/+eui/MControl.m b/+eui/MControl.m index f46c4e96..c7ab5901 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -6,10 +6,6 @@ % - improve it. % - ensure all Parent objects specified explicitly (See GUI Layout % Toolbox 2.3.1/layoutdoc/Getting_Started2.html) - % - Do PrePostExpDelayEdits still store handles now it's moved to new - % dialog? - % - Tidy Options dialog - % - Comment rigOptions function % See also MC, EUI.ALYXPANEL, EUI.EXPPANEL, EUI.LOG, EUI.PARAMEDITOR % % Part of Rigbox From 2a210616e44b0eda830b8015a5c6bb44268dafe6 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 22 Mar 2018 14:06:13 +0000 Subject: [PATCH 103/515] Restored stop delay to former function * Upon calling stop method, timeline immediatley stops all outputs before pausing for th duration of the StopDelay, then stops the main aquisition session. * A warning is now issued if the user sets the stop delay to a value less than 2. --- +hw/Timeline.m | 100 +++++++++++++++++++++++++++---------------------- 1 file changed, 55 insertions(+), 45 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 4850b519..30c613c6 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -14,13 +14,13 @@ % assumed that the time between sending the chrono pulse and recieving it % is negligible. % -% There are other available clocking signals, for instance: 'acqLive' and 'clock'. -% The former outputs a high (+5V) signal the entire time tl is aquiring -% (0V otherwise), and can be used to trigger devices with a TTL input. -% The 'clock' output is a regular pulse at a frequency of +% There are other available clocking signals, for instance: 'acqLive' and +% 'clock'. The former outputs a high (+5V) signal the entire time tl is +% aquiring (0V otherwise), and can be used to trigger devices with a TTL +% input. The 'clock' output is a regular pulse at a frequency of % ClockOutputFrequency and duty cycle of ClockOutputDutyCycle. This can -% be used to trigger a camera at a specific frame rate. See "properties" below for -% further details on output configurations. +% be used to trigger a camera at a specific frame rate. See "properties" +% below for further details on output configurations. % % Besides the chrono signal, tl can aquire any number of inputs and % record their values on the same clock. For example a photodiode to @@ -43,9 +43,9 @@ % timeline.Outputs(1).DaqChannelID and timeline.Inputs(1).daqChannelID % timeline.wiringInfo('chrono'); % %Add the rotary encoder -% timeline.addInput('rotaryEncoder', 'ctr0', 'Position'); +% timeline.addInput('rotaryEncoder', 'ctr0', 'Position'); % %For a lick detector -% timeline.addInput('lickDetector', 'ctr2', 'EdgeCount'); +% timeline.addInput('lickDetector', 'ctr2', 'EdgeCount'); % %We want use camera frame acquisition trigger by default % timeline.UseOutputs{end+1} = 'clock'; % %Save your hardware.mat file @@ -64,7 +64,7 @@ % 2014-01 CB created % 2017-10 MW updated - + properties DaqVendor = 'ni' % 'ni' is using National Instruments USB-6211 DAQ DaqIds = 'Dev1' % Device ID can be found with daq.getDevices() @@ -78,26 +78,26 @@ 'terminalConfig', 'SingleEnded',... 'axesScale', 1) % multiplicative vertical scaling for when live plotting the input UseInputs = {'chrono'} % array of inputs to record while tl is running - StopDelay = 2 % currently pauses for at least 2 secs as 'hack' before stopping main DAQ session - MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) + StopDelay = 2 % currently pauses for at least 2 secs as 'hack' before stopping main DAQ session to allow + MaxExpectedDuration = 2*60*60 % expected experiment time so data structure is initialised to sensible size (in secs) AquiredDataType = 'double' % default data type for the acquired data array (i.e. Data.rawDAQData) UseTimeline = false % used by expServer. If true, timeline is started by default (otherwise can be toggled with the t key) LivePlot = false % if true the data are plotted as the data are aquired FigureScale = []; % figure position in normalized units, default is [0 0 1 1] (full screen) WriteBufferToDisk = false % if true the data buffer is written to disk as they're aquired NB: in the future this will happen by default end - + properties (Dependent) SamplingInterval % defined as 1/DaqSampleRate IsRunning = false % flag is set to true when the first chrono pulse is aquired and set to false when tl is stopped (and everything saved), see tl.process and tl.stop end - + properties (Transient, Access = protected) Listener % holds the listener for 'DataAvailable', see DataAvailable and Timeline.process() - Sessions = containers.Map % map of daq sessions and their channels, created at tl.start() + Sessions = containers.Map % map of daq sessions and their channels, created at tl.start() LastTimestamp % the last timestamp returned from the daq during the DataAvailable event. Used to check sampling continuity, see tl.process() Ref % the expRef string. See tl.start() - AlyxInstance % a struct contraining the Alyx token, user and url for ile registration. See tl.start() + AlyxInstance % a struct contraining the Alyx token, user and url for ile registration. See tl.start() Data % A structure containing timeline data Axes % A figure handle for plotting the aquired data as it's processed DataFID % The data file ID for writing aquired data directly to disk @@ -111,7 +111,7 @@ % Adds chrono, aquireLive and clock to the outputs list, % along with default ports and delays - obj.DaqSamplesPerNotify = 1/obj.SamplingInterval; % calculate DaqSamplesPerNotify + obj.DaqSamplesPerNotify = 1/obj.SamplingInterval; % calculate DaqSamplesPerNotify if nargin % if old tl hardware struct provided, use these to populate properties % Configure the inputs obj.Inputs = hw.inputs; @@ -139,7 +139,7 @@ function start(obj, expRef, ai) end obj.Ref = expRef; % set the current experiment ref obj.AlyxInstance = ai; % set the current instance of Alyx - init(obj); % start the relevent sessions and add channels + init(obj); % start the relevent sessions and add channels obj.Listener = obj.Sessions('main').addlistener('DataAvailable', @obj.process); % add listener @@ -162,7 +162,7 @@ function start(obj, expRef, ai) fprintf(parfid, 'Fs = %d\n', obj.DaqSampleRate); % record the DAQ sample date fclose(parfid); % close the file end - + obj.Data.rawDAQData = zeros(numSamples, numInputChannels, obj.AquiredDataType); obj.Data.rawDAQSampleCount = 0; obj.Data.startDateTime = now; @@ -233,7 +233,7 @@ function record(obj, name, event, t) % Timeline data acquistion. 'strict' is optional (defaults to true), and % if true, this function will fail if Timeline is not running. If false, % it will just return the time using Psychtoolbox GetSecs if it's not - % running. + % running. % See also TL.PTBSECSTOTIMELINE(). if nargin < 2; strict = true; end if obj.IsRunning @@ -259,7 +259,7 @@ function record(obj, name, event, t) end function addInput(obj, name, channelID, measurement,... - terminalConfig, axesScale, use) + terminalConfig, axesScale, use) % Add a new input to the object's Input property % ADDINPUT(name, channelID, measurement, terminalConfig, use) % adds a new input 'name' to the Inputs list. If use is @@ -268,7 +268,7 @@ function addInput(obj, name, channelID, measurement,... % if no terminal config specified, leave empty which means use the % DAQ default for that port if nargin < 5; terminalConfig = []; end - + % if use is not specified, assume user wants normal scaling if nargin < 6; axesScale = 1; end @@ -322,7 +322,7 @@ function wiringInfo(obj, name) outputClasses = arrayfun(@class, obj.Outputs, 'uni', false); if strcmp(name, 'chrono') % Chrono wiring info idI = cellfun(@(s2)strcmp('chrono',s2), {obj.Inputs.name}); - idO = find(cellfun(@(s2)strcmp('tlOutputChrono',s2), outputClasses),1); + idO = find(cellfun(@(s2)strcmp('tlOutputChrono',s2), outputClasses),1); fprintf('Bridge terminals %s and %s\n',... obj.Outputs(idO).daqChannelID, obj.Inputs(idI).daqChannelID) elseif any(strcmp(name, {obj.Outputs.name})) % Output wiring info @@ -351,33 +351,43 @@ function wiringInfo(obj, name) if isfield(obj.Data, 'rawDAQSampleCount')&&... obj.Data.rawDAQSampleCount > 0 % obj.Data.rawDAQSampleCount is greater than 0 during the first call to tl.process - bool = true; + bool = true; else % obj.Data is cleared in tl.stop, after all data are saved - bool = false; + bool = false; end end + function set.StopDelay(obj, delay) + if delay < 2 + warning('Timeline:StopDelay:DelayTooShort',... + 'A stop delay less than 2s may cause some output samples to be missed upon stopping'); + end + obj.StopDelay = delay; + end + function stop(obj) %TL.STOP Stops Timeline data acquisition % TL.STOP() Deletes the listener, saves the aquired data, - % stops all running DAQ sessions - % + % stops all running DAQ sessions + % % See Also HW.TLOUTPUT/STOP if ~obj.IsRunning warning('Nothing to do, Timeline is not running!') return end - pause(obj.StopDelay) - + % stop acquisition output signals arrayfun(@stop, obj.Outputs) + % wait for the final samples to be aquired + pause(obj.StopDelay) + % stop actual DAQ aquisition stop(obj.Sessions('main')); - % wait before deleting the listener to ensure most recent samples are - % collected + % wait before deleting the listener to ensure most recent + % samples are processed pause(1.5); - delete(obj.Listener) % now delete the data listener + delete(obj.Listener) % now delete the data listener % only keep the used part of the daq input array obj.Data.rawDAQData((obj.Data.rawDAQSampleCount + 1):end,:) = []; @@ -403,7 +413,7 @@ function stop(obj) nextChrono = obj.Outputs(chronoOutputIdx).NextChronoSign; LastClockSentSysTime = obj.Outputs(chronoOutputIdx).LastClockSentSysTime; CurrSysTimeTimelineOffset = obj.Outputs(chronoOutputIdx).CurrSysTimeTimelineOffset; - end + end acqLiveOutputIdx = find(strcmp(outputClasses, 'hw.TLOutputAcqLive'),1); if ~isempty(acqLiveOutputIdx) acqLiveChan = obj.Outputs(acqLiveOutputIdx).DaqChannelID; @@ -411,7 +421,7 @@ function stop(obj) clockOutputIdx = find(strcmp(outputClasses, 'hw.TLOutputClock'),1); if ~isempty(clockOutputIdx) useClock = true; - clockF = obj.Outputs(clockOutputIdx).Frequency; + clockF = obj.Outputs(clockOutputIdx).Frequency; clockD = obj.Outputs(clockOutputIdx).DutyCycle; end @@ -430,7 +440,7 @@ function stop(obj) obj.Data.lastClockSentSysTime = LastClockSentSysTime; obj.Data.currSysTimeTimelineOffset = CurrSysTimeTimelineOffset; - % saving hardware metadata for each output + % saving hardware metadata for each output warning('off', 'MATLAB:structOnObject'); % sorry, don't care for outIdx = 1:numel(obj.Outputs) s = struct(obj.Outputs(outIdx)); @@ -441,11 +451,11 @@ function stop(obj) % save tl to all paths superSave(obj.Data.savePaths, struct('Timeline', obj.Data)); - + % write hardware info to a JSON file for compatibility with database if exist('savejson', 'file') % save local copy - savejson('hw', obj.Data.hw, fullfile(fileparts(obj.Data.savePaths{1}), 'TimelineHW.json')); + savejson('hw', obj.Data.hw, fullfile(fileparts(obj.Data.savePaths{1}), 'TimelineHW.json')); % save server copy savejson('hw', obj.Data.hw, fullfile(fileparts(obj.Data.savePaths{2}), 'TimelineHW.json')); else @@ -461,7 +471,7 @@ function stop(obj) else warning('did not write files into alf format. Check that alyx-matlab and npy-matlab repositories are in path'); end - + % register Timeline.mat file to Alyx database [subject, ~, ~] = dat.parseExpRef(obj.Data.expRef); if ~isempty(obj.AlyxInstance) && obj.AlyxInstance.IsLoggedIn && ~strcmp(subject,'default') @@ -507,10 +517,10 @@ function init(obj) % TL.INIT() creates all the DAQ sessions % and stores them in the Sessions map by their Outputs name. % Also add a 'main' session to which all input channels are - % added. + % added. % - % See Also DAQ.CREATESESSION - + % See Also DAQ.CREATESESSION + %%reate channels for each input [use, idx] = intersect({obj.Inputs.name}, obj.UseInputs);% find which inputs to use assert(numel(idx) == numel(obj.UseInputs), 'Not all inputs were recognised'); @@ -553,8 +563,8 @@ function process(obj, ~, event) % flipped on each call (at LastClockSentSysTime), and the % time of the previous flip is found in the data and its % timestamp noted. This is used by tl.time() to convert - % between system time and acquisition time. - % + % between system time and acquisition time. + % % LastTimestamp is the time of the last scan in the previous % data chunk, and is used to ensure no data samples have been % lost. @@ -565,7 +575,7 @@ function process(obj, ~, event) assert(abs(event.TimeStamps(1) - obj.LastTimestamp - obj.SamplingInterval) < 1e-8,... 'Discontinuity of DAQ acquistion detected: last timestamp was %f and this one is %f',... obj.LastTimestamp, event.TimeStamps(1)); - + %Process methods for outputs arrayfun(@(out)out.process(obj, event), obj.Outputs); @@ -621,7 +631,7 @@ function livePlot(obj, data) % figure and scale by scrolling the one that's hovered over scales = pick([obj.Inputs.axesScale], cellfun(@(x)find(strcmp({obj.Inputs.name}, x),1), obj.UseInputs)); - traces = get(obj.Axes, 'Children'); + traces = get(obj.Axes, 'Children'); if isempty(traces) Fs = obj.DaqSampleRate; plot((1:Fs*10)/Fs, zeros(Fs*10, length(names))+repmat(offsets, Fs*10, 1)); @@ -650,7 +660,7 @@ function livePlot(obj, data) % necessary to prevent the value from wandering way off % the range and making it impossible to see any of the % other traces. Plus it is probably more useful, - % anyway. + % anyway. yy(end-nSamps+1:end) = conv(diff([data(1,t); data(:,t)]),... gausswin(50)./sum(gausswin(50)), 'same') * scales(t) + offsets(t); else From ee3638f875db7b44fd4000641415d7fb43a0beee Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 26 Mar 2018 18:23:40 +0100 Subject: [PATCH 104/515] Fix'd bugs in plot2AFUC Plotting works correctly now; various bug fixes --- cortexlab/+psy/plot2AUFC.m | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/cortexlab/+psy/plot2AUFC.m b/cortexlab/+psy/plot2AUFC.m index 61744ebf..be2e4724 100644 --- a/cortexlab/+psy/plot2AUFC.m +++ b/cortexlab/+psy/plot2AUFC.m @@ -11,7 +11,7 @@ function plot2AUFC(ax, block) response = [block.trial.response]; repeatNum = [block.trial.repeatNum]; incl = ~any(isnan([contrast;response;repeatNum])); -contrast = contrast(incl); +contrast = contrast(:,incl); response = response(incl); repeatNum = repeatNum(incl); % if any(structfun(@isnan, block.trial(end))) % strip incomplete trials @@ -22,18 +22,11 @@ function plot2AUFC(ax, block) respTypes = unique(response); numRespTypes = numel(respTypes); -if size(contrast, 1) > 1 - allContrast = contrast; - contrast = diff(contrast, [], 1); -else - allContrast = [0;0]; -end - -if any(allContrast(1,:)>0 & allContrast(2,:)>0) +if any(contrast(1,:)>0 & contrast(2,:)>0) % mode for plotting task with two stimuli at once - cValsLeft = unique(allContrast(1,:)); - cValsRight = unique(allContrast(2,:)); + cValsLeft = unique(contrast(1,:)); + cValsRight = unique(contrast(2,:)); nCL = numel(cValsLeft); nCR = numel(cValsRight); % pedVals = cVals(1:end-1); @@ -47,7 +40,7 @@ function plot2AUFC(ax, block) for r = 1:numRespTypes for c1 = 1:nCL for c2 = 1:nCR - incl = repeatNum==1&allContrast(1,:)==cValsLeft(c1)&allContrast(2,:) == cValsRight(c2); + incl = repeatNum==1&contrast(1,:)==cValsLeft(c1)&contrast(2,:) == cValsRight(c2); numTrials(1,c1,c2) = sum(incl); numChooseR(r,c1,c2) = sum(response==respTypes(r)&incl); @@ -74,7 +67,7 @@ function plot2AUFC(ax, block) caxis(ax, [-1 1]); axis(ax, 'image') else - + contrast = diff(contrast, [], 1); cVals = unique(contrast); colors = iff(numRespTypes>2,[0 1 1; 0 1 0; 1 0 0], [0 1 1; 1 0 0]); psychoM = zeros(numRespTypes,length(cVals)); From 8884002ce3296f1de2acdc50b6c48c6c1a00f474 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 26 Mar 2018 18:59:53 +0100 Subject: [PATCH 105/515] Added colourmap used by psy.plot2AUFC --- cortexlab/+psy/colormap_pinkgreyscale.m | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cortexlab/+psy/colormap_pinkgreyscale.m diff --git a/cortexlab/+psy/colormap_pinkgreyscale.m b/cortexlab/+psy/colormap_pinkgreyscale.m new file mode 100644 index 00000000..0ae7753c --- /dev/null +++ b/cortexlab/+psy/colormap_pinkgreyscale.m @@ -0,0 +1,9 @@ +function map = colormap_pinkgreyscale() +% pink for one extreme, greyscale for the other half. + +map = zeros(100,3); +map(50:-1:1,:) = repmat([(1:50)/50]',1,3); +map(100,:) = [1 0 1]; + +map = map(end:-1:1,:); + From 433635d69d7034dba826a9482854b0091b6cc113 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 9 Apr 2018 19:45:11 +0100 Subject: [PATCH 106/515] Added rewardSize ALF file save NPY file called cwFeedback.rewardVolume.npy now saved at the end of the experiment along with the other ALF files. --- +exp/SignalsExp.m | 1 + 1 file changed, 1 insertion(+) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 12dc3732..6073d9a0 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -869,6 +869,7 @@ function saveData(obj) writeNPY(feedback(:), fullfile(expPath, 'cwFeedback.type.npy')); alf.writeEventseries(expPath, 'cwFeedback',... obj.Data.events.feedbackTimes, [], []); + writeNPY([obj.Data.outputs.rewardValues]', fullfile(expPath, 'cwFeedback.rewardVolume.npy')); else warning('No ''feedback'' events recorded, cannot register to Alyx') end From e3390c6e40f085ef37b7bc4a34eff431cb3de13f Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 10 Apr 2018 11:36:26 +0100 Subject: [PATCH 107/515] Removed old/legacy code from hw.devices Also added FIXME comment to eui.AlyxPanel: low weight thresholds inaccurate, requires change to endpoint --- +eui/AlyxPanel.m | 2 ++ +hw/devices.m | 26 -------------------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 4945e0ca..a9689776 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -521,6 +521,8 @@ function viewSubjectHistory(obj, ax) plot(ax, dates, [records.weight_measured], '.-'); hold(ax, 'on'); + % FIXME: This weights are inaccurate - should be + % ([records.weight_expected]-implantWeight)*0.7 + implantWeight plot(ax, dates, [records.weight_expected]*0.7, 'r', 'LineWidth', 2.0); plot(ax, dates, [records.weight_expected]*0.8, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); diff --git a/+hw/devices.m b/+hw/devices.m index 82598ab6..4a1a4616 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -19,13 +19,6 @@ paths = dat.paths(name); -% if strcmp(name, 'zen') -% baseDir = 'D:\Users\Chris\Documents\MATLAB\Experiments'; -% configDir = fullfile(fullfile(baseDir, 'config'), name); -% else -% baseDir = '\\zserver\code\Rigging'; -% configDir = fullfile(fullfile(baseDir, 'config'), name); -% end %% Basic initialisation fn = fullfile(paths.rigConfig, 'hardware.mat'); if ~file.exists(fn) @@ -43,26 +36,7 @@ %% Configure common devices, if present configure('mouseInput'); -% configure('rewardController'); configure('lickDetector'); -if isfield(rig, 'laser') - configure('laser', rig.rewardController.DaqSession); -end - -%% Deal with reward controller calibrations -% if init && isfield(rig, 'rewardController') -% if isfield(rig, 'rewardCalibrations') -% % use most recent reward calibration -% [newestDate, idx] = max([rig.rewardCalibrations.dateTime]); -% rig.rewardController.MeasuredDeliveries =... -% rig.rewardCalibrations(idx).measuredDeliveries; -% fprintf('\nApplying reward calibration performed on %s\n', datestr(newestDate)); -% else -% %create an empty structure -% rig.rewardCalibrations = struct('dateTime', {}, 'measuredDeliveries', {}); -% warning('Rigbox:hw:calibration', 'No reward calibrations found'); -% end -% end %% Set up controllers if init From ffce90c29ff25993e608d046ad690b4fabfc856d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 16 Apr 2018 17:56:05 +0100 Subject: [PATCH 108/515] Fixes for new file registration end point * Added dependant submodules to the repo * Add rigbox paths now does much of the setting up for the user * AlyxPanel percent weights now take into account the implant weight * Contrast ALF files now saved in % units * Timeline and tlMpepListner now allows one to toggle the live plot --- +dat/expExists.m | 5 +- +dat/listSubjects.m | 4 +- +eui/AlyxPanel.m | 32 ++++--- +exp/SignalsExp.m | 22 +++-- +hw/Timeline.m | 21 ++--- .gitmodules | 9 ++ addRigboxPaths.m | 158 +++++++++++++++++++++++++-------- alyx-matlab | 1 + cortexlab/+tl/bindMpepServer.m | 9 +- npy-matlab | 1 + readme.md | 5 +- signals | 1 + 12 files changed, 190 insertions(+), 78 deletions(-) create mode 100644 .gitmodules create mode 160000 alyx-matlab create mode 160000 npy-matlab create mode 160000 signals diff --git a/+dat/expExists.m b/+dat/expExists.m index ffd6d8f4..88ea312e 100644 --- a/+dat/expExists.m +++ b/+dat/expExists.m @@ -1,6 +1,9 @@ function b = expExists(expRef) %DAT.EXPEXISTS Confirm existence of experiment(s) with reference -% b = DAT.EXPEXISTS(expRef) TODO +% b = DAT.EXPEXISTS(expRef) Returns true is expRef exists, where expRef +% is an experiment reference string or cell array thereof. +% +% See Also DAT.LISTEXPS, DAT.PATHS % % Part of Rigbox diff --git a/+dat/listSubjects.m b/+dat/listSubjects.m index dbac4793..cca333d7 100644 --- a/+dat/listSubjects.m +++ b/+dat/listSubjects.m @@ -9,7 +9,7 @@ % Part of Rigbox % 2013-03 CB created -% 2018-01 NS added alyx compatibility +% 2018-01 NS added Alyx compatibility if nargin>0 && ~isempty(varargin{1}) % user provided an alyx instance ai = varargin{1}; % an alyx instance @@ -38,6 +38,6 @@ expInfoPath = dat.reposPath('expInfo', 'master'); dirs = file.list(expInfoPath, 'dirs'); - subjects = setdiff(dirs, {'misc'}); %exclude the misc directory + subjects = dirs(~cellfun(@(d)startsWith(d, '@'), dirs)); % exclude misc directories end end \ No newline at end of file diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index a9689776..9aa5ee11 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -343,7 +343,7 @@ function dispWaterReq(obj, src, ~) gel = getOr(record, 'hydrogel_given', 0); % Get total gel given weight_expected = getOr(record, 'weight_expected', NaN); % Set colour based on weight percentage - weight_pct = weight/weight_expected; + weight_pct = (weight-wr.implant_weight)/(weight_expected-wr.implant_weight); if weight_pct < 0.8 % Mouse below 80% original weight colour = [0.91, 0.41, 0.17]; % Orange weight_pct = '< 80%'; @@ -408,7 +408,7 @@ function recordWeight(obj, weight, subject) % convert to double if weight is a string weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); try - w = postWeight(ai, weight, subject); %FIXME: If multiple things flushed, length(w)>1 + w = postWeight(ai, weight, subject); obj.log('Alyx weight posting succeeded: %.2f for %s', w.weight, w.subject); catch if ~ai.IsLoggedIn % if not logged in, save the weight for later @@ -501,7 +501,10 @@ function viewSubjectHistory(obj, ax) % collect the data for the table endpnt = sprintf('water-requirement/%s?start_date=2016-01-01&end_date=%s', obj.Subject, datestr(now, 'yyyy-mm-dd')); wr = obj.AlyxInstance.getData(endpnt); + iw = wr.implant_weight; records = catStructs(wr.records, nan); + expected = [records.weight_expected]; + expected(expected==0) = nan; % no weighings found if isempty(wr.records) obj.log('No weight data found for subject %s', obj.Subject); @@ -521,10 +524,8 @@ function viewSubjectHistory(obj, ax) plot(ax, dates, [records.weight_measured], '.-'); hold(ax, 'on'); - % FIXME: This weights are inaccurate - should be - % ([records.weight_expected]-implantWeight)*0.7 + implantWeight - plot(ax, dates, [records.weight_expected]*0.7, 'r', 'LineWidth', 2.0); - plot(ax, dates, [records.weight_expected]*0.8, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); + plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); + plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end if nargin == 1 @@ -536,7 +537,7 @@ function viewSubjectHistory(obj, ax) if nargin==1 ax = axes('Parent', plotBox); - plot(ax, dates, [records.weight_measured]./[records.weight_expected], '.-'); + plot(ax, dates, ([records.weight_measured]-iw)./(expected-iw), '.-'); hold(ax, 'on'); plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); @@ -564,14 +565,14 @@ function viewSubjectHistory(obj, ax) weightsByDate = num2cell([records.weight_measured]); weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); weightsByDate(isnan([records.weight_measured])) = {[]}; - weightPctByDate = num2cell([records.weight_measured]./[records.weight_expected]); + weightPctByDate = num2cell(([records.weight_measured]-iw)./(expected-iw)); weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); weightPctByDate(isnan([records.weight_measured])) = {[]}; dat = horzcat(... arrayfun(@(x)datestr(x), dates', 'uni', false), ... weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*x), [records.weight_expected]', 'uni', false), ... + arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)), [records.weight_expected]', 'uni', false), ... weightPctByDate'); waterDat = (... num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... @@ -591,11 +592,7 @@ function viewAllSubjects(obj) ai = obj.AlyxInstance; if ai.IsLoggedIn wr = ai.getData(ai.makeEndpoint('water-restricted-subjects')); - - subjs = cellfun(@(x)x.nickname, wr, 'uni', false); - waterReqTotal = cellfun(@(x)x.water_requirement_total, wr, 'uni', false); - waterReqRemain = cellfun(@(x)x.water_requirement_remaining, wr, 'uni', false); - + % build a figure to show it f = figure; % popup a new figure for this wrBox = uix.VBox('Parent', f); @@ -607,11 +604,12 @@ function viewAllSubjects(obj) % colorgen = @(colorNum,text) ['
',text,'
']; colorgen = @(colorNum,text) ['',text,'']; - wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3], sprintf('%.2f',x)), waterReqRemain, 'uni', false); + wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3],... + sprintf('%.2f',x)), {wr.water_requirement_remaining}, 'uni', false); set(wrTable, 'ColumnName', {'Name', 'Water Required', 'Remaining Requirement'}, ... - 'Data', horzcat(subjs', ... - cellfun(@(x)sprintf('%.2f',x),waterReqTotal', 'uni', false), ... + 'Data', horzcat({wr.nickname}', ... + cellfun(@(x)sprintf('%.2f',x),{wr.water_requirement_total}', 'uni', false), ... wrdat'), ... 'ColumnEditable', false(1,3)); end diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 6073d9a0..d6f86b99 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -907,8 +907,8 @@ function saveData(obj) contL = getOr(obj.Data.events, 'contrastLeftValues', NaN); contR = getOr(obj.Data.events, 'contrastRightValues', NaN); if ~any(isnan(contL))&&~any(isnan(contR)) - writeNPY(contL(:), fullfile(expPath, 'cwStimOn.contrastLeft.npy')); - writeNPY(contR(:), fullfile(expPath, 'cwStimOn.contrastRight.npy')); + writeNPY(contL(:)*100, fullfile(expPath, 'cwStimOn.contrastLeft.npy')); + writeNPY(contR(:)*100, fullfile(expPath, 'cwStimOn.contrastRight.npy')); else warning('No ''contrastLeft'' and/or ''contrastRight'' events recorded, cannot register to Alyx') end @@ -929,7 +929,10 @@ function saveData(obj) writeNPY(wheelValues./wheelTimes, fullfile(expPath, 'Wheel.velocity.npy')); % Register them to Alyx - obj.AlyxInstance.registerALF(expPath); + files = dir(expPath); + isNPY = cellfun(@(f)endsWith(f, '.npy'), {files.name}); + files = files(isNPY); + obj.AlyxInstance.registerFile(fullfile({files.folder}, {files.name})); catch ex warning(ex.identifier, 'Failed to register alf files: %s.', ex.message); end @@ -939,19 +942,20 @@ function saveData(obj) warning('No Alyx token set'); else try - [subject, expDate, seq] = dat.parseExpRef(obj.Data.expRef); + [subject, seq] = dat.parseExpRef(obj.Data.expRef); if strcmp(subject, 'default'); return; end % Register saved files - obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.SessionURL, 'Block', []); + obj.AlyxInstance.registerFile(savepaths{end}); % obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... % {subject, expDate, seq}, 'Block', []); % Save the session end time if ~isempty(obj.AlyxInstance.SessionURL) - obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... - struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); + obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL,... + struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject), 'put'); else - % Infer from date session and retrieve using expFilePath + % Retrieve session from endpoint +% subsessions = obj.AlyxInstance.getData(... +% sprintf('sessions?type=Experiment&subject=%s&number=%i', subject, seq)); end catch ex warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 30c613c6..f0ae52b1 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -453,18 +453,12 @@ function stop(obj) superSave(obj.Data.savePaths, struct('Timeline', obj.Data)); % write hardware info to a JSON file for compatibility with database - if exist('savejson', 'file') - % save local copy - savejson('hw', obj.Data.hw, fullfile(fileparts(obj.Data.savePaths{1}), 'TimelineHW.json')); - % save server copy - savejson('hw', obj.Data.hw, fullfile(fileparts(obj.Data.savePaths{2}), 'TimelineHW.json')); - else - warning('JSONlab not found - hardware information not saved to ALF') - end + hw = jsonencode(obj.Data.hw); %#ok + save(fullfile(fileparts(obj.Data.savePaths{2}), 'TimelineHW.json'), 'hw', '-ascii'); % save each recorded vector into the correct format in Timeline % timebase for Alyx and optionally into universal timebase if - % conversion is provided + % conversion is provided. TODO: Make timelineToALF a class method if ~isempty(which('alf.timelineToALF'))&&~isempty(which('writeNPY')) alf.timelineToALF(obj.Data, [],... fileparts(dat.expFilePath(obj.Data.expRef, 'timeline', 'master'))) @@ -602,7 +596,14 @@ function process(obj, ~, event) end %If plotting the channels live, plot the new data - if obj.LivePlot; obj.livePlot(event.Data); end + if obj.LivePlot + obj.livePlot(event.Data) + else % If LivePlot has been toggled to false, delete the figure + if ~isempty(obj.Axes) + close(obj.Axes.Parent) + obj.Axes = []; + end + end end function livePlot(obj, data) diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..4b73c981 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +[submodule "alyx-matlab"] + path = alyx-matlab + url = https://github.com/cortex-lab/alyx-matlab/ +[submodule "signals"] + path = signals + url = https://github.com/dendritic/signals +[submodule "npy-matlab"] + path = npy-matlab + url = https://github.com/kwikteam/npy-matlab diff --git a/addRigboxPaths.m b/addRigboxPaths.m index 2fa54a8b..9c41c4a4 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -3,63 +3,121 @@ function addRigboxPaths(savePaths) % % Part of the Rigging toolbox % TODO: -% - Paths to 'cortexlab' and 'cb-tools' were incorrect % - Consider renaming above folder to something more informative % % 2014-01 CB % 2017-02 MW Updated to work with 2016b -if nargin < 1 - savePaths = true; -end +% Flag for perminantly saving paths +if nargin < 1; savePaths = true; end + +%%% MATLAB version and toolbox validation %%% +% MATLAB must be running on Windows +assert(ispc, 'Rigbox currently only works on Windows 7 or later') + +% Microsoft Visual C++ Redistributable for Visual Studio 2015 must be +% installed, check for runtime dll file in system32 folder +sys32 = dir('C:\Windows\System32'); +assert(any(strcmpi('VCRuntime140.dll',{sys32.name})), 'Rigbox:setup:libraryRequired',... + ['Requires Microsoft Visual C++ Redistributable for Visual Studio 2015. ',... + 'Click
here to install.'],... + 'https://www.microsoft.com/en-us/download/details.aspx?id=48145') -rigboxPath = fileparts(mfilename('fullpath')); -cbToolsPath = fullfile(rigboxPath, 'cb-tools'); % Assumes 'cb-tools' in same -% directory as Rigbox, was not the case +% Check MATLAB 2016b is running +assert(~verLessThan('matlab', '8.4'), 'Requires MATLAB 2016b or later') -% 2017-02-17 GUI Layout Toolbox should be installed as matlab toolbox +% Check essential toolboxes are installed (common to both master and +% stimulus computers) toolboxes = ver; +requiredMissing = setdiff(... + {'Data Acquisition Toolbox', ... + 'Signal Processing Toolbox', ... + 'Instrument Control Toolbox'}, ... + 'Statistics and Machine Learning Toolbox',... + {toolboxes.Name}); + +assert(isempty(requiredMissing),'Rigbox:setup:toolboxRequired',... + 'Please install the following toolboxes before proceeding: \n%s',... + strjoin(requiredMissing, '\n')) + +% Check that GUI Layout Toolbox is installed (required for the master +% computer only) isInstalled = strcmp('GUI Layout Toolbox', {toolboxes.Name}); -if any(isInstalled) - fprintf('GUI Layout Toolbox version %s is currently installed\n', toolboxes(isInstalled).Version) -else - warning('MC requires GUI Layout Toolbox v2.3 or higher to be installed') +if ~any(isInstalled) ||... + str2double(strrep(toolboxes(isInstalled).Version,'.', '')) < 230 + warning('Rigbox:setup:toolboxRequired',... + ['MC requires GUI Layout Toolbox v2.3 or higher to be installed. '... + 'Click here to install.'],... + 'https://uk.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox') end -% Check MATLAB 2016b is running -assert(~verLessThan('matlab', '8.4'), 'Requires MATLAB 2014b or later'); - -cortexLabAddonsPath = fullfile(rigboxPath, 'rigbox-cortexlab'); % doesn't exist 2017-02-13 -if ~isdir(cortexLabAddonsPath) % handle two possible alternative paths - cortexLabAddonsPath = fullfile(rigboxPath, 'cortexlab'); % doesn't exist in Rigbox directory 2017-02-13 +% Check that the Psychophisics Toolbox is installed (required for the +% stimulus computer only) +isInstalled = strcmp('Psychtoolbox', {toolboxes.Name}); +if ~any(isInstalled) || str2double(toolboxes(isInstalled).Version(1)) < 3 + warning('Rigbox:setup:toolboxRequired',... + ['The stimulus computer requires Psychtoolbox v3.0 or higher to be installed. '... + 'Click here to install.'],... + 'https://github.com/Psychtoolbox-3/Psychtoolbox-3/releases') end -addpath(... - cortexLabAddonsPath,... % add the Rigging cortexlab add-ons - rigboxPath,... % add Rigbox itself - cbToolsPath,... % add cb-tools root dir - fullfile(cbToolsPath, 'burgbox')); % Burgbox -% guiLayoutPath,... % add GUI Layout toolbox -% fullfile(guiLayoutPath, 'layout'),... -% fullfile(guiLayoutPath, 'Patch'),... -% fullfile(guiLayoutPath, 'layoutHelp')... -% ); - -if savePaths - assert(savepath == 0, 'Failed to save changes to MATLAB path'); +% Check that the NI DAQ support package is installed (required for the +% stimulus computer only) +info = matlabshared.supportpkg.getInstalled; +if isempty(info) || ~any(contains({info.Name}, 'NI-DAQmx')) + warning('Rigbox:setup:toolboxRequired',... + ['The stimulus computer requires the National Instruments support package to be installed. '... + 'Click here to install.'],... + 'https://www.mathworks.com/hardware-support/nidaqmx.html') end -cbtoolsjavapath = fullfile(cbToolsPath, 'java'); +%%% Paths for adding +% Add the main Rigbox directory, containing the main packages for running +% the experiment server and mc programmes +root = fileparts(mfilename('fullpath')); +addpath(root); + +% The cb-tools directory contains numerious convenience functions which are +% utilized by the main code. Those within the 'burgbox' directory were +% written by Chris Burgess. +addpath(fullfile(root, 'cb-tools'), fullfile(root, 'cb-tools', 'burgbox')); + +% Add CortexLab paths. These are mostly extra classes that allow Rigbox to +% work with other software developed by CortexLab, including MPEP +addpath(fullfile(root, 'cortexlab')); + +% Add signals paths, this includes all the core code for running signals +% experiments. This submodule is maintained by Chris Burgess. +addpath(fullfile(root, 'signals', 'util'), fullfile(root, 'signals', 'mexnet')); +% Add the Java paths for signals +jcp = fullfile(fileparts(root, 'signals', 'java')); +if ~any(strcmp(javaclasspath, jcp)); javaaddpath(jcp); end + +% Add the paths for Alyx-matlab. This submodule allows one to interact +% with an instance of an Alyx database. For more information please visit: +% http://alyx.readthedocs.io/en/latest/ +addpath(fullfile(root, 'alyx-matlab'), fullfile(root, 'helpers')); + +% Add paths for the npy-matlab. This submodule is maintained by the +% Kwik Team (https://github.com/kwikteam). It allows for the saving of +% NumPy binary files. Used by Rigbox to save data as .npy files with the +% ALF (ALex File) naming convention. For more information please visit: +% https://docs.scipy.org/doc/numpy-dev/neps/npy-format.html +addpath(fullfile(root, 'npy-matlab')); + +% Add the Java paths for Java WebSockets used for communications between +% the stimulus computer and the master computer +cbtoolsjavapath = fullfile(root, 'cb-tools', 'java'); javaclasspathfile = fullfile(prefdir, 'javaclasspath.txt'); fid = fopen(javaclasspathfile, 'a+'); fseek(fid, 0, 'bof'); closeFile = onCleanup( @() fclose(fid) ); -javaclasspaths = first(textscan(fid,'%s', 'CommentStyle', '#',... - 'Delimiter','')); % this will crash on 2014b, but not in 2016b +javaclasspaths = first(textscan(fid,'%s', 'CommentStyle', '#', 'Delimiter','')); cbtoolsInJavaPath = any(strcmpi(javaclasspaths, cbtoolsjavapath)); +%%% Validate that paths saved correctly %%% if savePaths -% assert(savepath == 0, 'Failed to save changes to MATLAB path'); + assert(savepath == 0, 'Failed to save changes to MATLAB path'); if ~cbtoolsInJavaPath fseek(fid, 0, 'eof'); n = fprintf(fid, '\n#path to CB-tools java classes\n%s', cbtoolsjavapath); @@ -72,4 +130,34 @@ function addRigboxPaths(savePaths) 'Cannot use java classes without saving new classpath'); end +%%% Attempt to move dll file for signals %%% +fileName = fullfile(root, 'signals', 'msvcr120.dll'); +fileExists = any(strcmp('msvcr120.dll',{sys32.name})); +copied = false; +if isWindowsAdmin % If user has admin privileges, attempt to copy dll file + if fileExists % If there's already a dll file there prompt use to make backup + prompt = sprintf(['For signals to work propery, it is nessisary to copy ',... + 'the file \n', strrep(fileName, '\', '\\'), ' to ',... + 'C:\\Windows\\System32.\n',... + 'You may want to make a backup of your existing dll file before continuing.\n\n',... + 'Do you want to proceed? Y/N [Y]: ']); + str = input(prompt,'s'); if isempty(str); str = 'y'; end + if strcmpi(str, 'n'); return; end % Return without copying + end + copied = copyfile(fileName, 'C:\Windows\System32'); +end +% Check that the file was copied +if ~copied + warning('Rigbox:setup:libraryRequired', ['Please copy the file ',... + '%s to C:\\Windows\\System32.'], fileName) +end + +function out = isWindowsAdmin() +%ISWINDOWSADMIN True if this user is in admin role. +% 2011 Andrew Janke (https://github.com/apjanke) +if ~NET.isNETSupported; out = false; return; end +wi = System.Security.Principal.WindowsIdentity.GetCurrent(); +wp = System.Security.Principal.WindowsPrincipal(wi); +out = wp.IsInRole(System.Security.Principal.WindowsBuiltInRole.Administrator); +end end \ No newline at end of file diff --git a/alyx-matlab b/alyx-matlab new file mode 160000 index 00000000..94334e93 --- /dev/null +++ b/alyx-matlab @@ -0,0 +1 @@ +Subproject commit 94334e938c52f225dc0dcd78ea670205c9cf603f diff --git a/cortexlab/+tl/bindMpepServer.m b/cortexlab/+tl/bindMpepServer.m index 9b4a5024..5e371841 100644 --- a/cortexlab/+tl/bindMpepServer.m +++ b/cortexlab/+tl/bindMpepServer.m @@ -21,6 +21,7 @@ % mpepSendPort = 1103; % send responses back to this remote port quitKey = KbName('esc'); manualStartKey = KbName('t'); +livePlotKey = KbName('p'); %% Start UDP communication listeners = struct(... @@ -119,7 +120,10 @@ function listen() KbQueueCreate(); KbQueueStart(); cleanup1 = onCleanup(@KbQueueRelease); - log('Polling for UDP messages. PRESS <%s> TO QUIT', KbName(quitKey)); + log(['Polling for UDP messages. PRESS <%s> TO QUIT, '... + '<%s> to manually start/stop timeline, and ',... + '<%s> to toggle live plotting'],... + KbName(quitKey), KbName(manualStartKey), KbName(livePlotKey)); running = true; tid = tic; while running @@ -128,6 +132,9 @@ function listen() if firstPress(quitKey) running = false; end + if firstPress(livePlotKey) + tlObj.LivePlot = ~tlObj.LivePlot; + end if firstPress(manualStartKey) && ~tlObj.IsRunning if isempty(tls.AlyxInstance) diff --git a/npy-matlab b/npy-matlab new file mode 160000 index 00000000..524bd143 --- /dev/null +++ b/npy-matlab @@ -0,0 +1 @@ +Subproject commit 524bd143c34cbd9d1bbc895ed05e082ce4249b62 diff --git a/readme.md b/readme.md index 0e01d560..d93aa94e 100644 --- a/readme.md +++ b/readme.md @@ -18,13 +18,12 @@ Rigbox has a number of essential and optional software dependencies, listed belo * Signal Processing Toolbox * Instrument Control Toolbox -Additionally, Rigbox works with a number of extra repositories: +Additionally, Rigbox works with a number of extra submodules (included): * [Signals](https://github.com/dendritic/signals) (for running bespoke experiment designs) * Statistics and Machine Learning Toolbox * [Microsoft Visual C++ Redistributable for Visual Studio 2015](https://www.microsoft.com/en-us/download/details.aspx?id=48145) * [Alyx-matlab](https://github.com/cortex-lab/alyx-matlab) (for registering data to, and retrieving from, an Alyx database - * [Missing HTTP v1](https://github.com/psexton/missing-http/releases/tag/missing-http-1.0.0) or later - * [JSONlab](https://uk.mathworks.com/matlabcentral/fileexchange/33381-jsonlab--a-toolbox-to-encode-decode-json-files) +* [NPY-matlab](https://github.com/kwikteam/npy-matlab) (for saving data in binary NPY format) ## Installing 1. To install Rigbox, first ensure that all the above dependencies are installed. diff --git a/signals b/signals new file mode 160000 index 00000000..c2cf2854 --- /dev/null +++ b/signals @@ -0,0 +1 @@ +Subproject commit c2cf2854491525905ed9f21e0d708b451bfce988 From 8284459ddcc01e8acc416b5df8075134297f1044 Mon Sep 17 00:00:00 2001 From: petersaj Date: Tue, 17 Apr 2018 13:19:50 +0100 Subject: [PATCH 109/515] Small fixes to addRigboxPaths mostly typos --- addRigboxPaths.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addRigboxPaths.m b/addRigboxPaths.m index 9c41c4a4..9aa6e0ef 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -32,8 +32,8 @@ function addRigboxPaths(savePaths) requiredMissing = setdiff(... {'Data Acquisition Toolbox', ... 'Signal Processing Toolbox', ... - 'Instrument Control Toolbox'}, ... - 'Statistics and Machine Learning Toolbox',... + 'Instrument Control Toolbox', ... + 'Statistics and Machine Learning Toolbox'},... {toolboxes.Name}); assert(isempty(requiredMissing),'Rigbox:setup:toolboxRequired',... @@ -90,7 +90,7 @@ function addRigboxPaths(savePaths) % experiments. This submodule is maintained by Chris Burgess. addpath(fullfile(root, 'signals', 'util'), fullfile(root, 'signals', 'mexnet')); % Add the Java paths for signals -jcp = fullfile(fileparts(root, 'signals', 'java')); +jcp = fullfile(root, 'signals', 'java'); if ~any(strcmp(javaclasspath, jcp)); javaaddpath(jcp); end % Add the paths for Alyx-matlab. This submodule allows one to interact From 6e5b5cbfcbf22a0bf3f390b49f57d8331c9f55aa Mon Sep 17 00:00:00 2001 From: Andy Peters Date: Tue, 17 Apr 2018 13:37:13 +0100 Subject: [PATCH 110/515] moved alyx-matlab to alyx-as-class --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 94334e93..901a90fa 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 94334e938c52f225dc0dcd78ea670205c9cf603f +Subproject commit 901a90fad903b15ed77574374e93d3f48b487681 From c6ca41ca7ff4e759a13ed5c5486c0f8ba76779c8 Mon Sep 17 00:00:00 2001 From: Andy Peters Date: Tue, 17 Apr 2018 13:42:58 +0100 Subject: [PATCH 111/515] fixed alyx-matlab helpers path in addRigboxPaths --- addRigboxPaths.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addRigboxPaths.m b/addRigboxPaths.m index 9aa6e0ef..f740afc5 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -96,7 +96,7 @@ function addRigboxPaths(savePaths) % Add the paths for Alyx-matlab. This submodule allows one to interact % with an instance of an Alyx database. For more information please visit: % http://alyx.readthedocs.io/en/latest/ -addpath(fullfile(root, 'alyx-matlab'), fullfile(root, 'helpers')); +addpath(fullfile(root, 'alyx-matlab'), fullfile(root, 'alyx-matlab', 'helpers')); % Add paths for the npy-matlab. This submodule is maintained by the % Kwik Team (https://github.com/kwikteam). It allows for the saving of From cb583ba0974340f7a5b74878b89593f049209323 Mon Sep 17 00:00:00 2001 From: petersaj Date: Tue, 17 Apr 2018 13:53:01 +0100 Subject: [PATCH 112/515] Forgot to add signals root directory in last commit --- addRigboxPaths.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addRigboxPaths.m b/addRigboxPaths.m index f740afc5..d9f255e8 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -88,7 +88,9 @@ function addRigboxPaths(savePaths) % Add signals paths, this includes all the core code for running signals % experiments. This submodule is maintained by Chris Burgess. -addpath(fullfile(root, 'signals', 'util'), fullfile(root, 'signals', 'mexnet')); +addpath(fullfile(root, 'signals'),... + fullfile(root, 'signals', 'mexnet'),... + fullfile(root, 'signals', 'util')); % Add the Java paths for signals jcp = fullfile(root, 'signals', 'java'); if ~any(strcmp(javaclasspath, jcp)); javaaddpath(jcp); end From b32b6155ea50e7a9de6e92a10fa4390b64e666e0 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 17 Apr 2018 16:37:58 +0100 Subject: [PATCH 113/515] catStructs no longer necessary All data returned as structures now --- +eui/AlyxPanel.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 9aa5ee11..b64a34c4 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -323,7 +323,7 @@ function dispWaterReq(obj, src, ~) % Refresh the timer as the user isn't inactive stop(obj.LoginTimer); start(obj.LoginTimer) try - s = catStructs(ai.getData('water-restricted-subjects')); % struct with data about restricted subjects + s = ai.getData('water-restricted-subjects'); % struct with data about restricted subjects idx = strcmp(obj.Subject, {s.nickname}); if ~any(idx) % Subject not on water restriction set(obj.WaterRequiredText, 'ForegroundColor', 'black',... @@ -334,7 +334,7 @@ function dispWaterReq(obj, src, ~) obj.Subject, datestr(now, 'yyyy-mm-dd'),datestr(now, 'yyyy-mm-dd')); wr = ai.getData(endpnt); % Get today's weight and water record if ~isempty(wr.records) - record = wr.records{end}; + record = wr.records(end); else record = struct(); end @@ -362,7 +362,7 @@ function dispWaterReq(obj, src, ~) obj.WaterRemaining = s(idx).water_requirement_remaining; end catch me - d = loadjson(me.message); + d = me.message; %FIXME: JSON no longer returned if isfield(d, 'detail') && strcmp(d.detail, 'Not found.') set(obj.WaterRequiredText, 'ForegroundColor', 'black',... 'String', sprintf('Subject %s not found in alyx', obj.Subject)); From 6a828646b56fd77652c89259c26774c8be7badc0 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 17 Apr 2018 19:05:39 +0100 Subject: [PATCH 114/515] Timeline uses new endpoint hw.Timeline now registers using the new registerFile method --- +hw/Timeline.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index f0ae52b1..51201172 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -467,11 +467,10 @@ function stop(obj) end % register Timeline.mat file to Alyx database - [subject, ~, ~] = dat.parseExpRef(obj.Data.expRef); + subject = dat.parseExpRef(obj.Data.expRef); if ~isempty(obj.AlyxInstance) && obj.AlyxInstance.IsLoggedIn && ~strcmp(subject,'default') try - obj.AlyxInstance.registerFile(obj.Data.savePaths{end}, 'mat',... - obj.AlyxInstance.SessionURL, 'Timeline', []); + obj.AlyxInstance.registerFile(obj.Data.savePaths{2}); catch ex warning(ex.identifier, 'couldn''t register files to Alyx: %s', ex.message); end From aed274c885a35753a97deeef617047a84f9f9124 Mon Sep 17 00:00:00 2001 From: Julie Date: Tue, 17 Apr 2018 19:17:55 +0100 Subject: [PATCH 115/515] Added specific branch for alyx-matlab submodule --- .gitmodules | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitmodules b/.gitmodules index 4b73c981..a143960b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,7 @@ [submodule "alyx-matlab"] path = alyx-matlab url = https://github.com/cortex-lab/alyx-matlab/ + branch = alyx-as-class [submodule "signals"] path = signals url = https://github.com/dendritic/signals From 1cacfd15462e00586a5794b0828b576c725859e5 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 17 Apr 2018 20:29:02 +0100 Subject: [PATCH 116/515] Added registration of all timeline related files using new register-file endpoint --- +hw/Timeline.m | 9 ++++++--- alyx-matlab | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 51201172..2467e99a 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -466,16 +466,19 @@ function stop(obj) warning('did not write files into alf format. Check that alyx-matlab and npy-matlab repositories are in path'); end - % register Timeline.mat file to Alyx database + %Register ALF components and hardware structures to Alyx + %database. TODO: Make this process more robust. subject = dat.parseExpRef(obj.Data.expRef); if ~isempty(obj.AlyxInstance) && obj.AlyxInstance.IsLoggedIn && ~strcmp(subject,'default') try - obj.AlyxInstance.registerFile(obj.Data.savePaths{2}); + files = dir(fileparts(obj.Data.savePaths{2})); + files = fullfile(files(1).folder, {files(endsWith({files.name},... + {'HW.json', '.raw.npy', '_Timeline.npy'})).name}); + obj.AlyxInstance.registerFile([obj.Data.savePaths{2} files]); catch ex warning(ex.identifier, 'couldn''t register files to Alyx: %s', ex.message); end end - %TODO: Register ALF components to alyx, incl TimelineHW.json % delete data from memory, tl is now officially no longer running obj.Data = []; diff --git a/alyx-matlab b/alyx-matlab index 901a90fa..3e96903d 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 901a90fad903b15ed77574374e93d3f48b487681 +Subproject commit 3e96903d3a9bdddc1688c45e08a96e91adb26e06 From 3d66542ebaf5132501b475511866303f0f3bb8eb Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 20 Apr 2018 13:18:22 +0100 Subject: [PATCH 117/515] Added better handling of headless mode when Alyx is down --- +eui/AlyxPanel.m | 12 +++++++++++- +eui/MControl.m | 6 ++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index b64a34c4..0a203c2c 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -214,6 +214,8 @@ function login(obj) % Logging out does not cause the token to expire, instead the % token is simply deleted from this object. + % Reset headless flag in case user wishes to retry connection + obj.AlyxInstance.Headless = false; % Are we logging in or out? if ~obj.AlyxInstance.IsLoggedIn % logging in % attempt login @@ -227,7 +229,8 @@ function login(obj) start(obj.LoginTimer) % Enable all buttons set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); - set(obj.LoginText, 'String', ['You are logged in as ', obj.AlyxInstance.User]); % display which user is logged in + set(obj.LoginText, 'ForegroundColor', 'black',... + 'String', ['You are logged in as ', obj.AlyxInstance.User]); % display which user is logged in set(obj.LoginButton, 'String', 'Logout'); % try updating the subject selectors in other panels @@ -248,6 +251,13 @@ function login(obj) mkdir(thisDir); end end + elseif obj.AlyxInstance.Headless + % Panel inactive or login failed due to Alyx being down + set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); + set(obj.LoginText, 'ForegroundColor', [0.91, 0.41, 0.17],... + 'String', 'Unable to reach Alyx, posts to be queued'); + set(obj.LoginButton, 'String', 'Retry'); % Retry button + obj.log('Failed to reach Alyx server, please retry later'); else obj.log('Did not log into Alyx'); end diff --git a/+eui/MControl.m b/+eui/MControl.m index c7ab5901..8635f7b4 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -543,10 +543,12 @@ function beginExp(obj) set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'off'); % Grey out buttons rig = obj.RemoteRigs.Selected; % Find which rig is selected % Save the current instance of Alyx so that eui.ExpPanel can register water to the correct account - if ~obj.AlyxPanel.AlyxInstance.IsLoggedIn && ~strcmp(obj.NewExpSubject.Selected,'default') + if ~obj.AlyxPanel.AlyxInstance.IsLoggedIn &&... + ~strcmp(obj.NewExpSubject.Selected,'default') &&... + ~obj.AlyxPanel.AlyxInstance.Headless try obj.AlyxPanel.login(); - assert(obj.AlyxPanel.AlyxInstance.IsLoggedIn); + assert(obj.AlyxPanel.AlyxInstance.IsLoggedIn||obj.AlyxPanel.AlyxInstance.Headless); catch obj.log('Warning: Must be logged in to Alyx before running an experiment') return From fbc92037c5b3a880e4adb8f34e086621256fd5fb Mon Sep 17 00:00:00 2001 From: k1o0 Date: Sat, 21 Apr 2018 20:54:30 +0100 Subject: [PATCH 118/515] Added helper function to remove empty elements rmEmpty simply removes all empty elements of the input array and returns it --- cb-tools/burgbox/rmEmpty.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cb-tools/burgbox/rmEmpty.m diff --git a/cb-tools/burgbox/rmEmpty.m b/cb-tools/burgbox/rmEmpty.m new file mode 100644 index 00000000..82220d5e --- /dev/null +++ b/cb-tools/burgbox/rmEmpty.m @@ -0,0 +1,15 @@ +function passed = rmEmpty(A) +%RMEMPTY Returns input array with empty elements removed +% Simply removes all empty elements of the input array and returns it +% +% See also FUN.EMPTYSEQ, EMPTYELEMS, FUN.FILTER +% 2018 MW created + + +if iscell(A) + empty = cellfun('isempty', A); +else + empty = arrayfun(@isempty, A); +end + +passed = A(~empty); \ No newline at end of file From 974125ffa948eb0fd19bcf26f42c865a8ad799fe Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 23 Apr 2018 13:56:00 +0100 Subject: [PATCH 119/515] Updated readme --- .gitmodules | 1 - readme.md | 19 ++++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index a143960b..4b73c981 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,7 +1,6 @@ [submodule "alyx-matlab"] path = alyx-matlab url = https://github.com/cortex-lab/alyx-matlab/ - branch = alyx-as-class [submodule "signals"] path = signals url = https://github.com/dendritic/signals diff --git a/readme.md b/readme.md index d93aa94e..b6632e3c 100644 --- a/readme.md +++ b/readme.md @@ -26,12 +26,25 @@ Additionally, Rigbox works with a number of extra submodules (included): * [NPY-matlab](https://github.com/kwikteam/npy-matlab) (for saving data in binary NPY format) ## Installing -1. To install Rigbox, first ensure that all the above dependencies are installed. +1. To install Rigbox, clone the repository in git. It is *not* recommended to clone directly into the MATLAB folder +```git clone https://github.com/cortex-lab/Rigbox.git``` 2. Pull the latest Rigbox-lite branch. This branch is currently the 'cleanest' one, however in the future it will likely be merged with the master branch. +``` +cd Rigbox/ +git checkout rigbox-lite +``` +3. Run the following to clone the submodules: +```git submodules update --init``` 3. In MATLAB run 'addRigboxPaths.m' and restart the program. 4. Set the correct paths by following the instructions in Rigbox\+dat\paths.m on both computers. 5. On the stimulus server, load the hardware.mat file in Rigbox\Repositories\code\config\exampleRig and edit according to your specific hardware setup (link to detailed instructions above, under 'Getting started'). +To keep up to date, run the following: +``` +git pull +git submodules update --remote +``` + ## Running an experiment On the stimulus server, run: @@ -76,6 +89,7 @@ NB: Lower-level communication protocol code is found in the +io package ## cb-tools\burgbox Burgbox contains many simply helper functions that are used by the main packages. Within this directory are further packages: + * +bui --- Classes for managing graphics objects such as axes * +aud --- Functions for interacting with PsychoPortAudio * +file --- Functions for simplifying directory and file management, for instance returning the modified dates for specified folders or filtering an array of directories by those that exist @@ -89,5 +103,8 @@ Burgbox contains many simply helper functions that are used by the main packages ## cortexlab The cortexlab directory is intended for functions and classes that are rig or lab specific, for instance code that allows compatibility with other stimulus presentation packages used by cortexlab (i.e. MPEP) +## alyx-matlab/@Alyx +This class allows interation with an instance of the Alyx database. More information about Alyx can be found [here](http://alyx.readthedocs.io/en/latest/). Information about using the alyx-matlab class can be found in [alyx-matlab/Examples.m](https://github.com/cortex-lab/alyx-matlab/blob/alyx-as-class/Examples.m). + ## Authors The majority of the Rigbox code was written by [Chris Burgess](https://github.com/dendritic/) in 2013. It is now maintained and developed by a number of people at [CortexLab](https://www.ucl.ac.uk/cortexlab). From 69de4c04ea15cbf1cf96890b1935485a14c9c9d6 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 24 Apr 2018 13:14:02 +0100 Subject: [PATCH 120/515] Reverted changes to dat.newExp. Was in a half-way house due to merge. Now contains no alyx info --- +dat/newExp.m | 57 +-------------------------------------------------- 1 file changed, 1 insertion(+), 56 deletions(-) diff --git a/+dat/newExp.m b/+dat/newExp.m index f0e8ee39..007aa566 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -58,53 +58,6 @@ % now make the folder(s) to hold the new experiment assert(all(cellfun(@(p) mkdir(p), expPath)), 'Creating experiment directories failed'); -if ~strcmp(subject, 'default') % Ignore fake subject - % if the Alyx Instance is set, find or create BASE session - expDate = alyx.datestr(expDate); % date in Alyx format - % Get list of base sessions - sessions = alyx.getData(AlyxInstance,... - ['sessions?type=Base&subject=' subject]); - - %If the date of this latest base session is not the same date as - %today, then create a new base session for today - if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), expDate(1:10)) - d = struct; - d.subject = subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = expDate; - d.type = 'Base'; - % d.users = {AlyxInstance.username}; - - base_submit = alyx.postData(AlyxInstance, 'sessions', d); - assert(isfield(base_submit,'subject'),... - 'Submitted base session did not return appropriate values'); - - %Now retrieve the sessions again - sessions = alyx.getData(AlyxInstance,... - ['sessions?type=Base&subject=' subject]); - end - latest_base = sessions{end}; - - %Now create a new SUBSESSION, using the same experiment number - d = struct; - d.subject = subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = expDate; - d.type = 'Experiment'; - d.parent_session = latest_base.url; - d.number = expSeq; - % d.users = {AlyxInstance.username}; - - subsession = alyx.postData(AlyxInstance, 'sessions', d); - assert(isfield(subsession,'subject'),... - 'Failed to create new sub-session in Alyx for %s', subject); - url = subsession.url; -else - url = []; -end - % if the parameters had an experiment definition function, save a copy in % the experiment's folder if isfield(expParams, 'defFunction') @@ -131,16 +84,8 @@ [expRef, '_parameters.json']); savejson('parameters', expParams, jsonPath); % Register our JSON parameter set to Alyx - if ~strcmp(subject, 'default') - alyx.registerFile(jsonPath, 'json', url, 'Parameters', [], AlyxInstance); - end catch ex - warning(ex.identifier, 'Failed to save paramters as JSON: %s.\n Registering mat file instead', ex.message) - % Register our parameter set to Alyx - if ~strcmp(subject, 'default') - alyx.registerFile(dat.expFilePath(expRef, 'parameters', 'master'), 'mat',... - url, 'Parameters', [], AlyxInstance); - end + warning(ex.identifier, 'Failed to save paramters as JSON: %s.', ex.message) end end end \ No newline at end of file From af0b25cd4017cac6d348fae168dc9ce5f5b8b70a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 25 Apr 2018 11:47:28 +0100 Subject: [PATCH 121/515] Added Apache 2.0 licence --- LICENCE | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 LICENCE diff --git a/LICENCE b/LICENCE new file mode 100644 index 00000000..e06d2081 --- /dev/null +++ b/LICENCE @@ -0,0 +1,202 @@ +Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + From 978d9a21d7e8caa40279ba30265b603134a025b8 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 25 Apr 2018 12:15:25 +0100 Subject: [PATCH 122/515] Changed to fork of signals for testing new changes --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index 4b73c981..c7ef4a47 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,7 +3,7 @@ url = https://github.com/cortex-lab/alyx-matlab/ [submodule "signals"] path = signals - url = https://github.com/dendritic/signals + url = https://github.com/cortex-lab/signals [submodule "npy-matlab"] path = npy-matlab url = https://github.com/kwikteam/npy-matlab From 3768be96b7276e86fddb62ff8ae242145ff071ac Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 25 Apr 2018 18:29:50 +0100 Subject: [PATCH 123/515] Fix for issues with audio device conflict. Audio device now opened in configuresChoiceWorld instead of hw.devices. Signals now able to output samples to named audio devices. --- +exp/Experiment.m | 14 +++++++------- +exp/SignalsExp.m | 7 ++----- +hw/devices.m | 14 +++++++------- cortexlab/+exp/configureChoiceExperiment.m | 7 +++++++ 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/+exp/Experiment.m b/+exp/Experiment.m index acdd7f9f..d78cdef5 100644 --- a/+exp/Experiment.m +++ b/+exp/Experiment.m @@ -556,6 +556,9 @@ function cleanup(obj) % destroy video texures created during intialisation deleteTextures(obj.StimWindow); + + % close audio + aud.close(obj.Audio); end function mainLoop(obj) @@ -777,17 +780,14 @@ function saveData(obj) warning('No Alyx token set'); else try - [subject, expDate, seq] = dat.parseExpRef(obj.Data.expRef); + subject = dat.parseExpRef(obj.Data.expRef); if strcmp(subject, 'default'); return; end % Register saved files - obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... - obj.AlyxInstance.SessionURL, 'Block', []); -% obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... -% {subject, expDate, seq}, 'Block', []); + obj.AlyxInstance.registerFile(savepaths{end}); % Save the session end time if ~isempty(obj.AlyxInstance.SessionURL) - obj.AlyxInstance.putData(obj.AlyxInstance.SessionURL,... - struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject)); + obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL,... + struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject), 'put'); else % Infer from date session and retrieve using expFilePath end diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index d6f86b99..4a019e22 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -143,10 +143,7 @@ obj.Inputs = sig.Registry(clockFun); obj.Outputs = sig.Registry(clockFun); obj.Visual = StructRef; - nAudChannels = getOr(paramStruct, 'numAudChannels', rig.audioDevice.NrOutputChannels); - audSampleRate = getOr(paramStruct, 'audSampleRate', rig.audioDevice.DefaultSampleRate); % Hz - audDevIdx = getOr(paramStruct, 'audDevIdx', rig.audioDevice.DeviceIndex); % -1 means use system default - obj.Audio = audstream.Registry(audSampleRate, nAudChannels, audDevIdx); + obj.Audio = audstream.Registry(rig.audioDevices); obj.Events = sig.Registry(clockFun); %% configure signals net = sig.Net; @@ -942,7 +939,7 @@ function saveData(obj) warning('No Alyx token set'); else try - [subject, seq] = dat.parseExpRef(obj.Data.expRef); + subject = dat.parseExpRef(obj.Data.expRef); if strcmp(subject, 'default'); return; end % Register saved files obj.AlyxInstance.registerFile(savepaths{end}); diff --git a/+hw/devices.m b/+hw/devices.m index 4a1a4616..2721566a 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -59,13 +59,13 @@ InitializePsychSound; IsPsychSoundInitialize = true; end - idx = pick(rig, 'audioDevice', 'def', 0); - rig.audioDevice = PsychPortAudio('GetDevices', [], idx); - % setup playback audio device - no configurable settings for now - % 96kHz sampling rate, 2 channels, try to very low audio latency - rig.audio = aud.open(rig.audioDevice.DeviceIndex,... - rig.audioDevice.NrOutputChannels,... - rig.audioDevice.DefaultSampleRate, 1); + % Get list of audio devices + devs = getOr(rig, 'audioDevices', PsychPortAudio('GetDevices')); + % Sanitize the names + names = matlab.lang.makeValidName([{'default'} {devs(2:end).DeviceName}],... + 'ReplacementStyle', 'delete'); + for i = 1:length(names); devs(i).DeviceName = names{i}; end + rig.audioDevices = devs; end rig.paths = paths; diff --git a/cortexlab/+exp/configureChoiceExperiment.m b/cortexlab/+exp/configureChoiceExperiment.m index 66ea611c..446573b2 100644 --- a/cortexlab/+exp/configureChoiceExperiment.m +++ b/cortexlab/+exp/configureChoiceExperiment.m @@ -17,6 +17,13 @@ params.Struct = paramStruct; %% Generate audio samples at device sample rate +% setup playback audio device - no configurable settings for now +% 96kHz sampling rate, 2 channels, try to very low audio latency +dev = rig.audioDevices(strcmp('default', {rig.audioDevices.DeviceName})); +rig.audio = aud.open(dev.DeviceIndex,... +dev.NrOutputChannels,... +dev.DefaultSampleRate, 1); + %Sound samples are wrapped in a cell for storing to a parameter %(to ensure they're used as one global parameter) audSampleRate = aud.rate(rig.audio); From 3ca7719ad35f5d9ed93baaacc49d004fcec1f41d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 25 Apr 2018 18:33:53 +0100 Subject: [PATCH 124/515] Updated signals submodule to allow putting of audio samples to a named device --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index c2cf2854..c3a09df7 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit c2cf2854491525905ed9f21e0d708b451bfce988 +Subproject commit c3a09df7875ed4eff9d130cb69db6f446e0eb877 From 0afd6b912858257ecb52194473550e5cd47721a1 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 26 Apr 2018 10:42:36 +0100 Subject: [PATCH 125/515] Updated alyx-matlab to use regex to find relative path in registerFile --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 3e96903d..577a6d02 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 3e96903d3a9bdddc1688c45e08a96e91adb26e06 +Subproject commit 577a6d02fb30e8e063a7609950e2b224e5ea0b39 From 442842eb1c03431f1e22a31999aaefed5beafcda Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 26 Apr 2018 12:56:43 +0100 Subject: [PATCH 126/515] Fix for errors when inferring signals params when audio device info is used in the expDef --- +exp/inferParameters.m | 16 +++++++++++----- +hw/devices.m | 3 +-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 51c57a01..6175fd3f 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -19,14 +19,12 @@ e.pars = net.subscriptableOrigin('pars'); e.pars.CacheSubscripts = true; e.visual = net.subscriptableOrigin('visual'); -e.audio = net.subscriptableOrigin('audio'); -e.audio.SampleRate = 44100; -e.audio.NChannels = 2; +e.audio.Devices = @dummyDev; e.inputs = net.subscriptableOrigin('inputs'); e.outputs = net.subscriptableOrigin('outputs'); try - expdeffun(e.t, e.events, e.pars, e.visual, e.inputs , e.outputs); + expdeffun(e.t, e.events, e.pars, e.visual, e.inputs , e.outputs, e.audio); % paramNames will be the strings corresponding to the fields of e.pars % that the user tried to reference in her expdeffun. paramNames = e.pars.Subscripts.keys'; @@ -60,5 +58,13 @@ net.delete(); - + function dev = dummyDev(~) + % Returns a dummy audio device structure, regardless of input + % Returns a standard structure with values for generating tone + % samples. This function gets around the problem of querying the + % rig's audio devices when inferring parameters. + dev = struct('DeviceIndex', -1,... + 'DefaultSampleRate', 44100,... + 'NrOutputChannels', 2); + end end \ No newline at end of file diff --git a/+hw/devices.m b/+hw/devices.m index 2721566a..24e532cf 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -86,5 +86,4 @@ function configure(deviceName, usedaq) end end -end - +end \ No newline at end of file From 0face35e6d413475a2aeb3bcedac58c28757fb6d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 26 Apr 2018 14:13:00 +0100 Subject: [PATCH 127/515] updated signals repo --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index c3a09df7..c879c89d 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit c3a09df7875ed4eff9d130cb69db6f446e0eb877 +Subproject commit c879c89d9b267370b2c6cb061e8c8afaf48f4474 From 590c17bb707a06b008468a1881e2ae90b61018ec Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 4 May 2018 13:44:19 +0100 Subject: [PATCH 128/515] Added rig hardware save in JSON for each experiment. Also the sessions property in Timeline is now availiable to output objects without seperate method. Also removed expInfo remository and replaced it with 'main' --- +dat/delParamProfile.m | 4 ++-- +dat/expExists.m | 2 +- +dat/expFilePath.m | 25 ++++--------------------- +dat/expPath.m | 4 ++-- +dat/listExps.m | 6 +++--- +dat/listSubjects.m | 8 ++++---- +dat/loadParamProfiles.m | 2 +- +dat/logPath.m | 4 ++-- +dat/newExp.m | 4 ++-- +dat/paths.m | 29 ++++++++--------------------- +dat/reposPath.m | 8 ++++---- +dat/saveParamProfile.m | 4 ++-- +dat/subjectExists.m | 2 +- +eui/AlyxPanel.m | 6 +++--- +hw/PositionSensor.m | 5 ++++- +hw/TLOutputChrono.m | 2 +- +hw/Timeline.m | 17 +++++------------ +hw/devices.m | 2 +- +srv/expServer.m | 5 +++++ +srv/prepareExp.m | 13 ------------- alyx-matlab | 2 +- cb-tools/burgbox/mergeStructs.m | 6 ++++++ npy-matlab | 2 +- 23 files changed, 63 insertions(+), 99 deletions(-) diff --git a/+dat/delParamProfile.m b/+dat/delParamProfile.m index d67b4d24..ee46eeb6 100644 --- a/+dat/delParamProfile.m +++ b/+dat/delParamProfile.m @@ -8,14 +8,14 @@ function delParamProfile(expType, profileName) %path to repositories fn = 'parameterProfiles.mat'; -repos = fullfile(dat.reposPath('expInfo'), fn); +repos = fullfile(dat.reposPath('main'), fn); %load existing profiles for specified expType profiles = dat.loadParamProfiles(expType); %remove the params with the field named by profile profiles = rmfield(profiles, profileName); %wrap in a struct for saving -set.(expType) = profiles; +set.(expType) = profiles; %#ok %save the updated set of profiles to each repos %where files exist already, append diff --git a/+dat/expExists.m b/+dat/expExists.m index 88ea312e..82924523 100644 --- a/+dat/expExists.m +++ b/+dat/expExists.m @@ -17,7 +17,7 @@ function b = check(expRef) % ensure the standard folder given the reference exists - b = file.exists(dat.expPath(expRef, 'expInfo', 'master')); + b = file.exists(dat.expPath(expRef, 'main', 'master')); end end \ No newline at end of file diff --git a/+dat/expFilePath.m b/+dat/expFilePath.m index b2695823..b9053047 100644 --- a/+dat/expFilePath.m +++ b/+dat/expFilePath.m @@ -44,65 +44,48 @@ function [repos, suff, dateLevel] = typeInfo(type) % whether this repository is at the date level or otherwise deeper at the sequence - % level (default) + % level (default). FIXME: Date level doesn't work, perhaps this should + % be modified to work with deeper sequences also? E.g. + % default\2018-05-04\1\2 dateLevel = false; + repos = 'main'; switch lower(type) case 'block' % MAT-file with info about each set of trials - repos = 'expInfo'; suff = '_Block.mat'; case 'hw-info' % MAT-file with info about the hardware used for an experiment - repos = 'expInfo'; suff = '_hardwareInfo.mat'; case '2p-raw' % TIFF with 2-photon raw fluorescence movies - repos = 'twoPhoton'; suff = '_2P.tif'; case 'calcium-preview' - repos = 'twoPhoton'; suff = '_2P_CalciumPreview.tif'; case 'calcium-reg' - repos = 'twoPhoton'; suff = '_2P_CalciumReg'; case 'calcium-regframe' - repos = 'twoPhoton'; suff = '_2P_CalciumRegFrame.tif'; case 'timeline' % MAT-file with acquired timing information - repos = 'expInfo'; suff = '_Timeline.mat'; case 'calcium-roi' - repos = 'twoPhoton'; suff = '_ROI.mat'; case 'calcium-fc' % minimally filtered fractional change frames - repos = 'twoPhoton'; suff = '_2P_CalciumFC'; case 'calcium-ffc' % ROI filtered fractional change frames - repos = 'twoPhoton'; suff = '_2P_CalciumFFC'; case 'calcium-widefield-svd' - repos = 'widefield'; suff = '_SVD'; case 'eyetracking' - repos = 'eyeTracking'; suff = '_eye'; case 'parameters' % MAT-file with parameters used for experiment - repos = 'expInfo'; suff = '_parameters.mat'; case 'lasermanip' - repos = 'expInfo'; suff = '_laserManip.mat'; case 'img-info' - repos = 'twoPhoton'; suff = '_imgInfo.mat'; case 'tmaze' - repos = 'expInfo'; suff = '_TMaze.mat'; case 'expdeffun' - repos = 'expInfo'; suff = '_expDef.m'; case 'svdspatialcomps' dateLevel = true; - % expPath = mapToCell(@fileparts, expPath); - % repos = 'expInfo'; - % suff = '_expDef.m'; otherwise error('"%s" is not a valid file type', type); end diff --git a/+dat/expPath.m b/+dat/expPath.m index b9b1abf6..abcc8294 100644 --- a/+dat/expPath.m +++ b/+dat/expPath.m @@ -9,10 +9,10 @@ % sames as the above, but returns paths for an experiment with a % specified 'subject', on a particular 'date', and numbered 'seq'. % -% e.g. to get the paths for the 'expInfo' repository, for the first +% e.g. to get the paths for the 'main' repository, for the first % experiment of the day for 'SUBJECTA': % -% paths = DAT.EXPPATH('SUBJECTA', now, 1, 'expInfo'); +% paths = DAT.EXPPATH('SUBJECTA', now, 1, 'main'); % % Part of Rigbox diff --git a/+dat/listExps.m b/+dat/listExps.m index c29506a3..b44aa8dc 100644 --- a/+dat/listExps.m +++ b/+dat/listExps.m @@ -7,15 +7,15 @@ % 2013-03 CB created -% The master 'expInfo' repository is the reference for the existence of +% The master 'main' repository is the reference for the existence of % experiments, as given by the folder structure -expInfoPath = dat.reposPath('expInfo', 'master'); +mainPath = dat.reposPath('main', 'master'); function [expRef, expDate, expSeq] = subjectExps(subject) % finds experiments for individual subjects % experiment dates correpsond to date formated folders in subject's % folder - subjectPath = fullfile(expInfoPath, subject); + subjectPath = fullfile(mainPath, subject); subjectDirs = file.list(subjectPath, 'dirs'); dateRegExp = '^(?\d\d\d\d)\-?(?\d\d)\-?(?\d\d)$'; dateMatch = regexp(subjectDirs, dateRegExp, 'names'); diff --git a/+dat/listSubjects.m b/+dat/listSubjects.m index cca333d7..4147b013 100644 --- a/+dat/listSubjects.m +++ b/+dat/listSubjects.m @@ -1,7 +1,7 @@ function subjects = listSubjects(varargin) %DAT.LISTSUBJECTS Lists recorded subjects % subjects = DAT.LISTSUBJECTS([alyxInstance]) Lists the experimental subjects present -% in experiment info repository ('expInfo'). +% in experiment info repository ('main'). % % Optional input argument of an alyx instance will enable generating this % list from alyx rather than from the directory structure on zserver @@ -33,11 +33,11 @@ subjects = [{'default'}, thisUserSubs, otherUserSubs]'; else - % The master 'expInfo' repository is the reference for the existence of + % The master 'main' repository is the reference for the existence of % experiments, as given by the folder structure - expInfoPath = dat.reposPath('expInfo', 'master'); + mainPath = dat.reposPath('main', 'master'); - dirs = file.list(expInfoPath, 'dirs'); + dirs = file.list(mainPath, 'dirs'); subjects = dirs(~cellfun(@(d)startsWith(d, '@'), dirs)); % exclude misc directories end end \ No newline at end of file diff --git a/+dat/loadParamProfiles.m b/+dat/loadParamProfiles.m index ee0b4c61..2c82c14a 100644 --- a/+dat/loadParamProfiles.m +++ b/+dat/loadParamProfiles.m @@ -8,7 +8,7 @@ % 2017-02 MW Param struct now sorted in ASCII dictionary order fn = 'parameterProfiles.mat'; -masterPath = fullfile(dat.reposPath('expInfo', 'master'), fn); +masterPath = fullfile(dat.reposPath('main', 'master'), fn); p = struct; %default is to return an empty struct diff --git a/+dat/logPath.m b/+dat/logPath.m index 7141129b..8dc80527 100644 --- a/+dat/logPath.m +++ b/+dat/logPath.m @@ -10,8 +10,8 @@ %ensure the subject exists assert(dat.subjectExists(subject), 'Subject "%s" does not exist', subject); -% get path(s) to expInfo repository -reposPath = dat.reposPath('expInfo', varargin{:}); +% get path(s) to main repository +reposPath = dat.reposPath('main', varargin{:}); filename = sprintf('%s_log.mat', subject); subjectPath = file.mkPath(reposPath, subject); diff --git a/+dat/newExp.m b/+dat/newExp.m index 007aa566..0ff092b8 100644 --- a/+dat/newExp.m +++ b/+dat/newExp.m @@ -49,8 +49,8 @@ expSeq = 1; end -% expInfo repository is the reference location for which experiments exist -[expPath, expRef] = dat.expPath(subject, floor(expDate), expSeq, 'expInfo'); +% main repository is the reference location for which experiments exist +[expPath, expRef] = dat.expPath(subject, floor(expDate), expSeq, 'main'); % ensure nothing went wrong in making a "unique" ref and path to hold assert(~any(file.exists(expPath)), ... sprintf('Something went wrong as experiment folders already exist for "%s".', expRef)); diff --git a/+dat/paths.m b/+dat/paths.m index e95284dc..1dee5d35 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -14,10 +14,6 @@ end server1Name = '\\zubjects.cortexlab.net'; -% server2Name = '\\zserver2.cortexlab.net'; -% server3Name = '\\zserver3.cortexlab.net'; % 2017-02-18 MW - Currently -% unused by Rigbox -server4Name = '\\zserver4.cortexlab.net'; basketName = '\\basket.cortexlab.net'; % for working analyses lugaroName = '\\lugaro.cortexlab.net'; % for tape backup @@ -27,23 +23,11 @@ p.rigbox = fileparts(which('addRigboxPaths')); % Repository for local copy of everything generated on this rig p.localRepository = 'C:\LocalExpData'; -% for all data types, under the new system of having data grouped by mouse -% rather than data type -p.mainRepository = fullfile(server1Name, 'Subjects'); -% Repository for info about experiments, i.e. stimulus, behavioural, -% Timeline etc -p.expInfoRepository = p.mainRepository; -% Repository for storing two photon movies -p.twoPhotonRepository = p.mainRepository; -% for calcium widefield imaging -p.widefieldRepository = fullfile(server1Name, 'data', 'GCAMP'); -% Repository for storing eye tracking movies -p.eyeTrackingRepository = p.mainRepository; +% Under the new system of having data grouped by mouse +% rather than data type, all experimental data are saved here. +p.mainRepository = fullfile(server1Name, 'Subjects'); -% electrophys repositories -p.lfpRepository = fullfile(server1Name, 'Data', 'Cerebus'); -p.spikesRepository = fullfile(server1Name, 'Data', 'multichanspikes'); % directory for organisation-wide configuration files, for now these should % all remain on zserver % p.globalConfig = fullfile(p.rigbox, 'config'); @@ -64,7 +48,6 @@ p.tapeArchiveRepository = fullfile(lugaroName, 'bigdrive', 'toarchive'); - %% load rig-specific overrides from config file, if any customPathsFile = fullfile(p.rigConfig, 'paths.mat'); if file.exists(customPathsFile) @@ -73,9 +56,13 @@ % 'centralRepository' is deprecated, remove field, if any customPaths = rmfield(customPaths, 'centralRepository'); end + if isfield(customPaths, 'expInfoRepository') + % 'expInfo' is deprecated, change to 'main' + p.mainRepository = customPaths.expInfoRepository; + customPaths = rmfield(customPaths, 'expInfoRepository'); + end % merge paths structures, with precedence on the loaded custom paths p = mergeStructs(customPaths, p); end - end \ No newline at end of file diff --git a/+dat/reposPath.m b/+dat/reposPath.m index 28ed0532..e2991ebc 100644 --- a/+dat/reposPath.m +++ b/+dat/reposPath.m @@ -13,11 +13,11 @@ % that repository, and "master" will return the path to the master % location. % -% e.g. to get all paths you should save to for the "expInfo" repository: -% savePaths = DAT.REPOSPATH('expInfo') % savePaths is a string cell array +% e.g. to get all paths you should save to for the "main" repository: +% savePaths = DAT.REPOSPATH('main') % savePaths is a string cell array % -% To get the master location for the "expInfo" repository: -% loadPath = DAT.REPOSPATH('expInfo', 'master') % loadPath is a string +% To get the master location for the "main" repository: +% loadPath = DAT.REPOSPATH('main', 'master') % loadPath is a string % % Part of Rigbox diff --git a/+dat/saveParamProfile.m b/+dat/saveParamProfile.m index 9ca7b011..e76ffdf9 100644 --- a/+dat/saveParamProfile.m +++ b/+dat/saveParamProfile.m @@ -9,7 +9,7 @@ function saveParamProfile(expType, profileName, params) %path to repositories fn = 'parameterProfiles.mat'; -repos = fullfile(dat.reposPath('expInfo'), fn); +repos = fullfile(dat.reposPath('main'), fn); %load existing profiles for specified expType profiles = dat.loadParamProfiles(expType); @@ -17,7 +17,7 @@ function saveParamProfile(expType, profileName, params) profiles.(profileName) = params; %wrap in a struct for saving set = struct; -set.(expType) = profiles; +set.(expType) = profiles; %#ok %save the updated set of profiles to each repos %where files exist already, append diff --git a/+dat/subjectExists.m b/+dat/subjectExists.m index 3ad31b0e..37799dfb 100644 --- a/+dat/subjectExists.m +++ b/+dat/subjectExists.m @@ -8,6 +8,6 @@ % 2013-03 CB created -b = file.exists(fullfile(dat.reposPath('expInfo', 'master'), ref)); +b = file.exists(fullfile(dat.reposPath('main', 'master'), ref)); end \ No newline at end of file diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 0a203c2c..e8f5fd28 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -242,12 +242,12 @@ function login(obj) obj.log('Logged into Alyx successfully as %s', obj.AlyxInstance.User); % any database subjects that weren't in the old list of - % subjects will need a folder in expInfo. + % subjects will need a folder in the main repository. firstTimeSubs = newSubs(~ismember(newSubs, dat.listSubjects)); for fts = 1:length(firstTimeSubs) - thisDir = fullfile(dat.reposPath('expInfo', 'master'), firstTimeSubs{fts}); + thisDir = fullfile(dat.reposPath('main', 'master'), firstTimeSubs{fts}); if ~exist(thisDir, 'dir') - fprintf(1, 'making expInfo directory for %s\n', firstTimeSubs{fts}); + fprintf(1, 'making directory for %s\n', firstTimeSubs{fts}); mkdir(thisDir); end end diff --git a/+hw/PositionSensor.m b/+hw/PositionSensor.m index a7bd3c4f..350bbfe2 100644 --- a/+hw/PositionSensor.m +++ b/+hw/PositionSensor.m @@ -35,7 +35,10 @@ end function value = get.LastPosition(obj) - value = obj.DataBuffer(obj.SampleCount); + value = []; + if obj.SampleCount + value = obj.DataBuffer(obj.SampleCount); + end end function zero(obj, log) diff --git a/+hw/TLOutputChrono.m b/+hw/TLOutputChrono.m index 373cad10..1bf9c52d 100644 --- a/+hw/TLOutputChrono.m +++ b/+hw/TLOutputChrono.m @@ -68,7 +68,7 @@ function init(obj, timeline) % Add on-demand digital channel obj.Session.addDigitalChannel(obj.DaqDeviceID, obj.DaqChannelID, 'OutputOnly'); warning('on', 'daq:Session:onDemandOnlyChannelsAdded'); - tls = timeline.getSessions('main'); + tls = timeline.Sessions('main'); %%Send a test pulse low, then high to clocking channel & check we read it back idx = cellfun(@(s2)strcmp('chrono',s2), {timeline.Inputs.name}); diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 2467e99a..dca17a60 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -94,7 +94,6 @@ properties (Transient, Access = protected) Listener % holds the listener for 'DataAvailable', see DataAvailable and Timeline.process() - Sessions = containers.Map % map of daq sessions and their channels, created at tl.start() LastTimestamp % the last timestamp returned from the daq during the DataAvailable event. Used to check sampling continuity, see tl.process() Ref % the expRef string. See tl.start() AlyxInstance % a struct contraining the Alyx token, user and url for ile registration. See tl.start() @@ -103,6 +102,10 @@ DataFID % The data file ID for writing aquired data directly to disk end + properties (Transient, SetAccess = protected, GetAccess = {?hw.Timeline, ?hw.TLOutput}) + Sessions = containers.Map % map of daq sessions and their channels, created at tl.start() + end + methods function obj = Timeline(hw) % TIMELINE Constructor method @@ -495,18 +498,8 @@ function stop(obj) % Report successful stop fprintf('Timeline for ''%s'' stopped and saved successfully.\n', obj.Ref); end - - function s = getSessions(obj, name) - % GETSESSIONS() Returns the Sessions property - % returns the Sessions property. Some things (e.g. output - % classes) need this. - % - % See Also HW.TLOUTPUT - s = obj.Sessions(name); - end - end - + methods (Access = private) function init(obj) % Create DAQ session and add channels diff --git a/+hw/devices.m b/+hw/devices.m index 24e532cf..2b3b914e 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -56,7 +56,7 @@ if init % intialise psychportaudio if isempty(IsPsychSoundInitialize) || ~IsPsychSoundInitialize - InitializePsychSound; + InitializePsychSound IsPsychSoundInitialize = true; end % Get list of audio devices diff --git a/+srv/expServer.m b/+srv/expServer.m index f43a1749..36aa8529 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -253,6 +253,11 @@ function runExp(expRef, preDelay, postDelay, Alyx) rig.stimWindow.BackgroundColour = bgColour; rig.stimWindow.flip(); % clear the screen after + % save a copy of the hardware in JSON + jsonData = obj2json(rig); %#ok + name = dat.expFilePath(expRef, 'hw-info', 'master'); + save([name(1:end-3) 'json'], 'jsonData', '-ascii'); + if rig.timeline.UseTimeline %stop the timeline system rig.timeline.stop(); diff --git a/+srv/prepareExp.m b/+srv/prepareExp.m index 6bb2a2f3..cff683e0 100644 --- a/+srv/prepareExp.m +++ b/+srv/prepareExp.m @@ -1,5 +1,4 @@ function experiment = prepareExp(params, rig, preDelay, postDelay, comm) - % parameters should have a create experiment function that takes three % arguments: % 1st, the parameters structure for configuring the experiment @@ -30,16 +29,4 @@ exp.EventHandler('experimentInit', startServices),... exp.EventHandler('experimentCleanup', stopServices)); end - -% % add a log entry for the experiment -% %TODO: in future logging will be handled by the client so that e.g. -% %comments can be entered by the supervisor and added -% % expInfo.ref = block.expRef; -% % expInfo.proportionCorrect = psycho.proportionCorrect(block); -% % expInfo.rewardType = 'water'; -% % expInfo.rewardTotal = sum([block.rewardDeliveredSizes]); % in microlitres -% % expInfo.rewardUnits = 'µl'; % in microlitres -% % data.addLogEntry(subjectRef, block.startDateTime, 'experiment-info', expInfo, ''); -% end - end \ No newline at end of file diff --git a/alyx-matlab b/alyx-matlab index 577a6d02..378f95af 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 577a6d02fb30e8e063a7609950e2b224e5ea0b39 +Subproject commit 378f95afeba573da867d8ff55851152b82468640 diff --git a/cb-tools/burgbox/mergeStructs.m b/cb-tools/burgbox/mergeStructs.m index ae9b4767..a7ee11d9 100644 --- a/cb-tools/burgbox/mergeStructs.m +++ b/cb-tools/burgbox/mergeStructs.m @@ -2,6 +2,12 @@ %MERGESTRUCTS Concatenates different structures into one structure array % s = MERGESTRUCTS(struct1, struct2,...) % +% If there are any repeated fields, the first instance of that field +% takes precedence. Therefore the order of the input structs affects the +% resulting merged struct. +% +% See also CATSTRUCTS +% % Part of Burgbox % 2013-11 CB created diff --git a/npy-matlab b/npy-matlab index 524bd143..a99e00f7 160000 --- a/npy-matlab +++ b/npy-matlab @@ -1 +1 @@ -Subproject commit 524bd143c34cbd9d1bbc895ed05e082ce4249b62 +Subproject commit a99e00f78c72a7ec5f9c3074242ffaf242de9448 From bc38aa131febae49bcbdbdd13d813c7696beb751 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 4 May 2018 13:45:14 +0100 Subject: [PATCH 129/515] Added function to turn MATLAB objects to JSON ones --- cb-tools/obj2json.m | 84 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 cb-tools/obj2json.m diff --git a/cb-tools/obj2json.m b/cb-tools/obj2json.m new file mode 100644 index 00000000..34b0bae0 --- /dev/null +++ b/cb-tools/obj2json.m @@ -0,0 +1,84 @@ +function s = obj2json(rig) +% OBJ2JSON Converts input into JSON +s = obj2struct(rig); +if verLessThan('matlab','9.1') + s = savejson('', s); +elseif verLessThan('matlab','9.3') + s = jsonencode(s); +else + s = jsonencode(s, 'ConvertInfAndNaN', true); +end +end + +function s = obj2struct(obj) +% OBJ2STRUCT Converts input object into a struct +% Returns the input but with any non-fundamental object converted to a +% structure. If the input does not contain an object, the resulting +% output will remain unchanged. +% +% NB: Does not convert National Instruments object or objects within +% non-scalar structures. Cannot currently deal with Java, COM or certain +% graphics objects. Function handles are converted to strings. +% +% 2018-05-03 MW created + +if isobject(obj) + if length(obj) > 1 + % If dealing with heterogeneous array of objects, recurse through array + s = arrayfun(@obj2struct, obj, 'uni', 0); + elseif isa(obj, 'containers.Map') + % Convert to scalar struct + keySet = keys(obj); + valueSet = values(obj); + for j = 1:length(keySet) + m.(keySet{j}) = valueSet{j}; + end + s = obj2struct(m); + else % Normal object + names = fieldnames(obj); % Get list of public properties + for i = 1:length(names) + if isobject(obj.(names{i})) % Property contains an object + if startsWith(class(obj.(names{i})),'daq.ni.') + % Do not attempt to save ni daq sessions of channels + s.(names{i}) = []; + else % Recurse + s.(names{i}) = obj2struct(obj.(names{i})); + end + elseif iscell(obj.(names{i})) + % If property contains cell array, run through each element in case + % any contain an object + s.(names{i}) = cellfun(@obj2struct, obj.(names{i}), 'uni', 0); + elseif isstruct(obj.(names{i})) && isscalar(obj.(names{i})) + % If property contains struct, run through each field in case any + % contain an object + s.(names{i}) = structfun(@obj2struct, obj.(names{i}), 'uni', 0); + elseif isa(obj.(names{i}), 'function_handle') + % Convert function to string + s.(names{i}) = func2str(obj.(names{i})); + elseif isa(obj.(names{i}), 'containers.Map') + % Convert to scalar struct + keySet = keys(obj.(names{i})); + valueSet = values(obj.(names{i})); + for j = 1:length(keySet) + m.(keySet{j}) = valueSet{j}; + end + s.(names{i}) = obj2struct(m); + else % Property is fundamental object + s.(names{i}) = obj.(names{i}); + end + end + s.ClassContructor = class(obj); % Supply class name for loading object + end +elseif iscell(obj) + % If dealing with cell array, recurse through elements + s = cellfun(@obj2struct, obj, 'uni', 0); +elseif isstruct(obj) && isscalar(obj) + % If dealing with structure, recurse through fields + s = structfun(@obj2struct, obj, 'uni', 0); +elseif isa(obj, 'function_handle') + % Convert function to string + s = func2str(obj); +else % Fundamental object, return unchanged + s = obj; +end +end \ No newline at end of file From 747629c870e9b2b0315b280e22a7bc5c816f9cfc Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 4 May 2018 13:46:57 +0100 Subject: [PATCH 130/515] Updated alyx-matlab to not use expInfo repo --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 378f95af..c87c470d 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 378f95afeba573da867d8ff55851152b82468640 +Subproject commit c87c470de5b417885188e16855cbdfdcf105f13d From a27c33aeb488f58dabd8a4a7897e61802a51ac28 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 4 May 2018 20:07:21 +0100 Subject: [PATCH 131/515] Added git hash to the rig structure in hw.devices --- +hw/devices.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/+hw/devices.m b/+hw/devices.m index 2b3b914e..f0a8274e 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -34,6 +34,13 @@ end rig.useDaq = pick(rig, 'useDaq', 'def', true); +%% If Git is installed, determine hash of latest commit to code +[status, hash] = system(sprintf('git -C "%s" rev-parse HEAD',... + fileparts(which('addRigboxPaths')))); +if status == 0 + rig.GitHash = hash; +end + %% Configure common devices, if present configure('mouseInput'); configure('lickDetector'); From 1a92b22df00cc161cfa564cae07d9de1e7757d69 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 8 May 2018 12:18:13 +0100 Subject: [PATCH 132/515] Water no longer posted to Alyx if experiment is aborted --- +eui/ExpPanel.m | 5 +++-- +srv/StimulusControl.m | 4 ++-- +srv/expServer.m | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index 7878f6da..9ff3310f 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -206,7 +206,7 @@ function expStarted(obj, rig, evt) end end - function expStopped(obj, rig, ~) + function expStopped(obj, rig, evt) % EXPSTOPPED Callback for the ExpStopped event. % expStopped(obj, rig, event) Updates the ExpRunning flag, the % panel title and status label to show that the experiment has @@ -222,8 +222,9 @@ function expStopped(obj, rig, ~) obj.Root.TitleColor = [1 0.3 0.22]; % red title area %post water to Alyx ai = rig.AlyxInstance; + aborted = evt.Data; % aborted experiment flag subject = obj.SubjectRef; - if ~isempty(ai)&&~strcmp(subject,'default') + if ~isempty(ai)&&~strcmp(subject,'default')&&~aborted switch class(obj) case 'eui.ChoiceExpPanel' if ~isfield(obj.Block.trial,'feedbackType'); return; end % No completed trials diff --git a/+srv/StimulusControl.m b/+srv/StimulusControl.m index 9e6f8114..7e1fde06 100644 --- a/+srv/StimulusControl.m +++ b/+srv/StimulusControl.m @@ -198,8 +198,8 @@ function onWSReceived(obj, ~, eventArgs) notify(obj, 'ExpStarting', srv.ExpEvent('starting', ref)); case 'completed' %experiment stopped without any exceptions - ref = data{2}; - notify(obj, 'ExpStopped', srv.ExpEvent('completed', ref)); + ref = data{2}; aborted = data{3}; + notify(obj, 'ExpStopped', srv.ExpEvent('completed', ref, aborted)); case 'expException' %experiment stopped with an exception ref = data{2}; err = data{3}; diff --git a/+srv/expServer.m b/+srv/expServer.m index 36aa8529..8fee4a84 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -203,7 +203,7 @@ function handleMessage(id, data, host) experiment.AlyxInstance = AlyxInstance; end experiment.quit(immediately); - send(communicator, id, []); + send(communicator, id, immediately); else log('Quit message received but no experiment is running\n'); end From aa55f766108131116a4b331c8267b6a2c15207c6 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 8 May 2018 12:46:45 +0100 Subject: [PATCH 133/515] Updated Alyx package to deal with server timeouts gracefully --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index c87c470d..ba6be6a2 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit c87c470de5b417885188e16855cbdfdcf105f13d +Subproject commit ba6be6a22d91207e8cb776b82426be3a81df476b From ec3a705fb4ff68b1be9d60d7fe90479890ed06db Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 8 May 2018 17:44:40 +0100 Subject: [PATCH 134/515] Fixed bug introduced by abort feature: now expServer correctly reports abort status to mc --- +eui/ExpPanel.m | 2 +- +srv/expServer.m | 11 ++++++----- alyx-matlab | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index 9ff3310f..de272d64 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -393,7 +393,7 @@ function build(obj, parent) 'String', 'End'),... uicontrol('Parent', buttonpanel,... 'Style', 'pushbutton',... - 'String', 'Abort')]; + 'String', 'Abort (Doesn''t post water to Alyx)')]; set(obj.StopButtons, 'Enable', 'off', 'Visible', 'off'); uicontrol('Parent', buttonpanel,... 'Style', 'pushbutton',... diff --git a/+srv/expServer.m b/+srv/expServer.m index 8fee4a84..5ba62f5c 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -55,7 +55,7 @@ function expServer(useTimelineOverride, bgColour) @() PsychPortAudio('Verbosity', oldPpaVerbosity)... })); -HideCursor(); +% HideCursor(); if nargin < 2 bgColour = 127*[1 1 1]; % mid gray by default @@ -177,9 +177,9 @@ function handleMessage(id, data, host) communicator.send(id, []); try communicator.send('status', {'starting', expRef}); - runExp(expRef, preDelay, postDelay, Alyx); + aborted = runExp(expRef, preDelay, postDelay, Alyx); log('Experiment ''%s'' completed', expRef); - communicator.send('status', {'completed', expRef}); + communicator.send('status', {'completed', expRef, aborted}); catch runEx communicator.send('status', {'expException', expRef, runEx.message}); log('Exception during experiment ''%s'' because ''%s''', expRef, runEx.message); @@ -203,7 +203,7 @@ function handleMessage(id, data, host) experiment.AlyxInstance = AlyxInstance; end experiment.quit(immediately); - send(communicator, id, immediately); + send(communicator, id, []); else log('Quit message received but no experiment is running\n'); end @@ -217,7 +217,7 @@ function handleMessage(id, data, host) end end - function runExp(expRef, preDelay, postDelay, Alyx) + function aborted = runExp(expRef, preDelay, postDelay, Alyx) % disable ptb keyboard listening KbQueueRelease(); @@ -248,6 +248,7 @@ function runExp(expRef, preDelay, postDelay, Alyx) experiment.AlyxInstance = Alyx; % add Alyx Instance experiment.run(expRef); % run the experiment communicator.EventMode = false; % back to pull message mode + aborted = strcmp(experiment.Data.endStatus, 'aborted'); % clear the active experiment var experiment = []; rig.stimWindow.BackgroundColour = bgColour; diff --git a/alyx-matlab b/alyx-matlab index ba6be6a2..296cc0a8 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit ba6be6a22d91207e8cb776b82426be3a81df476b +Subproject commit 296cc0a8240d42e183bf62c10c42e729541ae653 From d07017a27712c1b5c095f87d43eab4b08dffdfc9 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 9 May 2018 13:09:16 +0100 Subject: [PATCH 135/515] Removed return charecter from Git hash --- +hw/devices.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+hw/devices.m b/+hw/devices.m index f0a8274e..2734fe92 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -38,7 +38,7 @@ [status, hash] = system(sprintf('git -C "%s" rev-parse HEAD',... fileparts(which('addRigboxPaths')))); if status == 0 - rig.GitHash = hash; + rig.GitHash = strtrim(hash); end %% Configure common devices, if present From cc2ddaaffe0a00c75c101e7d573e313c0cb68854 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 9 May 2018 15:38:28 +0100 Subject: [PATCH 136/515] Fixed the saving of JSON files in newExp expServer and Timeline: now json is written to file using fprintf --- +hw/Timeline.m | 5 +++-- +srv/expServer.m | 5 +++-- alyx-matlab | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index dca17a60..71dddeb5 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -456,8 +456,9 @@ function stop(obj) superSave(obj.Data.savePaths, struct('Timeline', obj.Data)); % write hardware info to a JSON file for compatibility with database - hw = jsonencode(obj.Data.hw); %#ok - save(fullfile(fileparts(obj.Data.savePaths{2}), 'TimelineHW.json'), 'hw', '-ascii'); + fid = fopen(fullfile(fileparts(obj.Data.savePaths{2}), 'TimelineHW.json')); + fprintf(fid, '%s', jsonencode(obj.Data.hw)); + fclose(fid); % save each recorded vector into the correct format in Timeline % timebase for Alyx and optionally into universal timebase if diff --git a/+srv/expServer.m b/+srv/expServer.m index 5ba62f5c..7697c919 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -255,9 +255,10 @@ function handleMessage(id, data, host) rig.stimWindow.flip(); % clear the screen after % save a copy of the hardware in JSON - jsonData = obj2json(rig); %#ok name = dat.expFilePath(expRef, 'hw-info', 'master'); - save([name(1:end-3) 'json'], 'jsonData', '-ascii'); + fid = fopen([name(1:end-3) 'json']); + fprintf(fid, '%s', obj2json(rig)); + fclose(fid); if rig.timeline.UseTimeline %stop the timeline system diff --git a/alyx-matlab b/alyx-matlab index 296cc0a8..d612fe08 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 296cc0a8240d42e183bf62c10c42e729541ae653 +Subproject commit d612fe083670f4680283bae2827dbe24c65df573 From 9bd2494f264d20c28b33ac26f2dff9979a2b03fb Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 9 May 2018 16:27:02 +0100 Subject: [PATCH 137/515] Added write flag for saving JSON to file. Also took obj2struct out of obj2json function so it can be used seperately by Timeline for saving outputs to a structure --- +hw/Timeline.m | 7 ++--- +srv/expServer.m | 2 +- alyx-matlab | 2 +- cb-tools/obj2json.m | 73 ------------------------------------------- cb-tools/obj2struct.m | 72 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 76 insertions(+), 80 deletions(-) create mode 100644 cb-tools/obj2struct.m diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 71dddeb5..2e8a3b16 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -444,19 +444,16 @@ function stop(obj) obj.Data.currSysTimeTimelineOffset = CurrSysTimeTimelineOffset; % saving hardware metadata for each output - warning('off', 'MATLAB:structOnObject'); % sorry, don't care for outIdx = 1:numel(obj.Outputs) - s = struct(obj.Outputs(outIdx)); - s.Class = class(obj.Outputs(outIdx)); + s = obj2struct(obj.Outputs(outIdx)); obj.Data.hw.Outputs{outIdx} = s; end - warning('on', 'MATLAB:structOnObject'); % save tl to all paths superSave(obj.Data.savePaths, struct('Timeline', obj.Data)); % write hardware info to a JSON file for compatibility with database - fid = fopen(fullfile(fileparts(obj.Data.savePaths{2}), 'TimelineHW.json')); + fid = fopen(fullfile(fileparts(obj.Data.savePaths{2}), 'TimelineHW.json'), 'w'); fprintf(fid, '%s', jsonencode(obj.Data.hw)); fclose(fid); diff --git a/+srv/expServer.m b/+srv/expServer.m index 7697c919..e56b4dd9 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -256,7 +256,7 @@ function handleMessage(id, data, host) % save a copy of the hardware in JSON name = dat.expFilePath(expRef, 'hw-info', 'master'); - fid = fopen([name(1:end-3) 'json']); + fid = fopen([name(1:end-3) 'json'], 'w'); fprintf(fid, '%s', obj2json(rig)); fclose(fid); diff --git a/alyx-matlab b/alyx-matlab index d612fe08..81470615 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit d612fe083670f4680283bae2827dbe24c65df573 +Subproject commit 8147061553071352e992a09e68ec10f5d85cbd69 diff --git a/cb-tools/obj2json.m b/cb-tools/obj2json.m index 34b0bae0..100a2ab9 100644 --- a/cb-tools/obj2json.m +++ b/cb-tools/obj2json.m @@ -8,77 +8,4 @@ else s = jsonencode(s, 'ConvertInfAndNaN', true); end -end - -function s = obj2struct(obj) -% OBJ2STRUCT Converts input object into a struct -% Returns the input but with any non-fundamental object converted to a -% structure. If the input does not contain an object, the resulting -% output will remain unchanged. -% -% NB: Does not convert National Instruments object or objects within -% non-scalar structures. Cannot currently deal with Java, COM or certain -% graphics objects. Function handles are converted to strings. -% -% 2018-05-03 MW created - -if isobject(obj) - if length(obj) > 1 - % If dealing with heterogeneous array of objects, recurse through array - s = arrayfun(@obj2struct, obj, 'uni', 0); - elseif isa(obj, 'containers.Map') - % Convert to scalar struct - keySet = keys(obj); - valueSet = values(obj); - for j = 1:length(keySet) - m.(keySet{j}) = valueSet{j}; - end - s = obj2struct(m); - else % Normal object - names = fieldnames(obj); % Get list of public properties - for i = 1:length(names) - if isobject(obj.(names{i})) % Property contains an object - if startsWith(class(obj.(names{i})),'daq.ni.') - % Do not attempt to save ni daq sessions of channels - s.(names{i}) = []; - else % Recurse - s.(names{i}) = obj2struct(obj.(names{i})); - end - elseif iscell(obj.(names{i})) - % If property contains cell array, run through each element in case - % any contain an object - s.(names{i}) = cellfun(@obj2struct, obj.(names{i}), 'uni', 0); - elseif isstruct(obj.(names{i})) && isscalar(obj.(names{i})) - % If property contains struct, run through each field in case any - % contain an object - s.(names{i}) = structfun(@obj2struct, obj.(names{i}), 'uni', 0); - elseif isa(obj.(names{i}), 'function_handle') - % Convert function to string - s.(names{i}) = func2str(obj.(names{i})); - elseif isa(obj.(names{i}), 'containers.Map') - % Convert to scalar struct - keySet = keys(obj.(names{i})); - valueSet = values(obj.(names{i})); - for j = 1:length(keySet) - m.(keySet{j}) = valueSet{j}; - end - s.(names{i}) = obj2struct(m); - else % Property is fundamental object - s.(names{i}) = obj.(names{i}); - end - end - s.ClassContructor = class(obj); % Supply class name for loading object - end -elseif iscell(obj) - % If dealing with cell array, recurse through elements - s = cellfun(@obj2struct, obj, 'uni', 0); -elseif isstruct(obj) && isscalar(obj) - % If dealing with structure, recurse through fields - s = structfun(@obj2struct, obj, 'uni', 0); -elseif isa(obj, 'function_handle') - % Convert function to string - s = func2str(obj); -else % Fundamental object, return unchanged - s = obj; -end end \ No newline at end of file diff --git a/cb-tools/obj2struct.m b/cb-tools/obj2struct.m new file mode 100644 index 00000000..60e91eb6 --- /dev/null +++ b/cb-tools/obj2struct.m @@ -0,0 +1,72 @@ +function s = obj2struct(obj) +% OBJ2STRUCT Converts input object into a struct +% Returns the input but with any non-fundamental object converted to a +% structure. If the input does not contain an object, the resulting +% output will remain unchanged. +% +% NB: Does not convert National Instruments object or objects within +% non-scalar structures. Cannot currently deal with Java, COM or certain +% graphics objects. Function handles are converted to strings. +% +% 2018-05-03 MW created + +if isobject(obj) + if length(obj) > 1 + % If dealing with heterogeneous array of objects, recurse through array + s = arrayfun(@obj2struct, obj, 'uni', 0); + elseif isa(obj, 'containers.Map') + % Convert to scalar struct + keySet = keys(obj); + valueSet = values(obj); + for j = 1:length(keySet) + m.(keySet{j}) = valueSet{j}; + end + s = obj2struct(m); + else % Normal object + names = fieldnames(obj); % Get list of public properties + for i = 1:length(names) + if isobject(obj.(names{i})) % Property contains an object + if startsWith(class(obj.(names{i})),'daq.ni.') + % Do not attempt to save ni daq sessions of channels + s.(names{i}) = []; + else % Recurse + s.(names{i}) = obj2struct(obj.(names{i})); + end + elseif iscell(obj.(names{i})) + % If property contains cell array, run through each element in case + % any contain an object + s.(names{i}) = cellfun(@obj2struct, obj.(names{i}), 'uni', 0); + elseif isstruct(obj.(names{i})) && isscalar(obj.(names{i})) + % If property contains struct, run through each field in case any + % contain an object + s.(names{i}) = structfun(@obj2struct, obj.(names{i}), 'uni', 0); + elseif isa(obj.(names{i}), 'function_handle') + % Convert function to string + s.(names{i}) = func2str(obj.(names{i})); + elseif isa(obj.(names{i}), 'containers.Map') + % Convert to scalar struct + keySet = keys(obj.(names{i})); + valueSet = values(obj.(names{i})); + for j = 1:length(keySet) + m.(keySet{j}) = valueSet{j}; + end + s.(names{i}) = obj2struct(m); + else % Property is fundamental object + s.(names{i}) = obj.(names{i}); + end + end + s.ClassContructor = class(obj); % Supply class name for loading object + end +elseif iscell(obj) + % If dealing with cell array, recurse through elements + s = cellfun(@obj2struct, obj, 'uni', 0); +elseif isstruct(obj) && isscalar(obj) + % If dealing with structure, recurse through fields + s = structfun(@obj2struct, obj, 'uni', 0); +elseif isa(obj, 'function_handle') + % Convert function to string + s = func2str(obj); +else % Fundamental object, return unchanged + s = obj; +end +end \ No newline at end of file From e99159be13377d9a889409efa5202252c70bc954 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 9 May 2018 19:22:17 +0100 Subject: [PATCH 138/515] Added tooltip strings to end and abort buttons for clarity and removed some redundant code --- +eui/ExpPanel.m | 6 ++++-- +eui/ParamEditor.m | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index de272d64..e07ceb6b 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -390,10 +390,12 @@ function build(obj, parent) obj.StopButtons = [... uicontrol('Parent', buttonpanel,... 'Style', 'pushbutton',... - 'String', 'End'),... + 'String', 'End',... + 'TooltipString', 'End experiment'),... uicontrol('Parent', buttonpanel,... 'Style', 'pushbutton',... - 'String', 'Abort (Doesn''t post water to Alyx)')]; + 'String', 'Abort',... + 'TooltipString', 'Abort experiment without posting water to Alyx')]; set(obj.StopButtons, 'Enable', 'off', 'Visible', 'off'); uicontrol('Parent', buttonpanel,... 'Style', 'pushbutton',... diff --git a/+eui/ParamEditor.m b/+eui/ParamEditor.m index a513ad6a..e29749f9 100644 --- a/+eui/ParamEditor.m +++ b/+eui/ParamEditor.m @@ -107,7 +107,7 @@ function build(obj, parent) % Build parameters panel obj.SetValuesButton = uicontrol('Parent', conditionButtonBox,... 'Style', 'pushbutton',... 'String', 'Set values',... - 'TooltipString', sprintf('Set selected values to specified value, range or function'),... + 'TooltipString', 'Set selected values to specified value, range or function',... 'Enable', 'off',... 'Callback', @(~, ~) obj.setSelectedValues()); From 8975458df92f1b1252ef8c4125aae3bd4d425e99 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 10 May 2018 11:54:03 +0100 Subject: [PATCH 139/515] HideCurser now back --- +srv/expServer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+srv/expServer.m b/+srv/expServer.m index e56b4dd9..7eea2ccc 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -55,7 +55,7 @@ function expServer(useTimelineOverride, bgColour) @() PsychPortAudio('Verbosity', oldPpaVerbosity)... })); -% HideCursor(); +HideCursor(); if nargin < 2 bgColour = 127*[1 1 1]; % mid gray by default From 55e925d6fcd389e946a25a0541242144aa441946 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 10 May 2018 23:03:24 +0100 Subject: [PATCH 140/515] Alyx object paths now set by Rigbox dat.paths function. Fix for missing star in mc weight plot --- +dat/paths.m | 2 ++ +eui/AlyxPanel.m | 3 ++- alyx-matlab | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 1dee5d35..72a1f2ea 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -23,6 +23,8 @@ p.rigbox = fileparts(which('addRigboxPaths')); % Repository for local copy of everything generated on this rig p.localRepository = 'C:\LocalExpData'; +p.localAlyxQueue = 'C:\localAlyxQueue'; +p.databaseURL = 'https://alyx.cortexlab.net'; % Under the new system of having data grouped by mouse % rather than data type, all experimental data are saved here. diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index e8f5fd28..719c58d2 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -537,7 +537,8 @@ function viewSubjectHistory(obj, ax) plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); - if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end + % Change the plot x axis limits + if numel(dates) > 1; xlim(ax, [min(dates) max(now)]); end if nargin == 1 set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) else diff --git a/alyx-matlab b/alyx-matlab index 81470615..f418ea8e 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 8147061553071352e992a09e68ec10f5d85cbd69 +Subproject commit f418ea8ed43ca7da4e26704c05e1f3d6ef83692e From 31d9ea7bfcfe672743b6297740921a5c1449231a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 11 May 2018 22:09:29 +0100 Subject: [PATCH 141/515] Ensure Alyx always headless when passed to expServer --- +srv/expServer.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/+srv/expServer.m b/+srv/expServer.m index 7eea2ccc..bfa4b45e 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -194,6 +194,7 @@ function handleMessage(id, data, host) if ~isempty(experiment) immediately = args{1}; AlyxInstance = args{2}; + AlyxInstance.Headless = true; if immediately log('Aborting experiment'); else @@ -209,6 +210,7 @@ function handleMessage(id, data, host) end case 'updateAlyxInstance' %recieved new Alyx Instance from Stimulus Control AlyxInstance = args{1}; %get struct + AlyxInstance.Headless = true; if ~isempty(AlyxInstance) experiment.AlyxInstance = AlyxInstance; %set property for current experiment end From 10a49eaf551400e6a5b15720546550103ac4a881 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 11 May 2018 22:24:26 +0100 Subject: [PATCH 142/515] updated submodule to deal with paths not being specified --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index f418ea8e..1c21cd7a 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit f418ea8ed43ca7da4e26704c05e1f3d6ef83692e +Subproject commit 1c21cd7a91f47ca880e8c813a4efd9c26759f771 From 55b74d265219f05fed87e3d364ed4247e9f52899 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 14 May 2018 15:14:38 +0100 Subject: [PATCH 143/515] Fixed XTick labels in the log and now xlim depends on whether there is a new reading or not --- +eui/AlyxPanel.m | 9 +++++---- +eui/MControl.m | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 719c58d2..00bd41d5 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -511,15 +511,15 @@ function viewSubjectHistory(obj, ax) % collect the data for the table endpnt = sprintf('water-requirement/%s?start_date=2016-01-01&end_date=%s', obj.Subject, datestr(now, 'yyyy-mm-dd')); wr = obj.AlyxInstance.getData(endpnt); - iw = wr.implant_weight; + iw = iff(isempty(wr.implant_weight), 0, wr.implant_weight); records = catStructs(wr.records, nan); - expected = [records.weight_expected]; - expected(expected==0) = nan; % no weighings found if isempty(wr.records) obj.log('No weight data found for subject %s', obj.Subject); return end + expected = [records.weight_expected]; + expected(expected==0) = nan; dates = cellfun(@(x)datenum(x), {records.date}); % build the figure to show it @@ -538,10 +538,11 @@ function viewSubjectHistory(obj, ax) plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); % Change the plot x axis limits - if numel(dates) > 1; xlim(ax, [min(dates) max(now)]); end + if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end if nargin == 1 set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) else + xticks(ax, 'auto') ax.XTickLabel = arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false); end ylabel(ax, 'weight (g)'); diff --git a/+eui/MControl.m b/+eui/MControl.m index 8635f7b4..c3f3baa1 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -617,6 +617,7 @@ function plotWeightReading(obj) MinSignificantWeight = 5; %grams if g >= MinSignificantWeight obj.WeightReadingPlot = obj.WeightAxes.scatter(floor(now), g, 20^2, 'p', 'filled'); + obj.WeightAxes.XLim = [min(get(obj.WeightAxes.Handle, 'XTick')) max(now)]; set(obj.RecordWeightButton, 'Enable', 'on', 'String', sprintf('Record %.1fg', g)); end end From f842c94190b2e9376f59c68c3036ed01a98ee21f Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 15 May 2018 11:51:59 +0100 Subject: [PATCH 144/515] Fix in old choiceworld for rigs with more than 2 audio output channels --- cortexlab/+exp/configureChoiceExperiment.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortexlab/+exp/configureChoiceExperiment.m b/cortexlab/+exp/configureChoiceExperiment.m index 446573b2..0f4dc57a 100644 --- a/cortexlab/+exp/configureChoiceExperiment.m +++ b/cortexlab/+exp/configureChoiceExperiment.m @@ -34,7 +34,7 @@ toneMaxAmp = params.Struct.onsetToneMaxAmp; rampLen = 0.01; %secs - length of amplitude ramp up/down toneSamples = toneMaxAmp*aud.pureTone(toneFreq, toneLen, audSampleRate, rampLen); -toneSamples = repmat(toneSamples, 2, 1); % replicate across two channels/stereo +toneSamples = repmat(toneSamples, dev.NrOutputChannels, 1); % replicate across channels/stereo params.set('onsetToneSamples', {toneSamples},... sprintf('The data samples for the onset tone, sampled at %iHz', audSampleRate), 'normalised'); From 621d6e1a20d6b506fbc2d1e34dbf906a30bd0190 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 16 May 2018 16:29:41 +0100 Subject: [PATCH 145/515] Updates paths file: now all config and expDefs found on zserver --- +dat/paths.m | 5 +++-- alyx-matlab | 2 +- signals | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 72a1f2ea..63c5769f 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -14,6 +14,7 @@ end server1Name = '\\zubjects.cortexlab.net'; +server2Name = '\\zserver.cortexlab.net'; basketName = '\\basket.cortexlab.net'; % for working analyses lugaroName = '\\lugaro.cortexlab.net'; % for tape backup @@ -33,11 +34,11 @@ % directory for organisation-wide configuration files, for now these should % all remain on zserver % p.globalConfig = fullfile(p.rigbox, 'config'); -p.globalConfig = fullfile(server1Name, 'Code', 'Rigging', 'config'); +p.globalConfig = fullfile(server2Name, 'Code', 'Rigging', 'config'); % directory for rig-specific configuration files p.rigConfig = fullfile(p.globalConfig, rig); % repository for all experiment definitions -p.expDefinitions = fullfile(server1Name, 'Code', 'Rigging', 'ExpDefinitions'); +p.expDefinitions = fullfile(server2Name, 'Code', 'Rigging', 'ExpDefinitions'); % repository for working analyses that are not meant to be stored % permanently diff --git a/alyx-matlab b/alyx-matlab index 1c21cd7a..f418ea8e 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 1c21cd7a91f47ca880e8c813a4efd9c26759f771 +Subproject commit f418ea8ed43ca7da4e26704c05e1f3d6ef83692e diff --git a/signals b/signals index c879c89d..e200ede5 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit c879c89d9b267370b2c6cb061e8c8afaf48f4474 +Subproject commit e200ede5817d0c72949de71e49329d6ff2ac4bd1 From 841a72223e035319e32154739f10cb8bb34f26d3 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 17 May 2018 11:43:25 +0100 Subject: [PATCH 146/515] Update to Alyx: doesn't crash is dat.paths doesn't provice the relevant paths --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 1c21cd7a..b66e4c6f 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 1c21cd7a91f47ca880e8c813a4efd9c26759f771 +Subproject commit b66e4c6f9918a0332489010f049c9e0aa8a4e48a From 1f21c81f954e87b38ff1d82eb9999354b59b20d1 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 17 May 2018 18:10:31 +0100 Subject: [PATCH 147/515] Contrast values no longer saved in % when exported to ALF --- +exp/SignalsExp.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 4a019e22..8b998414 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -904,8 +904,8 @@ function saveData(obj) contL = getOr(obj.Data.events, 'contrastLeftValues', NaN); contR = getOr(obj.Data.events, 'contrastRightValues', NaN); if ~any(isnan(contL))&&~any(isnan(contR)) - writeNPY(contL(:)*100, fullfile(expPath, 'cwStimOn.contrastLeft.npy')); - writeNPY(contR(:)*100, fullfile(expPath, 'cwStimOn.contrastRight.npy')); + writeNPY(contL(:), fullfile(expPath, 'cwStimOn.contrastLeft.npy')); + writeNPY(contR(:), fullfile(expPath, 'cwStimOn.contrastRight.npy')); else warning('No ''contrastLeft'' and/or ''contrastRight'' events recorded, cannot register to Alyx') end From dbdd7a5be34ae2fc761d134ba00bb1c6a3388a38 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 18 May 2018 11:15:01 +0100 Subject: [PATCH 148/515] Fixed 80% expected weight values in viewSubjectHistory table --- +eui/AlyxPanel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 00bd41d5..a06c9353 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -584,7 +584,7 @@ function viewSubjectHistory(obj, ax) dat = horzcat(... arrayfun(@(x)datestr(x), dates', 'uni', false), ... weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)), [records.weight_expected]', 'uni', false), ... + arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.weight_expected]', 'uni', false), ... weightPctByDate'); waterDat = (... num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... From eabb88437d5008318a8649e402a4e02c2f5efc03 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 18 May 2018 18:01:48 +0100 Subject: [PATCH 149/515] Rig hardware infor now registered to Alyx --- +srv/expServer.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/+srv/expServer.m b/+srv/expServer.m index bfa4b45e..c0706087 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -261,6 +261,13 @@ function handleMessage(id, data, host) fid = fopen([name(1:end-3) 'json'], 'w'); fprintf(fid, '%s', obj2json(rig)); fclose(fid); + if ~strcmp(dat.parseExpRef(expRef), 'default') + try + Alyx.registerFile([name(1:end-3) 'json']); + catch ex + warning(ex.identifier, 'Failed to register hardware info: %s', ex.message); + end + end if rig.timeline.UseTimeline %stop the timeline system From 6ebf03f4b1fd6a081a06066e7a0b6626b526ca13 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 25 May 2018 17:33:12 +0100 Subject: [PATCH 150/515] AlyxPanel weight button can now records current scales reading --- +eui/AlyxPanel.m | 33 ++++++++++++++++++++++++++++++--- +eui/MControl.m | 5 ++++- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 00bd41d5..06ef5885 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -43,11 +43,13 @@ NewExpSubject % Drop-down menu subject list LoginText % Text displaying whether/which user is logged in LoginButton % Button to log in to Alyx + WeightButton % Button to submit weight to Alyx WaterEntry % Text box for entering the amout of water to give IsHydrogel % UI checkbox indicating whether to water to be given is in gel form WaterRequiredText % Handle to text UI element displaying the water required WaterRemainingText % Handle to text UI element displaying the water remaining LoginTimer % Timer to keep track of how long the user has been logged in, when this expires the user is automatically logged out + WeightTimer % Timer to reset weight button text when scale no longer gives new readings WaterRemaining % Holds the current water required for the selected subject end @@ -134,7 +136,7 @@ 'Enable', 'off',... 'Callback', @(~,~)obj.viewAllSubjects); % Button to open a dialog for manually submitting a mouse weight - uicontrol('Parent', waterbox,... + obj.WeightButton = uicontrol('Parent', waterbox,... 'Style', 'pushbutton', ... 'String', 'Manual weighing', ... 'Enable', 'off',... @@ -206,6 +208,11 @@ function delete(obj) delete(obj.LoginTimer) % ... delete it... obj.LoginTimer = []; % ... and remove it end + if ~isempty(obj.WeightTimer) % If there is a timer object + stop(obj.WeightTimer) % Stop the timer... + delete(obj.WeightTimer) % ... delete it... + obj.WeightTimer = []; % ... and remove it + end end function login(obj) @@ -225,7 +232,7 @@ function login(obj) % minutes of 'inactivity' (defined as not calling % dispWaterReq) obj.LoginTimer = timer('StartDelay', 30*60, 'TimerFcn',... - @(~,~)obj.login, 'BusyMode', 'queue'); + @(~,~)obj.login, 'BusyMode', 'queue', 'Name', 'Login Timer'); start(obj.LoginTimer) % Enable all buttons set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); @@ -584,7 +591,7 @@ function viewSubjectHistory(obj, ax) dat = horzcat(... arrayfun(@(x)datestr(x), dates', 'uni', false), ... weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)), [records.weight_expected]', 'uni', false), ... + arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.weight_expected]', 'uni', false), ... weightPctByDate'); waterDat = (... num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... @@ -627,6 +634,26 @@ function viewAllSubjects(obj) end end + function updateWeightButton(obj, src, ~) + % Function for changing the text on the weight button to reflect the + % current weight value obtained by the scale. This function must be + % a callback for the hw.WeighingScale NewReading event. If a new + % reading isn't read for 10 sec the manual weighing option is made + % available instead. + % + % Example: + % aiPanel = eui.AlyxPanel; + % lh = event.listener(obj.WeighingScale, 'NewReading',... + % @(src,evt)aiPanel.updateWeightButton(src,evt)); + % + % See also hw.WeighingScale, eui.MControl + set(obj.WeightButton, 'String', sprintf('Record %.1fg', src.readGrams), 'Callback', @(~,~)obj.recordWeight(src.readGrams)) + obj.WeightTimer = timer('Name', 'Last Weight',... + 'TimerFcn', @(~,~)set(obj.WeightButton, 'String', 'Manual weighing', 'Callback', @(~,~)obj.recordWeight),... + 'StopFcn', @(src,~)delete(src), 'StartDelay', 10); + start(obj.WeightTimer) + end + function log(obj, varargin) % Function for displaying timestamped information about % occurrences. If the LoggingDisplay property is unset, the diff --git a/+eui/MControl.m b/+eui/MControl.m index c3f3baa1..9e5a30ca 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -90,8 +90,11 @@ if isfield(rig, 'scale') && ~isempty(rig.scale) obj.WeighingScale = fieldOrDefault(rig, 'scale'); init(obj.WeighingScale); + % Add listners for new reading, both for the log tab and also for + % the weigh button in the Alyx Panel. obj.Listeners = [obj.Listeners,... - {event.listener(obj.WeighingScale, 'NewReading', @obj.newScalesReading)}]; + {event.listener(obj.WeighingScale, 'NewReading', @obj.newScalesReading)}... + {event.listener(obj.WeighingScale, 'NewReading', @(src,evt)obj.AlyxPanel.updateWeightButton(src,evt))}]; end catch obj.log('Warning: could not connect to weighing scales'); From 9020166a5e2f025751d016315c3553ca6c55dbd5 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Sun, 27 May 2018 13:46:35 +0100 Subject: [PATCH 151/515] change by miles? --- +eui/ExpPanel.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index 9ff3310f..7878f6da 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -206,7 +206,7 @@ function expStarted(obj, rig, evt) end end - function expStopped(obj, rig, evt) + function expStopped(obj, rig, ~) % EXPSTOPPED Callback for the ExpStopped event. % expStopped(obj, rig, event) Updates the ExpRunning flag, the % panel title and status label to show that the experiment has @@ -222,9 +222,8 @@ function expStopped(obj, rig, evt) obj.Root.TitleColor = [1 0.3 0.22]; % red title area %post water to Alyx ai = rig.AlyxInstance; - aborted = evt.Data; % aborted experiment flag subject = obj.SubjectRef; - if ~isempty(ai)&&~strcmp(subject,'default')&&~aborted + if ~isempty(ai)&&~strcmp(subject,'default') switch class(obj) case 'eui.ChoiceExpPanel' if ~isfield(obj.Block.trial,'feedbackType'); return; end % No completed trials From a8ee0e49408578af6b38b36e5e283d7ca8304f12 Mon Sep 17 00:00:00 2001 From: nsteinme Date: Sun, 27 May 2018 13:47:10 +0100 Subject: [PATCH 152/515] update vis.checkers, exp.inferParameters --- +exp/inferParameters.m | 19 ++++- +srv/StimulusControl.m | 4 +- alyx-matlab | 2 +- cortexlab/+vis/checker6.m | 2 +- cortexlab/+vis/checkerLeft.m | 126 ++++++++++++++++++++++++++++++++++ cortexlab/+vis/checkerRight.m | 126 ++++++++++++++++++++++++++++++++++ 6 files changed, 274 insertions(+), 5 deletions(-) create mode 100644 cortexlab/+vis/checkerLeft.m create mode 100644 cortexlab/+vis/checkerRight.m diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 6175fd3f..9bb61a08 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -5,11 +5,20 @@ % create some signals just to pass to the definition function and track % which parameter names are used +% if ischar(expdef) && file.exists(expdef) +% expdeffun = fileFunction(expdef); +% else +% expdeffun = expdef; +% expdef = which(func2str(expdef)); +% end if ischar(expdef) && file.exists(expdef) expdeffun = fileFunction(expdef); + [funcDir, mfile] = fileparts(expdef); addpath(funcDir); + funArgs = nargin(str2func(mfile)); else expdeffun = expdef; expdef = which(func2str(expdef)); + funArgs = nargin(expdeffun); end net = sig.Net; @@ -24,7 +33,15 @@ e.outputs = net.subscriptableOrigin('outputs'); try - expdeffun(e.t, e.events, e.pars, e.visual, e.inputs , e.outputs, e.audio); + + rig = 0; + if funArgs == 7 + expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio); + else + expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio, rig); + end + +% expdeffun(e.t, e.events, e.pars, e.visual, e.inputs , e.outputs, e.audio); % paramNames will be the strings corresponding to the fields of e.pars % that the user tried to reference in her expdeffun. paramNames = e.pars.Subscripts.keys'; diff --git a/+srv/StimulusControl.m b/+srv/StimulusControl.m index 7e1fde06..9e6f8114 100644 --- a/+srv/StimulusControl.m +++ b/+srv/StimulusControl.m @@ -198,8 +198,8 @@ function onWSReceived(obj, ~, eventArgs) notify(obj, 'ExpStarting', srv.ExpEvent('starting', ref)); case 'completed' %experiment stopped without any exceptions - ref = data{2}; aborted = data{3}; - notify(obj, 'ExpStopped', srv.ExpEvent('completed', ref, aborted)); + ref = data{2}; + notify(obj, 'ExpStopped', srv.ExpEvent('completed', ref)); case 'expException' %experiment stopped with an exception ref = data{2}; err = data{3}; diff --git a/alyx-matlab b/alyx-matlab index b66e4c6f..46a26d60 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit b66e4c6f9918a0332489010f049c9e0aa8a4e48a +Subproject commit 46a26d603df85dcde04404ede31ea9f51110cc33 diff --git a/cortexlab/+vis/checker6.m b/cortexlab/+vis/checker6.m index 4901b88c..1733d8f7 100644 --- a/cortexlab/+vis/checker6.m +++ b/cortexlab/+vis/checker6.m @@ -1,4 +1,4 @@ -function elem = checker3(t) +function elem = checker6(t) %vis.checker A grid of rectangles % Detailed explanation goes here diff --git a/cortexlab/+vis/checkerLeft.m b/cortexlab/+vis/checkerLeft.m new file mode 100644 index 00000000..cf1122d7 --- /dev/null +++ b/cortexlab/+vis/checkerLeft.m @@ -0,0 +1,126 @@ +function elem = checkerLeft(t) +%vis.checker A grid of rectangles +% Detailed explanation goes here + +elem = t.Node.Net.subscriptableOrigin('checker'); + +%% make initial layers to be used as templates +maskTemplate = vis.emptyLayer(); +maskTemplate.isPeriodic = false; +maskTemplate.interpolation = 'nearest'; +maskTemplate.show = true; +maskTemplate.colourMask = [false false false true]; + +maskTemplate.textureId = 'checkerMaskPixel'; +[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); +maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value + +stencilTemplate = maskTemplate; +stencilTemplate.textureId = 'checkerStencilPixel'; +[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); +stencilTemplate.blending = 'none'; + +% pattern layer uses the alpha values laid down by mask layers +patternLayer = vis.emptyLayer(); +patternLayer.textureId = sprintf('~checker%i', randi(2^32)); +patternLayer.isPeriodic = false; +patternLayer.interpolation = 'nearest'; +patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this + +%% construct signals used to assemble layers +% N rows by cols signal is derived from the size of the pattern array but +% we skip repeats so that pattern changes don't update the mask layers +% unless the size has acutally changed +nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); +aziRange = elem.azimuthRange.flatten(); +altRange = elem.altitudeRange.flatten(); +sizeFrac = elem.rectSizeFrac.flatten(); +% signal containing the masking layers +gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... + maskTemplate, stencilTemplate, @gridMask); +% signal contain the checker layer +checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... + elem.colour.flatten(), @updateColour,... + elem.azimuthRange.flatten(), @updateAzi,... + elem.altitudeRange.flatten(), @updateAlt,... + elem.show.flatten(), @updateShow,... + patternLayer); % initial value +%% set default attribute values +elem.layers = [gridMaskLayers checkerLayer]; +elem.azimuthRange = [-135 0]; +elem.altitudeRange = [-37.5 37.5]; +elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle +elem.pattern = [ + 1 -1 1 -1 + -1 0 0 0 + 1 0 0 0 + -1 1 -1 1]; + elem.show = true; +end + +%% helper functions +function layer = updatePattern(layer, pattern) +% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then +% convert to RGBA texture format. +[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8(uint8(127.5*(1 + pattern)), 1); +end + +function layer = updateColour(layer, colour) +layer.maxColour = [colour 1]; +end + +function layer = updateAzi(layer, aziRange) +layer.size(1) = abs(diff(aziRange)); +layer.texOffset(1) = mean(aziRange); +end + +function layer = updateAlt(layer, altRange) +layer.size(2) = abs(diff(altRange)); +layer.texOffset(2) = mean(altRange); +end + +function layer = updateShow(layer, show) +layer.show = show; +end + +function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) +gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; +cellSize = gridDims./flip(nRowsByCols); +nCols = nRowsByCols(2) + 1; +nRows = nRowsByCols(1) + 1; +midAzi = mean(aziRange); +midAlt = mean(altRange); +%% base layer to imprint area the checker can draw on (by applying an alpha mask) +stencil.texOffset = [midAzi midAlt]; +stencil.size = gridDims; +if any(sizeFrac < 1) + %% layers for lines making up mask grid - masks out margins around each square + % make layers for vertical lines + if nCols > 1 + azi = linspace(aziRange(1), aziRange(2), nCols); + else + azi = midAzi; + end + collayers = repmat(mask, 1, nCols); + for vi = 1:nCols + collayers(vi).texOffset = [azi(vi) midAlt]; + end + [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); + % make layers for horizontal lines + if nRows > 1 + alt = linspace(altRange(1), altRange(2), nRows); + else + alt = midAlt; + end + rowlayers = repmat(mask, 1, nRows); + for hi = 1:nRows + rowlayers(hi).texOffset = [midAzi alt(hi)]; + end + [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); + %% combine the layers and return + layers = [stencil collayers rowlayers]; +else % no mask grid needed as each cell is full size + layers = stencil; +end + +end \ No newline at end of file diff --git a/cortexlab/+vis/checkerRight.m b/cortexlab/+vis/checkerRight.m new file mode 100644 index 00000000..78b03545 --- /dev/null +++ b/cortexlab/+vis/checkerRight.m @@ -0,0 +1,126 @@ +function elem = checkerRight(t) +%vis.checker A grid of rectangles +% Detailed explanation goes here + +elem = t.Node.Net.subscriptableOrigin('checker'); + +%% make initial layers to be used as templates +maskTemplate = vis.emptyLayer(); +maskTemplate.isPeriodic = false; +maskTemplate.interpolation = 'nearest'; +maskTemplate.show = true; +maskTemplate.colourMask = [false false false true]; + +maskTemplate.textureId = 'checkerMaskPixel'; +[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); +maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value + +stencilTemplate = maskTemplate; +stencilTemplate.textureId = 'checkerStencilPixel'; +[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); +stencilTemplate.blending = 'none'; + +% pattern layer uses the alpha values laid down by mask layers +patternLayer = vis.emptyLayer(); +patternLayer.textureId = sprintf('~checker%i', randi(2^32)); +patternLayer.isPeriodic = false; +patternLayer.interpolation = 'nearest'; +patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this + +%% construct signals used to assemble layers +% N rows by cols signal is derived from the size of the pattern array but +% we skip repeats so that pattern changes don't update the mask layers +% unless the size has acutally changed +nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); +aziRange = elem.azimuthRange.flatten(); +altRange = elem.altitudeRange.flatten(); +sizeFrac = elem.rectSizeFrac.flatten(); +% signal containing the masking layers +gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... + maskTemplate, stencilTemplate, @gridMask); +% signal contain the checker layer +checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... + elem.colour.flatten(), @updateColour,... + elem.azimuthRange.flatten(), @updateAzi,... + elem.altitudeRange.flatten(), @updateAlt,... + elem.show.flatten(), @updateShow,... + patternLayer); % initial value +%% set default attribute values +elem.layers = [gridMaskLayers checkerLayer]; +elem.azimuthRange = [0 135]; +elem.altitudeRange = [-37.5 37.5]; +elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle +elem.pattern = [ + 1 -1 1 -1 + -1 0 0 0 + 1 0 0 0 + -1 1 -1 1]; + elem.show = true; +end + +%% helper functions +function layer = updatePattern(layer, pattern) +% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then +% convert to RGBA texture format. +[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8(uint8(127.5*(1 + pattern)), 1); +end + +function layer = updateColour(layer, colour) +layer.maxColour = [colour 1]; +end + +function layer = updateAzi(layer, aziRange) +layer.size(1) = abs(diff(aziRange)); +layer.texOffset(1) = mean(aziRange); +end + +function layer = updateAlt(layer, altRange) +layer.size(2) = abs(diff(altRange)); +layer.texOffset(2) = mean(altRange); +end + +function layer = updateShow(layer, show) +layer.show = show; +end + +function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) +gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; +cellSize = gridDims./flip(nRowsByCols); +nCols = nRowsByCols(2) + 1; +nRows = nRowsByCols(1) + 1; +midAzi = mean(aziRange); +midAlt = mean(altRange); +%% base layer to imprint area the checker can draw on (by applying an alpha mask) +stencil.texOffset = [midAzi midAlt]; +stencil.size = gridDims; +if any(sizeFrac < 1) + %% layers for lines making up mask grid - masks out margins around each square + % make layers for vertical lines + if nCols > 1 + azi = linspace(aziRange(1), aziRange(2), nCols); + else + azi = midAzi; + end + collayers = repmat(mask, 1, nCols); + for vi = 1:nCols + collayers(vi).texOffset = [azi(vi) midAlt]; + end + [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); + % make layers for horizontal lines + if nRows > 1 + alt = linspace(altRange(1), altRange(2), nRows); + else + alt = midAlt; + end + rowlayers = repmat(mask, 1, nRows); + for hi = 1:nRows + rowlayers(hi).texOffset = [midAzi alt(hi)]; + end + [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); + %% combine the layers and return + layers = [stencil collayers rowlayers]; +else % no mask grid needed as each cell is full size + layers = stencil; +end + +end \ No newline at end of file From 16d6293b4b4d2958f1f30e6cf71eeff409b666c2 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 30 May 2018 16:22:37 +0100 Subject: [PATCH 153/515] Added string compatibility in param editor --- +eui/ParamEditor.m | 15 +++++++++------ +exp/Parameters.m | 6 +++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/+eui/ParamEditor.m b/+eui/ParamEditor.m index e29749f9..f1826858 100644 --- a/+eui/ParamEditor.m +++ b/+eui/ParamEditor.m @@ -394,10 +394,12 @@ function updateGlobal(obj, param, src) end function data = controlValue2Param(obj, currParam, data, allowTypeChange) + % Convert the values displayed in the UI ('control values') to + % parameter values. String representations of numrical arrays and + % functions are converted back to their 'native' classes. if nargin < 4 allowTypeChange = false; end - % convert from control value to parameter value switch class(currParam) case 'function_handle' data = str2func(data); @@ -432,13 +434,17 @@ function updateGlobal(obj, param, src) end function data = paramValue2Control(obj, data) - % convert from parameter value to control value + % convert from parameter value to control value, i.e. a value class + % that can be easily displayed and edited by the user. Everything + % except logicals are converted to charecter arrays. switch class(data) case 'function_handle' % convert a function handle to it's string name data = func2str(data); case 'logical' data = data ~= 0; % If logical do nothing, basically. + case 'string' + data = char(data); % Strings not allowed in condition table data otherwise if isnumeric(data) % format numeric types as string number list @@ -448,7 +454,7 @@ function updateGlobal(obj, param, src) data = strJoin(data, ', '); end end - % all other data types stay as they are, including e.g. strings + % all other data types stay as they are end function fillConditionTable(obj) @@ -482,9 +488,6 @@ function makeTrialSpecific(obj, paramName, ctrls) title = obj.Parameters.title(name); description = obj.Parameters.description(name); -% if isnumeric(value) % Why? All this would do is convert logical values to char; everything else dealt with by paramValue2Control. MW 2017-02-15 -% value = num2str(value); -% end if islogical(value) % If parameter is logical, make checkbox ctrl = uicontrol('Parent', parent,... 'Style', 'checkbox',... diff --git a/+exp/Parameters.m b/+exp/Parameters.m index 03c544f6..4fa2d9ce 100644 --- a/+exp/Parameters.m +++ b/+exp/Parameters.m @@ -71,9 +71,9 @@ function set(obj, name, value, description, units) n = numel(obj.pNames); obj.IsTrialSpecific = struct; isTrialSpecificDefault = @(n) ... - ~any(strcmp(n, {'defFunction', 'expPanelFun'})) &&... - (strcmp(n, {'numRepeats'})... - || size(obj.pStruct.(n), 2) > 1); + strcmp(n, 'numRepeats') ||... % numRepeats always trail specific + (ischar(obj.pStruct.(n)) && size(obj.pStruct.(n), 1) > 1) ||... % Number of rows > 1 for chars + (~ischar(obj.pStruct.(n)) && size(obj.pStruct.(n), 2) > 1); % Number of columns > 1 for all others for i = 1:n name = obj.pNames{i}; obj.IsTrialSpecific.(name) = isTrialSpecificDefault(name); From 5d926cdafdfcb54cd74c77e152d158d3d837a90c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 28 Jun 2018 11:43:40 +0100 Subject: [PATCH 154/515] Updated DiscWorld - fix'd error where flips occured when window wasn't ready --- alyx-matlab | 2 +- cortexlab/+exp/DiscWorld.m | 2 ++ signals | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/alyx-matlab b/alyx-matlab index 46a26d60..b66e4c6f 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 46a26d603df85dcde04404ede31ea9f51110cc33 +Subproject commit b66e4c6f9918a0332489010f049c9e0aa8a4e48a diff --git a/cortexlab/+exp/DiscWorld.m b/cortexlab/+exp/DiscWorld.m index 0279df71..ac164a86 100644 --- a/cortexlab/+exp/DiscWorld.m +++ b/cortexlab/+exp/DiscWorld.m @@ -71,6 +71,8 @@ function prepareStim(obj) % are wavelengths (per grating cycle) in pixels. pxWavelength = wavelen*pxPerRad; + ensureWindowReady(obj); %ensure graphics window is ready for ops + % delete any previous textures deleteTextures(obj.StimWindow); diff --git a/signals b/signals index e200ede5..6fbd1855 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit e200ede5817d0c72949de71e49329d6ff2ac4bd1 +Subproject commit 6fbd18551b63da12cf9b4fbeab5bccfaad70eba6 From 16298b5447deb23f71072c8af5d6607ae61dc67d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 28 Jun 2018 16:17:39 +0100 Subject: [PATCH 155/515] Updated Alyx and removed some unessesary code from AlyxPanel delete method --- +eui/AlyxPanel.m | 5 ----- alyx-matlab | 2 +- signals | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 06ef5885..a881ff2a 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -208,11 +208,6 @@ function delete(obj) delete(obj.LoginTimer) % ... delete it... obj.LoginTimer = []; % ... and remove it end - if ~isempty(obj.WeightTimer) % If there is a timer object - stop(obj.WeightTimer) % Stop the timer... - delete(obj.WeightTimer) % ... delete it... - obj.WeightTimer = []; % ... and remove it - end end function login(obj) diff --git a/alyx-matlab b/alyx-matlab index 46a26d60..a154f729 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 46a26d603df85dcde04404ede31ea9f51110cc33 +Subproject commit a154f729dd15ab50a5450202bbeafb77c478f356 diff --git a/signals b/signals index e200ede5..6fbd1855 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit e200ede5817d0c72949de71e49329d6ff2ac4bd1 +Subproject commit 6fbd18551b63da12cf9b4fbeab5bccfaad70eba6 From 6a9764dfd77a7685a5640d56570259f2b76f8bf6 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 3 Aug 2018 16:08:20 +0100 Subject: [PATCH 156/515] experiment may now be halted by experiment definition --- +exp/SignalsExp.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 8b998414..5f9a4538 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -187,7 +187,8 @@ obj.Events.expStart.map(true).into(advanceTrial) %expStart signals advance obj.Events.endTrial.into(advanceTrial) %endTrial signals advance advanceTrial.map(true).keepWhen(hasNext).into(obj.Events.newTrial) %newTrial if more - lastTrialOver.onValue(@(~)quit(obj));]; + lastTrialOver.into(obj.Events.expStop) %newTrial if more + onValue(obj.Events.expStop, @(~)quit(obj));]; % obj.Events.trialNum.onValue(fun.partial(@fprintf, 'trial %i started\n'))]; % initialise the parameter signals globalPars.post(rmfield(globalStruct, 'defFunction')); @@ -402,7 +403,9 @@ function log(obj, field, value) end function quit(obj, immediately) - obj.Events.expStop.post(true); + if isempty(obj.Events.expStop.Node.CurrValue) + obj.Events.expStop.post(true); + end %stop delay timers. todo: need to use a less global tag tmrs = timerfind('Tag', 'sig.delay'); if ~isempty(tmrs) From bc25fa2f8985abd037dd280aba6fd80e25524d41 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 7 Aug 2018 17:19:19 +0100 Subject: [PATCH 157/515] Inputs and parameters now included in update list sent to mc --- +exp/SignalsExp.m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 5f9a4538..a173717f 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -577,7 +577,11 @@ function init(obj) fieldnames(obj.Events), struct2cell(obj.Events)); outlist = mapToCell(@(n,v)queuefun(['outputs.' n],v),... fieldnames(obj.Outputs), struct2cell(obj.Outputs)); - obj.Listeners = vertcat(obj.Listeners, evtlist(:), outlist(:)); + inlist = mapToCell(@(n,v)queuefun(['inputs.' n],v),... + fieldnames(obj.Inputs), struct2cell(obj.Inputs)); + parslist = queuefun('pars', obj.ParamsLog); + obj.Listeners = vertcat(obj.Listeners, ... + evtlist(:), outlist(:), inlist(:), parslist(:)); end function cleanup(obj) @@ -712,7 +716,12 @@ function mainLoop(obj) obj.Data.stimWindowRenderTimes(obj.StimWindowUpdateCount) = renderTime; obj.StimWindowInvalid = false; end + tic sendSignalUpdates(obj); + q = toc; + if q>0.005 + fprintf(1, 'send updates took %.1fms\n', 1000*toc); + end drawnow; % allow other callbacks to execute end ensureWindowReady(obj); % complete any outstanding refresh From 5b8f8995ab29413cd128a0139b4871075e0f0cfd Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 8 Aug 2018 17:33:54 +0100 Subject: [PATCH 158/515] Noise burst samples now replicated across all channels, based on the audioDevices struct in hardware.mat file --- cortexlab/+exp/configureChoiceExperiment.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortexlab/+exp/configureChoiceExperiment.m b/cortexlab/+exp/configureChoiceExperiment.m index 0f4dc57a..c37225f9 100644 --- a/cortexlab/+exp/configureChoiceExperiment.m +++ b/cortexlab/+exp/configureChoiceExperiment.m @@ -41,7 +41,7 @@ %% Generate noise burst for negative feedback % white noise, duplicated across two channels noiseSamples = repmat(... - randn(1, params.Struct.negFeedbackSoundDuration*audSampleRate), 2, 1); + randn(1, params.Struct.negFeedbackSoundDuration*audSampleRate), dev.NrOutputChannels, 1); params.set('negFeedbackSoundSamples', {noiseSamples},... sprintf('The samples for the negative feedback sound, sampled at %iHz', audSampleRate),... 'normalised'); From 6f9d2c8f12899df05ade478db1cc1e2554dc7864 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 9 Aug 2018 19:04:48 +0100 Subject: [PATCH 159/515] Only a single set of parameters are sent to mc per trial, rather than a cumulative structure. This should reduce the size of data to be serialized --- +exp/SignalsExp.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index a173717f..6ba8e377 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -14,7 +14,7 @@ %activated and an optional delay between the event and activation. %They should be objects of class EventHandler. EventHandlers = exp.EventHandler.empty - + %Timekeeper used by the experiment. Clocks return the current time. See %the Clock class definition for more information. Clock = hw.ptb.Clock @@ -579,7 +579,7 @@ function init(obj) fieldnames(obj.Outputs), struct2cell(obj.Outputs)); inlist = mapToCell(@(n,v)queuefun(['inputs.' n],v),... fieldnames(obj.Inputs), struct2cell(obj.Inputs)); - parslist = queuefun('pars', obj.ParamsLog); + parslist = queuefun('pars', obj.Params); obj.Listeners = vertcat(obj.Listeners, ... evtlist(:), outlist(:), inlist(:), parslist(:)); end From 36cae70b17bb452510125b0eb61b367dac268593 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 29 Aug 2018 14:08:28 +0100 Subject: [PATCH 160/515] Added wheelAnalysis submodule and moved behavioural ALF extraction to +alf/block2ALF.m in alyx-matlab. ALF names are now up to date --- +exp/SignalsExp.m | 76 ++---------------------------------------- +exp/inferParameters.m | 10 +++--- .gitmodules | 5 +++ addRigboxPaths.m | 5 +++ alyx-matlab | 2 +- wheelAnalysis | 1 + 6 files changed, 19 insertions(+), 80 deletions(-) create mode 160000 wheelAnalysis diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 6ba8e377..aa7fe87e 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -868,80 +868,8 @@ function saveData(obj) && ~strcmp(subject, 'default') && isfield(obj.Data, 'events') ... && ~strcmp(obj.Data.endStatus,'aborted') try - expPath = dat.expPath(obj.Data.expRef, 'main', 'master'); - % Write feedback - - feedback = getOr(obj.Data.events, 'feedbackValues', NaN); - feedback = double(feedback); - feedback(feedback == 0) = -1; - if ~isnan(feedback) - writeNPY(feedback(:), fullfile(expPath, 'cwFeedback.type.npy')); - alf.writeEventseries(expPath, 'cwFeedback',... - obj.Data.events.feedbackTimes, [], []); - writeNPY([obj.Data.outputs.rewardValues]', fullfile(expPath, 'cwFeedback.rewardVolume.npy')); - else - warning('No ''feedback'' events recorded, cannot register to Alyx') - end - - % Write go cue - interactiveOn = getOr(obj.Data.events, 'interactiveOnTimes', NaN); - if ~isnan(interactiveOn) - alf.writeEventseries(expPath, 'cwGoCue', interactiveOn, [], []); - else - warning('No ''interactiveOn'' events recorded, cannot register to Alyx') - end - - % Write response - response = getOr(obj.Data.events, 'responseValues', NaN); - if min(response) == -1 - response(response == 0) = 3; - response(response == 1) = 2; - response(response == -1) = 1; - end - if ~isnan(response) - writeNPY(response(:), fullfile(expPath, 'cwResponse.choice.npy')); - alf.writeEventseries(expPath, 'cwResponse',... - obj.Data.events.responseTimes, [], []); - else - warning('No ''feedback'' events recorded, cannot register to Alyx') - end - - % Write stim on times - stimOnTimes = getOr(obj.Data.events, 'stimulusOnTimes', NaN); - if ~isnan(stimOnTimes) - alf.writeEventseries(expPath, 'cwStimOn', stimOnTimes, [], []); - else - warning('No ''stimulusOn'' events recorded, cannot register to Alyx') - end - contL = getOr(obj.Data.events, 'contrastLeftValues', NaN); - contR = getOr(obj.Data.events, 'contrastRightValues', NaN); - if ~any(isnan(contL))&&~any(isnan(contR)) - writeNPY(contL(:), fullfile(expPath, 'cwStimOn.contrastLeft.npy')); - writeNPY(contR(:), fullfile(expPath, 'cwStimOn.contrastRight.npy')); - else - warning('No ''contrastLeft'' and/or ''contrastRight'' events recorded, cannot register to Alyx') - end - - % Write trial intervals - alf.writeInterval(expPath, 'cwTrials',... - obj.Data.events.newTrialTimes(:), obj.Data.events.endTrialTimes(:), [], []); - repNum = obj.Data.events.repeatNumValues(:); - writeNPY(repNum == 1, fullfile(expPath, 'cwTrials.inclTrials.npy')); - writeNPY(repNum, fullfile(expPath, 'cwTrials.repNum.npy')); - - % Write wheel times, position and velocity - wheelValues = obj.Data.inputs.wheelValues(:); - wheelValues = wheelValues*(3.1*2*pi/(4*1024)); - wheelTimes = obj.Data.inputs.wheelTimes(:); - alf.writeTimeseries(expPath, 'Wheel', wheelTimes, [], []); - writeNPY(wheelValues, fullfile(expPath, 'Wheel.position.npy')); - writeNPY(wheelValues./wheelTimes, fullfile(expPath, 'Wheel.velocity.npy')); - - % Register them to Alyx - files = dir(expPath); - isNPY = cellfun(@(f)endsWith(f, '.npy'), {files.name}); - files = files(isNPY); - obj.AlyxInstance.registerFile(fullfile({files.folder}, {files.name})); + fullpath = alf.block2ALF(obj.Data); + obj.AlyxInstance.registerFile(fullpath); catch ex warning(ex.identifier, 'Failed to register alf files: %s.', ex.message); end diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 9bb61a08..9e4c7beb 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -34,12 +34,12 @@ try - rig = 0; - if funArgs == 7 +% rig = 0; +% if funArgs == 7 expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio); - else - expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio, rig); - end +% else +% expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio, rig); +% end % expdeffun(e.t, e.events, e.pars, e.visual, e.inputs , e.outputs, e.audio); % paramNames will be the strings corresponding to the fields of e.pars diff --git a/.gitmodules b/.gitmodules index c7ef4a47..b6d3b966 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,8 @@ [submodule "npy-matlab"] path = npy-matlab url = https://github.com/kwikteam/npy-matlab +[submodule "wheelAnalysis"] + + path = wheelAnalysis + + url = https://github.com/cortex-lab/wheelAnalysis.git diff --git a/addRigboxPaths.m b/addRigboxPaths.m index d9f255e8..cd5d85ee 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -86,6 +86,11 @@ function addRigboxPaths(savePaths) % work with other software developed by CortexLab, including MPEP addpath(fullfile(root, 'cortexlab')); +% Add wheelAnalysis paths. This is a package for computing wheel velocity, +% classifying movements, etc. +addpath(fullfile(root, 'wheelAnalysis'), ... + fullfile(root, 'wheelAnalysis', 'helpers')); + % Add signals paths, this includes all the core code for running signals % experiments. This submodule is maintained by Chris Burgess. addpath(fullfile(root, 'signals'),... diff --git a/alyx-matlab b/alyx-matlab index a154f729..26a75528 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit a154f729dd15ab50a5450202bbeafb77c478f356 +Subproject commit 26a75528187c82de2faf4ee1a78596fd6bc2c231 diff --git a/wheelAnalysis b/wheelAnalysis new file mode 160000 index 00000000..16979786 --- /dev/null +++ b/wheelAnalysis @@ -0,0 +1 @@ +Subproject commit 169797868da3fe93e1581cb4d581cdc4f4d9cd34 From a54b7a2c4fe3afd9c4b8c02f350132180b467b17 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 30 Aug 2018 17:12:32 +0100 Subject: [PATCH 161/515] Bug fix for Alyx Panel logging with multiple instances of mc. Also SqueakExpPanel no longer displays pars or inputs --- +dat/paths.m | 3 ++- +eui/AlyxPanel.m | 2 +- +eui/ParamEditor.m | 12 +++++++----- +eui/SqueakExpPanel.m | 1 + 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 63c5769f..289d84d5 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -25,7 +25,8 @@ % Repository for local copy of everything generated on this rig p.localRepository = 'C:\LocalExpData'; p.localAlyxQueue = 'C:\localAlyxQueue'; -p.databaseURL = 'https://alyx.cortexlab.net'; +%p.databaseURL = 'https://alyx.cortexlab.net'; +p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; % Under the new system of having data grouped by mouse % rather than data type, all experimental data are saved here. diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index a881ff2a..80b72ce3 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -660,7 +660,7 @@ function log(obj, varargin) if ~isempty(obj.LoggingDisplay) timestamp = datestr(now, 'dd-mm-yyyy HH:MM:SS'); str = sprintf('[%s] %s', timestamp, message); - current = get(obj.LoggingDisplay, 'String'); + current = cellflat(get(obj.LoggingDisplay, 'String')); %NB: If more that one instance of MATLAB is open, we use %the last opened LoggingDisplay set(obj.LoggingDisplay(end), 'String', [current; str], 'Value', numel(current) + 1); diff --git a/+eui/ParamEditor.m b/+eui/ParamEditor.m index f1826858..75aca882 100644 --- a/+eui/ParamEditor.m +++ b/+eui/ParamEditor.m @@ -489,11 +489,13 @@ function makeTrialSpecific(obj, paramName, ctrls) description = obj.Parameters.description(name); if islogical(value) % If parameter is logical, make checkbox - ctrl = uicontrol('Parent', parent,... - 'Style', 'checkbox',... - 'TooltipString', description,... - 'Value', value,... % Added 2017-02-15 MW set checkbox to what ever the parameter value is - 'Callback', @(src, e) obj.updateGlobal(name, src)); + for i = 1:length(value) + ctrl(end+1) = uicontrol('Parent', parent,... + 'Style', 'checkbox',... + 'TooltipString', description,... + 'Value', value(i),... % Added 2017-02-15 MW set checkbox to what ever the parameter value is + 'Callback', @(src, e) obj.updateGlobal(name, src)); + end elseif ischar(value) ctrl = uicontrol('Parent', parent,... 'BackgroundColor', [1 1 1],... diff --git a/+eui/SqueakExpPanel.m b/+eui/SqueakExpPanel.m index 39320746..29487985 100644 --- a/+eui/SqueakExpPanel.m +++ b/+eui/SqueakExpPanel.m @@ -83,6 +83,7 @@ function processUpdates(obj) for ui = 1:length(updates) signame = updates(ui).name; switch signame + case {'inputs.wheel', 'pars'} otherwise if ~isKey(obj.LabelsMap, signame) obj.LabelsMap(signame) = obj.addInfoField(signame, ''); From 7c49c0373e4b1e4ec057999bf9097ec6588cfc6e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 30 Aug 2018 18:01:34 +0100 Subject: [PATCH 162/515] Updated alyx-matlab: set method for base url --- +dat/paths.m | 4 ++-- alyx-matlab | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 289d84d5..c126e5a8 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -25,8 +25,8 @@ % Repository for local copy of everything generated on this rig p.localRepository = 'C:\LocalExpData'; p.localAlyxQueue = 'C:\localAlyxQueue'; -%p.databaseURL = 'https://alyx.cortexlab.net'; -p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; +p.databaseURL = 'https://alyx.cortexlab.net'; +% p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; % Under the new system of having data grouped by mouse % rather than data type, all experimental data are saved here. diff --git a/alyx-matlab b/alyx-matlab index 26a75528..521a8b57 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 26a75528187c82de2faf4ee1a78596fd6bc2c231 +Subproject commit 521a8b57a9a872eb9c27e91a636bf94fb142b230 From b75322cfca06069a9ccdf8240049a53a2964b649 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 20 Sep 2018 10:38:11 +0100 Subject: [PATCH 163/515] Update to block2ALF: fix'd stimOn and feedback times --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 521a8b57..fa739add 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 521a8b57a9a872eb9c27e91a636bf94fb142b230 +Subproject commit fa739add45c654df4f9cc28d55c7825a97c8297d From 524a997f584ee24af5523488047624bde7008012 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 26 Sep 2018 10:57:06 +0100 Subject: [PATCH 164/515] Moved Alyx instantiation to constructor to avoid unexpected behaviour --- +eui/AlyxPanel.m | 3 ++- alyx-matlab | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 80b72ce3..c107b6f2 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -32,7 +32,7 @@ % 2017-03 NS created % 2017-10 MW made into class properties (SetAccess = private) - AlyxInstance = Alyx('',''); % An Alyx object to interfacing with the database + AlyxInstance % An Alyx object to interfacing with the database SubjectList % List of active subjects from database Subject = 'default' % The name of the currently selected subject end @@ -69,6 +69,7 @@ % % See also Alyx + obj.AlyxInstance = Alyx('',''); if ~nargin % No parant object: create new figure f = figure('Name', 'alyx GUI',... 'MenuBar', 'none',... diff --git a/alyx-matlab b/alyx-matlab index fa739add..480155b7 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit fa739add45c654df4f9cc28d55c7825a97c8297d +Subproject commit 480155b70bb8a4762400887f8ef6f05f84986099 From a44ecd9ba710df1f3d0a30d21a7094b61652e73c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 27 Sep 2018 12:26:05 +0100 Subject: [PATCH 165/515] Added psychofit toolbox to psy package --- +psy/erf_psycho.m | 15 +++++++ +psy/erf_psycho_2gammas.m | 29 ++++++++++++++ +psy/mle_fit_psycho.m | 84 +++++++++++++++++++++++++++++++++++++++ +psy/neg_likelihood.m | 52 ++++++++++++++++++++++++ +psy/weibull.m | 34 ++++++++++++++++ +psy/weibull50.m | 40 +++++++++++++++++++ 6 files changed, 254 insertions(+) create mode 100644 +psy/erf_psycho.m create mode 100644 +psy/erf_psycho_2gammas.m create mode 100644 +psy/mle_fit_psycho.m create mode 100644 +psy/neg_likelihood.m create mode 100644 +psy/weibull.m create mode 100644 +psy/weibull50.m diff --git a/+psy/erf_psycho.m b/+psy/erf_psycho.m new file mode 100644 index 00000000..315fcc37 --- /dev/null +++ b/+psy/erf_psycho.m @@ -0,0 +1,15 @@ +function f = erf_psycho(pars,xx) +%ERF_PSYCHO erf function from 0 to 1, with lapse rate +% +% f = erf_psycho([threshold slope gamma],xx) +% +% computes: +% f = gamma + (1-2*gamma)* (erf( (xx-threshold)/slope ) + 1)/2 +% +% MC 2000 + +threshold = pars(1); +slope = pars(2); +gamma = pars(3); + +f = gamma + (1-2*gamma)* (erf( (xx-threshold)/slope ) + 1)/2; diff --git a/+psy/erf_psycho_2gammas.m b/+psy/erf_psycho_2gammas.m new file mode 100644 index 00000000..53ab7796 --- /dev/null +++ b/+psy/erf_psycho_2gammas.m @@ -0,0 +1,29 @@ +function f = erf_psycho_2gammas(pars,xx) +%ERF_PSYCHO_2GAMMAS erf function from 0 to 1, wiht two lapse rates +% +% f = erf_psycho_2gammas([threshold slope gamma1 gamma2],xx) +% +% Example: +% xx = -50:50; +% ff = erf_psycho_2gammas([-10 10 0.2 0.0],xx); +% figure; plot(xx, ff); set(gca,'ylim',[0 1]); +% +% MC 2000 +% 2013-06 MC and MD + +threshold = pars(1); +slope = pars(2); +gamma1 = pars(3); +gamma2 = pars(4); + + +f = nan(size(xx)); + +% ii = (xx1. +% +% If the data go from 50% to 100%, you better use an appropriate P_model... +% For example: weibull50 +% +% [pars L ] = ... returns the likelihood +% +% EXAMPLE (with data from 0 to 1) +% cc = [-8 -6 -4 -2 0 2 4 6 8 ]; % contrasts +% nn = [10 10 10 10 10 10 10 10 10 ]; % number of trials at each contrast +% pp = [ 5 8 20 41 54 59 79 92 96 ]/100; % proportion "rightward" +% +% pars = mle_fit_psycho([cc;nn;pp], 'erf_psycho'); +% +% figure; clf +% plot(cc, pp, 'bo', 'markerfacec','b'); hold on +% plot(-8:0.1:8, erf_psycho(pars,-8:0.1:8), 'b'); + +% 1999-11 FH wrote it +% 2000-01 MC cleaned it up +% 2000-04 MC took care of the 50% case +% 2009-12 MC replaced fmins with fminsearch +% 2010-02 MC, AZ added nfits +% 2013-02 MC+MD fixed bug with dealing with NaNs + +if nargin < 6 + nfits = 5; +end + +if size(data,1)~=3 + error('Error in mle_fit_psycho: Size of ''data'' must be [3,x]!'); +end + +% find the good values in pp (conditions that were effectively run) +ii = isfinite(data(3,:)); + +if nargin < 2 + P_model = 'weibull'; +end + +if nargin < 3 + xx = data(1,ii); + parstart = [ mean(xx), 3, 0.05 ]; + parmin = [min(xx) 0 0]; + parmax = [max(xx) 10 0.40]; +end + +likelihoods = zeros(nfits,1); +pars = cell(nfits,1); + +for ifit = 1:nfits + + pars{ifit} = fminsearch(... + @(pars) psy.neg_likelihood(pars, data(:,ii), P_model, parmin, parmax),... + parstart , optimset('Display','off') ); %AZ2010-03-31: suppress msgs + + parstart = parmin + rand(size(parmin)).* (parmax-parmin); + + likelihoods(ifit) = - psy.neg_likelihood(pars{ifit}, data(:,ii), P_model, parmin, parmax); + +end + +% the values to be output +[L,iBestFit] = max(likelihoods); +pars = pars{iBestFit}; + + diff --git a/+psy/neg_likelihood.m b/+psy/neg_likelihood.m new file mode 100644 index 00000000..d59f588a --- /dev/null +++ b/+psy/neg_likelihood.m @@ -0,0 +1,52 @@ +function l = neg_likelihood(pars, data, P_model, parmin, parmax) +% NEG_LIKELIHOOD Negative likelihood of a psychometric function +% +% L = neg_likelihood(pars, [xx,nn,pp], P_model) is +% - sum(nn.*(pp.*log10(P_model)+(1-pp).*log10(1-P_model))) +% +% P_model defaults to 'weibull' +% +% L = neg_likelihood(pars, [xx,nn,pp], P_model, parmin, parmax) lets you +% choose the boundaries for the parameters. +% +% parameters are pars = [threshold, slope, gamma] +% +% 1999-11 FH wrote it +% 2000-01 MC cleaned it up +% 2000-07 MC made it indep of Weibull and added parmin and parmax + +if nargin<3 + P_model= 'weibull'; +end + +if nargin<4 + parmin = [0.005 0 0]; +end + +if nargin<5 + parmax = [0.5 10 0.25]; +end + +xx = data(1,:); +nn = data(2,:); +pp = data(3,:); + +% here is where you effectively put the constraints. +if any(parsparmax) + l = 10000000; + return +end + +probs = eval(['psy.', P_model,'(pars,xx)']); + +if max(probs)>1 || min(probs)<0 + error('At least one of the probabilities is not between 0 and 1'); +end + +probs(probs==0)=eps; +probs(probs==1)=1-eps; + +l = - sum(nn.*(pp.*log(probs)+(1-pp).*log(1-probs))); +% this equation comes from the appendix of Watson, A.B. (1979). Probability +% summation over time. Vision Res 19, 515-522. + diff --git a/+psy/weibull.m b/+psy/weibull.m new file mode 100644 index 00000000..1200c047 --- /dev/null +++ b/+psy/weibull.m @@ -0,0 +1,34 @@ +function f = weibull(pars,xx) +%WEIBULL Weibull function from 0 to 1, with lapse rate +% +% f = weibull([alpha,beta,gamma],xx) is +% (1 - gamma) - (1 - 2*gamma) * exp(-(xx/alpha)^beta) +% +% This function goes from -(1-gamma) to (1-gamma). If you need a function +% that goes from 0.5 to (1-gamma), use weibull50 +% +% 1999-11 FH wrote it +% 2000-01 MC cleaned it up + +xx = xx(:)'; + +if nargin~=2 + error('Error in function Weibull: Wrong number of input arguments'); +end +if size(xx,1)~=1 + error('Error in function Weibull: variable xx must be a vector'); +end +if size(pars)~=[1,3] + error('Error in function Weibull: Wrong number of input arguments in pars!') +end + +alpha = pars(1); +beta = pars(2); +gamma = pars(3); + +if length(alpha)~=1 || length(beta)~=1 || length(gamma)~=1 + error('Variables ''alpha'',''beta'' and ''gamma'' must be scalar!'); +end + +f = (1 - gamma) - (1 - 2*gamma) * exp( -((xx./alpha).^beta)); + diff --git a/+psy/weibull50.m b/+psy/weibull50.m new file mode 100644 index 00000000..56dfe66d --- /dev/null +++ b/+psy/weibull50.m @@ -0,0 +1,40 @@ +function f = weibull50(pars,xx) +%WEIBULL50 Weibull function from 0.5 to 1, with lapse rate +% +% f = weibull50([alpha,beta,gamma],xx) is +% (1 - gamma) - (1/2 - gamma) * exp(-(xx/alpha)^beta) +% +% alpha is the threshold +% beta is the slope +% gamma is the % of errors users make anyhow +% +% See also: Weibull +% +% 2000-04 MC + +xx = xx(:)'; + +if nargin~=2 + error('Error in function Weibull: Wrong number of input arguments'); +end +if size(xx,1)~=1 + error('Error in function Weibull: variable xx must be a vector'); +end +if size(pars)~=[1,3] + error('Error in function Weibull: Wrong number of input arguments in pars!') +end + +alpha = pars(1); +beta = pars(2); +gamma = pars(3); + +if alpha<0 + error('alpha must be positive'); +end + +if length(alpha)~=1 || length(beta)~=1 || length(gamma)~=1 + error('Variables ''alpha'',''beta'' and ''gamma'' must be scalar!'); +end + +f = (1 - gamma) - (0.5 - gamma) * exp( -((xx./alpha).^beta)); + From edc0549afbd0802e8a27bbbd5c87552025a29f4f Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 2 Oct 2018 19:25:04 +0100 Subject: [PATCH 166/515] Fix'd typo in readme --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index b6632e3c..2e7e3036 100644 --- a/readme.md +++ b/readme.md @@ -34,7 +34,7 @@ cd Rigbox/ git checkout rigbox-lite ``` 3. Run the following to clone the submodules: -```git submodules update --init``` +```git submodule update --init``` 3. In MATLAB run 'addRigboxPaths.m' and restart the program. 4. Set the correct paths by following the instructions in Rigbox\+dat\paths.m on both computers. 5. On the stimulus server, load the hardware.mat file in Rigbox\Repositories\code\config\exampleRig and edit according to your specific hardware setup (link to detailed instructions above, under 'Getting started'). @@ -42,7 +42,7 @@ git checkout rigbox-lite To keep up to date, run the following: ``` git pull -git submodules update --remote +git submodule update --remote ``` ## Running an experiment From 4595b5d85cffd14390231c5cfc20f4f57b4d8f78 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 3 Oct 2018 17:43:26 +0100 Subject: [PATCH 167/515] Colourmap fix for discrimiation visualization --- cortexlab/+psy/plot2AUFC.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortexlab/+psy/plot2AUFC.m b/cortexlab/+psy/plot2AUFC.m index be2e4724..820e51fb 100644 --- a/cortexlab/+psy/plot2AUFC.m +++ b/cortexlab/+psy/plot2AUFC.m @@ -53,7 +53,7 @@ function plot2AUFC(ax, block) psychoMCmap = reshape(permute(psychoM, [2 1 3]), numRespTypes*nCR, nCL)'; psychoMCmap(isnan(psychoMCmap))=-1; imagesc(ax, psychoMCmap) - colormap(colormap_pinkgreyscale) + colormap(psy.colormap_pinkgreyscale) set(ax, 'XTick', 1:nCR*numRespTypes, 'XTickLabel', cValsRight(repmat(1:nCR, [1 numRespTypes]))); set(ax, 'YTick', 1:nCL, 'YTickLabel', cValsLeft(1:nCL)); From 7b30f3d06523ef509cfaf60ce597f871d0861ebe Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 12 Oct 2018 17:03:34 +0100 Subject: [PATCH 168/515] Param profiles sorted ignoring case --- +dat/loadParamProfiles.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/+dat/loadParamProfiles.m b/+dat/loadParamProfiles.m index 2c82c14a..b63a70cb 100644 --- a/+dat/loadParamProfiles.m +++ b/+dat/loadParamProfiles.m @@ -18,7 +18,8 @@ loaded = load(masterPath, expType); %load profiles for specific experiment type warning(origState); if isfield(loaded, expType) - p = orderfields(loaded.(expType)); %extract those profiles to return + [~, I] = sort(lower(fieldnames(loaded.(expType)))); + p = orderfields(loaded.(expType), I); %extract those profiles to return end end From 276cd8e989a502dd59c419773083cec01a498eed Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 12 Oct 2018 17:07:07 +0100 Subject: [PATCH 169/515] Signals updates set once every 100ms --- +exp/SignalsExp.m | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index aa7fe87e..e83adb98 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -653,6 +653,7 @@ function mainLoop(obj) %set looping flag obj.IsLooping = true; + t = obj.Clock.now; % begin the loop while obj.IsLooping %% create a list of handlers that have become due @@ -716,12 +717,15 @@ function mainLoop(obj) obj.Data.stimWindowRenderTimes(obj.StimWindowUpdateCount) = renderTime; obj.StimWindowInvalid = false; end - tic - sendSignalUpdates(obj); - q = toc; - if q>0.005 - fprintf(1, 'send updates took %.1fms\n', 1000*toc); + if (obj.Clock.now - t) > 0.1 + sendSignalUpdates(obj); + t = obj.Clock.now; end + +% q = toc; +% if q>0.005 +% fprintf(1, 'send updates took %.1fms\n', 1000*toc); +% end drawnow; % allow other callbacks to execute end ensureWindowReady(obj); % complete any outstanding refresh From ddfedd06ba61d8da19f2aeba1a3aae533e3b2b5a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 17 Oct 2018 16:19:32 +0100 Subject: [PATCH 170/515] Water remaining rounded up, given rounded down in AlyxPanel --- +eui/AlyxPanel.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index c107b6f2..dd2d2d62 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -367,12 +367,14 @@ function dispWaterReq(obj, src, ~) colour = 'black'; % Mouse above 80% or no weight measured today weight_pct = '> 80%'; end + % Round up water remaining to the near 0.01 + remainder = ceil(s(idx).water_requirement_remaining*100)/100; % Set text set(obj.WaterRequiredText, 'ForegroundColor', colour, 'String', ... sprintf('Subject %s requires %.2f of %.2f today\n\t Weight today: %.2f (%s) Water today: %.2f', ... - obj.Subject, s(idx).water_requirement_remaining, s(idx).water_requirement_total, weight, weight_pct, sum([water gel]))); + obj.Subject, remainder, s(idx).water_requirement_total, weight, weight_pct, floor(sum([water gel])*100)/100)); % Set WaterRemaining attribute for changeWaterText callback - obj.WaterRemaining = s(idx).water_requirement_remaining; + obj.WaterRemaining = remainder; end catch me d = me.message; %FIXME: JSON no longer returned From b89c25359ebf016b0204c960fb883589301c2e8e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 17 Oct 2018 18:31:53 +0100 Subject: [PATCH 171/515] Applied rounding everywhere in AlyxPanel --- +eui/AlyxPanel.m | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index dd2d2d62..77a2e6cc 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -368,11 +368,13 @@ function dispWaterReq(obj, src, ~) weight_pct = '> 80%'; end % Round up water remaining to the near 0.01 - remainder = ceil(s(idx).water_requirement_remaining*100)/100; + remainder = obj.round(s(idx).water_requirement_remaining, 'up'); % Set text set(obj.WaterRequiredText, 'ForegroundColor', colour, 'String', ... - sprintf('Subject %s requires %.2f of %.2f today\n\t Weight today: %.2f (%s) Water today: %.2f', ... - obj.Subject, remainder, s(idx).water_requirement_total, weight, weight_pct, floor(sum([water gel])*100)/100)); + sprintf(['Subject %s requires %.2f of %.2f today\n\t '... + 'Weight today: %.2f (%s) Water today: %.2f'], obj.Subject, ... + remainder, obj.round(s(idx).water_requirement_total, 'up'), weight, ... + weight_pct, obj.round(sum([water gel]), 'down'))); % Set WaterRemaining attribute for changeWaterText callback obj.WaterRemaining = remainder; end @@ -564,11 +566,11 @@ function viewSubjectHistory(obj, ax) ylabel(ax, 'weight as pct (%)'); axWater = axes('Parent',plotBox); - plot(axWater, dates, [records.water_given]+[records.hydrogel_given], '.-'); + plot(axWater, dates, obj.round([records.water_given]+[records.hydrogel_given], 'up'), '.-'); hold(axWater, 'on'); - plot(axWater, dates, [records.hydrogel_given], '.-'); - plot(axWater, dates, [records.water_given], '.-'); - plot(axWater, dates, [records.water_expected], 'r', 'LineWidth', 2.0); + plot(axWater, dates, obj.round([records.hydrogel_given], 'down'), '.-'); + plot(axWater, dates, obj.round([records.water_given], 'down'), '.-'); + plot(axWater, dates, obj.round([records.water_expected], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); xlim(axWater, [min(dates) max(dates)]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) @@ -622,11 +624,11 @@ function viewAllSubjects(obj) colorgen = @(colorNum,text) ['',text,'']; wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3],... - sprintf('%.2f',x)), {wr.water_requirement_remaining}, 'uni', false); + sprintf('%.2f',obj.round(x, 'up'))), {wr.water_requirement_remaining}, 'uni', false); set(wrTable, 'ColumnName', {'Name', 'Water Required', 'Remaining Requirement'}, ... 'Data', horzcat({wr.nickname}', ... - cellfun(@(x)sprintf('%.2f',x),{wr.water_requirement_total}', 'uni', false), ... + cellfun(@(x)sprintf('%.2f',obj.round(x, 'up')),{wr.water_requirement_total}', 'uni', false), ... wrdat'), ... 'ColumnEditable', false(1,3)); end @@ -673,4 +675,18 @@ function log(obj, varargin) end end + methods (Static) + function A = round(a, direction, sigFigures) + if nargin < 3; sigFigures = 2; end + c = 1*10^sigFigures; + switch direction + case 'up' + A = ceil(a*c)/c; + case 'down' + A = ceil(a*c)/c; + otherwise + A = round(a*c)/c; + end + end + end end \ No newline at end of file From 0b6c2856e2d284498098871d417443731498de3a Mon Sep 17 00:00:00 2001 From: jaib1 Date: Wed, 17 Oct 2018 19:38:22 +0100 Subject: [PATCH 172/515] extra commenting --- alyx-matlab | 2 +- signals | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alyx-matlab b/alyx-matlab index 480155b7..3e88d1e9 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 480155b70bb8a4762400887f8ef6f05f84986099 +Subproject commit 3e88d1e9c61a9b04eb99c49f269a64db843cb017 diff --git a/signals b/signals index 6fbd1855..c44fab9c 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 6fbd18551b63da12cf9b4fbeab5bccfaad70eba6 +Subproject commit c44fab9c057a4828d64a6514d04ce9a3fb0d2f47 From 0323e0317e419946bf086f6497fdd8771482abb9 Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Thu, 18 Oct 2018 17:53:25 +0100 Subject: [PATCH 173/515] Updated installation instructions + packages information; fixed typos to-do: add more information on submodules? --- readme.md | 150 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 91 insertions(+), 59 deletions(-) diff --git a/readme.md b/readme.md index 2e7e3036..fa163b12 100644 --- a/readme.md +++ b/readme.md @@ -1,51 +1,69 @@ ---------- # Rigbox -Rigbox is a (mostly) object-oriented MATLAB software package for designing and controlling behavioural experiments. Principally, the steering wheel setup we developed to probe mouse behaviour. It requires two computers, one for stimulus presentation ('the stimulus server') and another for controlling and monitoring the experiment ('mc'). +Rigbox is a (mostly) object-oriented MATLAB software package for designing and controlling behavioural experiments (principally, the [steering wheel setup](https://www.ucl.ac.uk/cortexlab/tools/wheel) which [we](https://www.ucl.ac.uk/cortexlab) developed to probe mouse behaviour. Rigbox requires two machines, one for stimulus presentation ('the stimulus server') and another for controlling and monitoring the experiment ('mc'). ## Getting Started -The following is a brief description of how to install Rigbox on your experimental rig. However detailed, step-by-step information can be found [here](https://www.ucl.ac.uk/cortexlab/tools/wheel). +The following is a brief description of how to install Rigbox on your experimental rig. Additional detailed, step-by-step information can be found [here](https://www.ucl.ac.uk/cortexlab/tools/wheel). ## Prerequisites -Rigbox has a number of essential and optional software dependencies, listed below: -* Windows 7 or later -* [MATLAB](https://uk.mathworks.com/downloads/web_downloads/?s_iid=hp_ff_t_downloads) 2016a or later - * [Psychophsics Toolbox](https://github.com/Psychtoolbox-3/Psychtoolbox-3/releases) v3 or later - * [NI-DAQmx support package](https://uk.mathworks.com/hardware-support/nidaqmx.html) - * [GUI Layout Toolbox](https://uk.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox) v2 or later - * Data Acquisition Toolbox - * Signal Processing Toolbox - * Instrument Control Toolbox + +Rigbox has the following software dependencies: +* Windows Operating System (7 or later) +* MATLAB (2016a or later) +* The following MathWorks MATLAB toolboxes: + * Data Acquisition Toolbox + * Signal Processing Toolbox + * Instrument Control Toolbox + * Statistics and Machine Learning Toolbox +* The following community MATLAB toolboxes: + * [GUI Layout Toolbox](https://uk.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox) (v2 or later) + * [Psychophsics Toolbox](http://psychtoolbox.org/download.html) (v3 or later) + * [NI-DAQmx support package](https://uk.mathworks.com/hardware-support/nidaqmx.html) + +(* *Note*: You can download all required MathWorks MATLAB toolboxes directly within MATLAB via the "Add-Ons" button in the top Toolstrip with the "Home" tab selected.) +![MATLAB Home Toolstrip](http://i67.tinypic.com/k0zue.png) +​ +Afterwards, you can use the MATLAB "ver" command to bring up the list of installed MathWorks toolboxes. Additionally, Rigbox works with a number of extra submodules (included): -* [Signals](https://github.com/dendritic/signals) (for running bespoke experiment designs) - * Statistics and Machine Learning Toolbox - * [Microsoft Visual C++ Redistributable for Visual Studio 2015](https://www.microsoft.com/en-us/download/details.aspx?id=48145) -* [Alyx-matlab](https://github.com/cortex-lab/alyx-matlab) (for registering data to, and retrieving from, an Alyx database -* [NPY-matlab](https://github.com/kwikteam/npy-matlab) (for saving data in binary NPY format) - -## Installing -1. To install Rigbox, clone the repository in git. It is *not* recommended to clone directly into the MATLAB folder -```git clone https://github.com/cortex-lab/Rigbox.git``` -2. Pull the latest Rigbox-lite branch. This branch is currently the 'cleanest' one, however in the future it will likely be merged with the master branch. +* [signals](https://github.com/cortex-lab/signals) (for running bespoke experiment designs) +* [alyx-matlab](https://github.com/cortex-lab/alyx-matlab) (for registering data to, and retrieving from, an Alyx database) +* [npy-matlab](https://github.com/kwikteam/npy-matlab) (for saving data in binary NPY format) +* [wheelAnalysis](https://github.com/cortex-lab/wheelAnalysis) (for analyzing data from the steering wheel task) + +## Installation via git + +0. It is highly recommended to install Rigbox via git. If not already downloaded and installed, install [git](https://git-scm.com/download/win) (and the included minGW software environment and Git Bash MinTTY terminal emulator). After installing, launch the Git Bash terminal. +1. To install Rigbox, use the following commands in the Git Bash terminal to clone the repository from github to your local machine. (* *Note*: It is *not* recommended to clone directly into the MATLAB folder) +``` +cd ~ +git clone https://github.com/cortex-lab/Rigbox.git +``` +2. Pull the latest Rigbox-lite branch. This branch is currently the cleanest one, though in the future it will likely be merged with the master branch. ``` cd Rigbox/ git checkout rigbox-lite ``` -3. Run the following to clone the submodules: -```git submodule update --init``` -3. In MATLAB run 'addRigboxPaths.m' and restart the program. -4. Set the correct paths by following the instructions in Rigbox\+dat\paths.m on both computers. -5. On the stimulus server, load the hardware.mat file in Rigbox\Repositories\code\config\exampleRig and edit according to your specific hardware setup (link to detailed instructions above, under 'Getting started'). +3. Clone the submodules: +``` +git submodule update --init +``` +4. Open MATLAB, make sure Rigbox and all subdirectories are in your path, run: +> addRigboxPaths + +and restart MATLAB. + +5. Set the correct paths by following the instructions in the 'Rigbox\+dat\paths.m' file on both machines. +6. On the stimulus server, load 'Rigbox\Repositories\code\config\exampleRig\hardware.mat' and edit according to your specific hardware setup (link to detailed instructions above, under 'Getting started'). -To keep up to date, run the following: +To keep the submodules up to date, run the following in the Git Bash terminal (within the Rigbox directory): ``` git pull git submodule update --remote ``` - -## Running an experiment +## Running an experiment in MATLAB On the stimulus server, run: > srv.expServer @@ -53,58 +71,72 @@ On the stimulus server, run: On the mc computer, run: > mc -This opens a GUI that will allow you to choose a subject, edit some of the experimental parameters and press 'Start' to begin the basic steering wheel task on the stimulus server. +This opens a GUI that will allow you to choose a subject, edit some of the experimental parameters and press 'Start' to begin the basic steering wheel task on the stimulus server. + +## Code organization -# Code organization Below is a list of the principle directories and their general purpose. -## +dat -The data package contains all the code pertaining to the organization and logging of data. It contains functions that generate and parse unique experiment reference ids, that return the file paths where subject data and rig configuration information is stored. Other functions include those that manage experimental log entries and parameter profiles. This package is akin to a lab notebook. -## +eui -This package contains the code pertaining to the Rigbox user interface. It contains code for constructing the mc GUI (MControl.m), and for plotting live experiment data or generating tables for viewing experiment parameters and subject logs. This package is exclusively used by the mc computer. +### +dat + +The "data" package contains code pertaining to the organization and logging of data. It contains functions that generate and parse unique experiment reference ids, and return file paths where subject data and rig configuration information is stored. Other functions include those that manage experimental log entries and parameter profiles. A nice metaphor for this package is a lab notebook. -## +exp -The experiment package is for the initialization and running of behavioural experiments. These files define a framework for event- and state-based experiments. Actions such as visual stimulus presentation or reward delivery can be controlled by experiment phases, and experiment phases are managed by an event-handling system (e.g. ResponseEventInfo). +### +eui -The package also triggers auxiliary services (e.g. starting remote acquisition software), and loads parameters for presentation each trail. The principle two base classes that control these experiments are Experiment and its Signals counterpart, SignalsExp. +The "user interface" package contains code pertaining to the Rigbox user interface. It contains code for constructing the mc GUI (MControl.m), and for plotting live experiment data or generating tables for viewing experiment parameters and subject logs. -This package is almost exclusively used by the stimulus server +This package is exclusively used by the mc computer. -## +hw -The hardware package is for configuring, and interfacing with, hardware such as screens, DAQ devices, weighing scales and lick detectors. Withing this is the +ptb package which contains classes for interacting with PsychToolbox. +### +exp -The devices file loads and initializes all the hardware for a specific experimental rig. There are also classes for unifying system and hardware clocks. +The "experiments" package is for the initialization and running of behavioural experiments. It contains code that define a framework for event- and state-based experiments. Actions such as visual stimulus presentation or reward delivery can be controlled by experiment phases, and experiment phases are managed by an event-handling system (e.g. ResponseEventInfo). -## +psy -This package contains simple functions for processing and plotting psychometric data +The package also triggers auxiliary services (e.g. starting remote acquisition software), and loads parameters for presentation for each trail. The principle two base classes that control these experiments are 'Experiment' and its "signals package" counterpart, 'SignalsExp'. -## +srv -This package contains the expServer function as well as classes that manage communications between rig computers. +This package is almost exclusively used by the stimulus server. -The Service base class allows the stimulus server to start and stop auxiliary acquisition systems at the beginning and end of experiments +### +hw -The StimulusControl class is used by the mc computer to manage the stimulus server +The "hardware" package is for configuring, and interfacing with, hardware (such as screens, DAQ devices, weighing scales and lick detectors). Within this is the "+ptb" package which contains classes for interacting with PsychToolbox. -NB: Lower-level communication protocol code is found in the +io package +'devices.m' loads and initializes all the hardware for a specific experimental rig. There are also classes for unifying system and hardware clocks. -## cb-tools\burgbox -Burgbox contains many simply helper functions that are used by the main packages. Within this directory are further packages: +### +psy + +The "psychometrics" package contains simple functions for processing and plotting psychometric data. + +### +srv + +The "stim server" package contains the expServer function as well as classes that manage communications between rig computers. + +The 'Service' base class allows the stimulus server to start and stop auxiliary acquisition systems at the beginning and end of experiments. + +The 'StimulusControl' class is used by the mc computer to manage the stimulus server. + +* *Note*: Lower-level communication protocol code is found in the "cortexlab/+io" package. + +### cb-tools/burgbox + +Burgbox contains many simple helper functions that are used by the main packages. Within this directory are additional packages: * +bui --- Classes for managing graphics objects such as axes * +aud --- Functions for interacting with PsychoPortAudio * +file --- Functions for simplifying directory and file management, for instance returning the modified dates for specified folders or filtering an array of directories by those that exist * +fun --- Convenience functions for working with function handles in MATLAB, e.g. functions similar cellfun that are agnostic of input type, or ones that cache function outputs -* +img --- Classes that deal with image and frame data (DEPRICATED) +* +img --- Classes that deal with image and frame data (DEPRECATED) * +io --- Lower-level communications classes for managing UDP and TCP/IP Web sockets -* +plt --- A few small plotting functions (DEPRICATED) +* +plt --- A few small plotting functions (DEPRECATED) * +vis --- Functions for returning various windowed visual stimuli (i.g. gabor gratings) -* +ws --- An early Web socket package using SuperWebSocket (DEPRICATED) +* +ws --- An early Web socket package using SuperWebSocket (DEPRECATED) + +### cortexlab -## cortexlab -The cortexlab directory is intended for functions and classes that are rig or lab specific, for instance code that allows compatibility with other stimulus presentation packages used by cortexlab (i.e. MPEP) +The cortexlab directory is intended for functions and classes that are rig or cortexlab specific, for instance code that allows compatibility with other stimulus presentation packages used by cortexlab (e.g. MPEP) -## alyx-matlab/@Alyx -This class allows interation with an instance of the Alyx database. More information about Alyx can be found [here](http://alyx.readthedocs.io/en/latest/). Information about using the alyx-matlab class can be found in [alyx-matlab/Examples.m](https://github.com/cortex-lab/alyx-matlab/blob/alyx-as-class/Examples.m). +### submodules + +Additional information on the [alyx-matlab](https://github.com/cortex-lab/alyx-matlab), [npy-matlab](https://github.com/kwikteam/npy-matlab), [signals](https://github.com/cortex-lab/signals) and [wheelAnalysis](https://github.com/cortex-lab/wheelAnalysis) submodules can be found in their respective github repositories. ## Authors -The majority of the Rigbox code was written by [Chris Burgess](https://github.com/dendritic/) in 2013. It is now maintained and developed by a number of people at [CortexLab](https://www.ucl.ac.uk/cortexlab). + +The majority of the Rigbox code was written by [Chris Burgess](https://github.com/dendritic/) in 2013. It is now maintained and developed by a number of people at [CortexLab](https://www.ucl.ac.uk/cortexlab). From 00226a713ec77529fd7e1406cc64f1f62de34769 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 18 Oct 2018 22:47:52 +0100 Subject: [PATCH 174/515] mc & expServer pull latest code upon starting --- +dat/paths.m | 3 ++- +srv/expServer.m | 4 +++- cortexlab/+git/update.m | 37 +++++++++++++++++++++++++++++++++++++ mc.m | 2 ++ signals | 2 +- 5 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 cortexlab/+git/update.m diff --git a/+dat/paths.m b/+dat/paths.m index c126e5a8..37f96514 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -27,6 +27,7 @@ p.localAlyxQueue = 'C:\localAlyxQueue'; p.databaseURL = 'https://alyx.cortexlab.net'; % p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; +p.gitExe = 'C:\Program Files\Git\cmd\git.exe'; % Under the new system of having data grouped by mouse % rather than data type, all experimental data are saved here. @@ -69,4 +70,4 @@ p = mergeStructs(customPaths, p); end -end \ No newline at end of file +end diff --git a/+srv/expServer.m b/+srv/expServer.m index c0706087..6e3cc761 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -19,6 +19,8 @@ function expServer(useTimelineOverride, bgColour) rewardId = 1; %% Initialisation +% Ensure code is up-to-date +git.update; % random seed random number generator rng('shuffle'); % communicator for receiving commands from clients @@ -362,4 +364,4 @@ function setClock(user, clock) log('Use of timeline disabled'); end end -end \ No newline at end of file +end diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m new file mode 100644 index 00000000..da3cdfce --- /dev/null +++ b/cortexlab/+git/update.m @@ -0,0 +1,37 @@ +function update(essential) +% UPDATE Update Rigbox code +% TODO +% +if nargin == 0; essential = true; end +gitexepath = getOr(dat.paths, 'gitExe', 'C:\Program Files\Git\cmd\git.exe'); %TODO generalize +gitexepath = ['"' gitexepath '"']; +root = fileparts(which('addRigboxPaths')); +origDir = pwd; +cd(root) + +cmdstr = strjoin({gitexepath, 'pull'}); +[status, cmdout] = system(cmdstr); +if status ~= 0 + if essential + cd(origDir) + error('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) + else + warning('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) + end +end +% TODO: check if submodules are empty and use init flag +cmdstr = strjoin({gitexepath, 'submodule update --remote --merge'}); +status = system(cmdstr); +if status ~= 0 + if essential + cd(origDir) + error('gitUpdate:submodule:updateFailed', ... + 'Failed to pull latest changes for submodules:, %s', cmdout) + else + warning('gitUpdate:submodule:updateFailed', ... + 'Failed to pull latest changes for submodules:, %s', cmdout) + end +end + +cd(origDir) +end diff --git a/mc.m b/mc.m index d71b21a3..d3052b08 100644 --- a/mc.m +++ b/mc.m @@ -5,6 +5,8 @@ % 2013-06 CB created +% Ensure code is up-to-date +git.update; f = figure('Name', 'MC',... 'MenuBar', 'none',... 'Toolbar', 'none',... diff --git a/signals b/signals index 6fbd1855..bfb4acf8 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 6fbd18551b63da12cf9b4fbeab5bccfaad70eba6 +Subproject commit bfb4acf8cf20e66e77917307297305fab2e087a0 From ef01a06b7a868e7c5525e12e8dfce8986c1679f1 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 19 Oct 2018 16:51:41 +0100 Subject: [PATCH 175/515] Support for new Alyx fields in sessions and water-administrations endpoints; removed AlyxInstance from property defaults --- +eui/AlyxPanel.m | 17 ++++++++--------- +eui/ExpPanel.m | 2 +- +exp/Experiment.m | 11 +++++++++-- +exp/SignalsExp.m | 15 ++++++++++++++- +srv/StimulusControl.m | 3 ++- .gitmodules | 4 ++-- alyx-matlab | 2 +- 7 files changed, 37 insertions(+), 17 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index c107b6f2..6d0783f0 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -146,9 +146,9 @@ % for future dates uicontrol('Parent', waterbox,... 'Style', 'pushbutton', ... - 'String', 'Give gel in future', ... + 'String', 'Give water in future', ... 'Enable', 'off',... - 'Callback', @(~,~)obj.giveFutureGel); + 'Callback', @(~,~)obj.giveFutureWater); % Check box to indicate whether water was gel or liquid obj.IsHydrogel = uicontrol('Parent', waterbox,... 'Style', 'checkbox', ... @@ -287,24 +287,23 @@ function giveWater(obj) % state of the 'is hydrogel' check box thisDate = now; amount = str2double(get(obj.WaterEntry, 'String')); - isHydrogel = logical(get(obj.IsHydrogel, 'Value')); + type = iff(get(obj.IsHydrogel, 'Value')==1, 'Hydrogel', 'Water'); if obj.AlyxInstance.IsLoggedIn && amount~=0 && ~isnan(amount) - wa = obj.AlyxInstance.postWater(obj.Subject, amount, thisDate, isHydrogel); + wa = obj.AlyxInstance.postWater(obj.Subject, amount, thisDate, type); if ~isempty(wa) % returned us a created water administration object successfully - wstr = iff(isHydrogel, 'Hydrogel', 'Water'); - obj.log('%s administration of %.2f for %s posted successfully to alyx', wstr, amount, obj.Subject); + obj.log('%s administration of %.2f for %s posted successfully to alyx', type, amount, obj.Subject); end end % update the water required text dispWaterReq(obj); end - function giveFutureGel(obj) + function giveFutureWater(obj) % Open a dialog allowing one to input water submissions for % future dates thisDate = now; prompt=sprintf('Enter space-separated numbers \n[tomorrow, day after that, day after that.. etc] \nEnter 0 to skip a day'); - answer = inputdlg(prompt,'Future Gel Amounts', [1 50]); + answer = inputdlg(prompt,'Future Amounts', [1 50]); if isempty(answer)||~obj.AlyxInstance.IsLoggedIn return % user pressed 'Close' or 'x' end @@ -312,7 +311,7 @@ function giveFutureGel(obj) weekendDates = thisDate + (1:length(amount)); for d = 1:length(weekendDates) if amount(d) > 0 - obj.AlyxInstance.postWater(obj.Subject, amount(d), weekendDates(d), 1); + obj.AlyxInstance.postWater(obj.Subject, amount(d), weekendDates(d), 'Water'); obj.log(['Hydrogel administration of %.2f for %s posted successfully to alyx for '... datestr(weekendDates(d))], amount(d), obj.Subject); end diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index f0ffcaf9..5ceab5dc 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -244,7 +244,7 @@ function expStopped(obj, rig, ~) end if ~any(amount); return; end % Return if no water was given try - ai.postWater(subject, amount*0.001, now, false); + ai.postWater(subject, amount*0.001, now, 'Water', ai.SessionURL); catch warning('Failed to post the water %s recieved during the experiment to Alyx', amount*0.001, subject); end diff --git a/+exp/Experiment.m b/+exp/Experiment.m index d78cdef5..b236aa93 100644 --- a/+exp/Experiment.m +++ b/+exp/Experiment.m @@ -786,8 +786,15 @@ function saveData(obj) obj.AlyxInstance.registerFile(savepaths{end}); % Save the session end time if ~isempty(obj.AlyxInstance.SessionURL) - obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL,... - struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject), 'put'); + numTrials = obj.Data.numCompletedTrials; + if isfield(obj.Data, 'trial')&&isfield(obj.Data.trial, 'feedbackType') + numCorrect = sum([obj.Data.trial.feedbackType] == 1); + else + numCorrect = 0; + end + sessionData = struct('end_time', obj.AlyxInstance.datestr(now), ... + 'subject', subject, 'numberOfTrials', numTrials, 'numberOfCorrectTrials', numCorrect); + obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL, sessionData, 'put'); else % Infer from date session and retrieve using expFilePath end diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index e83adb98..789ab556 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -891,8 +891,21 @@ function saveData(obj) % {subject, expDate, seq}, 'Block', []); % Save the session end time if ~isempty(obj.AlyxInstance.SessionURL) + numCorrect = []; + if isfield(obj.Data, 'events') + numTrials = length(obj.Data.events.endTrialValues); + if isfield(obj.Data.events, 'feedbackValues') + numCorrect = sum(obj.Data.events.feedbackValues == 1); + end + else + numTrials = 0; + numCorrect = 0; + end + sessionData = struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject); + if ~isempty(numTrials); sessionData.numberOfTrials = numTrials; end + if ~isempty(numCorrect); sessionData.numberOfCorrectTrials = numCorrect; end obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL,... - struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject), 'put'); + sessionData, 'put'); else % Retrieve session from endpoint % subsessions = obj.AlyxInstance.getData(... diff --git a/+srv/StimulusControl.m b/+srv/StimulusControl.m index 9e6f8114..8147b603 100644 --- a/+srv/StimulusControl.m +++ b/+srv/StimulusControl.m @@ -43,7 +43,7 @@ end properties (Transient, Hidden) - AlyxInstance = Alyx('','') % Property to store rig specific Alyx token + AlyxInstance % Property to store rig specific Alyx instance end properties (Constant) @@ -67,6 +67,7 @@ end s = srv.StimulusControl; s.Name = name; + s.AlyxInstance = Alyx('',''); if isempty(regexp(uri, '^ws://', 'once')) uri = ['ws://' uri]; %default protocol prefix end diff --git a/.gitmodules b/.gitmodules index b6d3b966..8e0649d5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,14 +1,14 @@ [submodule "alyx-matlab"] path = alyx-matlab url = https://github.com/cortex-lab/alyx-matlab/ + branch = dev [submodule "signals"] path = signals url = https://github.com/cortex-lab/signals + branch = dev [submodule "npy-matlab"] path = npy-matlab url = https://github.com/kwikteam/npy-matlab [submodule "wheelAnalysis"] - path = wheelAnalysis - url = https://github.com/cortex-lab/wheelAnalysis.git diff --git a/alyx-matlab b/alyx-matlab index 480155b7..004d6c96 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 480155b70bb8a4762400887f8ef6f05f84986099 +Subproject commit 004d6c9606d4a3d69f7f7fd638246a9ceb79b476 From 17db7f135310f266d3e1aa273ab4d8043627ac07 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 19 Oct 2018 16:53:35 +0100 Subject: [PATCH 176/515] Auto updating of code when mc and expServer start up; removed addpath from inferParameters --- +dat/paths.m | 1 + +exp/inferParameters.m | 11 +---------- +srv/expServer.m | 13 ++++++++----- cortexlab/+git/update.m | 41 +++++++++++++++++++++++++++++++++++++++++ mc.m | 2 ++ 5 files changed, 53 insertions(+), 15 deletions(-) create mode 100644 cortexlab/+git/update.m diff --git a/+dat/paths.m b/+dat/paths.m index c126e5a8..f1d06f83 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -27,6 +27,7 @@ p.localAlyxQueue = 'C:\localAlyxQueue'; p.databaseURL = 'https://alyx.cortexlab.net'; % p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; +p.gitExe = 'C:\Program Files\Git\cmd\git.exe'; % Under the new system of having data grouped by mouse % rather than data type, all experimental data are saved here. diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 9e4c7beb..945845d1 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -13,12 +13,9 @@ % end if ischar(expdef) && file.exists(expdef) expdeffun = fileFunction(expdef); - [funcDir, mfile] = fileparts(expdef); addpath(funcDir); - funArgs = nargin(str2func(mfile)); else expdeffun = expdef; expdef = which(func2str(expdef)); - funArgs = nargin(expdeffun); end net = sig.Net; @@ -34,14 +31,8 @@ try -% rig = 0; -% if funArgs == 7 - expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio); -% else -% expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio, rig); -% end + expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio); -% expdeffun(e.t, e.events, e.pars, e.visual, e.inputs , e.outputs, e.audio); % paramNames will be the strings corresponding to the fields of e.pars % that the user tried to reference in her expdeffun. paramNames = e.pars.Subscripts.keys'; diff --git a/+srv/expServer.m b/+srv/expServer.m index c0706087..2af3eaf4 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -19,6 +19,8 @@ function expServer(useTimelineOverride, bgColour) rewardId = 1; %% Initialisation +% Pull latest changes from remote +git.update(true); % random seed random number generator rng('shuffle'); % communicator for receiving commands from clients @@ -170,14 +172,15 @@ function handleMessage(id, data, host) end case 'run' % exp run request - [expRef, preDelay, postDelay, Alyx] = args{:}; - Alyx.Headless = true; % Supress all dialog prompts + [expRef, preDelay, postDelay, AlyxInstance] = args{:}; + if isempty(AlyxInstance); AlyxInstance = Alyx('',''); end + AlyxInstance.Headless = true; % Supress all dialog prompts if dat.expExists(expRef) log('Starting experiment ''%s''', expRef); communicator.send(id, []); try communicator.send('status', {'starting', expRef}); - aborted = runExp(expRef, preDelay, postDelay, Alyx); + aborted = runExp(expRef, preDelay, postDelay, AlyxInstance); log('Experiment ''%s'' completed', expRef); communicator.send('status', {'completed', expRef, aborted}); catch runEx @@ -193,7 +196,7 @@ function handleMessage(id, data, host) case 'quit' if ~isempty(experiment) immediately = args{1}; - AlyxInstance = args{2}; + AlyxInstance = iff(isempty(args{2}), Alyx('',''), args{2}); AlyxInstance.Headless = true; if immediately log('Aborting experiment'); @@ -209,7 +212,7 @@ function handleMessage(id, data, host) log('Quit message received but no experiment is running\n'); end case 'updateAlyxInstance' %recieved new Alyx Instance from Stimulus Control - AlyxInstance = args{1}; %get struct + AlyxInstance = iff(isempty(args{1}), Alyx('',''), args{1}); AlyxInstance.Headless = true; if ~isempty(AlyxInstance) experiment.AlyxInstance = AlyxInstance; %set property for current experiment diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m new file mode 100644 index 00000000..99d42ec9 --- /dev/null +++ b/cortexlab/+git/update.m @@ -0,0 +1,41 @@ +function update(fatalOnError) +% GIT.UPDATE Pull latest Rigbox code +% +% See also +if nargin == 0; fatalOnError = true; end +gitexepath = getOr(dat.paths, 'gitExe', 'C:\Program Files\Git\cmd\git.exe'); %TODO generalize +gitexepath = ['"', gitexepath, '"']; +root = fileparts(which('addRigboxPaths')); +origDir = pwd; +cd(root) + +cmdstr = strjoin({gitexepath, 'fetch'}); +[~, cmdout] = system(cmdstr); +if isempty(cmdout); return; end + +cmdstr = strjoin({gitexepath, 'merge'}); +[status, cmdout] = system(cmdstr); +if status ~= 0 + if fatalOnError + cd(origDir) + error('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) + else + warning('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) + end +end +% TODO: check if submodules are empty and use init flag +cmdstr = strjoin({gitexepath, 'submodule update --remote --merge'}); +status = system(cmdstr); +if status ~= 0 + if fatalOnError + cd(origDir) + error('gitUpdate:submodule:updateFailed', ... + 'Failed to pull latest changes for submodules:, %s', cmdout) + else + warning('gitUpdate:submodule:updateFailed', ... + 'Failed to pull latest changes for submodules:, %s', cmdout) + end +end + +cd(origDir) +end \ No newline at end of file diff --git a/mc.m b/mc.m index d71b21a3..071f4656 100644 --- a/mc.m +++ b/mc.m @@ -5,6 +5,8 @@ % 2013-06 CB created +% Pull latest changes from remote +git.update(true); f = figure('Name', 'MC',... 'MenuBar', 'none',... 'Toolbar', 'none',... From 971c002996aad885711aa76dc5c6c2c0d53b3691 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 19 Oct 2018 18:11:34 +0100 Subject: [PATCH 177/515] Hydrogel bool now false by default --- +eui/AlyxPanel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 6d0783f0..c66146dd 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -154,7 +154,7 @@ 'Style', 'checkbox', ... 'String', 'Hydrogel?', ... 'HorizontalAlignment', 'right',... - 'Value', true, ... + 'Value', false, ... 'Enable', 'off'); % Input for submitting amount of water obj.WaterEntry = uicontrol('Parent', waterbox,... From e6f101e9b482ab9f7141437dd13edca042408a53 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 22 Oct 2018 10:41:20 +0100 Subject: [PATCH 178/515] update to Alyx-matlab & branch rename --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 004d6c96..2c5e4977 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 004d6c9606d4a3d69f7f7fd638246a9ceb79b476 +Subproject commit 2c5e497764d70c0a68fb001b2293c39345616b49 From a5e90b198e9d896a2e7d768d4c99d5d393c2401b Mon Sep 17 00:00:00 2001 From: jaib1 Date: Tue, 23 Oct 2018 12:01:24 +0100 Subject: [PATCH 179/515] signals dev branch changes into rigbox dev branch --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index c44fab9c..13db4d1d 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit c44fab9c057a4828d64a6514d04ce9a3fb0d2f47 +Subproject commit 13db4d1d6a7e11427043b514867a3807eb1f12f7 From 83172d3cb168466f644f35fddfeba9720b095091 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Tue, 23 Oct 2018 16:29:07 +0100 Subject: [PATCH 180/515] merged npy-matlab pull request to jaib1 from kwikteam of master branch --- npy-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npy-matlab b/npy-matlab index a99e00f7..a7c4900b 160000 --- a/npy-matlab +++ b/npy-matlab @@ -1 +1 @@ -Subproject commit a99e00f78c72a7ec5f9c3074242ffaf242de9448 +Subproject commit a7c4900b62757e1b657f2cc983a5df3282abd674 From 038768eb5b2cbcaf66bd63eb7e312e4bfcf32388 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Tue, 23 Oct 2018 17:47:13 +0100 Subject: [PATCH 181/515] changed .gitmodules to have submodules point to jaib1 github repos instead of cortex-lab repos --- .gitmodules | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitmodules b/.gitmodules index 8e0649d5..32b91d63 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,14 +1,16 @@ [submodule "alyx-matlab"] path = alyx-matlab - url = https://github.com/cortex-lab/alyx-matlab/ + url = https://github.com/jaib1/alyx-matlab/ branch = dev [submodule "signals"] path = signals - url = https://github.com/cortex-lab/signals + url = https://github.com/jaib1/signals branch = dev [submodule "npy-matlab"] path = npy-matlab - url = https://github.com/kwikteam/npy-matlab + url = https://github.com/jaib1/npy-matlab + branch = dev [submodule "wheelAnalysis"] path = wheelAnalysis - url = https://github.com/cortex-lab/wheelAnalysis.git + url = https://github.com/jaib1/wheelAnalysis + branch = dev From 186c6260fa0a580488bc4546f1fce30f75a1ab96 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 23 Oct 2018 18:54:12 +0100 Subject: [PATCH 182/515] Git update cd to orig path on early return --- alyx-matlab | 2 +- cortexlab/+git/update.m | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/alyx-matlab b/alyx-matlab index 2c5e4977..ddc6f766 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 2c5e497764d70c0a68fb001b2293c39345616b49 +Subproject commit ddc6f766fc25e1a57cc6c61a90aa5083cbd46543 diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 99d42ec9..c2544f0e 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -11,7 +11,10 @@ function update(fatalOnError) cmdstr = strjoin({gitexepath, 'fetch'}); [~, cmdout] = system(cmdstr); -if isempty(cmdout); return; end +if isempty(cmdout) + cd(origDir) + return +end cmdstr = strjoin({gitexepath, 'merge'}); [status, cmdout] = system(cmdstr); From 8cc73a5d75d335e05e20399721726ea62cedee30 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 23 Oct 2018 19:30:27 +0100 Subject: [PATCH 183/515] Echo in code update and fix to warning in ExpPanel --- +eui/ExpPanel.m | 2 +- cortexlab/+git/update.m | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index 5ceab5dc..e3434f14 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -246,7 +246,7 @@ function expStopped(obj, rig, ~) try ai.postWater(subject, amount*0.001, now, 'Water', ai.SessionURL); catch - warning('Failed to post the water %s recieved during the experiment to Alyx', amount*0.001, subject); + warning('Failed to post the %.2fml %s recieved during the experiment to Alyx', amount*0.001, subject); end end end diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index c2544f0e..1d5ca6c1 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -9,26 +9,28 @@ function update(fatalOnError) origDir = pwd; cd(root) +disp('Updating code...') + cmdstr = strjoin({gitexepath, 'fetch'}); -[~, cmdout] = system(cmdstr); -if isempty(cmdout) - cd(origDir) - return -end +system(cmdstr, '-echo'); +% if isempty(cmdout) +% cd(origDir) +% return +% end cmdstr = strjoin({gitexepath, 'merge'}); -[status, cmdout] = system(cmdstr); +[status, cmdout] = system(cmdstr, '-echo'); if status ~= 0 if fatalOnError cd(origDir) - error('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) + error('gitUpdate:pull:pullFailed', 'Failed to pull latest changes, %s', cmdout) else - warning('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) + warning('gitUpdate:pull:pullFailed', 'Failed to pull latest changes, %s', cmdout) end end % TODO: check if submodules are empty and use init flag cmdstr = strjoin({gitexepath, 'submodule update --remote --merge'}); -status = system(cmdstr); +status = system(cmdstr, '-echo'); if status ~= 0 if fatalOnError cd(origDir) From 1cccfc116d7103f9e4160c2febc64cbf1e4be12a Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Thu, 25 Oct 2018 11:39:16 +0100 Subject: [PATCH 184/515] Changed .gitmodules to point back to cortex-lab subrepos for pull request --- .gitmodules | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitmodules b/.gitmodules index 32b91d63..0022ed5b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,16 +1,16 @@ [submodule "alyx-matlab"] path = alyx-matlab - url = https://github.com/jaib1/alyx-matlab/ + url = https://github.com/cortex-lab/alyx-matlab/ branch = dev [submodule "signals"] path = signals - url = https://github.com/jaib1/signals + url = https://github.com/cortex-lab/signals branch = dev [submodule "npy-matlab"] path = npy-matlab - url = https://github.com/jaib1/npy-matlab - branch = dev + url = https://github.com/kwikteam/npy-matlab + branch = master [submodule "wheelAnalysis"] path = wheelAnalysis - url = https://github.com/jaib1/wheelAnalysis - branch = dev + url = https://github.com/cortex-lab/wheelAnalysis + branch = master From 13c85a8ff09399f9335283589fd4c2e8e57b1fd7 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 25 Oct 2018 12:14:47 +0100 Subject: [PATCH 185/515] Reset lick counter NB: May ditch this method in future in favour of faster 'signalsy' approach --- +exp/SignalsExp.m | 1 + npy-matlab | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 789ab556..44b5f624 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -221,6 +221,7 @@ function useRig(obj, rig) obj.Wheel = rig.mouseInput; if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; + obj.LickDetector.zero(); end if ~isempty(obj.DaqController.SignalGenerators) outputNames = fieldnames(obj.Outputs); % Get list of all outputs specified in expDef function diff --git a/npy-matlab b/npy-matlab index a7c4900b..a99e00f7 160000 --- a/npy-matlab +++ b/npy-matlab @@ -1 +1 @@ -Subproject commit a7c4900b62757e1b657f2cc983a5df3282abd674 +Subproject commit a99e00f78c72a7ec5f9c3074242ffaf242de9448 From ad3b8da26d6a05b35db38fec4d930a72c8f1e23a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 25 Oct 2018 18:39:24 +0100 Subject: [PATCH 186/515] Lick detector zero'd + git.update uses 'where git' --- +exp/SignalsExp.m | 3 +++ cortexlab/+git/update.m | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 44b5f624..0331d4bc 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -153,6 +153,8 @@ obj.Events.newTrial = net.origin('newTrial'); obj.Events.expStop = net.origin('expStop'); obj.Inputs.wheel = net.origin('wheel'); + obj.Inputs.wheelMM = obj.Inputs.wheel.map(@(x)obj.Wheel.MillimetresFactor*(x-obj.Wheel.ZeroOffset)); + obj.Inputs.wheelDeg = obj.Inputs.wheel.map(@(x)((x-obj.Wheel.ZeroOffset)/(1024*4))*360); obj.Inputs.lick = net.origin('lick'); obj.Inputs.keyboard = net.origin('keyboard'); % get global parameters & conditional parameters structs @@ -219,6 +221,7 @@ function useRig(obj, rig) end obj.DaqController = rig.daqController; obj.Wheel = rig.mouseInput; + obj.Wheel.zero(); if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; obj.LickDetector.zero(); diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 211fe203..14814d6b 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -16,11 +16,18 @@ function update(fatalOnError, scheduled) end disp('Updating code...') -gitexepath = getOr(dat.paths, 'gitExe', 'C:\Program Files\Git\cmd\git.exe'); %TODO generalize -gitexepath = ['"', gitexepath, '"']; +% Get the path to the Git exe +gitexepath = getOr(dat.paths, 'gitExe'); +if isempty(gitexepath) + [~,gitexepath] = system('where git'); +end +gitexepath = ['"', strtrim(gitexepath), '"']; + +% Temporarily change directory into Rigbox origDir = pwd; cd(root) +% Check if there are changes before pulling % cmdstr = strjoin({gitexepath, 'fetch'}); % system(cmdstr, '-echo'); % if isempty(cmdout) From 6ceb4e6fe76c6e42a8e253c62ff36d076e20734b Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 25 Oct 2018 18:49:33 +0100 Subject: [PATCH 187/515] Removed premature commit. Wheel now zero'd + where git in update func --- +exp/SignalsExp.m | 1 + cortexlab/+git/update.m | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 44b5f624..d261de2c 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -219,6 +219,7 @@ function useRig(obj, rig) end obj.DaqController = rig.daqController; obj.Wheel = rig.mouseInput; + obj.Wheel.zero(); if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; obj.LickDetector.zero(); diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 211fe203..14814d6b 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -16,11 +16,18 @@ function update(fatalOnError, scheduled) end disp('Updating code...') -gitexepath = getOr(dat.paths, 'gitExe', 'C:\Program Files\Git\cmd\git.exe'); %TODO generalize -gitexepath = ['"', gitexepath, '"']; +% Get the path to the Git exe +gitexepath = getOr(dat.paths, 'gitExe'); +if isempty(gitexepath) + [~,gitexepath] = system('where git'); +end +gitexepath = ['"', strtrim(gitexepath), '"']; + +% Temporarily change directory into Rigbox origDir = pwd; cd(root) +% Check if there are changes before pulling % cmdstr = strjoin({gitexepath, 'fetch'}); % system(cmdstr, '-echo'); % if isempty(cmdout) From af0738b88338dcd49a96fbb350d961cfbf4bbfd5 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 25 Oct 2018 18:50:57 +0100 Subject: [PATCH 188/515] rm unfinished code --- +exp/SignalsExp.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 0331d4bc..d261de2c 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -153,8 +153,6 @@ obj.Events.newTrial = net.origin('newTrial'); obj.Events.expStop = net.origin('expStop'); obj.Inputs.wheel = net.origin('wheel'); - obj.Inputs.wheelMM = obj.Inputs.wheel.map(@(x)obj.Wheel.MillimetresFactor*(x-obj.Wheel.ZeroOffset)); - obj.Inputs.wheelDeg = obj.Inputs.wheel.map(@(x)((x-obj.Wheel.ZeroOffset)/(1024*4))*360); obj.Inputs.lick = net.origin('lick'); obj.Inputs.keyboard = net.origin('keyboard'); % get global parameters & conditional parameters structs From 9ee295f718a9917f17aa3c1ab78f3e0306bf1c9c Mon Sep 17 00:00:00 2001 From: jaib1 Date: Fri, 26 Oct 2018 14:41:46 +0100 Subject: [PATCH 189/515] added future training flag to AlyxPanel --- +eui/AlyxPanel.m | 1336 +++++++++++++++++++++++----------------------- 1 file changed, 670 insertions(+), 666 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 675b8787..9dc3e7ab 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -1,691 +1,695 @@ classdef AlyxPanel < handle - % EUI.ALYXPANEL A GUI for interating with the Alyx database - % This class is emplyed by mc (but may also be used stand-alone) to - % post weights and water administations to the Alyx database. - % - % eui.AlyxPanel() opens a stand-alone GUI. eui.AlyxPanel(parent) - % constructs the panel inside a parent object. - % - % Use the login button to retrieve a token from the database. - % Use the subject drop-down to select the subject. - % Subject weights can be entered using the 'Manual weighing' button. - % Previous weighings and water infomation can be viewed by pressing - % the 'Subject history' button. - % Water administrations can be recorded by entering a value in ml - % into the text box. Pressing return does not post the water, but - % updates the text to the right of the box, showing the amount of - % water remaining (i.e. the amount below the subject's calculated - % minimum requirement for that day. The check box to the right of - % the text box is to indicate whether the water was liquid - % (unchecked) or gel (checked). To post the water to Alyx, press the - % 'Give water' button. - % To post gel for future date (for example weekend hydrogel), Click - % the 'Give gel in future' button and enter in all the values - % starting at tomorrow then the day after, etc. - % The 'All WR subjects' button shows the amount of water remaining - % today for all mice that are currently on water restriction. - % - % The 'default' subject is for testing and is usually ignored. - % - % See also ALYX, EUI.MCONTROL - % - % 2017-03 NS created - % 2017-10 MW made into class - properties (SetAccess = private) - AlyxInstance % An Alyx object to interfacing with the database - SubjectList % List of active subjects from database - Subject = 'default' % The name of the currently selected subject - end - - properties (Access = private) - LoggingDisplay % Control for showing log output - RootContainer % Handle of the uix.Panel object named 'Alyx' - NewExpSubject % Drop-down menu subject list - LoginText % Text displaying whether/which user is logged in - LoginButton % Button to log in to Alyx - WeightButton % Button to submit weight to Alyx - WaterEntry % Text box for entering the amout of water to give - IsHydrogel % UI checkbox indicating whether to water to be given is in gel form - WaterRequiredText % Handle to text UI element displaying the water required - WaterRemainingText % Handle to text UI element displaying the water remaining - LoginTimer % Timer to keep track of how long the user has been logged in, when this expires the user is automatically logged out - WeightTimer % Timer to reset weight button text when scale no longer gives new readings - WaterRemaining % Holds the current water required for the selected subject - end - - events (NotifyAccess = 'protected') - Connected % Notified when logged in to database - Disconnected % Notified when logged out of database - end - - methods - function obj = AlyxPanel(parent, active) - % Constructor to build all the UI elements and set callbacks to the - % relevant functions. If a handle to parant UI object is not - % specified, a seperate figure is created. An optional handle to a - % logging display panal may be provided, otherwise one is created. If - % the active flag is set to false (default is true), the panel is - % inactive and the instance of Alyx will be set to headless. - % - % See also Alyx - - obj.AlyxInstance = Alyx('',''); - if ~nargin % No parant object: create new figure - f = figure('Name', 'alyx GUI',... - 'MenuBar', 'none',... - 'Toolbar', 'none',... - 'NumberTitle', 'off',... - 'Units', 'normalized',... - 'OuterPosition', [0.1 0.1 0.4 .4]); - parent = uiextras.VBox('Parent', f,... - 'Visible', 'on'); - % subject selector - sbox = uix.HBox('Parent', parent); - bui.label('Select subject: ', sbox); - obj.NewExpSubject = bui.Selector(sbox, {'default'}); % Subject dropdown box - % set a callback on subject selection so that we can show water - % requirements for new mice as they are selected. This should - % be set by any other GUI that instantiates this object (e.g. - % MControl using this as a panel. - obj.NewExpSubject.addlistener('SelectionChanged', @(src, evt)obj.dispWaterReq(src, evt)); - end - - % Default to active AlyxPanel - if nargin < 2; active = true; end - - obj.RootContainer = uix.Panel('Parent', parent, 'Title', 'Alyx'); - alyxbox = uiextras.VBox('Parent', obj.RootContainer); - - loginbox = uix.HBox('Parent', alyxbox); - % Login infomation - obj.LoginText = bui.label('Not logged in', loginbox); - % Button to log in and out of Alyx - obj.LoginButton = uicontrol('Parent', loginbox,... - 'Style', 'pushbutton', ... - 'String', 'Login', ... - 'Enable', 'on',... - 'Callback', @(~,~)obj.login); - loginbox.Widths = [-1 75]; - - % If active flag set as false, make Alyx headless - if ~active - obj.AlyxInstance.Headless = true; - set(obj.LoginButton, 'Enable', 'off') - end - - waterReqbox = uix.HBox('Parent', alyxbox); - obj.WaterRequiredText = bui.label('Log in to see water requirements', waterReqbox); % water required text - % Button to refresh all data retrieved from Alyx - uicontrol('Parent', waterReqbox,... - 'Style', 'pushbutton', ... - 'String', 'Refresh', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.dispWaterReq); - waterReqbox.Widths = [-1 75]; - - waterbox = uix.HBox('Parent', alyxbox); - % Button to launch a dialog displaying water and weight info for a given mouse - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'Subject history', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.viewSubjectHistory); - % Button to launch a dialog displaying water and weight info for all mice - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'All WR subjects', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.viewAllSubjects); - % Button to open a dialog for manually submitting a mouse weight - obj.WeightButton = uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'Manual weighing', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.recordWeight); - % Button to launch dialog for submitting gel administrations - % for future dates - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'Give water in future', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.giveFutureWater); - % Check box to indicate whether water was gel or liquid - obj.IsHydrogel = uicontrol('Parent', waterbox,... - 'Style', 'checkbox', ... - 'String', 'Hydrogel?', ... - 'HorizontalAlignment', 'right',... - 'Value', false, ... - 'Enable', 'off'); - % Input for submitting amount of water - obj.WaterEntry = uicontrol('Parent', waterbox,... - 'Style', 'edit',... - 'BackgroundColor', [1 1 1],... - 'HorizontalAlignment', 'right',... - 'Enable', 'off',... - 'String', '0.00', ... - 'Callback', @(src, evt)obj.changeWaterText(src, evt)); - % Button for submitting water administration - uicontrol('Parent', waterbox,... - 'Style', 'pushbutton', ... - 'String', 'Give water', ... - 'Enable', 'off',... - 'Callback', @(~,~)giveWater(obj)); - % Label Indicating the amount of water remaining - obj.WaterRemainingText = bui.label('[]', waterbox); - waterbox.Widths = [100 100 100 100 75 75 75 75]; - - launchbox = uix.HBox('Parent', alyxbox); - % Button for launching subject page in browser - uicontrol('Parent', launchbox,... - 'Style', 'pushbutton', ... - 'String', 'Launch webpage for Subject', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.launchSubjectURL); - % Button for launching (and creating) a session for a given subject in the browser - uicontrol('Parent', launchbox,... - 'Style', 'pushbutton', ... - 'String', 'Launch webpage for Session', ... - 'Enable', 'off',... - 'Callback', @(~,~)obj.launchSessionURL); - - if ~nargin - % logging message area - obj.LoggingDisplay = uicontrol('Parent', parent, 'Style', 'listbox',... - 'Enable', 'inactive', 'String', {}); - parent.Sizes = [50 150 150]; - else - % Use parent's logging display - obj.LoggingDisplay = findobj('Tag', 'Logging Display'); - end + % EUI.ALYXPANEL A GUI for interating with the Alyx database + % This class is emplyed by mc (but may also be used stand-alone) to + % post weights and water administations to the Alyx database. + % + % eui.AlyxPanel() opens a stand-alone GUI. eui.AlyxPanel(parent) + % constructs the panel inside a parent object. + % + % Use the login button to retrieve a token from the database. + % Use the subject drop-down to select the subject. + % Subject weights can be entered using the 'Manual weighing' button. + % Previous weighings and water infomation can be viewed by pressing + % the 'Subject history' button. + % Water administrations can be recorded by entering a value in ml + % into the text box. Pressing return does not post the water, but + % updates the text to the right of the box, showing the amount of + % water remaining (i.e. the amount below the subject's calculated + % minimum requirement for that day. The check box to the right of + % the text box is to indicate whether the water was liquid + % (unchecked) or gel (checked). To post the water to Alyx, press the + % 'Give water' button. + % To post gel for future date (for example weekend hydrogel), Click + % the 'Give gel in future' button and enter in all the values + % starting at tomorrow then the day after, etc. + % The 'All WR subjects' button shows the amount of water remaining + % today for all mice that are currently on water restriction. + % + % The 'default' subject is for testing and is usually ignored. + % + % See also ALYX, EUI.MCONTROL + % + % 2017-03 NS created + % 2017-10 MW made into class + properties (SetAccess = private) + AlyxInstance % An Alyx object to interfacing with the database + SubjectList % List of active subjects from database + Subject = 'default' % The name of the currently selected subject end - function delete(obj) - % To be called before destroying AlyxPanel object. Deletes the - % loggin timer - disp('AlyxPanel destructor called'); - if obj.RootContainer.isvalid; delete(obj.RootContainer); end - if ~isempty(obj.LoginTimer) % If there is a timer object - stop(obj.LoginTimer) % Stop the timer... - delete(obj.LoginTimer) % ... delete it... - obj.LoginTimer = []; % ... and remove it - end + properties (Access = private) + LoggingDisplay % Control for showing log output + RootContainer % Handle of the uix.Panel object named 'Alyx' + NewExpSubject % Drop-down menu subject list + LoginText % Text displaying whether/which user is logged in + LoginButton % Button to log in to Alyx + WeightButton % Button to submit weight to Alyx + WaterEntry % Text box for entering the amout of water to give + IsHydrogel % UI checkbox indicating whether to water to be given is in gel form + WaterRequiredText % Handle to text UI element displaying the water required + WaterRemainingText % Handle to text UI element displaying the water remaining + LoginTimer % Timer to keep track of how long the user has been logged in, when this expires the user is automatically logged out + WeightTimer % Timer to reset weight button text when scale no longer gives new readings + WaterRemaining % Holds the current water required for the selected subject end - function login(obj) - % Used both to log in and out of Alyx. Logging means to - % generate an Alyx token with which to send/request data. - % Logging out does not cause the token to expire, instead the - % token is simply deleted from this object. - - % Reset headless flag in case user wishes to retry connection - obj.AlyxInstance.Headless = false; - % Are we logging in or out? - if ~obj.AlyxInstance.IsLoggedIn % logging in - % attempt login - obj.AlyxInstance = obj.AlyxInstance.login(); % returns an instance if success, empty if you cancel - if obj.AlyxInstance.IsLoggedIn % successful - % Start log in timer, to automatically log out after 30 - % minutes of 'inactivity' (defined as not calling - % dispWaterReq) - obj.LoginTimer = timer('StartDelay', 30*60, 'TimerFcn',... - @(~,~)obj.login, 'BusyMode', 'queue', 'Name', 'Login Timer'); - start(obj.LoginTimer) - % Enable all buttons - set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); - set(obj.LoginText, 'ForegroundColor', 'black',... - 'String', ['You are logged in as ', obj.AlyxInstance.User]); % display which user is logged in - set(obj.LoginButton, 'String', 'Logout'); - - % try updating the subject selectors in other panels - newSubs = obj.AlyxInstance.listSubjects; - obj.NewExpSubject.Option = newSubs; - obj.SubjectList = newSubs; - - notify(obj, 'Connected'); % Notify listeners of login - obj.log('Logged into Alyx successfully as %s', obj.AlyxInstance.User); - - % any database subjects that weren't in the old list of - % subjects will need a folder in the main repository. - firstTimeSubs = newSubs(~ismember(newSubs, dat.listSubjects)); - for fts = 1:length(firstTimeSubs) - thisDir = fullfile(dat.reposPath('main', 'master'), firstTimeSubs{fts}); - if ~exist(thisDir, 'dir') - fprintf(1, 'making directory for %s\n', firstTimeSubs{fts}); - mkdir(thisDir); - end - end - elseif obj.AlyxInstance.Headless - % Panel inactive or login failed due to Alyx being down - set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); - set(obj.LoginText, 'ForegroundColor', [0.91, 0.41, 0.17],... - 'String', 'Unable to reach Alyx, posts to be queued'); - set(obj.LoginButton, 'String', 'Retry'); % Retry button - obj.log('Failed to reach Alyx server, please retry later'); - else - obj.log('Did not log into Alyx'); - end - else % logging out - obj.AlyxInstance = obj.AlyxInstance.logout; - if ~isempty(obj.LoginTimer) % If there is a timer object - stop(obj.LoginTimer) % Stop the timer... - delete(obj.LoginTimer) % ... delete it... - obj.LoginTimer = []; % ... and remove it - end - set(obj.LoginText, 'String', 'Not logged in') - % Disable all buttons - set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'off') - set(obj.LoginButton, 'Enable', 'on', 'String', 'Login') % ... except the login button - notify(obj, 'Disconnected'); % Notify listeners of logout - obj.log('Logged out of Alyx'); - end - obj.dispWaterReq() - end - - function giveWater(obj) - % Callback to the give water button. Posts the value entered - % in the text box as either liquid or gel depending on the - % state of the 'is hydrogel' check box - thisDate = now; - amount = str2double(get(obj.WaterEntry, 'String')); - type = iff(get(obj.IsHydrogel, 'Value')==1, 'Hydrogel', 'Water'); - if obj.AlyxInstance.IsLoggedIn && amount~=0 && ~isnan(amount) - wa = obj.AlyxInstance.postWater(obj.Subject, amount, thisDate, type); - if ~isempty(wa) % returned us a created water administration object successfully - obj.log('%s administration of %.2f for %s posted successfully to alyx', type, amount, obj.Subject); - end - end - % update the water required text - dispWaterReq(obj); + events (NotifyAccess = 'protected') + Connected % Notified when logged in to database + Disconnected % Notified when logged out of database end - function giveFutureWater(obj) - % Open a dialog allowing one to input water submissions for - % future dates - thisDate = now; - prompt=sprintf('Enter space-separated numbers \n[tomorrow, day after that, day after that.. etc] \nEnter 0 to skip a day'); - answer = inputdlg(prompt,'Future Amounts', [1 50]); - if isempty(answer)||~obj.AlyxInstance.IsLoggedIn - return % user pressed 'Close' or 'x' - end - amount = str2num(answer{:}); %#ok - weekendDates = thisDate + (1:length(amount)); - for d = 1:length(weekendDates) - if amount(d) > 0 - obj.AlyxInstance.postWater(obj.Subject, amount(d), weekendDates(d), 'Water'); - obj.log(['Hydrogel administration of %.2f for %s posted successfully to alyx for '... - datestr(weekendDates(d))], amount(d), obj.Subject); + methods + function obj = AlyxPanel(parent, active) + % Constructor to build all the UI elements and set callbacks to the + % relevant functions. If a handle to parant UI object is not + % specified, a seperate figure is created. An optional handle to a + % logging display panal may be provided, otherwise one is created. If + % the active flag is set to false (default is true), the panel is + % inactive and the instance of Alyx will be set to headless. + % + % See also Alyx + + obj.AlyxInstance = Alyx('',''); + if ~nargin % No parant object: create new figure + f = figure('Name', 'alyx GUI',... + 'MenuBar', 'none',... + 'Toolbar', 'none',... + 'NumberTitle', 'off',... + 'Units', 'normalized',... + 'OuterPosition', [0.1 0.1 0.4 .4]); + parent = uiextras.VBox('Parent', f,... + 'Visible', 'on'); + % subject selector + sbox = uix.HBox('Parent', parent); + bui.label('Select subject: ', sbox); + obj.NewExpSubject = bui.Selector(sbox, {'default'}); % Subject dropdown box + % set a callback on subject selection so that we can show water + % requirements for new mice as they are selected. This should + % be set by any other GUI that instantiates this object (e.g. + % MControl using this as a panel. + obj.NewExpSubject.addlistener('SelectionChanged', @(src, evt)obj.dispWaterReq(src, evt)); + end + + % Default to active AlyxPanel + if nargin < 2; active = true; end + + obj.RootContainer = uix.Panel('Parent', parent, 'Title', 'Alyx'); + alyxbox = uiextras.VBox('Parent', obj.RootContainer); + + loginbox = uix.HBox('Parent', alyxbox); + % Login infomation + obj.LoginText = bui.label('Not logged in', loginbox); + % Button to log in and out of Alyx + obj.LoginButton = uicontrol('Parent', loginbox,... + 'Style', 'pushbutton', ... + 'String', 'Login', ... + 'Enable', 'on',... + 'Callback', @(~,~)obj.login); + loginbox.Widths = [-1 75]; + + % If active flag set as false, make Alyx headless + if ~active + obj.AlyxInstance.Headless = true; + set(obj.LoginButton, 'Enable', 'off') + end + + waterReqbox = uix.HBox('Parent', alyxbox); + obj.WaterRequiredText = bui.label('Log in to see water requirements', waterReqbox); % water required text + % Button to refresh all data retrieved from Alyx + uicontrol('Parent', waterReqbox,... + 'Style', 'pushbutton', ... + 'String', 'Refresh', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.dispWaterReq); + waterReqbox.Widths = [-1 75]; + + waterbox = uix.HBox('Parent', alyxbox); + % Button to launch a dialog displaying water and weight info for a given mouse + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'Subject history', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.viewSubjectHistory); + % Button to launch a dialog displaying water and weight info for all mice + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'All WR subjects', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.viewAllSubjects); + % Button to open a dialog for manually submitting a mouse weight + obj.WeightButton = uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'Manual weighing', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.recordWeight); + % Button to launch dialog for submitting gel administrations + % for future dates + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'Give water in future', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.giveFutureWater); + % Check box to indicate whether water was gel or liquid + obj.IsHydrogel = uicontrol('Parent', waterbox,... + 'Style', 'checkbox', ... + 'String', 'Hydrogel?', ... + 'HorizontalAlignment', 'right',... + 'Value', false, ... + 'Enable', 'off'); + % Input for submitting amount of water + obj.WaterEntry = uicontrol('Parent', waterbox,... + 'Style', 'edit',... + 'BackgroundColor', [1 1 1],... + 'HorizontalAlignment', 'right',... + 'Enable', 'off',... + 'String', '0.00', ... + 'Callback', @(src, evt)obj.changeWaterText(src, evt)); + % Button for submitting water administration + uicontrol('Parent', waterbox,... + 'Style', 'pushbutton', ... + 'String', 'Give water', ... + 'Enable', 'off',... + 'Callback', @(~,~)giveWater(obj)); + % Label Indicating the amount of water remaining + obj.WaterRemainingText = bui.label('[]', waterbox); + waterbox.Widths = [100 100 100 100 75 75 75 75]; + + launchbox = uix.HBox('Parent', alyxbox); + % Button for launching subject page in browser + uicontrol('Parent', launchbox,... + 'Style', 'pushbutton', ... + 'String', 'Launch webpage for Subject', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.launchSubjectURL); + % Button for launching (and creating) a session for a given subject in the browser + uicontrol('Parent', launchbox,... + 'Style', 'pushbutton', ... + 'String', 'Launch webpage for Session', ... + 'Enable', 'off',... + 'Callback', @(~,~)obj.launchSessionURL); + + if ~nargin + % logging message area + obj.LoggingDisplay = uicontrol('Parent', parent, 'Style', 'listbox',... + 'Enable', 'inactive', 'String', {}); + parent.Sizes = [50 150 150]; + else + % Use parent's logging display + obj.LoggingDisplay = findobj('Tag', 'Logging Display'); + end end - end - end - - function dispWaterReq(obj, src, ~) - % Display the amount of water required by the selected subject - % for it to reach its minimum requirement. This function is - % also used to update the selected subject, for example it is - % this funtion to use as a callback to subject dropdown - % listeners - ai = obj.AlyxInstance; - % Set the selected subject if it is an input - if nargin>1; obj.Subject = src.Selected; end - if ~ai.IsLoggedIn - set(obj.WaterRequiredText, 'ForegroundColor', 'black',... - 'String', 'Log in to see water requirements'); - return - end - % Refresh the timer as the user isn't inactive - stop(obj.LoginTimer); start(obj.LoginTimer) - try - s = ai.getData('water-restricted-subjects'); % struct with data about restricted subjects - idx = strcmp(obj.Subject, {s.nickname}); - if ~any(idx) % Subject not on water restriction - set(obj.WaterRequiredText, 'ForegroundColor', 'black',... - 'String', sprintf('Subject %s not on water restriction', obj.Subject)); - else - % Get information on weight and water given - endpnt = sprintf('water-requirement/%s?start_date=%s&end_date=%s',... - obj.Subject, datestr(now, 'yyyy-mm-dd'),datestr(now, 'yyyy-mm-dd')); - wr = ai.getData(endpnt); % Get today's weight and water record - if ~isempty(wr.records) - record = wr.records(end); - else - record = struct(); - end - weight = getOr(record, 'weight_measured', NaN); % Get today's measured weight - water = getOr(record, 'water_given', 0); % Get total water given - gel = getOr(record, 'hydrogel_given', 0); % Get total gel given - weight_expected = getOr(record, 'weight_expected', NaN); - % Set colour based on weight percentage - weight_pct = (weight-wr.implant_weight)/(weight_expected-wr.implant_weight); - if weight_pct < 0.8 % Mouse below 80% original weight - colour = [0.91, 0.41, 0.17]; % Orange - weight_pct = '< 80%'; - elseif weight_pct < 0.7 % Mouse below 70% original weight - colour = 'red'; - weight_pct = '< 70%'; - else - colour = 'black'; % Mouse above 80% or no weight measured today - weight_pct = '> 80%'; - end - % Round up water remaining to the near 0.01 - remainder = obj.round(s(idx).water_requirement_remaining, 'up'); - % Set text - set(obj.WaterRequiredText, 'ForegroundColor', colour, 'String', ... - sprintf(['Subject %s requires %.2f of %.2f today\n\t '... - 'Weight today: %.2f (%s) Water today: %.2f'], obj.Subject, ... - remainder, obj.round(s(idx).water_requirement_total, 'up'), weight, ... - weight_pct, obj.round(sum([water gel]), 'down'))); - % Set WaterRemaining attribute for changeWaterText callback - obj.WaterRemaining = remainder; + + function delete(obj) + % To be called before destroying AlyxPanel object. Deletes the + % loggin timer + disp('AlyxPanel destructor called'); + if obj.RootContainer.isvalid; delete(obj.RootContainer); end + if ~isempty(obj.LoginTimer) % If there is a timer object + stop(obj.LoginTimer) % Stop the timer... + delete(obj.LoginTimer) % ... delete it... + obj.LoginTimer = []; % ... and remove it + end end - catch me - d = me.message; %FIXME: JSON no longer returned - if isfield(d, 'detail') && strcmp(d.detail, 'Not found.') - set(obj.WaterRequiredText, 'ForegroundColor', 'black',... - 'String', sprintf('Subject %s not found in alyx', obj.Subject)); + + function login(obj) + % Used both to log in and out of Alyx. Logging means to + % generate an Alyx token with which to send/request data. + % Logging out does not cause the token to expire, instead the + % token is simply deleted from this object. + + % Reset headless flag in case user wishes to retry connection + obj.AlyxInstance.Headless = false; + % Are we logging in or out? + if ~obj.AlyxInstance.IsLoggedIn % logging in + % attempt login + obj.AlyxInstance = obj.AlyxInstance.login(); % returns an instance if success, empty if you cancel + if obj.AlyxInstance.IsLoggedIn % successful + % Start log in timer, to automatically log out after 30 + % minutes of 'inactivity' (defined as not calling + % dispWaterReq) + obj.LoginTimer = timer('StartDelay', 30*60, 'TimerFcn',... + @(~,~)obj.login, 'BusyMode', 'queue', 'Name', 'Login Timer'); + start(obj.LoginTimer) + % Enable all buttons + set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); + set(obj.LoginText, 'ForegroundColor', 'black',... + 'String', ['You are logged in as ', obj.AlyxInstance.User]); % display which user is logged in + set(obj.LoginButton, 'String', 'Logout'); + + % try updating the subject selectors in other panels + newSubs = obj.AlyxInstance.listSubjects; + obj.NewExpSubject.Option = newSubs; + obj.SubjectList = newSubs; + + notify(obj, 'Connected'); % Notify listeners of login + obj.log('Logged into Alyx successfully as %s', obj.AlyxInstance.User); + + % any database subjects that weren't in the old list of + % subjects will need a folder in the main repository. + firstTimeSubs = newSubs(~ismember(newSubs, dat.listSubjects)); + for fts = 1:length(firstTimeSubs) + thisDir = fullfile(dat.reposPath('main', 'master'), firstTimeSubs{fts}); + if ~exist(thisDir, 'dir') + fprintf(1, 'making directory for %s\n', firstTimeSubs{fts}); + mkdir(thisDir); + end + end + elseif obj.AlyxInstance.Headless + % Panel inactive or login failed due to Alyx being down + set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'on'); + set(obj.LoginText, 'ForegroundColor', [0.91, 0.41, 0.17],... + 'String', 'Unable to reach Alyx, posts to be queued'); + set(obj.LoginButton, 'String', 'Retry'); % Retry button + obj.log('Failed to reach Alyx server, please retry later'); + else + obj.log('Did not log into Alyx'); + end + else % logging out + obj.AlyxInstance = obj.AlyxInstance.logout; + if ~isempty(obj.LoginTimer) % If there is a timer object + stop(obj.LoginTimer) % Stop the timer... + delete(obj.LoginTimer) % ... delete it... + obj.LoginTimer = []; % ... and remove it + end + set(obj.LoginText, 'String', 'Not logged in') + % Disable all buttons + set(findall(obj.RootContainer, '-property', 'Enable'), 'Enable', 'off') + set(obj.LoginButton, 'Enable', 'on', 'String', 'Login') % ... except the login button + notify(obj, 'Disconnected'); % Notify listeners of logout + obj.log('Logged out of Alyx'); + end + obj.dispWaterReq() end - end - end - - function changeWaterText(obj, src, ~) - % Update the panel text to show the amount of water still - % required for the subject to reach its minimum requirement. - % This text is updated before the value in the water text box - % has been posted to Alyx. For example if the user is unsure - % how much gel over the minimum they have weighed out, pressing - % return will display this without posting to Alyx - % - % See also DISPWATERREQ, GIVEWATER - if obj.AlyxInstance.IsLoggedIn && ~isempty(obj.WaterRemaining) - rem = obj.WaterRemaining; - curr = str2double(src.String); - set(obj.WaterRemainingText, 'String', sprintf('(%.2f)', rem-curr)); - end - end - - function recordWeight(obj, weight, subject) - % Post a subject's weight to Alyx. If no inputs are provided, - % create an input dialog for the user to input a weight. If no - % subject is provided, use this object's currently selected - % subject. - % - % See also VIEWSUBJECTHISTORY, VIEWALLSUBJECTS - ai = obj.AlyxInstance; - if nargin < 3; subject = obj.Subject; end - if nargin < 2 - prompt = {sprintf('weight of %s:', subject)}; - dlgTitle = 'Manual weight logging'; - numLines = 1; - defaultAns = {'',''}; - weight = inputdlg(prompt, dlgTitle, numLines, defaultAns); - if isempty(weight); return; end - end - % inputdlg returns weight as a cell, otherwise it may now be - weight = ensureCell(weight); % ensure it's a cell - % convert to double if weight is a string - weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); - try - w = postWeight(ai, weight, subject); - obj.log('Alyx weight posting succeeded: %.2f for %s', w.weight, w.subject); - catch - if ~ai.IsLoggedIn % if not logged in, save the weight for later - obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); - else - obj.log('Warning: Alyx weight posting failed!'); + + function giveWater(obj) + % Callback to the give water button. Posts the value entered + % in the text box as either liquid or gel depending on the + % state of the 'is hydrogel' check box + thisDate = now; + amount = str2double(get(obj.WaterEntry, 'String')); + type = iff(get(obj.IsHydrogel, 'Value')==1, 'Hydrogel', 'Water'); + if obj.AlyxInstance.IsLoggedIn && amount~=0 && ~isnan(amount) + wa = obj.AlyxInstance.postWater(obj.Subject, amount, thisDate, type); + if ~isempty(wa) % returned us a created water administration object successfully + obj.log('%s administration of %.2f for %s posted successfully to alyx', type, amount, obj.Subject); + end + end + % update the water required text + dispWaterReq(obj); end - end - % Update weight and refresh login timer - obj.dispWaterReq - end - - function launchSessionURL(obj) - % Launch the Webpage for the current base session in the - % default Web browser. If no session exists for today's date, - % a new base session is created accordingly. - % - % See also LAUNCHSUBJECTURL - ai = obj.AlyxInstance; - % determine whether there is a session for this subj and date - thisDate = ai.datestr(now); - sessions = ai.getData(['sessions?type=Base&subject=' obj.Subject]); - - % If the date of this latest base session is not the same date - % as today, then create a new one for today - if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), thisDate(1:10)) - % Ask user whether he/she wants to create new session - % Construct a questdlg with three options - choice = questdlg('Would you like to create a new base session?', ... - ['No base session exists for ' datestr(now, 'yyyy-mm-dd')], ... - 'Yes','No','No'); - % Handle response - switch choice - case 'Yes' - % Create our base session - d = struct; - d.subject = obj.Subject; - d.procedures = {'Behavior training/tasks'}; - d.narrative = 'auto-generated session'; - d.start_time = thisDate; - d.type = 'Base'; + + function giveFutureWater(obj) + % Open a dialog allowing one to input water submissions for + % future dates + thisDate = now; + prompt=sprintf('Enter space-separated numbers \n[tomorrow, day after that, day after that.. etc] \nEnter "0" to skip a day\nEnter "-1" to indicate training for that day'); + a=inputdlg(prompt,'Future Amounts', [1 50]); + if isempty(answer)||~obj.AlyxInstance.IsLoggedIn + return % user pressed 'Close' or 'x' + end + amt = str2num(answer{:}); % amount of water + futDates = thisDate + (1:length(amt)); %datenum of all input future dates - thisSess = ai.postData('sessions', d); - if ~isfield(thisSess,'subject') % fail - warning('Submitted base session did not return appropriate values'); - warning('Submitted data below:'); - disp(d) - warning('Return values below:'); - disp(thisSess) - return - else % success - obj.log(['Created new base session in Alyx for ' obj.Subject]); + futTrnDates = futDates(amt<0); %future training dates + futWtrDates = futDates(amt>0); %future water giving dates + amtWtrDates = amt(amt>0); %amount of water to give on future water dates + dat.saveParamProfile('WeekendWater', obj.Subject, futTrnDates); + + for d = 1:length(futWtrDates) + obj.AlyxInstance.postWater(obj.Subject, amtWtrDates(d), futWtrDates(d), 'Water'); + obj.log(['Hydrogel administration of %.2f for %s posted successfully to alyx for '... + datestr(futWtrDates(d))], amtWtrDates(d), obj.Subject); end - case 'No' - return end - else - thisSess = sessions{end}; - end - - % parse the uuid from the url in the session object - u = thisSess.url; - uuid = u(find(u=='/', 1, 'last')+1:end); - - % make the admin url - adminURL = fullfile(ai.BaseURL, 'admin', 'actions', 'session', uuid, 'change'); - - % launch the website - web(adminURL, '-browser'); - end - - function launchSubjectURL(obj) - ai = obj.AlyxInstance; - if ai.IsLoggedIn - s = ai.getData(ai.makeEndpoint(['subjects/' obj.Subject])); - subjURL = fullfile(ai.BaseURL, 'admin', 'subjects', 'subject', s.id, 'change'); % this is wrong - need uuid - web(subjURL, '-browser'); - end - end - - function viewSubjectHistory(obj, ax) - % View historical information about a subject. - % Opens a new window and plots a set of weight graphs as well - % as displaying a table with the water and weight entries for - % the selected subject. If an axes handle is provided, this - % function plots a single weight graph - - % If not logged in or 'default' is selected, return - if ~obj.AlyxInstance.IsLoggedIn||strcmp(obj.Subject, 'default'); return; end - % collect the data for the table - endpnt = sprintf('water-requirement/%s?start_date=2016-01-01&end_date=%s', obj.Subject, datestr(now, 'yyyy-mm-dd')); - wr = obj.AlyxInstance.getData(endpnt); - iw = iff(isempty(wr.implant_weight), 0, wr.implant_weight); - records = catStructs(wr.records, nan); - % no weighings found - if isempty(wr.records) - obj.log('No weight data found for subject %s', obj.Subject); - return - end - expected = [records.weight_expected]; - expected(expected==0) = nan; - dates = cellfun(@(x)datenum(x), {records.date}); - - % build the figure to show it - if nargin==1 - f = figure('Name', obj.Subject, 'NumberTitle', 'off'); % popup a new figure for this - p = get(f, 'Position'); - set(f, 'Position', [p(1) p(2) 1100 p(4)]); - histbox = uix.HBox('Parent', f, 'BackgroundColor', 'w'); - plotBox = uix.VBox('Parent', histbox, 'BackgroundColor', 'w'); - ax = axes('Parent', plotBox); - end - - plot(ax, dates, [records.weight_measured], '.-'); - hold(ax, 'on'); - plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); - plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); - box(ax, 'off'); - % Change the plot x axis limits - if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end - if nargin == 1 - set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) - else - xticks(ax, 'auto') - ax.XTickLabel = arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false); - end - ylabel(ax, 'weight (g)'); - - if nargin==1 - ax = axes('Parent', plotBox); - plot(ax, dates, ([records.weight_measured]-iw)./(expected-iw), '.-'); - hold(ax, 'on'); - plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); - plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); - box(ax, 'off'); - xlim(ax, [min(dates) max(dates)]); - set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) - ylabel(ax, 'weight as pct (%)'); - axWater = axes('Parent',plotBox); - plot(axWater, dates, obj.round([records.water_given]+[records.hydrogel_given], 'up'), '.-'); - hold(axWater, 'on'); - plot(axWater, dates, obj.round([records.hydrogel_given], 'down'), '.-'); - plot(axWater, dates, obj.round([records.water_given], 'down'), '.-'); - plot(axWater, dates, obj.round([records.water_expected], 'up'), 'r', 'LineWidth', 2.0); - box(axWater, 'off'); - xlim(axWater, [min(dates) max(dates)]); - set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) - ylabel(axWater, 'water/hydrogel (mL)'); + function dispWaterReq(obj, src, ~) + % Display the amount of water required by the selected subject + % for it to reach its minimum requirement. This function is + % also used to update the selected subject, for example it is + % this funtion to use as a callback to subject dropdown + % listeners + ai = obj.AlyxInstance; + % Set the selected subject if it is an input + if nargin>1; obj.Subject = src.Selected; end + if ~ai.IsLoggedIn + set(obj.WaterRequiredText, 'ForegroundColor', 'black',... + 'String', 'Log in to see water requirements'); + return + end + % Refresh the timer as the user isn't inactive + stop(obj.LoginTimer); start(obj.LoginTimer) + try + s = ai.getData('water-restricted-subjects'); % struct with data about restricted subjects + idx = strcmp(obj.Subject, {s.nickname}); + if ~any(idx) % Subject not on water restriction + set(obj.WaterRequiredText, 'ForegroundColor', 'black',... + 'String', sprintf('Subject %s not on water restriction', obj.Subject)); + else + % Get information on weight and water given + endpnt = sprintf('water-requirement/%s?start_date=%s&end_date=%s',... + obj.Subject, datestr(now, 'yyyy-mm-dd'),datestr(now, 'yyyy-mm-dd')); + wr = ai.getData(endpnt); % Get today's weight and water record + if ~isempty(wr.records) + record = wr.records(end); + else + record = struct(); + end + weight = getOr(record, 'weight_measured', NaN); % Get today's measured weight + water = getOr(record, 'water_given', 0); % Get total water given + gel = getOr(record, 'hydrogel_given', 0); % Get total gel given + weight_expected = getOr(record, 'weight_expected', NaN); + % Set colour based on weight percentage + weight_pct = (weight-wr.implant_weight)/(weight_expected-wr.implant_weight); + if weight_pct < 0.8 % Mouse below 80% original weight + colour = [0.91, 0.41, 0.17]; % Orange + weight_pct = '< 80%'; + elseif weight_pct < 0.7 % Mouse below 70% original weight + colour = 'red'; + weight_pct = '< 70%'; + else + colour = 'black'; % Mouse above 80% or no weight measured today + weight_pct = '> 80%'; + end + % Round up water remaining to the near 0.01 + remainder = obj.round(s(idx).water_requirement_remaining, 'up'); + % Set text + set(obj.WaterRequiredText, 'ForegroundColor', colour, 'String', ... + sprintf(['Subject %s requires %.2f of %.2f today\n\t '... + 'Weight today: %.2f (%s) Water today: %.2f'], obj.Subject, ... + remainder, obj.round(s(idx).water_requirement_total, 'up'), weight, ... + weight_pct, obj.round(sum([water gel]), 'down'))); + % Set WaterRemaining attribute for changeWaterText callback + obj.WaterRemaining = remainder; + end + catch me + d = me.message; %FIXME: JSON no longer returned + if isfield(d, 'detail') && strcmp(d.detail, 'Not found.') + set(obj.WaterRequiredText, 'ForegroundColor', 'black',... + 'String', sprintf('Subject %s not found in alyx', obj.Subject)); + end + end + end - % Create table of useful weight and water information, - % sorted by date - histTable = uitable('Parent', histbox,... - 'FontName', 'Consolas',... - 'RowName', []); - weightsByDate = num2cell([records.weight_measured]); - weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); - weightsByDate(isnan([records.weight_measured])) = {[]}; - weightPctByDate = num2cell(([records.weight_measured]-iw)./(expected-iw)); - weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); - weightPctByDate(isnan([records.weight_measured])) = {[]}; + function changeWaterText(obj, src, ~) + % Update the panel text to show the amount of water still + % required for the subject to reach its minimum requirement. + % This text is updated before the value in the water text box + % has been posted to Alyx. For example if the user is unsure + % how much gel over the minimum they have weighed out, pressing + % return will display this without posting to Alyx + % + % See also DISPWATERREQ, GIVEWATER + if obj.AlyxInstance.IsLoggedIn && ~isempty(obj.WaterRemaining) + rem = obj.WaterRemaining; + curr = str2double(src.String); + set(obj.WaterRemainingText, 'String', sprintf('(%.2f)', rem-curr)); + end + end - dat = horzcat(... - arrayfun(@(x)datestr(x), dates', 'uni', false), ... - weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.weight_expected]', 'uni', false), ... - weightPctByDate'); - waterDat = (... - num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... - [records.water_given]'+[records.hydrogel_given]', [records.water_expected]',... - [records.water_given]'+[records.hydrogel_given]'-[records.water_expected]'))); - waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); - dat = horzcat(dat, waterDat); + function recordWeight(obj, weight, subject) + % Post a subject's weight to Alyx. If no inputs are provided, + % create an input dialog for the user to input a weight. If no + % subject is provided, use this object's currently selected + % subject. + % + % See also VIEWSUBJECTHISTORY, VIEWALLSUBJECTS + ai = obj.AlyxInstance; + if nargin < 3; subject = obj.Subject; end + if nargin < 2 + prompt = {sprintf('weight of %s:', subject)}; + dlgTitle = 'Manual weight logging'; + numLines = 1; + defaultAns = {'',''}; + weight = inputdlg(prompt, dlgTitle, numLines, defaultAns); + if isempty(weight); return; end + end + % inputdlg returns weight as a cell, otherwise it may now be + weight = ensureCell(weight); % ensure it's a cell + % convert to double if weight is a string + weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); + try + w = postWeight(ai, weight, subject); + obj.log('Alyx weight posting succeeded: %.2f for %s', w.weight, w.subject); + catch + if ~ai.IsLoggedIn % if not logged in, save the weight for later + obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); + else + obj.log('Warning: Alyx weight posting failed!'); + end + end + % Update weight and refresh login timer + obj.dispWaterReq + end - set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... - 'Data', dat(end:-1:1,:),... - 'ColumnEditable', false(1,5)); - histbox.Widths = [ -1 725]; - end - end - - function viewAllSubjects(obj) - ai = obj.AlyxInstance; - if ai.IsLoggedIn - wr = ai.getData(ai.makeEndpoint('water-restricted-subjects')); - - % build a figure to show it - f = figure; % popup a new figure for this - wrBox = uix.VBox('Parent', f); - wrTable = uitable('Parent', wrBox,... - 'FontName', 'Consolas',... - 'RowName', []); + function launchSessionURL(obj) + % Launch the Webpage for the current base session in the + % default Web browser. If no session exists for today's date, + % a new base session is created accordingly. + % + % See also LAUNCHSUBJECTURL + ai = obj.AlyxInstance; + % determine whether there is a session for this subj and date + thisDate = ai.datestr(now); + sessions = ai.getData(['sessions?type=Base&subject=' obj.Subject]); + + % If the date of this latest base session is not the same date + % as today, then create a new one for today + if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), thisDate(1:10)) + % Ask user whether he/she wants to create new session + % Construct a questdlg with three options + choice = questdlg('Would you like to create a new base session?', ... + ['No base session exists for ' datestr(now, 'yyyy-mm-dd')], ... + 'Yes','No','No'); + % Handle response + switch choice + case 'Yes' + % Create our base session + d = struct; + d.subject = obj.Subject; + d.procedures = {'Behavior training/tasks'}; + d.narrative = 'auto-generated session'; + d.start_time = thisDate; + d.type = 'Base'; + + thisSess = ai.postData('sessions', d); + if ~isfield(thisSess,'subject') % fail + warning('Submitted base session did not return appropriate values'); + warning('Submitted data below:'); + disp(d) + warning('Return values below:'); + disp(thisSess) + return + else % success + obj.log(['Created new base session in Alyx for ' obj.Subject]); + end + case 'No' + return + end + else + thisSess = sessions{end}; + end + + % parse the uuid from the url in the session object + u = thisSess.url; + uuid = u(find(u=='/', 1, 'last')+1:end); + + % make the admin url + adminURL = fullfile(ai.BaseURL, 'admin', 'actions', 'session', uuid, 'change'); + + % launch the website + web(adminURL, '-browser'); + end - htmlColor = @(colorNum)reshape(dec2hex(round(colorNum'*255),2)',1,6); - % colorgen = @(colorNum,text) ['
',text,'
']; - colorgen = @(colorNum,text) ['',text,'']; + function launchSubjectURL(obj) + ai = obj.AlyxInstance; + if ai.IsLoggedIn + s = ai.getData(ai.makeEndpoint(['subjects/' obj.Subject])); + subjURL = fullfile(ai.BaseURL, 'admin', 'subjects', 'subject', s.id, 'change'); % this is wrong - need uuid + web(subjURL, '-browser'); + end + end - wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3],... - sprintf('%.2f',obj.round(x, 'up'))), {wr.water_requirement_remaining}, 'uni', false); + function viewSubjectHistory(obj, ax) + % View historical information about a subject. + % Opens a new window and plots a set of weight graphs as well + % as displaying a table with the water and weight entries for + % the selected subject. If an axes handle is provided, this + % function plots a single weight graph + + % If not logged in or 'default' is selected, return + if ~obj.AlyxInstance.IsLoggedIn||strcmp(obj.Subject, 'default'); return; end + % collect the data for the table + endpnt = sprintf('water-requirement/%s?start_date=2016-01-01&end_date=%s', obj.Subject, datestr(now, 'yyyy-mm-dd')); + wr = obj.AlyxInstance.getData(endpnt); + iw = iff(isempty(wr.implant_weight), 0, wr.implant_weight); + records = catStructs(wr.records, nan); + % no weighings found + if isempty(wr.records) + obj.log('No weight data found for subject %s', obj.Subject); + return + end + expected = [records.weight_expected]; + expected(expected==0) = nan; + dates = cellfun(@(x)datenum(x), {records.date}); + + % build the figure to show it + if nargin==1 + f = figure('Name', obj.Subject, 'NumberTitle', 'off'); % popup a new figure for this + p = get(f, 'Position'); + set(f, 'Position', [p(1) p(2) 1100 p(4)]); + histbox = uix.HBox('Parent', f, 'BackgroundColor', 'w'); + plotBox = uix.VBox('Parent', histbox, 'BackgroundColor', 'w'); + ax = axes('Parent', plotBox); + end + + plot(ax, dates, [records.weight_measured], '.-'); + hold(ax, 'on'); + plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); + plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); + box(ax, 'off'); + % Change the plot x axis limits + if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end + if nargin == 1 + set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) + else + xticks(ax, 'auto') + ax.XTickLabel = arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false); + end + ylabel(ax, 'weight (g)'); + + if nargin==1 + ax = axes('Parent', plotBox); + plot(ax, dates, ([records.weight_measured]-iw)./(expected-iw), '.-'); + hold(ax, 'on'); + plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); + plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); + box(ax, 'off'); + xlim(ax, [min(dates) max(dates)]); + set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) + ylabel(ax, 'weight as pct (%)'); + + axWater = axes('Parent',plotBox); + plot(axWater, dates, obj.round([records.water_given]+[records.hydrogel_given], 'up'), '.-'); + hold(axWater, 'on'); + plot(axWater, dates, obj.round([records.hydrogel_given], 'down'), '.-'); + plot(axWater, dates, obj.round([records.water_given], 'down'), '.-'); + plot(axWater, dates, obj.round([records.water_expected], 'up'), 'r', 'LineWidth', 2.0); + box(axWater, 'off'); + xlim(axWater, [min(dates) max(dates)]); + set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) + ylabel(axWater, 'water/hydrogel (mL)'); + + % Create table of useful weight and water information, + % sorted by date + histTable = uitable('Parent', histbox,... + 'FontName', 'Consolas',... + 'RowName', []); + weightsByDate = num2cell([records.weight_measured]); + weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); + weightsByDate(isnan([records.weight_measured])) = {[]}; + weightPctByDate = num2cell(([records.weight_measured]-iw)./(expected-iw)); + weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); + weightPctByDate(isnan([records.weight_measured])) = {[]}; + + dat = horzcat(... + arrayfun(@(x)datestr(x), dates', 'uni', false), ... + weightsByDate', ... + arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.weight_expected]', 'uni', false), ... + weightPctByDate'); + waterDat = (... + num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... + [records.water_given]'+[records.hydrogel_given]', [records.water_expected]',... + [records.water_given]'+[records.hydrogel_given]'-[records.water_expected]'))); + waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); + dat = horzcat(dat, waterDat); + + set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... + 'Data', dat(end:-1:1,:),... + 'ColumnEditable', false(1,5)); + histbox.Widths = [ -1 725]; + end + end - set(wrTable, 'ColumnName', {'Name', 'Water Required', 'Remaining Requirement'}, ... - 'Data', horzcat({wr.nickname}', ... - cellfun(@(x)sprintf('%.2f',obj.round(x, 'up')),{wr.water_requirement_total}', 'uni', false), ... - wrdat'), ... - 'ColumnEditable', false(1,3)); - end - end - - function updateWeightButton(obj, src, ~) - % Function for changing the text on the weight button to reflect the - % current weight value obtained by the scale. This function must be - % a callback for the hw.WeighingScale NewReading event. If a new - % reading isn't read for 10 sec the manual weighing option is made - % available instead. - % - % Example: - % aiPanel = eui.AlyxPanel; - % lh = event.listener(obj.WeighingScale, 'NewReading',... - % @(src,evt)aiPanel.updateWeightButton(src,evt)); - % - % See also hw.WeighingScale, eui.MControl - set(obj.WeightButton, 'String', sprintf('Record %.1fg', src.readGrams), 'Callback', @(~,~)obj.recordWeight(src.readGrams)) - obj.WeightTimer = timer('Name', 'Last Weight',... - 'TimerFcn', @(~,~)set(obj.WeightButton, 'String', 'Manual weighing', 'Callback', @(~,~)obj.recordWeight),... - 'StopFcn', @(src,~)delete(src), 'StartDelay', 10); - start(obj.WeightTimer) + function viewAllSubjects(obj) + ai = obj.AlyxInstance; + if ai.IsLoggedIn + wr = ai.getData(ai.makeEndpoint('water-restricted-subjects')); + + % build a figure to show it + f = figure; % popup a new figure for this + wrBox = uix.VBox('Parent', f); + wrTable = uitable('Parent', wrBox,... + 'FontName', 'Consolas',... + 'RowName', []); + + htmlColor = @(colorNum)reshape(dec2hex(round(colorNum'*255),2)',1,6); + % colorgen = @(colorNum,text) ['
',text,'
']; + colorgen = @(colorNum,text) ['',text,'']; + + wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3],... + sprintf('%.2f',obj.round(x, 'up'))), {wr.water_requirement_remaining}, 'uni', false); + + set(wrTable, 'ColumnName', {'Name', 'Water Required', 'Remaining Requirement'}, ... + 'Data', horzcat({wr.nickname}', ... + cellfun(@(x)sprintf('%.2f',obj.round(x, 'up')),{wr.water_requirement_total}', 'uni', false), ... + wrdat'), ... + 'ColumnEditable', false(1,3)); + end + end + + function updateWeightButton(obj, src, ~) + % Function for changing the text on the weight button to reflect the + % current weight value obtained by the scale. This function must be + % a callback for the hw.WeighingScale NewReading event. If a new + % reading isn't read for 10 sec the manual weighing option is made + % available instead. + % + % Example: + % aiPanel = eui.AlyxPanel; + % lh = event.listener(obj.WeighingScale, 'NewReading',... + % @(src,evt)aiPanel.updateWeightButton(src,evt)); + % + % See also hw.WeighingScale, eui.MControl + set(obj.WeightButton, 'String', sprintf('Record %.1fg', src.readGrams), 'Callback', @(~,~)obj.recordWeight(src.readGrams)) + obj.WeightTimer = timer('Name', 'Last Weight',... + 'TimerFcn', @(~,~)set(obj.WeightButton, 'String', 'Manual weighing', 'Callback', @(~,~)obj.recordWeight),... + 'StopFcn', @(src,~)delete(src), 'StartDelay', 10); + start(obj.WeightTimer) + end + + function log(obj, varargin) + % Function for displaying timestamped information about + % occurrences. If the LoggingDisplay property is unset, the + % message is printed to the command prompt. + % log(formatSpec, A1,... An) + % + % See also FPRINTF + message = sprintf(varargin{:}); + if ~isempty(obj.LoggingDisplay) + timestamp = datestr(now, 'dd-mm-yyyy HH:MM:SS'); + str = sprintf('[%s] %s', timestamp, message); + current = cellflat(get(obj.LoggingDisplay, 'String')); + %NB: If more that one instance of MATLAB is open, we use + %the last opened LoggingDisplay + set(obj.LoggingDisplay(end), 'String', [current; str], 'Value', numel(current) + 1); + else + fprintf(message) + end + end end - function log(obj, varargin) - % Function for displaying timestamped information about - % occurrences. If the LoggingDisplay property is unset, the - % message is printed to the command prompt. - % log(formatSpec, A1,... An) - % - % See also FPRINTF - message = sprintf(varargin{:}); - if ~isempty(obj.LoggingDisplay) - timestamp = datestr(now, 'dd-mm-yyyy HH:MM:SS'); - str = sprintf('[%s] %s', timestamp, message); - current = cellflat(get(obj.LoggingDisplay, 'String')); - %NB: If more that one instance of MATLAB is open, we use - %the last opened LoggingDisplay - set(obj.LoggingDisplay(end), 'String', [current; str], 'Value', numel(current) + 1); - else - fprintf(message) - end - end - end - - methods (Static) - function A = round(a, direction, sigFigures) - if nargin < 3; sigFigures = 2; end - c = 1*10^sigFigures; - switch direction - case 'up' - A = ceil(a*c)/c; - case 'down' - A = ceil(a*c)/c; - otherwise - A = round(a*c)/c; - end + methods (Static) + function A = round(a, direction, sigFigures) + if nargin < 3; sigFigures = 2; end + c = 1*10^sigFigures; + switch direction + case 'up' + A = ceil(a*c)/c; + case 'down' + A = ceil(a*c)/c; + otherwise + A = round(a*c)/c; + end + end end - end end \ No newline at end of file From 150a61cb73e3c2cc27f8b4981fc3e835e56418af Mon Sep 17 00:00:00 2001 From: jaib1 Date: Fri, 26 Oct 2018 16:37:03 +0100 Subject: [PATCH 190/515] Updated Output to log when giving water in AlyxPanel --- +eui/AlyxPanel.m | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 9dc3e7ab..2126838a 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -291,7 +291,7 @@ function giveWater(obj) if obj.AlyxInstance.IsLoggedIn && amount~=0 && ~isnan(amount) wa = obj.AlyxInstance.postWater(obj.Subject, amount, thisDate, type); if ~isempty(wa) % returned us a created water administration object successfully - obj.log('%s administration of %.2f for %s posted successfully to alyx', type, amount, obj.Subject); + obj.log('%s administration of %.2f for "%s" posted successfully to alyx', type, amount, obj.Subject); end end % update the water required text @@ -303,22 +303,29 @@ function giveFutureWater(obj) % future dates thisDate = now; prompt=sprintf('Enter space-separated numbers \n[tomorrow, day after that, day after that.. etc] \nEnter "0" to skip a day\nEnter "-1" to indicate training for that day'); - a=inputdlg(prompt,'Future Amounts', [1 50]); - if isempty(answer)||~obj.AlyxInstance.IsLoggedIn + amtStr=inputdlg(prompt,'Future Amounts', [1 50]); + if isempty(amtStr)||~obj.AlyxInstance.IsLoggedIn return % user pressed 'Close' or 'x' end - amt = str2num(answer{:}); % amount of water + amt = str2num(amtStr{:}); % amount of water futDates = thisDate + (1:length(amt)); %datenum of all input future dates futTrnDates = futDates(amt<0); %future training dates + dat.saveParamProfile('WeekendWater', obj.Subject, futTrnDates); + for d = 1:length(futTrnDates) + [~,day] = weekday(datestr(futTrnDates(d)), 'long'); + obj.log(['"%s" marked for training for ' day ' %s'],... + obj.Subject, datestr(futTrnDates(d), 'dd mmmm yyyy')); + end + futWtrDates = futDates(amt>0); %future water giving dates amtWtrDates = amt(amt>0); %amount of water to give on future water dates - dat.saveParamProfile('WeekendWater', obj.Subject, futTrnDates); for d = 1:length(futWtrDates) obj.AlyxInstance.postWater(obj.Subject, amtWtrDates(d), futWtrDates(d), 'Water'); - obj.log(['Hydrogel administration of %.2f for %s posted successfully to alyx for '... - datestr(futWtrDates(d))], amtWtrDates(d), obj.Subject); + [~,day] = weekday(datestr(futTrnDates(d)), 'long'); + obj.log(['Water administration of %.2f for "%s" posted successfully to alyx for ' day ' %s'],... + amtWtrDates(d), obj.Subject, datestr(futWtrDates(d), 'dd mmmm yyyy')); end end From 53bce3b245151383e747e79ca44f133f94b53677 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 29 Oct 2018 11:17:54 +0000 Subject: [PATCH 191/515] Future water bug fix, better error handling is dispWtrReq and consistent log formatting --- +eui/AlyxPanel.m | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 2126838a..73277f52 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -300,32 +300,36 @@ function giveWater(obj) function giveFutureWater(obj) % Open a dialog allowing one to input water submissions for - % future dates + % future dates. If a -1 is inputted for a particular date, the + % date is saved in the 'WeekendWater' struct of the + % paramProfiles file. This may be used to notify weekend staff + % of the experimentor's intent to train on that date. thisDate = now; - prompt=sprintf('Enter space-separated numbers \n[tomorrow, day after that, day after that.. etc] \nEnter "0" to skip a day\nEnter "-1" to indicate training for that day'); - amtStr=inputdlg(prompt,'Future Amounts', [1 50]); + prompt = sprintf(['Enter space-separated numbers \n'... + '[tomorrow, day after that, day after that.. etc] \n',... + 'Enter "0" to skip a day\nEnter "-1" to indicate training for that day\n']); + amtStr = inputdlg(prompt,'Future Amounts', [1 50]); if isempty(amtStr)||~obj.AlyxInstance.IsLoggedIn return % user pressed 'Close' or 'x' end - amt = str2num(amtStr{:}); % amount of water - futDates = thisDate + (1:length(amt)); %datenum of all input future dates + amt = str2num(amtStr{:}); %#ok % amount of water + futDates = thisDate + (1:length(amt)); % datenum of all input future dates - futTrnDates = futDates(amt<0); %future training dates + futTrnDates = futDates(amt < 0); % future training dates dat.saveParamProfile('WeekendWater', obj.Subject, futTrnDates); - for d = 1:length(futTrnDates) - [~,day] = weekday(datestr(futTrnDates(d)), 'long'); - obj.log(['"%s" marked for training for ' day ' %s'],... - obj.Subject, datestr(futTrnDates(d), 'dd mmmm yyyy')); - end + [~,days] = weekday(futTrnDates, 'long'); + delim = iff(size(days,1) < 3, ' and ', {', ', ' and '}); + obj.log('%s marked for training on %s',... + obj.Subject, strjoin(strtrim(string(days)), delim)); - futWtrDates = futDates(amt>0); %future water giving dates - amtWtrDates = amt(amt>0); %amount of water to give on future water dates + futWtrDates = futDates(amt > 0); % future water giving dates + amtWtrDates = amt(amt > 0); % amount of water to give on future water dates for d = 1:length(futWtrDates) obj.AlyxInstance.postWater(obj.Subject, amtWtrDates(d), futWtrDates(d), 'Water'); - [~,day] = weekday(datestr(futTrnDates(d)), 'long'); - obj.log(['Water administration of %.2f for "%s" posted successfully to alyx for ' day ' %s'],... - amtWtrDates(d), obj.Subject, datestr(futWtrDates(d), 'dd mmmm yyyy')); + [~,day] = weekday(futWtrDates(d), 'long'); + obj.log('Water administration of %.2f for %s posted successfully to alyx for %s %s',... + amtWtrDates(d), obj.Subject, day, datestr(futWtrDates(d), 'dd mmm yyyy')); end end @@ -393,6 +397,8 @@ function dispWaterReq(obj, src, ~) if isfield(d, 'detail') && strcmp(d.detail, 'Not found.') set(obj.WaterRequiredText, 'ForegroundColor', 'black',... 'String', sprintf('Subject %s not found in alyx', obj.Subject)); + else + rethrow(me) end end end @@ -465,7 +471,7 @@ function launchSessionURL(obj) % Ask user whether he/she wants to create new session % Construct a questdlg with three options choice = questdlg('Would you like to create a new base session?', ... - ['No base session exists for ' datestr(now, 'yyyy-mm-dd')], ... + ['No base session exists for ' datestr(now, 'yyyy-mmm-dd')], ... 'Yes','No','No'); % Handle response switch choice From 633416a4ab64aa5363d6d3f56646402762d6910c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 29 Oct 2018 14:22:26 +0000 Subject: [PATCH 192/515] Merge from dev, auto update of code every monday --- +srv/expServer.m | 2 +- .gitmodules | 4 ---- signals | 2 +- wheelAnalysis | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/+srv/expServer.m b/+srv/expServer.m index 586f03b3..be5b3081 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -20,7 +20,7 @@ function expServer(useTimelineOverride, bgColour) %% Initialisation % Pull latest changes from remote -git.update(true); +git.update(true, 2); % Update ever Monday % random seed random number generator rng('shuffle'); % communicator for receiving commands from clients diff --git a/.gitmodules b/.gitmodules index 0022ed5b..d6e7a40f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,16 +1,12 @@ [submodule "alyx-matlab"] path = alyx-matlab url = https://github.com/cortex-lab/alyx-matlab/ - branch = dev [submodule "signals"] path = signals url = https://github.com/cortex-lab/signals - branch = dev [submodule "npy-matlab"] path = npy-matlab url = https://github.com/kwikteam/npy-matlab - branch = master [submodule "wheelAnalysis"] path = wheelAnalysis url = https://github.com/cortex-lab/wheelAnalysis - branch = master diff --git a/signals b/signals index 13db4d1d..4fa58ead 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 13db4d1d6a7e11427043b514867a3807eb1f12f7 +Subproject commit 4fa58ead37f36e6a40c96f3cafc5a60227fa1be4 diff --git a/wheelAnalysis b/wheelAnalysis index 16979786..05f90203 160000 --- a/wheelAnalysis +++ b/wheelAnalysis @@ -1 +1 @@ -Subproject commit 169797868da3fe93e1581cb4d581cdc4f4d9cd34 +Subproject commit 05f902033bc834c98624d5634be3cf91b737f250 From f943f4849ba79cdeb7184c82417905a1105529dd Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 31 Oct 2018 09:20:58 +0000 Subject: [PATCH 193/515] Returns index of named arg --- cb-tools/burgbox/namedArg.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cb-tools/burgbox/namedArg.m b/cb-tools/burgbox/namedArg.m index 1da86053..5e5820fb 100644 --- a/cb-tools/burgbox/namedArg.m +++ b/cb-tools/burgbox/namedArg.m @@ -1,4 +1,4 @@ -function [present, value] = namedArg(args, name) +function [present, value, defIdx] = namedArg(args, name) %NAMEDARG Returns value from name,value argument pairs % [present, value] = NAMEDARG(args, name) returns flag for presence and % value of the argument 'name' in a list potentially containing adjacent From e4cdf247ac6354600eb319fcb17db4b957bb7196 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 31 Oct 2018 09:39:44 +0000 Subject: [PATCH 194/515] Bug fix and SPX222 support --- +hw/WeighingScale.m | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/+hw/WeighingScale.m b/+hw/WeighingScale.m index 1a2630a0..f674802a 100644 --- a/+hw/WeighingScale.m +++ b/+hw/WeighingScale.m @@ -2,15 +2,18 @@ %HW.WEIGHINGSCALE Interface to a weighing scale connected via serial % Allows you to read the current weight from scales and tare it. This % class has been tested only with the ES-300HA 300gx0.01g Precision - % Scale + RS232 to USB Converter. + % Scale, and Ohaus SPX222 Scout Portable Balance 220G x 0.01g + RS232 + % to USB Converter. % % Part of Rigbox - - % 2013-02 CB created + + % 2013-02 CB created properties + Name = 'ES-300HA' % 'SPX222' ComPort = 'COM1' - TareCommand = hex2dec('54') + TareCommand = hex2dec('54') % For SPX222 use 'T' + FormatSpec = '%s %f %*s' % For SPX222 use '%f' Port = [] end @@ -38,6 +41,15 @@ function init(obj) set(obj.Port, 'BytesAvailableFcn', @obj.onBytesAvail); fopen(obj.Port); fprintf('Opened scales on "%s"\n', obj.ComPort); + switch obj.Name + case 'SPX222' + % Optional settings may be set manually instead + fprintf(obj.Port, 'IP'); % Auto print stable non-zero weight and stable zero reading + fprintf(obj.Port, '1M'); % Weight mode + fprintf(obj.Port, '1U'); % Weight unit grammes + otherwise + % Do nothing + end end end @@ -54,13 +66,14 @@ function delete(obj) cleanup(obj); end - function onBytesAvail(obj, src, evt) + function onBytesAvail(obj, src, ~) nr = src.BytesAvailable/13; for i = 1:nr - d = sscanf(fscanf(src),'%s %f %*s'); - g = d(2); - if d(1) == 45 - g = -g; + g = sscanf(fscanf(src), obj.FormatSpec); + if length(g) > 1 && g(1) == 45 + g = -g(2); % 45 == '-' + elseif length(g) > 1 && g(1) == 43 + g = g(2); % 43 == '+' end obj.LastGrams = g; notify(obj, 'NewReading'); @@ -69,4 +82,3 @@ function onBytesAvail(obj, src, evt) end end - From 1c05914056d57577d0e669365bc84b3025c0ebea Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 31 Oct 2018 11:25:09 +0000 Subject: [PATCH 195/515] Updates to signals & wheelAnalysis modules --- signals | 2 +- wheelAnalysis | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/signals b/signals index 13db4d1d..51f56c0d 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 13db4d1d6a7e11427043b514867a3807eb1f12f7 +Subproject commit 51f56c0d90ed2232eb3255a1773d45ad695adaf4 diff --git a/wheelAnalysis b/wheelAnalysis index 16979786..05f90203 160000 --- a/wheelAnalysis +++ b/wheelAnalysis @@ -1 +1 @@ -Subproject commit 169797868da3fe93e1581cb4d581cdc4f4d9cd34 +Subproject commit 05f902033bc834c98624d5634be3cf91b737f250 From 7148e9ef5ed20fb261ada2444441407092611b93 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Wed, 31 Oct 2018 13:14:37 +0000 Subject: [PATCH 196/515] commentings on SignalsExp plus last signals subrepo commit --- +exp/SignalsExp.m | 1789 +++++++++++++++++++++++---------------------- 1 file changed, 900 insertions(+), 889 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 789ab556..679f18d2 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -1,921 +1,932 @@ classdef SignalsExp < handle - %EXP.SIGNALSEXP Base class for stimuli-delivering experiments - % The class defines a framework for event- and state-based experiments. - % Visual and auditory stimuli can be controlled by experiment phases. - % Phases changes are managed by an event-handling system. - % - % Part of Rigbox - - % 2012-11 CB created - - properties - %An array of event handlers. Each should specify the name of the - %event that activates it, callback functions to be executed when - %activated and an optional delay between the event and activation. - %They should be objects of class EventHandler. - EventHandlers = exp.EventHandler.empty - - %Timekeeper used by the experiment. Clocks return the current time. See - %the Clock class definition for more information. - Clock = hw.ptb.Clock - - %Key for terminating an experiment whilst running. Shoud be a - %Psychtoolbox keyscan code (see PTB KbName function). - QuitKey = KbName('q') - - PauseKey = KbName('esc') %Key for pausing an experiment - - %String description of the type of experiment, to be saved into the - %block data field 'expType'. - Type = '' - - %Reference for the rig that this experiment is being run on, to be - %saved into the block data field 'rigName'. - RigName - - %Communcator object for sending signals updates to mc. Set by - %expServer - Communicator = io.DummyCommunicator - - %Delay (secs) before starting main experiment phase after experiment - %init phase has completed - PreDelay = 0 - - %Delay (secs) before beginning experiment cleanup phase after - %main experiment phase has completed (assuming an immediate abort - %wasn't requested). - PostDelay = 0 - - %Flag indicating whether the experiment is paused - IsPaused = false - - %Holds the wheel object, 'mouseInput' from the rig object. See also - %USERIG, HW.DAQROTARYENCODER - Wheel - - %Holds the object for interating with the lick detector. See also - %HW.DAQEDGECOUNTER - LickDetector - - %Holds the object for interating with the DAQ outputs (reward valve, - %etc.) See also HW.DAQCONTROLLER - DaqController - - %Get the handle to the PTB window opened by expServer - StimWindowPtr - - TextureById - - LayersByStim - - %Occulus viewing model - Occ - - Time - - Inputs - - Outputs - - Events - - Visual - - Audio % = aud.AudioRegistry - - %Holds the parameters structure for this experiment - Params - - ParamsLog - - %The bounds for the photodiode square - SyncBounds - - %Sync colour cycle (usually [0, 255]) - cycles through these each - %time the screen flips. - SyncColourCycle - - %Index into SyncColourCycle for next sync colour - NextSyncIdx - - %Alyx instance from client. See also SAVEDATA - AlyxInstance = [] - end - - properties (SetAccess = protected) - %Number of stimulus window flips - StimWindowUpdateCount = 0 - - %Data from the currently running experiment, if any. - Data = struct - - %Currently active phases of the experiment. Cell array of their names - %(i.e. strings) - ActivePhases = {} - - Listeners - - Net - - SignalUpdates = struct('name', cell(500,1), 'value', cell(500,1), 'timestamp', cell(500,1)) - NumSignalUpdates = 0 - - end - - properties (Access = protected) - %Set triggers awaiting activation: a list of Triggered objects, which - %are awaiting activation pending completion of their delay period. - Pending - - IsLooping = false %flag indicating whether to continue in experiment loop - - AsyncFlipping = false - - StimWindowInvalid = false - end - - methods - function obj = SignalsExp(paramStruct, rig) - clock = rig.clock; - clockFun = @clock.now; - obj.TextureById = containers.Map('KeyType', 'char', 'ValueType', 'uint32'); - obj.LayersByStim = containers.Map; - obj.Inputs = sig.Registry(clockFun); - obj.Outputs = sig.Registry(clockFun); - obj.Visual = StructRef; - obj.Audio = audstream.Registry(rig.audioDevices); - obj.Events = sig.Registry(clockFun); - %% configure signals - net = sig.Net; - obj.Net = net; - obj.Time = net.origin('t'); - obj.Events.expStart = net.origin('expStart'); - obj.Events.newTrial = net.origin('newTrial'); - obj.Events.expStop = net.origin('expStop'); - obj.Inputs.wheel = net.origin('wheel'); - obj.Inputs.lick = net.origin('lick'); - obj.Inputs.keyboard = net.origin('keyboard'); - % get global parameters & conditional parameters structs - [~, globalStruct, allCondStruct] = toConditionServer(... - exp.Parameters(paramStruct)); - % start the first trial after expStart - advanceTrial = net.origin('advanceTrial'); - % configure parameters signal - globalPars = net.origin('globalPars'); - allCondPars = net.origin('condPars'); - [obj.Params, hasNext, obj.Events.repeatNum] = exp.trialConditions(... - globalPars, allCondPars, advanceTrial); - - obj.Events.trialNum = obj.Events.newTrial.scan(@plus, 0); % track trial number - - lastTrialOver = then(~hasNext, true); - -% obj.Events.expStop = then(~hasNext, true); - % run experiment definition - if ischar(paramStruct.defFunction) - expDefFun = fileFunction(paramStruct.defFunction); - obj.Data.expDef = paramStruct.defFunction; - else - expDefFun = paramStruct.defFunction; - obj.Data.expDef = func2str(expDefFun); - end - fprintf('takes %i args\n', nargout(expDefFun)); - expDefFun(obj.Time, obj.Events, obj.Params, obj.Visual, obj.Inputs,... - obj.Outputs, obj.Audio); - % listeners - obj.Listeners = [ - obj.Events.expStart.map(true).into(advanceTrial) %expStart signals advance - obj.Events.endTrial.into(advanceTrial) %endTrial signals advance - advanceTrial.map(true).keepWhen(hasNext).into(obj.Events.newTrial) %newTrial if more - lastTrialOver.into(obj.Events.expStop) %newTrial if more - onValue(obj.Events.expStop, @(~)quit(obj));]; -% obj.Events.trialNum.onValue(fun.partial(@fprintf, 'trial %i started\n'))]; - % initialise the parameter signals - globalPars.post(rmfield(globalStruct, 'defFunction')); - allCondPars.post(allCondStruct); - %% data struct - -% obj.Params = obj.Params.map(@(v)v, [], @(n,s)sig.Logger([n '[L]'],s)); - %initialise stim window frame times array, large enough for ~2 hours - obj.Data.stimWindowUpdateTimes = zeros(60*60*60*2, 1); - obj.Data.stimWindowRenderTimes = zeros(60*60*60*2, 1); -% obj.Data.stimWindowUpdateLags = zeros(60*60*60*2, 1); - obj.ParamsLog = obj.Params.log(); - obj.useRig(rig); + %EXP.SIGNALSEXP Base class for stimuli-delivering experiments + % The class defines a framework for event- and state-based experiments. + % Visual and auditory stimuli can be controlled by experiment phases. + % Phases changes are managed by an event-handling system. + % + % Part of Rigbox + + % 2012-11 CB created + + %% properties (default - all public) + + properties + %An array of event handlers. Each should specify the name of the + %event that activates it, callback functions to be executed when + %activated and an optional delay between the event and activation. + %They should be objects of class EventHandler. + EventHandlers = exp.EventHandler.empty + + %Timekeeper used by the experiment. Clocks return the current time. See + %the Clock class definition for more information. + Clock = hw.ptb.Clock + + %Key for terminating an experiment whilst running. Shoud be a + %Psychtoolbox keyscan code (see PTB KbName function). + QuitKey = KbName('q') + + PauseKey = KbName('esc') %Key for pausing an experiment + + %String description of the type of experiment, to be saved into the + %block data field 'expType'. + Type = '' + + %Reference for the rig that this experiment is being run on, to be + %saved into the block data field 'rigName'. + RigName + + %Communcator object for sending signals updates to mc. Set by + %expServer + Communicator = io.DummyCommunicator + + %Delay (secs) before starting main experiment phase after experiment + %init phase has completed + PreDelay = 0 + + %Delay (secs) before beginning experiment cleanup phase after + %main experiment phase has completed (assuming an immediate abort + %wasn't requested). + PostDelay = 0 + + %Flag indicating whether the experiment is paused + IsPaused = false + + %Holds the wheel object, 'mouseInput' from the rig object. See also + %USERIG, HW.DAQROTARYENCODER + Wheel + + %Holds the object for interating with the lick detector. See also + %HW.DAQEDGECOUNTER + LickDetector + + %Holds the object for interating with the DAQ outputs (reward valve, + %etc.) See also HW.DAQCONTROLLER + DaqController + + %Get the handle to the PTB window opened by expServer + StimWindowPtr + + TextureById + + LayersByStim + + %Occulus viewing model + Occ + + Time + + Inputs + + Outputs + + Events + + Visual + + Audio % = aud.AudioRegistry + + %Holds the parameters structure for this experiment + Params + + ParamsLog + + %The bounds for the photodiode square + SyncBounds + + %Sync colour cycle (usually [0, 255]) - cycles through these each + %time the screen flips. + SyncColourCycle + + %Index into SyncColourCycle for next sync colour + NextSyncIdx + + %Alyx instance from client. See also SAVEDATA + AlyxInstance = [] end - function useRig(obj, rig) - obj.Clock = rig.clock; - obj.Data.rigName = rig.name; - obj.SyncBounds = rig.stimWindow.SyncBounds; - obj.SyncColourCycle = rig.stimWindow.SyncColourCycle; - obj.NextSyncIdx = 1; - obj.StimWindowPtr = rig.stimWindow.PtbHandle; - obj.Occ = vis.init(obj.StimWindowPtr); - if isfield(rig, 'screens') - obj.Occ.screens = rig.screens; - else - warning('squeak:hw', 'No screen configuration specified. Visual locations will be wrong.'); - end - obj.DaqController = rig.daqController; - obj.Wheel = rig.mouseInput; - if isfield(rig, 'lickDetector') - obj.LickDetector = rig.lickDetector; - end - if ~isempty(obj.DaqController.SignalGenerators) - outputNames = fieldnames(obj.Outputs); % Get list of all outputs specified in expDef function - for m = 1:length(outputNames) - id = find(strcmp(outputNames{m},... - obj.DaqController.ChannelNames)); % Find matching channel from rig hardware file - if id % if the output is present, create callback - obj.Listeners = [obj.Listeners - obj.Outputs.(outputNames{m}).onValue(@(v)obj.DaqController.command([zeros(size(v,1),id-1) v])) % pad value with zeros in order to output to correct channel - obj.Outputs.(outputNames{m}).onValue(@(v)fprintf('delivering output of %.2f\n',v)) - ]; - elseif strcmp(outputNames{m}, 'reward') % special case; rewardValve is always first signals generator in list - obj.Listeners = [obj.Listeners - obj.Outputs.reward.onValue(@(v)obj.DaqController.command(v)) - obj.Outputs.reward.onValue(@(v)fprintf('delivering reward of %.2f\n', v)) - ]; - end - end - end - end - - function abortPendingHandlers(obj, handler) - if nargin < 2 - % Sets all pending triggers inactive - [obj.Pending(:).isActive] = deal(false); - else - % Sets pending triggers for specified handler inactive - abortList = ([obj.Pending.handler] == handler); - [obj.Pending(abortList).isActive] = deal(false); - end - end + %% properties (SetAccess = protected) - function startPhase(obj, name, time) - % Starts a phase - % - % startPhase(NAME, TIME) causes a phase to start. The phase is added - % to the list of active phases. The change is also signalled to any - % interested triggers as having occured at TIME. - % - % Note: The time specified is signalled to the triggers, which is - % important for maintaining rigid timing offsets even if there are - % delays in calling this function. e.g. if a trigger is set to go off - % one second after a phase starts, the trigger will become due one - % second after the time specified, *not* one second from calling this - % function. - - % make sure the phase isn't already active - if ~any(strcmpi(obj.ActivePhases, name)) - % add the phase from list - obj.ActivePhases = [obj.ActivePhases; name]; - - % action any triggers contingent on this phase change - fireEvent(obj, exp.EventInfo([name 'Started'], time, obj)); - end + properties (SetAccess = protected) + %Number of stimulus window flips + StimWindowUpdateCount = 0 + + %Data from the currently running experiment, if any. + Data = struct + + %Currently active phases of the experiment. Cell array of their names + %(i.e. strings) + ActivePhases = {} + + Listeners + + Net + + SignalUpdates = struct('name', cell(500,1), 'value', cell(500,1), 'timestamp', cell(500,1)) + NumSignalUpdates = 0 + end - - function endPhase(obj, name, time) - % Ends a phase - % - % endPhase(NAME, TIME) causes a phase to end. The phase is removed - % from the list of active phases. The event is also signalled to any - % interested triggers as having occured at TIME. - % - % Note: The time specified is signalled to the triggers, which is - % important for maintaining rigid timing offsets even if there are - % delays in calling this function. e.g. if a trigger is set to go off - % one second after a phase starts, the trigger will become due one - % second after the time specified, *not* one second from calling this - % function. - - % make sure the phase is active - if any(strcmpi(obj.ActivePhases, name)) - % remove the phase from list - obj.ActivePhases(strcmpi(obj.ActivePhases, name)) = []; - - % action any triggers contingent on this phase change - fireEvent(obj, exp.EventInfo([name 'Ended'], time, obj)); - end - end - function addEventHandler(obj, handler, varargin) - % Adds one or more event handlers - % - % addEventHandler(HANLDER) adds one or more handlers specified by the - % HANLDER parameter (either a single object of class EventHandler, or - % an array of them), to this experiment's list of handlers. - if iscell(handler) - handler = cell2mat(handler); - end - obj.EventHandlers = [obj.EventHandlers; handler(:)]; - if ~isempty(varargin) - % deal with extra handle arguments recursively - addEventHandler(obj, varargin{:}); - end + %% properties (SetAccess && GetAccess = protected) + + properties (Access = protected) + %Set triggers awaiting activation: a list of Triggered objects, which + %are awaiting activation pending completion of their delay period. + Pending + + IsLooping = false %flag indicating whether to continue in experiment loop + + AsyncFlipping = false + + StimWindowInvalid = false end - function data = run(obj, ref) - % Runs the experiment - % - % run(REF) will start the experiment running, first initialising - % everything, then running the experiment loop until the experiment - % is complete. REF is a reference to be saved with the block data - % under the 'expRef' field, and will be used to ascertain the - % location to save the data into. If REF is an empty, i.e. [], the - % data won't be saved. - - if ~isempty(ref) - %ensure experiment ref exists - assert(dat.expExists(ref), 'Experiment ref ''%s'' does not exist', ref); - end - - %do initialisation - init(obj); - - obj.Data.expRef = ref; %record the experiment reference - - %Trigger the 'experimentInit' event so any handlers will be called - initInfo = exp.EventInfo('experimentInit', obj.Clock.now, obj); - fireEvent(obj, initInfo); - - %set pending handler to begin the experiment 'PreDelay' secs from now - start = exp.EventHandler('experimentInit', exp.StartPhase('experiment')); - start.addCallback(@(varargin) obj.Events.expStart.post(ref)); - obj.Pending = dueHandlerInfo(obj, start, initInfo, obj.Clock.now + obj.PreDelay); - - %refresh the stimulus window - Screen('Flip', obj.StimWindowPtr); - - try - % start the experiment loop - mainLoop(obj); - - %post comms notification with event name and time - if isempty(obj.AlyxInstance) - post(obj, 'AlyxRequest', obj.Data.expRef); %request token from client - pause(0.2) + %% methods (default - all public) + + methods + function obj = SignalsExp(paramStruct, rig) + % configure clock, ...? + clock = rig.clock; %don't like shadowing the clock fn here... + clockFun = @clock.now; + obj.TextureById = containers.Map('KeyType', 'char', 'ValueType', 'uint32'); + obj.LayersByStim = containers.Map; + obj.Inputs = sig.Registry(clockFun); + obj.Outputs = sig.Registry(clockFun); + obj.Visual = StructRef; + obj.Audio = audstream.Registry(rig.audioDevices); + obj.Events = sig.Registry(clockFun); + % configure signals + net = sig.Net; + obj.Net = net; + obj.Time = net.origin('t'); + obj.Events.expStart = net.origin('expStart'); + obj.Events.newTrial = net.origin('newTrial'); + obj.Events.expStop = net.origin('expStop'); + obj.Inputs.wheel = net.origin('wheel'); + obj.Inputs.lick = net.origin('lick'); + obj.Inputs.keyboard = net.origin('keyboard'); + % get global parameters & conditional parameters structs + [~, globalStruct, allCondStruct] = toConditionServer(... + exp.Parameters(paramStruct)); + % start the first trial after expStart + advanceTrial = net.origin('advanceTrial'); + % configure parameters signal + globalPars = net.origin('globalPars'); + allCondPars = net.origin('condPars'); + [obj.Params, hasNext, obj.Events.repeatNum] = exp.trialConditions(... + globalPars, allCondPars, advanceTrial); + + obj.Events.trialNum = obj.Events.newTrial.scan(@plus, 0); % track trial number + + lastTrialOver = then(~hasNext, true); + + % obj.Events.expStop = then(~hasNext, true); + % run experiment definition + if ischar(paramStruct.defFunction) + expDefFun = fileFunction(paramStruct.defFunction); + obj.Data.expDef = paramStruct.defFunction; + else + expDefFun = paramStruct.defFunction; + obj.Data.expDef = func2str(expDefFun); + end + fprintf('takes %i args\n', nargout(expDefFun)); + expDefFun(obj.Time, obj.Events, obj.Params, obj.Visual, obj.Inputs,... + obj.Outputs, obj.Audio); + % listeners + obj.Listeners = [ + obj.Events.expStart.map(true).into(advanceTrial) %expStart signals advance + obj.Events.endTrial.into(advanceTrial) %endTrial signals advance + advanceTrial.map(true).keepWhen(hasNext).into(obj.Events.newTrial) %newTrial if more + lastTrialOver.into(obj.Events.expStop) %newTrial if more + onValue(obj.Events.expStop, @(~)quit(obj));]; + % obj.Events.trialNum.onValue(fun.partial(@fprintf, 'trial %i started\n'))]; + % initialise the parameter signals + globalPars.post(rmfield(globalStruct, 'defFunction')); + allCondPars.post(allCondStruct); + % data struct + + % obj.Params = obj.Params.map(@(v)v, [], @(n,s)sig.Logger([n '[L]'],s)); + % initialise stim window frame times array, large enough for ~2 hours + obj.Data.stimWindowUpdateTimes = zeros(60*60*60*2, 1); + obj.Data.stimWindowRenderTimes = zeros(60*60*60*2, 1); + % obj.Data.stimWindowUpdateLags = zeros(60*60*60*2, 1); + obj.ParamsLog = obj.Params.log(); + obj.useRig(rig); end - %Trigger the 'experimentCleanup' event so any handlers will be called - cleanupInfo = exp.EventInfo('experimentCleanup', obj.Clock.now, obj); - fireEvent(obj, cleanupInfo); + function useRig(obj, rig) + obj.Clock = rig.clock; + obj.Data.rigName = rig.name; + obj.SyncBounds = rig.stimWindow.SyncBounds; + obj.SyncColourCycle = rig.stimWindow.SyncColourCycle; + obj.NextSyncIdx = 1; + obj.StimWindowPtr = rig.stimWindow.PtbHandle; + obj.Occ = vis.init(obj.StimWindowPtr); + if isfield(rig, 'screens') + obj.Occ.screens = rig.screens; + else + warning('squeak:hw', 'No screen configuration specified. Visual locations will be wrong.'); + end + obj.DaqController = rig.daqController; + obj.Wheel = rig.mouseInput; + if isfield(rig, 'lickDetector') + obj.LickDetector = rig.lickDetector; + end + if ~isempty(obj.DaqController.SignalGenerators) + outputNames = fieldnames(obj.Outputs); % Get list of all outputs specified in expDef function + for m = 1:length(outputNames) + id = find(strcmp(outputNames{m},... + obj.DaqController.ChannelNames)); % Find matching channel from rig hardware file + if id % if the output is present, create callback + obj.Listeners = [obj.Listeners + obj.Outputs.(outputNames{m}).onValue(@(v)obj.DaqController.command([zeros(size(v,1),id-1) v])) % pad value with zeros in order to output to correct channel + obj.Outputs.(outputNames{m}).onValue(@(v)fprintf('delivering output of %.2f\n',v)) + ]; + elseif strcmp(outputNames{m}, 'reward') % special case; rewardValve is always first signals generator in list + obj.Listeners = [obj.Listeners + obj.Outputs.reward.onValue(@(v)obj.DaqController.command(v)) + obj.Outputs.reward.onValue(@(v)fprintf('delivering reward of %.2f\n', v)) + ]; + end + end + end + end - %do our cleanup - cleanup(obj); + function abortPendingHandlers(obj, handler) + if nargin < 2 + % Sets all pending triggers inactive + [obj.Pending(:).isActive] = deal(false); + else + % Sets pending triggers for specified handler inactive + abortList = ([obj.Pending.handler] == handler); + [obj.Pending(abortList).isActive] = deal(false); + end + end - %return the data structure that has been built up - data = obj.Data; + function startPhase(obj, name, time) + % Starts a phase + % + % startPhase(NAME, TIME) causes a phase to start. The phase is added + % to the list of active phases. The change is also signalled to any + % interested triggers as having occured at TIME. + % + % Note: The time specified is signalled to the triggers, which is + % important for maintaining rigid timing offsets even if there are + % delays in calling this function. e.g. if a trigger is set to go off + % one second after a phase starts, the trigger will become due one + % second after the time specified, *not* one second from calling this + % function. + + % make sure the phase isn't already active + if ~any(strcmpi(obj.ActivePhases, name)) + % add the phase from list + obj.ActivePhases = [obj.ActivePhases; name]; - if ~isempty(ref) - saveData(obj); %save the data + % action any triggers contingent on this phase change + fireEvent(obj, exp.EventInfo([name 'Started'], time, obj)); + end end - catch ex - %mark that an exception occured in the block data, then save - obj.Data.endStatus = 'exception'; - obj.Data.exceptionMessage = ex.message; - if ~isempty(ref) - saveData(obj); %save the data + + function endPhase(obj, name, time) + % Ends a phase + % + % endPhase(NAME, TIME) causes a phase to end. The phase is removed + % from the list of active phases. The event is also signalled to any + % interested triggers as having occured at TIME. + % + % Note: The time specified is signalled to the triggers, which is + % important for maintaining rigid timing offsets even if there are + % delays in calling this function. e.g. if a trigger is set to go off + % one second after a phase starts, the trigger will become due one + % second after the time specified, *not* one second from calling this + % function. + + % make sure the phase is active + if any(strcmpi(obj.ActivePhases, name)) + % remove the phase from list + obj.ActivePhases(strcmpi(obj.ActivePhases, name)) = []; + + % action any triggers contingent on this phase change + fireEvent(obj, exp.EventInfo([name 'Ended'], time, obj)); + end end - ensureWindowReady(obj); % complete any outstanding refresh - %rethrow the exception - rethrow(ex) - end - end - - function bool = inPhase(obj, name) - % Reports whether currently in specified phase - % - % inPhase(NAME) checks whether the experiment is currently in the - % phase called NAME. - bool = any(strcmpi(obj.ActivePhases, name)); - end - - function log(obj, field, value) - % Logs the value in the experiment data - if isfield(obj.Data, field) - obj.Data.(field) = [obj.Data.(field) value]; - else - obj.Data.(field) = value; - end - end - - function quit(obj, immediately) - if isempty(obj.Events.expStop.Node.CurrValue) - obj.Events.expStop.post(true); - end - %stop delay timers. todo: need to use a less global tag - tmrs = timerfind('Tag', 'sig.delay'); - if ~isempty(tmrs) - stop(tmrs); - delete(tmrs); - end - - % set any pending handlers inactive - abortPendingHandlers(obj); - - % clear all phases except 'experiment' "dirtily", i.e. without - % setting off any triggers for those phases. - % *** IN FUTURE MAY CHANGE SO THAT WE DO END TRIAL CLEANLY *** - if nargin < 2 - immediately = false; - end - - if inPhase(obj, 'experiment') - obj.ActivePhases = {'experiment'}; % clear active phases except experiment - % end the experiment phase "cleanly", i.e. with triggers - endPhase(obj, 'experiment', obj.Clock.now); - else - obj.ActivePhases = {}; %clear active phases - end - - if immediately - %flag as 'aborted' meaning terminated early, and as quickly as possible - obj.Data.endStatus = 'aborted'; - else - %flag as 'quit', meaning quit before all trials were naturally complete, - %but still shut down with usual cleanup delays etc - obj.Data.endStatus = 'quit'; - end - - if immediately || obj.PostDelay == 0 - obj.IsLooping = false; %unset looping flag now - else - %add a pending handler to unset looping flag - %NB, since we create a pending item directly, the EventHandler delay - %and triggering event name are only set for clarity and wont be - %used - endExp = exp.EventHandler('experimentEnded'); %event name just for clarity - endExp.Delay = obj.PostDelay; %delay just for clarity - endExp.addCallback(@stopLooping); - pending = dueHandlerInfo(obj, endExp, [], obj.Clock.now + obj.PostDelay); - obj.Pending = [obj.Pending, pending]; - end - - function stopLooping(varargin) - obj.IsLooping = false; - end - end - - function ensureWindowReady(obj) - % complete any outstanding asynchronous flip - if obj.AsyncFlipping - % wait for flip to complete, and record the time - time = Screen('AsyncFlipEnd', obj.StimWindowPtr); - obj.AsyncFlipping = false; - time = fromPtb(obj.Clock, time); %convert ptb/sys time to our clock's time -% assert(obj.Data.stimWindowUpdateTimes(obj.StimWindowUpdateCount) == 0); - obj.Data.stimWindowUpdateTimes(obj.StimWindowUpdateCount) = time; -% lag = time - obj.Data.stimWindowRenderTimes(obj.StimWindowUpdateCount); -% obj.Data.stimWindowUpdateLags(obj.StimWindowUpdateCount) = lag; - end - end - - function queueSignalUpdate(obj, name, value) - timestamp = clock; - nupdates = obj.NumSignalUpdates; - if nupdates == length(obj.SignalUpdates) - %grow message queue by doubling in size - obj.SignalUpdates(2*end+1).value = []; - end - idx = nupdates + 1; - obj.SignalUpdates(idx).name = name; - obj.SignalUpdates(idx).value = value; - obj.SignalUpdates(idx).timestamp = timestamp; - obj.NumSignalUpdates = idx; - end - - function post(obj, id, msg) - send(obj.Communicator, id, msg); - end - - function sendSignalUpdates(obj) - try - if obj.NumSignalUpdates > 0 - post(obj, 'signals', obj.SignalUpdates(1:obj.NumSignalUpdates)); + + function addEventHandler(obj, handler, varargin) + % Adds one or more event handlers + % + % addEventHandler(HANLDER) adds one or more handlers specified by the + % HANLDER parameter (either a single object of class EventHandler, or + % an array of them), to this experiment's list of handlers. + if iscell(handler) + handler = cell2mat(handler); + end + obj.EventHandlers = [obj.EventHandlers; handler(:)]; + if ~isempty(varargin) + % deal with extra handle arguments recursively + addEventHandler(obj, varargin{:}); + end end - catch ex - warning(getReport(ex)); - end - obj.NumSignalUpdates = 0; - end - - function loadVisual(obj, name) - %% configure signals - layersSig = obj.Visual.(name).Node.CurrValue.layers; - obj.Listeners = [obj.Listeners - layersSig.onValue(fun.partial(@obj.newLayerValues, name))]; - newLayerValues(obj, name, layersSig.Node.CurrValue); - -% %% load textures -% layerData = obj.LayersByStim(name); -% Screen('BeginOpenGL', win); -% try -% for ii = 1:numel(layerData) -% id = layerData(ii).textureId; -% if ~obj.TextureById.isKey(id) -% obj.TextureById(id) = ... -% vis.loadLayerTextures(layerData(ii)); -% end -% end -% catch glEx -% Screen('EndOpenGL', win); -% rethrow(glEx); -% end -% Screen('EndOpenGL', win); - end - - function newLayerValues(obj, name, val) -% fprintf('new layer value for %s\n', name); -% show = [val.show] - if isKey(obj.LayersByStim, name) - prev = obj.LayersByStim(name); - prevshow = any([prev.show]); - else - prevshow = false; - end - obj.LayersByStim(name) = val; - - if any([val.show]) || prevshow - obj.StimWindowInvalid = true; - end - - end - - function delete(obj) - disp('delete exp.SqueakExp'); - obj.Net.delete(); - end - end - - methods (Access = protected) - function init(obj) - % Performs initialisation before running - % - % init() is called when the experiment is run before the experiment - % loop begins. Subclasses can override to perform their own - % initialisation, but must chain a call to this. - - % create and initialise a key press queue for responding to input - KbQueueCreate(); - KbQueueStart(); - - % MATLAB time stamp for starting the experiment - obj.Data.startDateTime = now; - obj.Data.startDateTimeStr = datestr(obj.Data.startDateTime); - - %init end status to nothing - obj.Data.endStatus = []; - - % load each visual stimulus - cellfun(@obj.loadVisual, fieldnames(obj.Visual)); - % each event signal should send signal updates - queuefun = @(n,s)s.onValue(fun.partial(@queueSignalUpdate, obj, n)); - evtlist = mapToCell(@(n,v)queuefun(['events.' n],v),... - fieldnames(obj.Events), struct2cell(obj.Events)); - outlist = mapToCell(@(n,v)queuefun(['outputs.' n],v),... - fieldnames(obj.Outputs), struct2cell(obj.Outputs)); - inlist = mapToCell(@(n,v)queuefun(['inputs.' n],v),... - fieldnames(obj.Inputs), struct2cell(obj.Inputs)); - parslist = queuefun('pars', obj.Params); - obj.Listeners = vertcat(obj.Listeners, ... - evtlist(:), outlist(:), inlist(:), parslist(:)); - end - - function cleanup(obj) - % Performs cleanup after experiment completes - % - % cleanup() is called when the experiment is run after the experiment - % loop completes. Subclasses can override to perform their own - % cleanup, but must chain a call to this. - - stopdatetime = now; - %clear the stimulus window - Screen('Flip', obj.StimWindowPtr); - - % collate the logs - %events - obj.Data.events = logs(obj.Events, obj.Clock.ReferenceTime); - %params - parsLog = obj.ParamsLog.Node.CurrValue; - obj.Data.paramsValues = [parsLog.value]; - obj.Data.paramsTimes = [parsLog.time]; - %inputs - obj.Data.inputs = logs(obj.Inputs, obj.Clock.ReferenceTime); - %outputs - obj.Data.outputs = logs(obj.Outputs, obj.Clock.ReferenceTime); - %audio -% obj.Data.audio = logs(audio, clockZeroTime); - - % MATLAB time stamp for ending the experiment - obj.Data.endDateTime = stopdatetime; - obj.Data.endDateTimeStr = datestr(obj.Data.endDateTime); - - % some useful data - obj.Data.duration = etime(... - datevec(obj.Data.endDateTime), datevec(obj.Data.startDateTime)); - - %clip the stim window update times array - obj.Data.stimWindowUpdateTimes((obj.StimWindowUpdateCount + 1):end) = []; -% obj.Data.stimWindowUpdateLags((obj.StimWindowUpdateCount + 1):end) = []; - obj.Data.stimWindowRenderTimes((obj.StimWindowUpdateCount + 1):end) = []; - - % release resources - obj.Listeners = []; - deleteGlTextures(obj); - KbQueueStop(); - KbQueueRelease(); - - % delete cached experiment definition function from memory - [~, exp_func] = fileparts(obj.Data.expDef); - clear(exp_func) - end - - function deleteGlTextures(obj) - tex = cell2mat(obj.TextureById.values); - win = obj.StimWindowPtr; - fprintf('Deleting %i textures\n', numel(tex)); - Screen('AsyncFlipEnd', win); - Screen('BeginOpenGL', win); - glDeleteTextures(numel(tex), tex); - obj.TextureById.remove(obj.TextureById.keys); - Screen('EndOpenGL', win); - end - - function mainLoop(obj) - % Executes the main experiment loop - % - % mainLoop() enters a loop that updates the stimulus window, checks - % for and deals with inputs, updates state and activates triggers. - % Will run until the experiment completes (phase 'experiment' ends). - - %set looping flag - obj.IsLooping = true; - t = obj.Clock.now; - % begin the loop - while obj.IsLooping - %% create a list of handlers that have become due - dueIdx = find([obj.Pending.dueTime] <= now(obj.Clock)); - ndue = length(dueIdx); - - %% check for and process any input - checkInput(obj); - - %% execute pending event handlers that have become due - for i = 1:ndue - due = obj.Pending(dueIdx(i)); - if due.isActive % check handler is still active - activateEventHandler(obj, due.handler, due.eventInfo, due.dueTime); - obj.Pending(dueIdx(i)).isActive = false; % set as inactive in pending - end + + function data = run(obj, ref) + % Runs the experiment + % + % run(REF) will start the experiment running, first initialising + % everything, then running the experiment loop until the experiment + % is complete. REF is a reference to be saved with the block data + % under the 'expRef' field, and will be used to ascertain the + % location to save the data into. If REF is an empty, i.e. [], the + % data won't be saved. + + if ~isempty(ref) + %ensure experiment ref exists + assert(dat.expExists(ref), 'Experiment ref ''%s'' does not exist', ref); + end + + %do initialisation + init(obj); + + obj.Data.expRef = ref; %record the experiment reference + + %Trigger the 'experimentInit' event so any handlers will be called + initInfo = exp.EventInfo('experimentInit', obj.Clock.now, obj); + fireEvent(obj, initInfo); + + %set pending handler to begin the experiment 'PreDelay' secs from now + start = exp.EventHandler('experimentInit', exp.StartPhase('experiment')); + start.addCallback(@(varargin) obj.Events.expStart.post(ref)); + obj.Pending = dueHandlerInfo(obj, start, initInfo, obj.Clock.now + obj.PreDelay); + + %refresh the stimulus window + Screen('Flip', obj.StimWindowPtr); + + try + % start the experiment loop + mainLoop(obj); + + %post comms notification with event name and time + if isempty(obj.AlyxInstance) + post(obj, 'AlyxRequest', obj.Data.expRef); %request token from client + pause(0.2) + end + + %Trigger the 'experimentCleanup' event so any handlers will be called + cleanupInfo = exp.EventInfo('experimentCleanup', obj.Clock.now, obj); + fireEvent(obj, cleanupInfo); + + %do our cleanup + cleanup(obj); + + %return the data structure that has been built up + data = obj.Data; + + if ~isempty(ref) + saveData(obj); %save the data + end + catch ex + %mark that an exception occured in the block data, then save + obj.Data.endStatus = 'exception'; + obj.Data.exceptionMessage = ex.message; + if ~isempty(ref) + saveData(obj); %save the data + end + ensureWindowReady(obj); % complete any outstanding refresh + %rethrow the exception + rethrow(ex) + end end - - % now remove executed (or otherwise inactived) ones from pending - inactiveIdx = ~[obj.Pending.isActive]; - obj.Pending(inactiveIdx) = []; - - %% signalling -% tic - wx = readAbsolutePosition(obj.Wheel); - post(obj.Inputs.wheel, wx); - if ~isempty(obj.LickDetector) - % read and log the current lick count - [nlicks, ~, licked] = readPosition(obj.LickDetector); - if licked - post(obj.Inputs.lick, nlicks); - fprintf('lick count now %i\n', nlicks); - end + + function bool = inPhase(obj, name) + % Reports whether currently in specified phase + % + % inPhase(NAME) checks whether the experiment is currently in the + % phase called NAME. + bool = any(strcmpi(obj.ActivePhases, name)); end - post(obj.Time, now(obj.Clock)); - runSchedule(obj.Net); - -% runSchedule(obj.Net); -% nChars = overfprintf(nChars, 'post took %.1fms\n', 1000*toc); - - %% redraw the stimulus window if it has been invalidated - if obj.StimWindowInvalid - ensureWindowReady(obj); % complete any outstanding refresh - % draw the visual frame -% tic - drawFrame(obj); -% toc; - if ~isempty(obj.SyncBounds) % render sync rectangle - % render sync region with next colour in cycle - col = obj.SyncColourCycle(obj.NextSyncIdx,:); - % render rectangle in the sync region bounds in the required colour - Screen('FillRect', obj.StimWindowPtr, col, obj.SyncBounds); - % cyclically increment the next sync idx - obj.NextSyncIdx = mod(obj.NextSyncIdx, size(obj.SyncColourCycle, 1)) + 1; - end - renderTime = now(obj.Clock); - % start the 'flip' of the frame onto the screen - Screen('AsyncFlipBegin', obj.StimWindowPtr); - obj.AsyncFlipping = true; - obj.StimWindowUpdateCount = obj.StimWindowUpdateCount + 1; - obj.Data.stimWindowRenderTimes(obj.StimWindowUpdateCount) = renderTime; - obj.StimWindowInvalid = false; + + function log(obj, field, value) + % Logs the value in the experiment data + if isfield(obj.Data, field) + obj.Data.(field) = [obj.Data.(field) value]; + else + obj.Data.(field) = value; + end end - if (obj.Clock.now - t) > 0.1 - sendSignalUpdates(obj); - t = obj.Clock.now; + + function quit(obj, immediately) + if isempty(obj.Events.expStop.Node.CurrValue) + obj.Events.expStop.post(true); + end + %stop delay timers. todo: need to use a less global tag + tmrs = timerfind('Tag', 'sig.delay'); + if ~isempty(tmrs) + stop(tmrs); + delete(tmrs); + end + + % set any pending handlers inactive + abortPendingHandlers(obj); + + % clear all phases except 'experiment' "dirtily", i.e. without + % setting off any triggers for those phases. + % *** IN FUTURE MAY CHANGE SO THAT WE DO END TRIAL CLEANLY *** + if nargin < 2 + immediately = false; + end + + if inPhase(obj, 'experiment') + obj.ActivePhases = {'experiment'}; % clear active phases except experiment + % end the experiment phase "cleanly", i.e. with triggers + endPhase(obj, 'experiment', obj.Clock.now); + else + obj.ActivePhases = {}; %clear active phases + end + + if immediately + %flag as 'aborted' meaning terminated early, and as quickly as possible + obj.Data.endStatus = 'aborted'; + else + %flag as 'quit', meaning quit before all trials were naturally complete, + %but still shut down with usual cleanup delays etc + obj.Data.endStatus = 'quit'; + end + + if immediately || obj.PostDelay == 0 + obj.IsLooping = false; %unset looping flag now + else + %add a pending handler to unset looping flag + %NB, since we create a pending item directly, the EventHandler delay + %and triggering event name are only set for clarity and wont be + %used + endExp = exp.EventHandler('experimentEnded'); %event name just for clarity + endExp.Delay = obj.PostDelay; %delay just for clarity + endExp.addCallback(@stopLooping); + pending = dueHandlerInfo(obj, endExp, [], obj.Clock.now + obj.PostDelay); + obj.Pending = [obj.Pending, pending]; + end + + function stopLooping(varargin) + obj.IsLooping = false; + end end -% q = toc; -% if q>0.005 -% fprintf(1, 'send updates took %.1fms\n', 1000*toc); -% end - drawnow; % allow other callbacks to execute - end - ensureWindowReady(obj); % complete any outstanding refresh - end - - function checkInput(obj) - % Checks for and handles inputs during experiment - % - % checkInput() is called during the experiment loop to check for and - % handle any inputs. This function specifically checks for any - % keyboard input that occurred since the last check, and passes that - % information on to handleKeyboardInput. Subclasses should override - % this function to check for any non-keyboard inputs of interest, but - % must chain a call to this function. - [pressed, keysPressed] = KbQueueCheck(); - if pressed - if any(keysPressed(obj.QuitKey)) - % handle the quit key being pressed - if strcmp(obj.Data.endStatus, 'quit') - %quitting already in progress - a second time means fast abort - fprintf('Abort fast (quit key pressed during quitting)\n'); - obj.quit(true); - else - fprintf('Quit key pressed\n'); - obj.quit(false); - end - elseif any(keysPressed(obj.PauseKey)) - fprintf('Pause key pressed\n'); - if obj.IsPaused - resume(obj); - else - pause(obj); - end - else -% key = keysPressed(find(keysPressed~=obj.QuitKey&... -% keysPressed~=obj.PauseKey,1,'first')); - key = KbName(keysPressed); - if ~isempty(key) - post(obj.Inputs.keyboard, key(1)); - end + function ensureWindowReady(obj) + % complete any outstanding asynchronous flip + if obj.AsyncFlipping + % wait for flip to complete, and record the time + time = Screen('AsyncFlipEnd', obj.StimWindowPtr); + obj.AsyncFlipping = false; + time = fromPtb(obj.Clock, time); %convert ptb/sys time to our clock's time + % assert(obj.Data.stimWindowUpdateTimes(obj.StimWindowUpdateCount) == 0); + obj.Data.stimWindowUpdateTimes(obj.StimWindowUpdateCount) = time; + % lag = time - obj.Data.stimWindowRenderTimes(obj.StimWindowUpdateCount); + % obj.Data.stimWindowUpdateLags(obj.StimWindowUpdateCount) = lag; + end end - end - end - - function fireEvent(obj, eventInfo, logEvent) - %fireEvent Called when an event occurs to log and handle them - % fireEvent(EVENTINFO) logs the time of the event, and checks the list - % of experiment event handlers for any that are listening to the event - % detailed in EVENTINFO. Those that are will be activated after their - % desired delay period. EVENTINFO must be an object of class EventInfo. - - event = eventInfo.Event; - - %post comms notification with event name and time - tnow = now(obj.Clock); - msg = {'update', obj.Data.expRef, 'event', event, tnow}; - post(obj, 'status', msg); - - if nargin < 3 - % log events by default - logEvent = true; - end - - if logEvent - % Save the actual time the event completed. For events that occur - % during a trial, timestamps are saved within the trial data, otherwise - % we just save in experiment-wide data. - log(obj, [event 'Time'], tnow); - end - - % create a list of handlers for this event - if isempty(obj.EventHandlers) - % handle special case bug in matlab - % if EventHandlers is empty, the alternate case below will fail so - % we handle it here - handleEventNames = {}; - else - handleEventNames = {obj.EventHandlers.Event}; - end - - evexp = ['(^|\|)' event '($|\|)']; - match = ~strcmp(regexp(handleEventNames, evexp, 'match', 'once'), ''); - handlers = obj.EventHandlers(match); - nhandlers = length(handlers); - for i = 1:nhandlers - if islogical(handlers(i).Delay) && handlers(i).Delay == false - % delay is false, so activate immediately - due = eventInfo.Time; - immediate = true; - else - % delayed handler - due = eventInfo.Time + handlers(i).Delay.secs; - immediate = false; + + function queueSignalUpdate(obj, name, value) + timestamp = clock; + nupdates = obj.NumSignalUpdates; + if nupdates == length(obj.SignalUpdates) + %grow message queue by doubling in size + obj.SignalUpdates(2*end+1).value = []; + end + idx = nupdates + 1; + obj.SignalUpdates(idx).name = name; + obj.SignalUpdates(idx).value = value; + obj.SignalUpdates(idx).timestamp = timestamp; + obj.NumSignalUpdates = idx; + end + + function post(obj, id, msg) + send(obj.Communicator, id, msg); end - - % if the handler has no delay, then activate it now, - % otherwise add it to our pending list - if immediate - activateEventHandler(obj, handlers(i), eventInfo, due); - else - pending = dueHandlerInfo(obj, handlers(i), eventInfo, due); - obj.Pending = [obj.Pending, pending]; % append to pending handlers + + function sendSignalUpdates(obj) + try + if obj.NumSignalUpdates > 0 + post(obj, 'signals', obj.SignalUpdates(1:obj.NumSignalUpdates)); + end + catch ex + warning(getReport(ex)); + end + obj.NumSignalUpdates = 0; + end + + function loadVisual(obj, name) + % configure signals + layersSig = obj.Visual.(name).Node.CurrValue.layers; + obj.Listeners = [obj.Listeners + layersSig.onValue(fun.partial(@obj.newLayerValues, name))]; + newLayerValues(obj, name, layersSig.Node.CurrValue); + + % %% load textures + % layerData = obj.LayersByStim(name); + % Screen('BeginOpenGL', win); + % try + % for ii = 1:numel(layerData) + % id = layerData(ii).textureId; + % if ~obj.TextureById.isKey(id) + % obj.TextureById(id) = ... + % vis.loadLayerTextures(layerData(ii)); + % end + % end + % catch glEx + % Screen('EndOpenGL', win); + % rethrow(glEx); + % end + % Screen('EndOpenGL', win); + end + + function newLayerValues(obj, name, val) + % fprintf('new layer value for %s\n', name); + % show = [val.show] + if isKey(obj.LayersByStim, name) + prev = obj.LayersByStim(name); + prevshow = any([prev.show]); + else + prevshow = false; + end + obj.LayersByStim(name) = val; + + if any([val.show]) || prevshow + obj.StimWindowInvalid = true; + end + + end + + function delete(obj) + disp('delete exp.SqueakExp'); + obj.Net.delete(); end - end - end - - function s = dueHandlerInfo(~, handler, eventInfo, dueTime) - s = struct('handler', handler,... - 'eventInfo', eventInfo,... - 'dueTime', dueTime,... - 'isActive', true); % handlers starts active - end - - function drawFrame(obj) - % Called to draw current stimulus window frame - % - % drawFrame(obj) does nothing in this class but can be overrriden - % in a subclass to draw the stimulus frame when it is invalidated - win = obj.StimWindowPtr; - layerValues = cell2mat(obj.LayersByStim.values()); - Screen('BeginOpenGL', win); - vis.draw(win, obj.Occ, layerValues, obj.TextureById); - Screen('EndOpenGL', win); end - function activateEventHandler(obj, handler, eventInfo, dueTime) - activate(handler, eventInfo, dueTime); - % if the handler requests the stimulus window be invalided, do so. - if handler.InvalidateStimWindow - obj.StimWindow.invalidate; - end - end + %% methods (SetAccess && GetAccess = protected) - function saveData(obj) - % save the data to the appropriate locations indicated by expRef - savepaths = dat.expFilePath(obj.Data.expRef, 'block'); - superSave(savepaths, struct('block', obj.Data)); - [subject, ~, ~] = dat.parseExpRef(obj.Data.expRef); - - % if this is a 'ChoiceWorld' experiment, let's save out for - % relevant data for basic behavioural analysis and register them to - % Alyx - if contains(lower(obj.Data.expDef), 'choiceworld') ... - && ~strcmp(subject, 'default') && isfield(obj.Data, 'events') ... - && ~strcmp(obj.Data.endStatus,'aborted') - try - fullpath = alf.block2ALF(obj.Data); - obj.AlyxInstance.registerFile(fullpath); - catch ex - warning(ex.identifier, 'Failed to register alf files: %s.', ex.message); + methods (Access = protected) + function init(obj) + % Performs initialisation before running + % + % init() is called when the experiment is run before the experiment + % loop begins. Subclasses can override to perform their own + % initialisation, but must chain a call to this. + + % create and initialise a key press queue for responding to input + KbQueueCreate(); + KbQueueStart(); + + % MATLAB time stamp for starting the experiment + obj.Data.startDateTime = now; + obj.Data.startDateTimeStr = datestr(obj.Data.startDateTime); + + %init end status to nothing + obj.Data.endStatus = []; + + % load each visual stimulus + cellfun(@obj.loadVisual, fieldnames(obj.Visual)); + % each event signal should send signal updates + queuefun = @(n,s)s.onValue(fun.partial(@queueSignalUpdate, obj, n)); + evtlist = mapToCell(@(n,v)queuefun(['events.' n],v),... + fieldnames(obj.Events), struct2cell(obj.Events)); + outlist = mapToCell(@(n,v)queuefun(['outputs.' n],v),... + fieldnames(obj.Outputs), struct2cell(obj.Outputs)); + inlist = mapToCell(@(n,v)queuefun(['inputs.' n],v),... + fieldnames(obj.Inputs), struct2cell(obj.Inputs)); + parslist = queuefun('pars', obj.Params); + obj.Listeners = vertcat(obj.Listeners, ... + evtlist(:), outlist(:), inlist(:), parslist(:)); + end + + function cleanup(obj) + % Performs cleanup after experiment completes + % + % cleanup() is called when the experiment is run after the experiment + % loop completes. Subclasses can override to perform their own + % cleanup, but must chain a call to this. + + stopdatetime = now; + %clear the stimulus window + Screen('Flip', obj.StimWindowPtr); + + % collate the logs + %events + obj.Data.events = logs(obj.Events, obj.Clock.ReferenceTime); + %params + parsLog = obj.ParamsLog.Node.CurrValue; + obj.Data.paramsValues = [parsLog.value]; + obj.Data.paramsTimes = [parsLog.time]; + %inputs + obj.Data.inputs = logs(obj.Inputs, obj.Clock.ReferenceTime); + %outputs + obj.Data.outputs = logs(obj.Outputs, obj.Clock.ReferenceTime); + %audio + % obj.Data.audio = logs(audio, clockZeroTime); + + % MATLAB time stamp for ending the experiment + obj.Data.endDateTime = stopdatetime; + obj.Data.endDateTimeStr = datestr(obj.Data.endDateTime); + + % some useful data + obj.Data.duration = etime(... + datevec(obj.Data.endDateTime), datevec(obj.Data.startDateTime)); + + %clip the stim window update times array + obj.Data.stimWindowUpdateTimes((obj.StimWindowUpdateCount + 1):end) = []; + % obj.Data.stimWindowUpdateLags((obj.StimWindowUpdateCount + 1):end) = []; + obj.Data.stimWindowRenderTimes((obj.StimWindowUpdateCount + 1):end) = []; + + % release resources + obj.Listeners = []; + deleteGlTextures(obj); + KbQueueStop(); + KbQueueRelease(); + + % delete cached experiment definition function from memory + [~, exp_func] = fileparts(obj.Data.expDef); + clear(exp_func) + end + + function deleteGlTextures(obj) + tex = cell2mat(obj.TextureById.values); + win = obj.StimWindowPtr; + fprintf('Deleting %i textures\n', numel(tex)); + Screen('AsyncFlipEnd', win); + Screen('BeginOpenGL', win); + glDeleteTextures(numel(tex), tex); + obj.TextureById.remove(obj.TextureById.keys); + Screen('EndOpenGL', win); + end + + function mainLoop(obj) + % Executes the main experiment loop + % + % mainLoop() enters a loop that updates the stimulus window, checks + % for and deals with inputs, updates state and activates triggers. + % Will run until the experiment completes (phase 'experiment' ends). + + %set looping flag + obj.IsLooping = true; + t = obj.Clock.now; + % begin the loop + while obj.IsLooping + % create a list of handlers that have become due + dueIdx = find([obj.Pending.dueTime] <= now(obj.Clock)); + ndue = length(dueIdx); + + % check for and process any input + checkInput(obj); + + % execute pending event handlers that have become due + for i = 1:ndue + due = obj.Pending(dueIdx(i)); + if due.isActive % check handler is still active + activateEventHandler(obj, due.handler, due.eventInfo, due.dueTime); + obj.Pending(dueIdx(i)).isActive = false; % set as inactive in pending + end + end + + % now remove executed (or otherwise inactived) ones from pending + inactiveIdx = ~[obj.Pending.isActive]; + obj.Pending(inactiveIdx) = []; + + % signalling + % tic + wx = readAbsolutePosition(obj.Wheel); + post(obj.Inputs.wheel, wx); + if ~isempty(obj.LickDetector) + % read and log the current lick count + [nlicks, ~, licked] = readPosition(obj.LickDetector); + if licked + post(obj.Inputs.lick, nlicks); + fprintf('lick count now %i\n', nlicks); + end + end + post(obj.Time, now(obj.Clock)); + runSchedule(obj.Net); + + % runSchedule(obj.Net); + % nChars = overfprintf(nChars, 'post took %.1fms\n', 1000*toc); + + % redraw the stimulus window if it has been invalidated + if obj.StimWindowInvalid + ensureWindowReady(obj); % complete any outstanding refresh + % draw the visual frame + % tic + drawFrame(obj); + % toc; + if ~isempty(obj.SyncBounds) % render sync rectangle + % render sync region with next colour in cycle + col = obj.SyncColourCycle(obj.NextSyncIdx,:); + % render rectangle in the sync region bounds in the required colour + Screen('FillRect', obj.StimWindowPtr, col, obj.SyncBounds); + % cyclically increment the next sync idx + obj.NextSyncIdx = mod(obj.NextSyncIdx, size(obj.SyncColourCycle, 1)) + 1; + end + renderTime = now(obj.Clock); + % start the 'flip' of the frame onto the screen + Screen('AsyncFlipBegin', obj.StimWindowPtr); + obj.AsyncFlipping = true; + obj.StimWindowUpdateCount = obj.StimWindowUpdateCount + 1; + obj.Data.stimWindowRenderTimes(obj.StimWindowUpdateCount) = renderTime; + obj.StimWindowInvalid = false; + end + if (obj.Clock.now - t) > 0.1 + sendSignalUpdates(obj); + t = obj.Clock.now; + end + + % q = toc; + % if q>0.005 + % fprintf(1, 'send updates took %.1fms\n', 1000*toc); + % end + drawnow; % allow other callbacks to execute + end + ensureWindowReady(obj); % complete any outstanding refresh end - end - - if isempty(obj.AlyxInstance) - warning('No Alyx token set'); - else - try - subject = dat.parseExpRef(obj.Data.expRef); - if strcmp(subject, 'default'); return; end - % Register saved files - obj.AlyxInstance.registerFile(savepaths{end}); -% obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... -% {subject, expDate, seq}, 'Block', []); - % Save the session end time - if ~isempty(obj.AlyxInstance.SessionURL) - numCorrect = []; - if isfield(obj.Data, 'events') - numTrials = length(obj.Data.events.endTrialValues); - if isfield(obj.Data.events, 'feedbackValues') - numCorrect = sum(obj.Data.events.feedbackValues == 1); - end + + function checkInput(obj) + % Checks for and handles inputs during experiment + % + % checkInput() is called during the experiment loop to check for and + % handle any inputs. This function specifically checks for any + % keyboard input that occurred since the last check, and passes that + % information on to handleKeyboardInput. Subclasses should override + % this function to check for any non-keyboard inputs of interest, but + % must chain a call to this function. + [pressed, keysPressed] = KbQueueCheck(); + if pressed + if any(keysPressed(obj.QuitKey)) + % handle the quit key being pressed + if strcmp(obj.Data.endStatus, 'quit') + %quitting already in progress - a second time means fast abort + fprintf('Abort fast (quit key pressed during quitting)\n'); + obj.quit(true); + else + fprintf('Quit key pressed\n'); + obj.quit(false); + end + elseif any(keysPressed(obj.PauseKey)) + fprintf('Pause key pressed\n'); + if obj.IsPaused + resume(obj); + else + pause(obj); + end + else + % key = keysPressed(find(keysPressed~=obj.QuitKey&... + % keysPressed~=obj.PauseKey,1,'first')); + key = KbName(keysPressed); + if ~isempty(key) + post(obj.Inputs.keyboard, key(1)); + end + end + end + end + + function fireEvent(obj, eventInfo, logEvent) + %fireEvent Called when an event occurs to log and handle them + % fireEvent(EVENTINFO) logs the time of the event, and checks the list + % of experiment event handlers for any that are listening to the event + % detailed in EVENTINFO. Those that are will be activated after their + % desired delay period. EVENTINFO must be an object of class EventInfo. + + event = eventInfo.Event; + + %post comms notification with event name and time + tnow = now(obj.Clock); + msg = {'update', obj.Data.expRef, 'event', event, tnow}; + post(obj, 'status', msg); + + if nargin < 3 + % log events by default + logEvent = true; + end + + if logEvent + % Save the actual time the event completed. For events that occur + % during a trial, timestamps are saved within the trial data, otherwise + % we just save in experiment-wide data. + log(obj, [event 'Time'], tnow); + end + + % create a list of handlers for this event + if isempty(obj.EventHandlers) + % handle special case bug in matlab + % if EventHandlers is empty, the alternate case below will fail so + % we handle it here + handleEventNames = {}; + else + handleEventNames = {obj.EventHandlers.Event}; + end + + evexp = ['(^|\|)' event '($|\|)']; + match = ~strcmp(regexp(handleEventNames, evexp, 'match', 'once'), ''); + handlers = obj.EventHandlers(match); + nhandlers = length(handlers); + for i = 1:nhandlers + if islogical(handlers(i).Delay) && handlers(i).Delay == false + % delay is false, so activate immediately + due = eventInfo.Time; + immediate = true; + else + % delayed handler + due = eventInfo.Time + handlers(i).Delay.secs; + immediate = false; + end + + % if the handler has no delay, then activate it now, + % otherwise add it to our pending list + if immediate + activateEventHandler(obj, handlers(i), eventInfo, due); + else + pending = dueHandlerInfo(obj, handlers(i), eventInfo, due); + obj.Pending = [obj.Pending, pending]; % append to pending handlers + end + end + end + + function s = dueHandlerInfo(~, handler, eventInfo, dueTime) + s = struct('handler', handler,... + 'eventInfo', eventInfo,... + 'dueTime', dueTime,... + 'isActive', true); % handlers starts active + end + + function drawFrame(obj) + % Called to draw current stimulus window frame + % + % drawFrame(obj) does nothing in this class but can be overrriden + % in a subclass to draw the stimulus frame when it is invalidated + win = obj.StimWindowPtr; + layerValues = cell2mat(obj.LayersByStim.values()); + Screen('BeginOpenGL', win); + vis.draw(win, obj.Occ, layerValues, obj.TextureById); + Screen('EndOpenGL', win); + end + + function activateEventHandler(obj, handler, eventInfo, dueTime) + activate(handler, eventInfo, dueTime); + % if the handler requests the stimulus window be invalided, do so. + if handler.InvalidateStimWindow + obj.StimWindow.invalidate; + end + end + + function saveData(obj) + % save the data to the appropriate locations indicated by expRef + savepaths = dat.expFilePath(obj.Data.expRef, 'block'); + superSave(savepaths, struct('block', obj.Data)); + [subject, ~, ~] = dat.parseExpRef(obj.Data.expRef); + + % if this is a 'ChoiceWorld' experiment, let's save out for + % relevant data for basic behavioural analysis and register them to + % Alyx + if contains(lower(obj.Data.expDef), 'choiceworld') ... + && ~strcmp(subject, 'default') && isfield(obj.Data, 'events') ... + && ~strcmp(obj.Data.endStatus,'aborted') + try + fullpath = alf.block2ALF(obj.Data); + obj.AlyxInstance.registerFile(fullpath); + catch ex + warning(ex.identifier, 'Failed to register alf files: %s.', ex.message); + end + end + + if isempty(obj.AlyxInstance) + warning('No Alyx token set'); else - numTrials = 0; - numCorrect = 0; - end - sessionData = struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject); - if ~isempty(numTrials); sessionData.numberOfTrials = numTrials; end - if ~isempty(numCorrect); sessionData.numberOfCorrectTrials = numCorrect; end - obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL,... - sessionData, 'put'); - else - % Retrieve session from endpoint -% subsessions = obj.AlyxInstance.getData(... -% sprintf('sessions?type=Experiment&subject=%s&number=%i', subject, seq)); - end - catch ex - warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); + try + subject = dat.parseExpRef(obj.Data.expRef); + if strcmp(subject, 'default'); return; end + % Register saved files + obj.AlyxInstance.registerFile(savepaths{end}); + % obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... + % {subject, expDate, seq}, 'Block', []); + % Save the session end time + if ~isempty(obj.AlyxInstance.SessionURL) + numCorrect = []; + if isfield(obj.Data, 'events') + numTrials = length(obj.Data.events.endTrialValues); + if isfield(obj.Data.events, 'feedbackValues') + numCorrect = sum(obj.Data.events.feedbackValues == 1); + end + else + numTrials = 0; + numCorrect = 0; + end + sessionData = struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject); + if ~isempty(numTrials); sessionData.numberOfTrials = numTrials; end + if ~isempty(numCorrect); sessionData.numberOfCorrectTrials = numCorrect; end + obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL,... + sessionData, 'put'); + else + % Retrieve session from endpoint + % subsessions = obj.AlyxInstance.getData(... + % sprintf('sessions?type=Experiment&subject=%s&number=%i', subject, seq)); + end + catch ex + warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); + end + end end - end end - end - + end \ No newline at end of file From 9bba914111732d86a258518acf0f28072aea3072 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Wed, 31 Oct 2018 13:22:34 +0000 Subject: [PATCH 197/515] repoint submodules back at Jai's forks --- .gitmodules | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitmodules b/.gitmodules index 0022ed5b..32b91d63 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,16 +1,16 @@ [submodule "alyx-matlab"] path = alyx-matlab - url = https://github.com/cortex-lab/alyx-matlab/ + url = https://github.com/jaib1/alyx-matlab/ branch = dev [submodule "signals"] path = signals - url = https://github.com/cortex-lab/signals + url = https://github.com/jaib1/signals branch = dev [submodule "npy-matlab"] path = npy-matlab - url = https://github.com/kwikteam/npy-matlab - branch = master + url = https://github.com/jaib1/npy-matlab + branch = dev [submodule "wheelAnalysis"] path = wheelAnalysis - url = https://github.com/cortex-lab/wheelAnalysis - branch = master + url = https://github.com/jaib1/wheelAnalysis + branch = dev From 66f8d8f4448f8133cdb61a9e921048e05034edb7 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Wed, 31 Oct 2018 13:33:26 +0000 Subject: [PATCH 198/515] last changes made to signals subrepo --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index 13db4d1d..0596b553 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 13db4d1d6a7e11427043b514867a3807eb1f12f7 +Subproject commit 0596b553fc7283ced49d2e403f6b681e37e00096 From 00af9896bd1723cb9671eba89e5565bd36f81d0b Mon Sep 17 00:00:00 2001 From: jaib1 Date: Wed, 31 Oct 2018 15:08:25 +0000 Subject: [PATCH 199/515] typo fixes for readme --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index fa163b12..120f73ae 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,7 @@ ---------- # Rigbox -Rigbox is a (mostly) object-oriented MATLAB software package for designing and controlling behavioural experiments (principally, the [steering wheel setup](https://www.ucl.ac.uk/cortexlab/tools/wheel) which [we](https://www.ucl.ac.uk/cortexlab) developed to probe mouse behaviour. Rigbox requires two machines, one for stimulus presentation ('the stimulus server') and another for controlling and monitoring the experiment ('mc'). +Rigbox is a (mostly) object-oriented MATLAB software package for designing and controlling neurophysiological behavioural experiments (principally, the [steering wheel setup](https://www.ucl.ac.uk/cortexlab/tools/wheel) which [we](https://www.ucl.ac.uk/cortexlab) developed to probe mouse behaviour). Rigbox requires two machines, one for stimulus presentation ('the stimulus server') and another for controlling and monitoring the experiment ('mc'). ## Getting Started @@ -75,7 +75,7 @@ This opens a GUI that will allow you to choose a subject, edit some of the exper ## Code organization -Below is a list of the principle directories and their general purpose. +Below is a list of Rigbox's subdirectories and an overview of their respective contents. ### +dat From 814cfde112841d41f94fd888a1b918eb695532f3 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 31 Oct 2018 16:30:54 +0000 Subject: [PATCH 200/515] View all subjects window is now a better size --- +eui/AlyxPanel.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 73277f52..94c848bc 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -629,7 +629,10 @@ function viewAllSubjects(obj) wr = ai.getData(ai.makeEndpoint('water-restricted-subjects')); % build a figure to show it - f = figure; % popup a new figure for this + f = figure('Name', 'All Water Restricted Subjects', 'NumberTitle', 'off'); % popup a new figure for this + p = get(f, 'Position'); + set(f, 'Position', [p(1) p(2) 295, p(4)]); + wrBox = uix.VBox('Parent', f); wrTable = uitable('Parent', wrBox,... 'FontName', 'Consolas',... From 4ec10e684f85a870f6730de99f5d489eb0dc9471 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 15 Nov 2018 12:04:48 +0000 Subject: [PATCH 201/515] Wheel signal availiable in degrees and mm --- +exp/SignalsExp.m | 5 ++- +hw/DaqRotaryEncoder.m | 71 +++++++++++++++++++++++++++++++++--------- +hw/PositionSensor.m | 3 +- 3 files changed, 63 insertions(+), 16 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index d261de2c..8647baa6 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -220,6 +220,9 @@ function useRig(obj, rig) obj.DaqController = rig.daqController; obj.Wheel = rig.mouseInput; obj.Wheel.zero(); + obj.Inputs.wheelMM = obj.Inputs.wheel.map(@(x)obj.Wheel.MillimetresFactor*(x-obj.Wheel.ZeroOffset)); + obj.Inputs.wheelDeg = obj.Inputs.wheel.map(... + @(x)((x-obj.Wheel.ZeroOffset) / (obj.Wheel.EncoderResolution*4))*360); if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; obj.LickDetector.zero(); @@ -719,7 +722,7 @@ function mainLoop(obj) obj.Data.stimWindowRenderTimes(obj.StimWindowUpdateCount) = renderTime; obj.StimWindowInvalid = false; end - if (obj.Clock.now - t) > 0.1 + if (obj.Clock.now - t) > 0.1 || obj.IsLooping == false sendSignalUpdates(obj); t = obj.Clock.now; end diff --git a/+hw/DaqRotaryEncoder.m b/+hw/DaqRotaryEncoder.m index c3d014fc..2d6cc123 100644 --- a/+hw/DaqRotaryEncoder.m +++ b/+hw/DaqRotaryEncoder.m @@ -36,31 +36,61 @@ % 2013-01 CB created properties - DaqSession = [] %DAQ session for input (see session-based interface docs) - DaqId = 'Dev1' %DAQ's device ID, e.g. 'Dev1' - DaqChannelId = 'ctr0' %DAQ's ID for the counter channel. e.g. 'ctr0' - %Size of DAQ counter range for detecting over- and underflows (e.g. if - %the DAQ's counter is 32-bit, this should be 2^32) + % DAQ session for input (see session-based interface docs) + DaqSession = [] + % DAQ's device ID, e.g. 'Dev1' + DaqId = 'Dev1' + % DAQ's ID for the counter channel. e.g. 'ctr0' + % Size of DAQ counter range for detecting over- and underflows (e.g. if + % the DAQ's counter is 32-bit, this should be 2^32) + DaqChannelId = 'ctr0' DaqCounterPeriod = 2^32 end + properties (SetObservable) + % Number of pulses per revolution. Found at the end of the KÜBLER + % product number, e.g. 05.2400.1122.0100 has a resolution of 100 + EncoderResolution = 1024 + % Diameter of the wheel in mm + WheelDiameter = 62 + end + properties (Access = protected) - %Created when listenForAvailableData is called, allowing logging of - %positions during DAQ background acquision - DaqListener - DaqInputChannelIdx %Index into acquired input data matrices for our channel - LastDaqValue %Last value obtained from the DAQ counter - %Accumulated cycle number for position (i.e. when the DAQ's counter has - %over- or underflowed its range, this is incremented or decremented - %accordingly) + % Index into acquired input data matrices for our channel + DaqInputChannelIdx + % Last value obtained from the DAQ counter Accumulated cycle number for + % position (i.e. when the DAQ's counter has over- or underflowed its + % range, this is incremented or decremented accordingly) + LastDaqValue Cycle end + properties (Transient, Access = protected) + % Created when listenForAvailableData is called, allowing logging of + % positions during DAQ background acquision + DaqListener + PropertyListener + end + properties (Dependent) - DaqChannelIdx % index into DaqSession's channels for our data + % Index into DaqSession's channels for our data + DaqChannelIdx end methods + + function obj = DaqRotaryEncoder() + p1 = findprop(obj,'EncoderResolution'); + p2 = findprop(obj,'WheelDiameter'); + obj.PropertyListener = event.proplistener(obj,[p1, p2],'PostSet',... + @(src,~)obj.setMillimetresFactor(src)); + setMillimetresFactor(obj); + end + + function setMillimetresFactor(obj,~) + obj.MillimetresFactor = obj.WheelDiameter*pi/(obj.EncoderResolution*4); + end + function value = get.DaqChannelIdx(obj) inputs = find(strcmpi('input', io.daqSessionChannelDirections(obj.DaqSession))); value = inputs(obj.DaqInputChannelIdx); @@ -155,5 +185,18 @@ function daqListener(obj, ~, event) logSamples(obj, values, times); end end + + methods (Static) + function obj = loadobj(obj) + if isstruct(obj) % Handle error + obj = hw.DaqRotaryEncoder(); + else + p1 = findprop(obj,'EncoderResolution'); + p2 = findprop(obj,'WheelDiameter'); + obj.PropertyListener = event.proplistener(obj,[p1, p2],'PostSet',... + @(src,~)obj.setMillimetresFactor(src)); + end + end + end end diff --git a/+hw/PositionSensor.m b/+hw/PositionSensor.m index 350bbfe2..99ee3c62 100644 --- a/+hw/PositionSensor.m +++ b/+hw/PositionSensor.m @@ -1,7 +1,8 @@ classdef PositionSensor < hw.DataLogging %HW.POSITIONSENSOR Abstract class for tracking positions from a sensor % Takes care of logging positions and times every time readPosition is - % called. Has a zeroing function and a gain parameter. + % called. Has a zeroing function and a gain parameter. This class is + % intended only for linear position sensors. % % Part of Rigbox From 3d23d11e2e643e821f745cc992b8744184af3df8 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 15 Nov 2018 15:09:37 +0000 Subject: [PATCH 202/515] Moved useRig to be before expDef run --- +exp/SignalsExp.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 8647baa6..b96ee89e 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -165,11 +165,9 @@ allCondPars = net.origin('condPars'); [obj.Params, hasNext, obj.Events.repeatNum] = exp.trialConditions(... globalPars, allCondPars, advanceTrial); - obj.Events.trialNum = obj.Events.newTrial.scan(@plus, 0); % track trial number - lastTrialOver = then(~hasNext, true); - + obj.useRig(rig); % obj.Events.expStop = then(~hasNext, true); % run experiment definition if ischar(paramStruct.defFunction) @@ -201,7 +199,6 @@ obj.Data.stimWindowRenderTimes = zeros(60*60*60*2, 1); % obj.Data.stimWindowUpdateLags = zeros(60*60*60*2, 1); obj.ParamsLog = obj.Params.log(); - obj.useRig(rig); end function useRig(obj, rig) From 7d222c1ad9a5d6c1bff09cb7499584f90b870ea6 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 15 Nov 2018 16:01:25 +0000 Subject: [PATCH 203/515] Skip repeats on wheel trace and zero offset now accessable --- +exp/SignalsExp.m | 5 +++-- +hw/PositionSensor.m | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index b96ee89e..e84a864f 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -217,9 +217,10 @@ function useRig(obj, rig) obj.DaqController = rig.daqController; obj.Wheel = rig.mouseInput; obj.Wheel.zero(); - obj.Inputs.wheelMM = obj.Inputs.wheel.map(@(x)obj.Wheel.MillimetresFactor*(x-obj.Wheel.ZeroOffset)); + obj.Inputs.wheelMM = obj.Inputs.wheel.map(@... + (x)obj.Wheel.MillimetresFactor*(x-obj.Wheel.ZeroOffset)).skipRepeats(); obj.Inputs.wheelDeg = obj.Inputs.wheel.map(... - @(x)((x-obj.Wheel.ZeroOffset) / (obj.Wheel.EncoderResolution*4))*360); + @(x)((x-obj.Wheel.ZeroOffset) / (obj.Wheel.EncoderResolution*4))*360).skipRepeats(); if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; obj.LickDetector.zero(); diff --git a/+hw/PositionSensor.m b/+hw/PositionSensor.m index 99ee3c62..87aac7f1 100644 --- a/+hw/PositionSensor.m +++ b/+hw/PositionSensor.m @@ -18,7 +18,7 @@ LastPosition %Most recent position read end - properties (Access = protected) + properties (SetAccess = protected) ZeroOffset = 0 end From 385d6ba3acad6cf724bd88ecf9a543c67919009c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 16 Nov 2018 14:27:04 +0000 Subject: [PATCH 204/515] Moved wheel out of useRig method: conflict with setting output --- +exp/SignalsExp.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index e84a864f..8b0ded5b 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -153,6 +153,12 @@ obj.Events.newTrial = net.origin('newTrial'); obj.Events.expStop = net.origin('expStop'); obj.Inputs.wheel = net.origin('wheel'); + obj.Wheel = rig.mouseInput; + obj.Wheel.zero(); + obj.Inputs.wheelMM = obj.Inputs.wheel.map(@... + (x)obj.Wheel.MillimetresFactor*(x-obj.Wheel.ZeroOffset)).skipRepeats(); + obj.Inputs.wheelDeg = obj.Inputs.wheel.map(... + @(x)((x-obj.Wheel.ZeroOffset) / (obj.Wheel.EncoderResolution*4))*360).skipRepeats(); obj.Inputs.lick = net.origin('lick'); obj.Inputs.keyboard = net.origin('keyboard'); % get global parameters & conditional parameters structs @@ -167,7 +173,6 @@ globalPars, allCondPars, advanceTrial); obj.Events.trialNum = obj.Events.newTrial.scan(@plus, 0); % track trial number lastTrialOver = then(~hasNext, true); - obj.useRig(rig); % obj.Events.expStop = then(~hasNext, true); % run experiment definition if ischar(paramStruct.defFunction) @@ -199,6 +204,7 @@ obj.Data.stimWindowRenderTimes = zeros(60*60*60*2, 1); % obj.Data.stimWindowUpdateLags = zeros(60*60*60*2, 1); obj.ParamsLog = obj.Params.log(); + obj.useRig(rig); end function useRig(obj, rig) @@ -215,12 +221,6 @@ function useRig(obj, rig) warning('squeak:hw', 'No screen configuration specified. Visual locations will be wrong.'); end obj.DaqController = rig.daqController; - obj.Wheel = rig.mouseInput; - obj.Wheel.zero(); - obj.Inputs.wheelMM = obj.Inputs.wheel.map(@... - (x)obj.Wheel.MillimetresFactor*(x-obj.Wheel.ZeroOffset)).skipRepeats(); - obj.Inputs.wheelDeg = obj.Inputs.wheel.map(... - @(x)((x-obj.Wheel.ZeroOffset) / (obj.Wheel.EncoderResolution*4))*360).skipRepeats(); if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; obj.LickDetector.zero(); From 81d7e8d39e146d48fc6d864b2f6bdb6ba8260b70 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 16 Nov 2018 14:56:46 +0000 Subject: [PATCH 205/515] Fix to paths; npy-matlab added properly --- addRigboxPaths.m | 2 +- alyx-matlab | 2 +- cortexlab/+git/changes.m | 1 + cortexlab/+git/update.m | 7 +++++++ npy-matlab | 2 +- signals | 2 +- 6 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 cortexlab/+git/changes.m diff --git a/addRigboxPaths.m b/addRigboxPaths.m index cd5d85ee..b705367e 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -110,7 +110,7 @@ function addRigboxPaths(savePaths) % NumPy binary files. Used by Rigbox to save data as .npy files with the % ALF (ALex File) naming convention. For more information please visit: % https://docs.scipy.org/doc/numpy-dev/neps/npy-format.html -addpath(fullfile(root, 'npy-matlab')); +addpath(fullfile(root, 'npy-matlab', 'npy-matlab')); % Add the Java paths for Java WebSockets used for communications between % the stimulus computer and the master computer diff --git a/alyx-matlab b/alyx-matlab index ddc6f766..5420b606 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit ddc6f766fc25e1a57cc6c61a90aa5083cbd46543 +Subproject commit 5420b6065ccca9b438827fc1419fe30566e2ed7b diff --git a/cortexlab/+git/changes.m b/cortexlab/+git/changes.m new file mode 100644 index 00000000..9232640b --- /dev/null +++ b/cortexlab/+git/changes.m @@ -0,0 +1 @@ +addRigboxPaths; \ No newline at end of file diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 14814d6b..52705ca1 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -59,5 +59,12 @@ function update(fatalOnError, scheduled) end end +% Run any new tasks +changesPath = fullfile(root, 'cortexlab', '+git', 'changes.m'); +if exist(changesPath, 'file') + git.changes; + delete(changesPath); +end + cd(origDir) end \ No newline at end of file diff --git a/npy-matlab b/npy-matlab index a99e00f7..b7b0a4ef 160000 --- a/npy-matlab +++ b/npy-matlab @@ -1 +1 @@ -Subproject commit a99e00f78c72a7ec5f9c3074242ffaf242de9448 +Subproject commit b7b0a4ef6ba26d98a8c54e651d5444083c88311c diff --git a/signals b/signals index 51f56c0d..19fb9da3 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 51f56c0d90ed2232eb3255a1773d45ad695adaf4 +Subproject commit 19fb9da3c4485782c81f2e57d43337da0b77940d From 8982b199b4bdd1fbaa76efc110114e931cae8c84 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 16 Nov 2018 15:35:44 +0000 Subject: [PATCH 206/515] Update from master --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index 19fb9da3..071e4420 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 19fb9da3c4485782c81f2e57d43337da0b77940d +Subproject commit 071e44207410dab429f5c962999a56ade4d050dc From b53653c9d99feb69301a6030f00fe96b06bceb81 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 16 Nov 2018 17:12:39 +0000 Subject: [PATCH 207/515] Docstring fix --- +hw/TLOutputChrono.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+hw/TLOutputChrono.m b/+hw/TLOutputChrono.m index 1bf9c52d..bacca3fe 100644 --- a/+hw/TLOutputChrono.m +++ b/+hw/TLOutputChrono.m @@ -56,8 +56,8 @@ function init(obj, timeline) % INIT Initialize the output session % INIT(obj, timeline) is called when timeline is initialized. - % Creates the DAQ session and ensures that the clocking pulse test - % can not be read back + % Creates the DAQ session and ensures that the clocking test pulse + % can be read back % % See Also HW.TIMELINE/INIT if obj.Enable From 64aa3ca54870ac002ea5781eaa8f5aa0e5df4f62 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 16 Nov 2018 17:23:43 +0000 Subject: [PATCH 208/515] Fix log for when no future train dates --- +eui/AlyxPanel.m | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 94c848bc..76cf0377 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -316,11 +316,13 @@ function giveFutureWater(obj) futDates = thisDate + (1:length(amt)); % datenum of all input future dates futTrnDates = futDates(amt < 0); % future training dates - dat.saveParamProfile('WeekendWater', obj.Subject, futTrnDates); - [~,days] = weekday(futTrnDates, 'long'); - delim = iff(size(days,1) < 3, ' and ', {', ', ' and '}); - obj.log('%s marked for training on %s',... - obj.Subject, strjoin(strtrim(string(days)), delim)); + if any(futTrnDates) + dat.saveParamProfile('WeekendWater', obj.Subject, futTrnDates); + [~,days] = weekday(futTrnDates, 'long'); + delim = iff(size(days,1) < 3, ' and ', {', ', ' and '}); + obj.log('%s marked for training on %s',... + obj.Subject, strjoin(strtrim(string(days)), delim)); + end futWtrDates = futDates(amt > 0); % future water giving dates amtWtrDates = amt(amt > 0); % amount of water to give on future water dates From 9b7a815c18695a93c87bda8f7278578d508e9289 Mon Sep 17 00:00:00 2001 From: Olivier Winter Date: Mon, 19 Nov 2018 16:59:14 +0000 Subject: [PATCH 209/515] Alyx changes in subject endpoint --- +dat/parseAlyxInstance.m | 6 +++--- +eui/AlyxPanel.m | 8 ++++---- +eui/MControl.m | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/+dat/parseAlyxInstance.m b/+dat/parseAlyxInstance.m index 2eb09711..9db5cf4a 100644 --- a/+dat/parseAlyxInstance.m +++ b/+dat/parseAlyxInstance.m @@ -18,9 +18,9 @@ ai = varargin{2}; % extract AlyxInstance struct if isstruct(ai) % if there is an AlyxInstance ai = orderfields(ai); % alphabetize fields - % remove water requirement remaining field - if isfield(ai, 'water_requirement_remaining') - ai = rmfield(ai, 'water_requirement_remaining'); + % remove water remaining_water field + if isfield(ai, 'remaining_water') + ai = rmfield(ai, 'remaining_water'); end fname = fieldnames(ai); % get fieldnames emp = structfun(@isempty, ai); % find empty fields diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 73277f52..53e2c083 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -382,12 +382,12 @@ function dispWaterReq(obj, src, ~) weight_pct = '> 80%'; end % Round up water remaining to the near 0.01 - remainder = obj.round(s(idx).water_requirement_remaining, 'up'); + remainder = obj.round(s(idx).remaining_water, 'up'); % Set text set(obj.WaterRequiredText, 'ForegroundColor', colour, 'String', ... sprintf(['Subject %s requires %.2f of %.2f today\n\t '... 'Weight today: %.2f (%s) Water today: %.2f'], obj.Subject, ... - remainder, obj.round(s(idx).water_requirement_total, 'up'), weight, ... + remainder, obj.round(s(idx).expected_water, 'up'), weight, ... weight_pct, obj.round(sum([water gel]), 'down'))); % Set WaterRemaining attribute for changeWaterText callback obj.WaterRemaining = remainder; @@ -640,11 +640,11 @@ function viewAllSubjects(obj) colorgen = @(colorNum,text) ['',text,'']; wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3],... - sprintf('%.2f',obj.round(x, 'up'))), {wr.water_requirement_remaining}, 'uni', false); + sprintf('%.2f',obj.round(x, 'up'))), {wr.remaining_water}, 'uni', false); set(wrTable, 'ColumnName', {'Name', 'Water Required', 'Remaining Requirement'}, ... 'Data', horzcat({wr.nickname}', ... - cellfun(@(x)sprintf('%.2f',obj.round(x, 'up')),{wr.water_requirement_total}', 'uni', false), ... + cellfun(@(x)sprintf('%.2f',obj.round(x, 'up')),{wr.expected_water}', 'uni', false), ... wrdat'), ... 'ColumnEditable', false(1,3)); end diff --git a/+eui/MControl.m b/+eui/MControl.m index 9e5a30ca..3ca11966 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -346,8 +346,8 @@ function rigExpStopped(obj, rig, evt) % Announce that the experiment has stopped subject = dat.parseExpRef(evt.Ref); sd = rig.AlyxInstance.getData(sprintf('subjects/%s', subject)); obj.log('Water requirement remaining for %s: %.2f (%.2f already given)', ... - subject, sd.water_requirement_remaining, ... - sd.water_requirement_total-sd.water_requirement_remaining); + subject, sd.remaining_water, ... + sd.expected_water-sd.remaining_water); catch subject = dat.parseExpRef(evt.Ref); obj.log('Warning: unable to query Alyx about %s''s water requirements', subject); From a8c895c66cd0f70431ed771693bf06441de2da93 Mon Sep 17 00:00:00 2001 From: Olivier Winter Date: Mon, 19 Nov 2018 18:01:18 +0000 Subject: [PATCH 210/515] eui.AlyxPanel: water restriction management endpoint refactoring --- +eui/AlyxPanel.m | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 53e2c083..009d7f52 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -365,12 +365,12 @@ function dispWaterReq(obj, src, ~) else record = struct(); end - weight = getOr(record, 'weight_measured', NaN); % Get today's measured weight - water = getOr(record, 'water_given', 0); % Get total water given - gel = getOr(record, 'hydrogel_given', 0); % Get total gel given - weight_expected = getOr(record, 'weight_expected', NaN); + weight = getOr(record, 'weight', NaN); % Get today's measured weight + water = getOr(record, 'given_water_liquid', 0); % Get total water given + gel = getOr(record, 'given_water_hydrogel', 0); % Get total gel given + expected_weight = getOr(record, 'expected_weight', NaN); % Set colour based on weight percentage - weight_pct = (weight-wr.implant_weight)/(weight_expected-wr.implant_weight); + weight_pct = (weight-wr.implant_weight)/(expected_weight-wr.implant_weight); if weight_pct < 0.8 % Mouse below 80% original weight colour = [0.91, 0.41, 0.17]; % Orange weight_pct = '< 80%'; @@ -541,7 +541,7 @@ function viewSubjectHistory(obj, ax) obj.log('No weight data found for subject %s', obj.Subject); return end - expected = [records.weight_expected]; + expected = [records.expected_weight]; expected(expected==0) = nan; dates = cellfun(@(x)datenum(x), {records.date}); @@ -555,7 +555,7 @@ function viewSubjectHistory(obj, ax) ax = axes('Parent', plotBox); end - plot(ax, dates, [records.weight_measured], '.-'); + plot(ax, dates, [records.weight], '.-'); hold(ax, 'on'); plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); @@ -572,7 +572,7 @@ function viewSubjectHistory(obj, ax) if nargin==1 ax = axes('Parent', plotBox); - plot(ax, dates, ([records.weight_measured]-iw)./(expected-iw), '.-'); + plot(ax, dates, ([records.weight]-iw)./(expected-iw), '.-'); hold(ax, 'on'); plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); @@ -582,11 +582,11 @@ function viewSubjectHistory(obj, ax) ylabel(ax, 'weight as pct (%)'); axWater = axes('Parent',plotBox); - plot(axWater, dates, obj.round([records.water_given]+[records.hydrogel_given], 'up'), '.-'); + plot(axWater, dates, obj.round([records.given_water_liquid]+[records.given_water_hydrogel], 'up'), '.-'); hold(axWater, 'on'); - plot(axWater, dates, obj.round([records.hydrogel_given], 'down'), '.-'); - plot(axWater, dates, obj.round([records.water_given], 'down'), '.-'); - plot(axWater, dates, obj.round([records.water_expected], 'up'), 'r', 'LineWidth', 2.0); + plot(axWater, dates, obj.round([records.given_water_hydrogel], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_liquid], 'down'), '.-'); + plot(axWater, dates, obj.round([records.expected_water], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); xlim(axWater, [min(dates) max(dates)]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) @@ -597,22 +597,22 @@ function viewSubjectHistory(obj, ax) histTable = uitable('Parent', histbox,... 'FontName', 'Consolas',... 'RowName', []); - weightsByDate = num2cell([records.weight_measured]); + weightsByDate = num2cell([records.weight]); weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); - weightsByDate(isnan([records.weight_measured])) = {[]}; - weightPctByDate = num2cell(([records.weight_measured]-iw)./(expected-iw)); + weightsByDate(isnan([records.weight])) = {[]}; + weightPctByDate = num2cell(([records.weight]-iw)./(expected-iw)); weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); - weightPctByDate(isnan([records.weight_measured])) = {[]}; + weightPctByDate(isnan([records.weight])) = {[]}; dat = horzcat(... arrayfun(@(x)datestr(x), dates', 'uni', false), ... weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.weight_expected]', 'uni', false), ... + arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.expected_weight]', 'uni', false), ... weightPctByDate'); waterDat = (... - num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... - [records.water_given]'+[records.hydrogel_given]', [records.water_expected]',... - [records.water_given]'+[records.hydrogel_given]'-[records.water_expected]'))); + num2cell(horzcat([records.given_water_liquid]', [records.given_water_hydrogel]', ... + [records.given_water_liquid]'+[records.given_water_hydrogel]', [records.expected_water]',... + [records.given_water_liquid]'+[records.given_water_hydrogel]'-[records.expected_water]'))); waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); dat = horzcat(dat, waterDat); @@ -705,4 +705,4 @@ function log(obj, varargin) end end end -end \ No newline at end of file +end From e960a1abad56f2ad134b18a49bbcfdea4ea87081 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 20 Nov 2018 13:44:55 +0000 Subject: [PATCH 211/515] Water type set in hardware --- +eui/ExpPanel.m | 12 +++++++----- +exp/SignalsExp.m | 24 +++++++++++++++++++----- +hw/RewardValveControl.m | 3 +++ 3 files changed, 29 insertions(+), 10 deletions(-) diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index e3434f14..d9fd958c 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -213,6 +213,7 @@ function expStopped(obj, rig, ~) % ended. This function also records to Alyx the amount of water, % if any, that the subject received during the task. % + % TODO: Move water to save data functions % See also EXPSTARTED, ALYX.POSTWATER set(obj.StatusLabel, 'String', 'Completed'); %staus to completed obj.ExpRunning = false; @@ -236,11 +237,12 @@ function expStopped(obj, rig, ~) sum([obj.Block.trial.feedbackType]==1); end if numel(amount)>1; amount = amount(1); end % Take first element (second being laser) - otherwise - infoFields = {obj.InfoFields.String}; - inc = cellfun(@(x) any(strfind(x(:)','µl')), {obj.InfoFields.String}); % Find event values ending with 'ul'. - reward = cell2mat(cellfun(@str2num,strsplit(infoFields{find(inc,1)},'µl'),'UniformOutput',0)); - amount = iff(isempty(reward),0,@()reward); + otherwise + % Done in exp.SignalsExp/saveData + %infoFields = {obj.InfoFields.String}; + %inc = cellfun(@(x) any(strfind(x(:)','µl')), {obj.InfoFields.String}); % Find event values ending with 'ul'. + %reward = cell2mat(cellfun(@str2num,strsplit(infoFields{find(inc,1)},'µl'),'UniformOutput',0)); + %amount = iff(isempty(reward),0,@()reward); end if ~any(amount); return; end % Return if no water was given try diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index d261de2c..b8f1b74c 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -892,7 +892,8 @@ function saveData(obj) % obj.AlyxInstance.registerFile(savepaths{end}, 'mat',... % {subject, expDate, seq}, 'Block', []); % Save the session end time - if ~isempty(obj.AlyxInstance.SessionURL) + url = obj.AlyxInstance.SessionURL; + if ~isempty(url) numCorrect = []; if isfield(obj.Data, 'events') numTrials = length(obj.Data.events.endTrialValues); @@ -903,19 +904,32 @@ function saveData(obj) numTrials = 0; numCorrect = 0; end + % Update Alyx session with end time, trial counts and water tye sessionData = struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject); if ~isempty(numTrials); sessionData.numberOfTrials = numTrials; end if ~isempty(numCorrect); sessionData.numberOfCorrectTrials = numCorrect; end - obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL,... - sessionData, 'put'); + obj.AlyxInstance.postData(url, sessionData, 'put'); else % Retrieve session from endpoint -% subsessions = obj.AlyxInstance.getData(... -% sprintf('sessions?type=Experiment&subject=%s&number=%i', subject, seq)); + % subsessions = obj.AlyxInstance.getData(... + % sprintf('sessions?type=Experiment&subject=%s&number=%i', subject, seq)); end catch ex warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); end + % Post water to Alyx + try + valve_controller = obj.DaqController.SignalGenerators(strcmp(obj.DaqController.ChannelNames,'rewardValve')); + type = iff(isprop(valve_controller, 'WaterType'), valve_controller.WaterType, 'Water'); + if isfield(outputs, 'rewardValues') + amount = sum(obj.Data.outputs.rewardValues)*0.001; + else + amount = 0; + end + obj.AlyxInstance.postWater(subject, amount, now, type, url); + catch ex + warning(ex.identifier, 'Failed to post water to Alyx: %s', ex.message); + end end end end diff --git a/+hw/RewardValveControl.m b/+hw/RewardValveControl.m index aa94b999..3713ed6a 100644 --- a/+hw/RewardValveControl.m +++ b/+hw/RewardValveControl.m @@ -14,6 +14,9 @@ % 'volumeMicroLitres' indicating the duration the valve was open, and the % measured volume (in ul) for that delivery. These points are interpolated % to work out how long to open the valve for arbitrary volumes. + WaterType = 'Water' + % The type of water dispenced by the rig. This is used to populate the + % water_type field in Alyx sessions. end methods From 34a4b7a13d0ad38bd341281a168a274655cf853a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 20 Nov 2018 14:39:43 +0000 Subject: [PATCH 212/515] field name change for trials numbers --- +exp/SignalsExp.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index b8f1b74c..23340cc9 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -906,8 +906,8 @@ function saveData(obj) end % Update Alyx session with end time, trial counts and water tye sessionData = struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject); - if ~isempty(numTrials); sessionData.numberOfTrials = numTrials; end - if ~isempty(numCorrect); sessionData.numberOfCorrectTrials = numCorrect; end + if ~isempty(numTrials); sessionData.n_trials = numTrials; end + if ~isempty(numCorrect); sessionData.n_correct_trials = numCorrect; end obj.AlyxInstance.postData(url, sessionData, 'put'); else % Retrieve session from endpoint From 86b4ce0cd928750d8f42b325bb5a81d621781997 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 20 Nov 2018 15:54:41 +0000 Subject: [PATCH 213/515] Bug fix for post water --- +exp/SignalsExp.m | 2 +- alyx-matlab | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 23340cc9..7e705c0d 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -921,7 +921,7 @@ function saveData(obj) try valve_controller = obj.DaqController.SignalGenerators(strcmp(obj.DaqController.ChannelNames,'rewardValve')); type = iff(isprop(valve_controller, 'WaterType'), valve_controller.WaterType, 'Water'); - if isfield(outputs, 'rewardValues') + if isfield(obj.Data.outputs, 'rewardValues') amount = sum(obj.Data.outputs.rewardValues)*0.001; else amount = 0; diff --git a/alyx-matlab b/alyx-matlab index 5420b606..9f75b53a 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 5420b6065ccca9b438827fc1419fe30566e2ed7b +Subproject commit 9f75b53a7fbbce7f80caf674157c592e19d91db2 From 8b455028e6ff8421a0086f998d9b4e7bf709f588 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 20 Nov 2018 18:09:57 +0000 Subject: [PATCH 214/515] Ugly but functional drop-down for water type --- +eui/AlyxPanel.m | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 76cf0377..792ff5dc 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -45,7 +45,7 @@ LoginButton % Button to log in to Alyx WeightButton % Button to submit weight to Alyx WaterEntry % Text box for entering the amout of water to give - IsHydrogel % UI checkbox indicating whether to water to be given is in gel form + WaterType % UI checkbox indicating whether to water to be given is in gel form WaterRequiredText % Handle to text UI element displaying the water required WaterRemainingText % Handle to text UI element displaying the water remaining LoginTimer % Timer to keep track of how long the user has been logged in, when this expires the user is automatically logged out @@ -150,11 +150,11 @@ 'Enable', 'off',... 'Callback', @(~,~)obj.giveFutureWater); % Check box to indicate whether water was gel or liquid - obj.IsHydrogel = uicontrol('Parent', waterbox,... - 'Style', 'checkbox', ... - 'String', 'Hydrogel?', ... + obj.WaterType = uicontrol('Parent', waterbox,... + 'Style', 'popupmenu', ... + 'String', {'Water'}, ... 'HorizontalAlignment', 'right',... - 'Value', false, ... + 'Value', 1, ... 'Enable', 'off'); % Input for submitting amount of water obj.WaterEntry = uicontrol('Parent', waterbox,... @@ -241,6 +241,10 @@ function login(obj) obj.NewExpSubject.Option = newSubs; obj.SubjectList = newSubs; + % update water type list + wt = obj.AlyxInstance.getData('water-type'); + obj.WaterType.String = {wt.name}; + notify(obj, 'Connected'); % Notify listeners of login obj.log('Logged into Alyx successfully as %s', obj.AlyxInstance.User); @@ -287,7 +291,7 @@ function giveWater(obj) % state of the 'is hydrogel' check box thisDate = now; amount = str2double(get(obj.WaterEntry, 'String')); - type = iff(get(obj.IsHydrogel, 'Value')==1, 'Hydrogel', 'Water'); + type = obj.WaterType.String{obj.WaterType.Value}; if obj.AlyxInstance.IsLoggedIn && amount~=0 && ~isnan(amount) wa = obj.AlyxInstance.postWater(obj.Subject, amount, thisDate, type); if ~isempty(wa) % returned us a created water administration object successfully From 3994da9f865b8ceebc07d53adaf69b23cfa7fba6 Mon Sep 17 00:00:00 2001 From: Olivier Winter Date: Mon, 19 Nov 2018 18:01:18 +0000 Subject: [PATCH 215/515] eui.AlyxPanel: water restriction management endpoint refactoring --- +eui/AlyxPanel.m | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 792ff5dc..ada340ac 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -371,12 +371,12 @@ function dispWaterReq(obj, src, ~) else record = struct(); end - weight = getOr(record, 'weight_measured', NaN); % Get today's measured weight - water = getOr(record, 'water_given', 0); % Get total water given - gel = getOr(record, 'hydrogel_given', 0); % Get total gel given - weight_expected = getOr(record, 'weight_expected', NaN); + weight = getOr(record, 'weight', NaN); % Get today's measured weight + water = getOr(record, 'given_water_liquid', 0); % Get total water given + gel = getOr(record, 'given_water_hydrogel', 0); % Get total gel given + expected_weight = getOr(record, 'expected_weight', NaN); % Set colour based on weight percentage - weight_pct = (weight-wr.implant_weight)/(weight_expected-wr.implant_weight); + weight_pct = (weight-wr.implant_weight)/(expected_weight-wr.implant_weight); if weight_pct < 0.8 % Mouse below 80% original weight colour = [0.91, 0.41, 0.17]; % Orange weight_pct = '< 80%'; @@ -547,7 +547,7 @@ function viewSubjectHistory(obj, ax) obj.log('No weight data found for subject %s', obj.Subject); return end - expected = [records.weight_expected]; + expected = [records.expected_weight]; expected(expected==0) = nan; dates = cellfun(@(x)datenum(x), {records.date}); @@ -561,7 +561,7 @@ function viewSubjectHistory(obj, ax) ax = axes('Parent', plotBox); end - plot(ax, dates, [records.weight_measured], '.-'); + plot(ax, dates, [records.weight], '.-'); hold(ax, 'on'); plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); @@ -578,7 +578,7 @@ function viewSubjectHistory(obj, ax) if nargin==1 ax = axes('Parent', plotBox); - plot(ax, dates, ([records.weight_measured]-iw)./(expected-iw), '.-'); + plot(ax, dates, ([records.weight]-iw)./(expected-iw), '.-'); hold(ax, 'on'); plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); @@ -588,11 +588,11 @@ function viewSubjectHistory(obj, ax) ylabel(ax, 'weight as pct (%)'); axWater = axes('Parent',plotBox); - plot(axWater, dates, obj.round([records.water_given]+[records.hydrogel_given], 'up'), '.-'); + plot(axWater, dates, obj.round([records.given_water_liquid]+[records.given_water_hydrogel], 'up'), '.-'); hold(axWater, 'on'); - plot(axWater, dates, obj.round([records.hydrogel_given], 'down'), '.-'); - plot(axWater, dates, obj.round([records.water_given], 'down'), '.-'); - plot(axWater, dates, obj.round([records.water_expected], 'up'), 'r', 'LineWidth', 2.0); + plot(axWater, dates, obj.round([records.given_water_hydrogel], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_liquid], 'down'), '.-'); + plot(axWater, dates, obj.round([records.expected_water], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); xlim(axWater, [min(dates) max(dates)]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) @@ -603,22 +603,22 @@ function viewSubjectHistory(obj, ax) histTable = uitable('Parent', histbox,... 'FontName', 'Consolas',... 'RowName', []); - weightsByDate = num2cell([records.weight_measured]); + weightsByDate = num2cell([records.weight]); weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); - weightsByDate(isnan([records.weight_measured])) = {[]}; - weightPctByDate = num2cell(([records.weight_measured]-iw)./(expected-iw)); + weightsByDate(isnan([records.weight])) = {[]}; + weightPctByDate = num2cell(([records.weight]-iw)./(expected-iw)); weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); - weightPctByDate(isnan([records.weight_measured])) = {[]}; + weightPctByDate(isnan([records.weight])) = {[]}; dat = horzcat(... arrayfun(@(x)datestr(x), dates', 'uni', false), ... weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.weight_expected]', 'uni', false), ... + arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.expected_weight]', 'uni', false), ... weightPctByDate'); waterDat = (... - num2cell(horzcat([records.water_given]', [records.hydrogel_given]', ... - [records.water_given]'+[records.hydrogel_given]', [records.water_expected]',... - [records.water_given]'+[records.hydrogel_given]'-[records.water_expected]'))); + num2cell(horzcat([records.given_water_liquid]', [records.given_water_hydrogel]', ... + [records.given_water_liquid]'+[records.given_water_hydrogel]', [records.expected_water]',... + [records.given_water_liquid]'+[records.given_water_hydrogel]'-[records.expected_water]'))); waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); dat = horzcat(dat, waterDat); @@ -714,4 +714,4 @@ function log(obj, varargin) end end end -end \ No newline at end of file +end From 770ef43aa7c1cb75ad2c4b50e5ae47524ca79019 Mon Sep 17 00:00:00 2001 From: Olivier Winter Date: Mon, 19 Nov 2018 16:59:14 +0000 Subject: [PATCH 216/515] Alyx changes in subject endpoint --- +dat/parseAlyxInstance.m | 6 +++--- +eui/AlyxPanel.m | 8 ++++---- +eui/MControl.m | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/+dat/parseAlyxInstance.m b/+dat/parseAlyxInstance.m index 2eb09711..9db5cf4a 100644 --- a/+dat/parseAlyxInstance.m +++ b/+dat/parseAlyxInstance.m @@ -18,9 +18,9 @@ ai = varargin{2}; % extract AlyxInstance struct if isstruct(ai) % if there is an AlyxInstance ai = orderfields(ai); % alphabetize fields - % remove water requirement remaining field - if isfield(ai, 'water_requirement_remaining') - ai = rmfield(ai, 'water_requirement_remaining'); + % remove water remaining_water field + if isfield(ai, 'remaining_water') + ai = rmfield(ai, 'remaining_water'); end fname = fieldnames(ai); % get fieldnames emp = structfun(@isempty, ai); % find empty fields diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index ada340ac..9f2e83dc 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -388,12 +388,12 @@ function dispWaterReq(obj, src, ~) weight_pct = '> 80%'; end % Round up water remaining to the near 0.01 - remainder = obj.round(s(idx).water_requirement_remaining, 'up'); + remainder = obj.round(s(idx).remaining_water, 'up'); % Set text set(obj.WaterRequiredText, 'ForegroundColor', colour, 'String', ... sprintf(['Subject %s requires %.2f of %.2f today\n\t '... 'Weight today: %.2f (%s) Water today: %.2f'], obj.Subject, ... - remainder, obj.round(s(idx).water_requirement_total, 'up'), weight, ... + remainder, obj.round(s(idx).expected_water, 'up'), weight, ... weight_pct, obj.round(sum([water gel]), 'down'))); % Set WaterRemaining attribute for changeWaterText callback obj.WaterRemaining = remainder; @@ -649,11 +649,11 @@ function viewAllSubjects(obj) colorgen = @(colorNum,text) ['',text,'']; wrdat = cellfun(@(x)colorgen(1-double(x>0)*[0 0.3 0.3],... - sprintf('%.2f',obj.round(x, 'up'))), {wr.water_requirement_remaining}, 'uni', false); + sprintf('%.2f',obj.round(x, 'up'))), {wr.remaining_water}, 'uni', false); set(wrTable, 'ColumnName', {'Name', 'Water Required', 'Remaining Requirement'}, ... 'Data', horzcat({wr.nickname}', ... - cellfun(@(x)sprintf('%.2f',obj.round(x, 'up')),{wr.water_requirement_total}', 'uni', false), ... + cellfun(@(x)sprintf('%.2f',obj.round(x, 'up')),{wr.expected_water}', 'uni', false), ... wrdat'), ... 'ColumnEditable', false(1,3)); end diff --git a/+eui/MControl.m b/+eui/MControl.m index 9e5a30ca..3ca11966 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -346,8 +346,8 @@ function rigExpStopped(obj, rig, evt) % Announce that the experiment has stopped subject = dat.parseExpRef(evt.Ref); sd = rig.AlyxInstance.getData(sprintf('subjects/%s', subject)); obj.log('Water requirement remaining for %s: %.2f (%.2f already given)', ... - subject, sd.water_requirement_remaining, ... - sd.water_requirement_total-sd.water_requirement_remaining); + subject, sd.remaining_water, ... + sd.expected_water-sd.remaining_water); catch subject = dat.parseExpRef(evt.Ref); obj.log('Warning: unable to query Alyx about %s''s water requirements', subject); From 3cb585195df551b98902a455c494b838994c3e20 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Mon, 26 Nov 2018 15:37:40 +0000 Subject: [PATCH 217/515] Initial DaqController changes for clock output + tidying other files --- +hw/DaqController.m | 77 ++++++++++++++++++++++++++++++++------------- +hw/DaqSingleScan.m | 4 +-- +hw/Timeline.m | 13 ++++---- 3 files changed, 64 insertions(+), 30 deletions(-) diff --git a/+hw/DaqController.m b/+hw/DaqController.m index a9835d40..b2fa0891 100644 --- a/+hw/DaqController.m +++ b/+hw/DaqController.m @@ -53,6 +53,7 @@ properties (Transient) DaqSession % should be a DAQ session containing at least one analogue output channel DigitalDaqSession % a DAQ session containing only digital output channels + ClockDaqSession % a DAQ session for implementing output to a clock channel end properties (Dependent) @@ -67,32 +68,41 @@ methods function createDaqChannels(obj) - if isempty(obj.DaqSession) + if isempty(obj.DaqSession)&&any(obj.AnalogueChannelsIdx) obj.DaqSession = daq.createSession('ni'); obj.DaqSession.Rate = obj.SampleRate; end if isempty(obj.DigitalDaqSession)&&any(~obj.AnalogueChannelsIdx) obj.DigitalDaqSession = daq.createSession('ni'); end + if isempty(obj.ClockDaqSession)&&any(strncmp('ctr',(obj.DaqChannelIds),3)) + obj.ClockDaqSession = daq.createSession('ni'); + end n = obj.NumChannels; if n > 0 - for ii = 1:n + for i = 1:n if iscell(obj.DaqIds) - daqid = obj.DaqIds{ii}; + daqid = obj.DaqIds{i}; else daqid = obj.DaqIds; end - if obj.AnalogueChannelsIdx(ii) % is channal analogue? + % is channel analogue? + if strncmp('ao',(obj.DaqChannelIds{i}),2) obj.DaqSession.addAnalogOutputChannel(... - daqid, obj.DaqChannelIds{ii}, 'Voltage'); + daqid, obj.DaqChannelIds{i}, 'Voltage'); + % is channel clock output? + elseif strncmp('ctr',(obj.DaqChannelIds{i}),3) + obj.ClockDaqSession.addCounterOutputChannel(... + daqid, obj.DaqChannelIds{i}, 'PulseGeneration'); else % assume digital, always output only obj.DigitalDaqSession.addDigitalChannel(... - daqid, obj.DaqChannelIds{ii}, 'OutputOnly'); + daqid, obj.DaqChannelIds{i}, 'OutputOnly'); end end v = [obj.SignalGenerators.DefaultValue]; obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); - if any(~obj.AnalogueChannelsIdx) + if any(~obj.AnalogueChannelsIdx) && ... + ~( any(strncmp('ctr',(obj.DaqChannelIds),3)) ) obj.DigitalDaqSession.outputSingleScan(v(~obj.AnalogueChannelsIdx)); end obj.CurrValue = v; @@ -105,12 +115,14 @@ function command(obj, varargin) % Sends command signals to each channel % % command(channels, values) - % sends command signals to each channel carrying each value. - % 'channels' is a cell array of strings with each channel name, and - % value is + % sends command signal to a channel with the corresponding value + % (i.e. there is a channel-value pair for each command signal) + % 'channels' is a cell array of strings with each channel name, and + % 'value' is a cell array of values? % % command(values) - % sends command signals to all channels carrying each value + % for length of values, sends command signals to the corresponding + % ordered channels % % [CHANNEL,INDEX] = addAnalogInputChannel(...) % addAnalogInputChannel optionally returns CHANNEL, which is an @@ -143,13 +155,13 @@ function command(obj, varargin) gen = obj.SignalGenerators(1:n); rate = obj.DaqSession.Rate; waveforms = cell(1, n); - for ii = 1:n + for i = 1:n if iscell(values) - v = values{ii}; + v = values{i}; else - v = values(:,ii); + v = values(:,i); end - waveforms{ii} = gen(ii).waveform(rate, v); + waveforms{i} = gen(i).waveform(rate, v); end if obj.DaqSession.IsRunning % if a daq operation is in progress, stop it, and set its output @@ -158,6 +170,7 @@ function command(obj, varargin) end channelNames = obj.ChannelNames(1:n); analogueChannelsIdx = obj.AnalogueChannelsIdx(1:n); + % for all analogue channel outputs if any(analogueChannelsIdx)&&any(any(values(:,analogueChannelsIdx)~=0)) queue(obj, channelNames(analogueChannelsIdx), waveforms(analogueChannelsIdx)); if foreground @@ -167,18 +180,38 @@ function command(obj, varargin) end readyWait(obj); obj.DaqSession.release; - elseif any(~analogueChannelsIdx) - waveforms = waveforms(~analogueChannelsIdx); - for n = 1:length(waveforms) - digitalValues = waveforms{n}; - for m = 1:length(digitalValues) - obj.DigitalDaqSession.outputSingleScan(digitalValues(m)); - end +% elseif any(~analogueChannelsIdx) %why is this an elseif? +% waveforms = waveforms(~analogueChannelsIdx); + else % for all digital or clock outputs + maxLnWaveform = max(cellfun(@length, waveforms)); + % pad shorter waveforms + for i = 1:length(waveforms) + waveforms{i}(end:maxLnWaveform) = waveforms{i}(end); + end + waveformsMtx = vec2mat(cell2mat(waveforms), maxLnWaveform); + if iscolumn(waveformsMtx), waveformsMtx = waveformsMtx'; end + % output first rows of waveformsMtx (values for each channel) (to + % account for waveforms of different lengths) + for n = 1:size(waveformsMtx,1) + % for clock output channels with a valid value to output + if strncmp('ctr',(obj.DaqChannelIds{n}),3) && waveformsMtx(n,1)>0 + obj.ClockDaqSession.dt = length(waveformsMtx(n,1)) / obj.SampleRate; + obj.ClockDaqSession.F = 1/obj.ClockDaqSession.dt; + obj.ClockDaqSession.Duty = 1; + startBackground(obj.ClockDaqSession); + else %for digital output channels + obj.DigitalDaqSession.outputSingleScan(waveformsMtx(n,:)); end + end end end end + function clearSessions(obj) + obj.DaqSession = []; + obj.DigitalDaqSession = []; + end + function v = get.NumChannels(obj) v = numel(obj.DaqChannelIds); end diff --git a/+hw/DaqSingleScan.m b/+hw/DaqSingleScan.m index 2bb53282..b37fd102 100644 --- a/+hw/DaqSingleScan.m +++ b/+hw/DaqSingleScan.m @@ -17,11 +17,11 @@ obj.Scale = scale; end - function samples = waveform(obj, v) + function samples = waveform(obj, varargin) % just take the first value (if multiple were provided) and output % it, scaled, as a single number. This will result in the analog % output channel switching to that value and staying there. - samples = v(1)*obj.Scale; + samples = varargin{end}*obj.Scale; end end diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 2e8a3b16..020a96c2 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -1,5 +1,5 @@ classdef Timeline < handle -% HW.TIMELINE Returns an object that generate and aquires clocking pulses +% HW.TIMELINE Returns an object that generates and aquires clocking pulses % Timeline (tl) manages the aquisition and generation of experimental % timing data using an NI data aquisition device. The main timing signal % is called 'chrono' and consists of a digital squarewave that flips each @@ -45,7 +45,7 @@ % %Add the rotary encoder % timeline.addInput('rotaryEncoder', 'ctr0', 'Position'); % %For a lick detector -% timeline.addInput('lickDetector', 'ctr2', 'EdgeCount'); +% timeline.addInput('lickDetector', 'ctr1', 'EdgeCount'); % %We want use camera frame acquisition trigger by default % timeline.UseOutputs{end+1} = 'clock'; % %Save your hardware.mat file @@ -132,7 +132,7 @@ function start(obj, expRef, ai) % START Starts timeline data acquisition % START(obj, ref, AlyxInstance) starts all DAQ sessions and adds - % the relevent output and input channels. + % the relevant output and input channels. % % See Also HW.TLOUTPUT/START @@ -192,8 +192,8 @@ function start(obj, expRef, ai) function record(obj, name, event, t) % Records an event in Timeline % TL.RECORD(name, event, [time]) records an event in the Timeline - % struct in fields prefixed with 'name', with data in 'event'. Optionally - % specify 'time', otherwise the time of call will be used (relative to + % object in fields prefixed with 'name', with data in 'event'. Optionally + % specify time 't', otherwise the time of call will be used (relative to % Timeline acquisition). if nargin < 4; t = time(obj); end % default to time now (using Timeline clock) initLength = 100; % default initial length of event data arrays @@ -604,7 +604,8 @@ function livePlot(obj, data) % TL.LIVEPLOT(source, event) plots the data aquired by the % DAQ while the PlotLive property is true. if isempty(obj.Axes) - f = figure('Units', 'Normalized', 'Position', [0 0 1 1]); % create a figure for plotting aquired data + %f = figure('Units', 'Normalized', 'Position', [0 0 1 1]); % create a figure for plotting aquired data + f = figure('Units', 'Normalized'); obj.Axes = gca; % store a handle to the axes if isprop(obj, 'FigurePosition') && ~isempty(obj.FigurePosition) set(f, 'Position', obj.FigurePosition); % set the figure position From a94ab94c79ca8bca2145a39c808b9c7d4d4662fd Mon Sep 17 00:00:00 2001 From: jaib1 Date: Tue, 27 Nov 2018 14:24:23 +0000 Subject: [PATCH 218/515] working RewardAsClock in DaqController --- +hw/DaqController.m | 103 +++++++++++++++++++++++++++++--------------- 1 file changed, 68 insertions(+), 35 deletions(-) diff --git a/+hw/DaqController.m b/+hw/DaqController.m index b2fa0891..524047e4 100644 --- a/+hw/DaqController.m +++ b/+hw/DaqController.m @@ -15,7 +15,7 @@ % %Define the channel ID to output on % daqController.DaqChannelIds = {'ai0'}; % %As it is an analogue output, set the AnalogueChannelsIdx to true - % daqController.AnalogueChannelIdx(1) = true; + % daqController.AnalogueChannelsIdx(1) = true; % %Add a signal generator that will return the correct samples for % %delivering a reward of a specified volume % daqController.SignalGenerators(1) = hw.RewardValveControl; @@ -37,8 +37,11 @@ % See also HW.CONTROLSIGNALGENERATOR, HW.DAQROTARYENCODER % 2013 CB created % 2017-07 MW added digital output support + % 2018-11 JB added output reward as clock channel + % 2018-11 JB added simultaneous analog/digital and digital/digital output properties + ChannelNames = {} % name to refer to each channel %Signal generator for each channel. Each should be an object of class %hw.ControlSignalGenerator, for generating command waveforms. @@ -48,31 +51,39 @@ SampleRate = 1000 % output sample rate ("scans/sec") of the daq device % 1000 is also the default of the ni daq devices themselves, so if % you don't change this, it doesn't actually do anything. + end properties (Transient) + DaqSession % should be a DAQ session containing at least one analogue output channel DigitalDaqSession % a DAQ session containing only digital output channels ClockDaqSession % a DAQ session for implementing output to a clock channel + end properties (Dependent) + Value %The current voltage on each DAQ channel NumChannels %Number of channels controlled AnalogueChannelsIdx %Logical array of analogue channel IDs + end properties (Access = private, Transient) + CurrValue + end methods + function createDaqChannels(obj) - if isempty(obj.DaqSession)&&any(obj.AnalogueChannelsIdx) + if isempty(obj.DaqSession)&&any(strncmp('ao',(obj.DaqChannelIds),2)) obj.DaqSession = daq.createSession('ni'); obj.DaqSession.Rate = obj.SampleRate; end - if isempty(obj.DigitalDaqSession)&&any(~obj.AnalogueChannelsIdx) + if isempty(obj.DigitalDaqSession)&&any(strncmp('port',(obj.DaqChannelIds),4)) obj.DigitalDaqSession = daq.createSession('ni'); end if isempty(obj.ClockDaqSession)&&any(strncmp('ctr',(obj.DaqChannelIds),3)) @@ -94,17 +105,21 @@ function createDaqChannels(obj) elseif strncmp('ctr',(obj.DaqChannelIds{i}),3) obj.ClockDaqSession.addCounterOutputChannel(... daqid, obj.DaqChannelIds{i}, 'PulseGeneration'); - else % assume digital, always output only + else % assume digital, always 'OutputOnly' obj.DigitalDaqSession.addDigitalChannel(... daqid, obj.DaqChannelIds{i}, 'OutputOnly'); end end + + % what are these lines doing? why outputSingleScan? why a/d separate? + v = [obj.SignalGenerators.DefaultValue]; - obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); - if any(~obj.AnalogueChannelsIdx) && ... - ~( any(strncmp('ctr',(obj.DaqChannelIds),3)) ) - obj.DigitalDaqSession.outputSingleScan(v(~obj.AnalogueChannelsIdx)); - end +% obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); +% % digital (non-clock) channel only +% nonClockDigis = strncmp('port',(obj.DaqChannelIds),4); +% if any(nonClockDigis) +% obj.DigitalDaqSession.outputSingleScan(v(nonClockDigis)); +% end obj.CurrValue = v; else obj.CurrValue = []; @@ -171,7 +186,7 @@ function command(obj, varargin) channelNames = obj.ChannelNames(1:n); analogueChannelsIdx = obj.AnalogueChannelsIdx(1:n); % for all analogue channel outputs - if any(analogueChannelsIdx)&&any(any(values(:,analogueChannelsIdx)~=0)) + if any(analogueChannelsIdx)&&any(values(:,analogueChannelsIdx)~=0) queue(obj, channelNames(analogueChannelsIdx), waveforms(analogueChannelsIdx)); if foreground startForeground(obj.DaqSession); @@ -180,27 +195,31 @@ function command(obj, varargin) end readyWait(obj); obj.DaqSession.release; -% elseif any(~analogueChannelsIdx) %why is this an elseif? -% waveforms = waveforms(~analogueChannelsIdx); - else % for all digital or clock outputs + end + % for all digital or clock outputs (why does this have to be an else?) + if any(~analogueChannelsIdx)&&any(values(:,~analogueChannelsIdx)~=0) maxLnWaveform = max(cellfun(@length, waveforms)); % pad shorter waveforms for i = 1:length(waveforms) waveforms{i}(end:maxLnWaveform) = waveforms{i}(end); end - waveformsMtx = vec2mat(cell2mat(waveforms), maxLnWaveform); - if iscolumn(waveformsMtx), waveformsMtx = waveformsMtx'; end - % output first rows of waveformsMtx (values for each channel) (to - % account for waveforms of different lengths) - for n = 1:size(waveformsMtx,1) - % for clock output channels with a valid value to output - if strncmp('ctr',(obj.DaqChannelIds{n}),3) && waveformsMtx(n,1)>0 - obj.ClockDaqSession.dt = length(waveformsMtx(n,1)) / obj.SampleRate; - obj.ClockDaqSession.F = 1/obj.ClockDaqSession.dt; - obj.ClockDaqSession.Duty = 1; - startBackground(obj.ClockDaqSession); - else %for digital output channels - obj.DigitalDaqSession.outputSingleScan(waveformsMtx(n,:)); + waveformsMtx = cell2mat(waveforms); + %if iscolumn(waveformsMtx), waveformsMtx = waveformsMtx'; end + % output columns of waveformsMtx (values for each channel) + for n = 1:size(waveformsMtx,2) + %if we have some value to output + if any(waveformsMtx(:,n)) + % for clock output channels with a valid value to output + if strncmp('ctr',(obj.DaqChannelIds{n}),3) + obj.ClockDaqSession.DurationInSeconds = length(waveformsMtx) / obj.SampleRate; + %Duty Cycle must be b/w 0-1, so set to 'n' and scale frequency by 1/n + obj.ClockDaqSession.Channels.DutyCycle = 0.99; + obj.ClockDaqSession.Channels.Frequency = 1/obj.ClockDaqSession.DurationInSeconds/0.99; + startBackground(obj.ClockDaqSession); + %for digital output channels + elseif strncmp('port',(obj.DaqChannelIds{n}),4) + obj.DigitalDaqSession.outputSingleScan(waveformsMtx(:,n)); + end end end end @@ -210,6 +229,7 @@ function command(obj, varargin) function clearSessions(obj) obj.DaqSession = []; obj.DigitalDaqSession = []; + obj.ClockDaqSession = []; end function v = get.NumChannels(obj) @@ -226,7 +246,9 @@ function clearSessions(obj) function set.Value(obj, v) readyWait(obj); - obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); + if any (obj.AnalogueChannelsIdx) + obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); + end if any(~obj.AnalogueChannelsIdx) obj.DigitalDaqSession.outputSingleScan(v(~obj.AnalogueChannelsIdx)); end @@ -234,20 +256,26 @@ function clearSessions(obj) end function reset(obj) - stop(obj.DaqSession); + if ~isempty(obj.DaqSession) + stop(obj.DaqSession); + end if ~isempty(obj.DigitalDaqSession) stop(obj.DigitalDaqSession); end v = [obj.SignalGenerators.DefaultValue]; - outputSingleScan(obj.DaqSession, v(obj.AnalogueChannelsIdx)); + if any(obj.AnalogueChannelsIdx) + outputSingleScan(obj.DaqSession, v(obj.AnalogueChannelsIdx)); + end if any(~obj.AnalogueChannelsIdx) outputSingleScan(obj.DigitalDaqSession, v(~obj.AnalogueChannelsIdx)); end obj.CurrValue = v; end + end methods (Access = protected) + function queue(obj, names, waveforms) names = ensureCell(names); waveforms = ensureCell(waveforms); @@ -256,12 +284,13 @@ function queue(obj, names, waveforms) len = cellfun(@numel, waveforms); defaultValues = [obj.SignalGenerators.DefaultValue]; samples = repmat(defaultValues(obj.AnalogueChannelsIdx), max(len), 1); - for ii = 1:numel(waveforms) - cidx = strcmp(names{ii}, obj.ChannelNames); - assert(sum(cidx) == 1, 'Channel name mismatch'); - samples(1:len(ii),cidx) = waveforms{ii}; + for i = 1:numel(waveforms) + % cidx = strcmp(names{i}, obj.ChannelNames); + % assert(sum(cidx) == 1, 'Channel name mismatch'); + % samples(1:len(i),cidx) = waveforms{i}; + samples(1:len(i),i) = waveforms{i}; end - readyWait(obj); + %readyWait(obj); % plot(samples,'-x'), xlim([-1 300]) obj.DaqSession.queueOutputData(samples); % samplelen = size(samples,1)/1000 @@ -269,13 +298,17 @@ function queue(obj, names, waveforms) end function readyWait(obj) - if obj.DaqSession.IsRunning + if ~isempty(obj.DaqSession)&&obj.DaqSession.IsRunning obj.DaqSession.wait(); end if ~isempty(obj.DigitalDaqSession)&&obj.DigitalDaqSession.IsRunning obj.DigitalDaqSession.wait(); end + if ~isempty(obj.ClockDaqSession)&&obj.ClockDaqSession.IsRunning + obj.ClockDaqSession.wait(); + end end + end end From 7526eee6f17e90dab70f34b7025c4762bcd07c9a Mon Sep 17 00:00:00 2001 From: jaib1 Date: Tue, 27 Nov 2018 15:51:32 +0000 Subject: [PATCH 219/515] manual changes to resolve remote conflicts --- .gitmodules | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitmodules b/.gitmodules index 32b91d63..77c1349b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,16 +1,16 @@ [submodule "alyx-matlab"] path = alyx-matlab - url = https://github.com/jaib1/alyx-matlab/ + url = https://github.com/cortex-lab/alyx-matlab/ branch = dev [submodule "signals"] path = signals - url = https://github.com/jaib1/signals + url = https://github.com/cortex-lab/signals branch = dev [submodule "npy-matlab"] path = npy-matlab - url = https://github.com/jaib1/npy-matlab - branch = dev + url = https://github.com/cortex-lab/npy-matlab + branch = master [submodule "wheelAnalysis"] path = wheelAnalysis - url = https://github.com/jaib1/wheelAnalysis - branch = dev + url = https://github.com/cortex-lab/wheelAnalysis + branch = master From 53273c6d25bcab0a84b2b3873cfbefa642ece759 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 27 Nov 2018 19:01:53 +0000 Subject: [PATCH 220/515] Session water posted by rig instead of mc. Allows rig specific water type. --- +eui/ExpPanel.m | 58 ++++++++++++++++----------------- +exp/Experiment.m | 27 ---------------- cortexlab/+exp/ChoiceWorld.m | 63 +++++++++++++++++++++++++++++++++++- cortexlab/+git/update.m | 12 ------- 4 files changed, 91 insertions(+), 69 deletions(-) diff --git a/+eui/ExpPanel.m b/+eui/ExpPanel.m index d9fd958c..6827dbdc 100644 --- a/+eui/ExpPanel.m +++ b/+eui/ExpPanel.m @@ -222,35 +222,35 @@ function expStopped(obj, rig, ~) obj.Listeners = []; obj.Root.TitleColor = [1 0.3 0.22]; % red title area %post water to Alyx - ai = rig.AlyxInstance; - subject = obj.SubjectRef; - if ~isempty(ai)&&~strcmp(subject,'default') - switch class(obj) - case 'eui.ChoiceExpPanel' - if ~isfield(obj.Block.trial,'feedbackType'); return; end % No completed trials - if any(strcmp(obj.Parameters.TrialSpecificNames,'rewardVolume')) % Reward is trial specific - condition = [obj.Block.trial.condition]; - reward = [condition.rewardVolume]; - amount = sum(reward(:,[obj.Block.trial.feedbackType]==1), 2); - else % Global reward x positive feedback - amount = obj.Parameters.Struct.rewardVolume(1)*... - sum([obj.Block.trial.feedbackType]==1); - end - if numel(amount)>1; amount = amount(1); end % Take first element (second being laser) - otherwise - % Done in exp.SignalsExp/saveData - %infoFields = {obj.InfoFields.String}; - %inc = cellfun(@(x) any(strfind(x(:)','µl')), {obj.InfoFields.String}); % Find event values ending with 'ul'. - %reward = cell2mat(cellfun(@str2num,strsplit(infoFields{find(inc,1)},'µl'),'UniformOutput',0)); - %amount = iff(isempty(reward),0,@()reward); - end - if ~any(amount); return; end % Return if no water was given - try - ai.postWater(subject, amount*0.001, now, 'Water', ai.SessionURL); - catch - warning('Failed to post the %.2fml %s recieved during the experiment to Alyx', amount*0.001, subject); - end - end +% ai = rig.AlyxInstance; +% subject = obj.SubjectRef; +% if ~isempty(ai)&&~strcmp(subject,'default') +% switch class(obj) +% case 'eui.ChoiceExpPanel' +% if ~isfield(obj.Block.trial,'feedbackType'); return; end % No completed trials +% if any(strcmp(obj.Parameters.TrialSpecificNames,'rewardVolume')) % Reward is trial specific +% condition = [obj.Block.trial.condition]; +% reward = [condition.rewardVolume]; +% amount = sum(reward(:,[obj.Block.trial.feedbackType]==1), 2); +% else % Global reward x positive feedback +% amount = obj.Parameters.Struct.rewardVolume(1)*... +% sum([obj.Block.trial.feedbackType]==1); +% end +% if numel(amount)>1; amount = amount(1); end % Take first element (second being laser) +% otherwise +% % Done in exp.SignalsExp/saveData +% %infoFields = {obj.InfoFields.String}; +% %inc = cellfun(@(x) any(strfind(x(:)','µl')), {obj.InfoFields.String}); % Find event values ending with 'ul'. +% %reward = cell2mat(cellfun(@str2num,strsplit(infoFields{find(inc,1)},'µl'),'UniformOutput',0)); +% %amount = iff(isempty(reward),0,@()reward); +% end +% if ~any(amount); return; end % Return if no water was given +% try +% ai.postWater(subject, amount*0.001, now, 'Water', ai.SessionURL); +% catch +% warning('Failed to post the %.2fml %s recieved during the experiment to Alyx', amount*0.001, subject); +% end +% end end function expUpdate(obj, rig, evt) diff --git a/+exp/Experiment.m b/+exp/Experiment.m index b236aa93..5f411ac9 100644 --- a/+exp/Experiment.m +++ b/+exp/Experiment.m @@ -775,33 +775,6 @@ function saveData(obj) % save the data to the appropriate locations indicated by expRef savepaths = dat.expFilePath(obj.Data.expRef, 'block'); superSave(savepaths, struct('block', obj.Data)); - - if ~obj.AlyxInstance.IsLoggedIn - warning('No Alyx token set'); - else - try - subject = dat.parseExpRef(obj.Data.expRef); - if strcmp(subject, 'default'); return; end - % Register saved files - obj.AlyxInstance.registerFile(savepaths{end}); - % Save the session end time - if ~isempty(obj.AlyxInstance.SessionURL) - numTrials = obj.Data.numCompletedTrials; - if isfield(obj.Data, 'trial')&&isfield(obj.Data.trial, 'feedbackType') - numCorrect = sum([obj.Data.trial.feedbackType] == 1); - else - numCorrect = 0; - end - sessionData = struct('end_time', obj.AlyxInstance.datestr(now), ... - 'subject', subject, 'numberOfTrials', numTrials, 'numberOfCorrectTrials', numCorrect); - obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL, sessionData, 'put'); - else - % Infer from date session and retrieve using expFilePath - end - catch ex - warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); - end - end end end diff --git a/cortexlab/+exp/ChoiceWorld.m b/cortexlab/+exp/ChoiceWorld.m index 4c8d1edb..f55f0bb2 100644 --- a/cortexlab/+exp/ChoiceWorld.m +++ b/cortexlab/+exp/ChoiceWorld.m @@ -172,7 +172,68 @@ function drawFrame(obj) % obj.Data.trial(obj.TrialNum).stimFrame(n).time = obj.Clock.now; % obj.Data.trial(obj.TrialNum).stimFrame(n).targetBounds = round(bounds); end - end + end + + function saveData(obj) + saveData@exp.Experiment(obj); + if ~obj.AlyxInstance.IsLoggedIn + warning('No Alyx token set'); + else + try + subject = dat.parseExpRef(obj.Data.expRef); + if strcmp(subject, 'default'); return; end + % Register saved files + savepaths = dat.expFilePath(obj.Data.expRef, 'block'); + obj.AlyxInstance.registerFile(savepaths{end}); + % Save the session end time + if ~isempty(obj.AlyxInstance.SessionURL) + numTrials = obj.Data.numCompletedTrials; + if isfield(obj.Data, 'trial')&&isfield(obj.Data.trial, 'feedbackType') + numCorrect = sum([obj.Data.trial.feedbackType] == 1); + else + numCorrect = 0; + end + sessionData = struct('end_time', obj.AlyxInstance.datestr(now), ... + 'subject', subject, 'n_trials', numTrials, 'n_correct_trials', numCorrect); + obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL, sessionData, 'put'); + else + % Infer from date session and retrieve using expFilePath + end + catch ex + warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); + end + try + if ~isfield(obj.Data,'trial') && ~isfield(obj.Data.trial,'feedbackType') + return % No completed trials + end + % Reward volume + if ~any(strcmp(fieldnames(obj.Data.parameters),'rewardVolume')) % Reward is trial specific + condition = [obj.Data.trial.condition]; + reward = [condition.rewardVolume]; + amount = sum(reward(:,[obj.Data.trial.feedbackType]==1), 2); + else % Global reward x positive feedback + amount = obj.Data.parameters.rewardVolume(1)*... + sum([obj.Data.trial.feedbackType]==1); + end + % Reward on stimulus + if ~any(strcmp(fieldnames(obj.Data.parameters),'rewardOnStimulus')) % Reward is trial specific + condition = [obj.Data.trial.condition]; + stimReward = sum([condition.rewardOnStimulus],2); + amount = amount(1) + stimReward; + else % Global reward x positive feedback + amount = amount(1) + obj.Data.parameters.rewardOnStimulus(1); + end + if numel(amount)>1; amount = amount(1); end % Take first element (second being laser) + if ~any(amount); return; end % Return if no water was given + controller = obj.RewardController.SignalGenerators(strcmp(obj.RewardController.ChannelNames,'rewardValve')); + type = iff(isprop(controller, 'WaterType'), controller.WaterType, 'Water'); + obj.AlyxInstance.postWater(subject, amount*0.001, now, type, obj.AlyxInstance.SessionURL); + catch ex + warning(ex.identifier, 'Failed to post water to Alyx: %s', ex.message); + end + end + end + end end diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 52705ca1..d45d1f79 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -46,18 +46,6 @@ function update(fatalOnError, scheduled) end end % TODO: check if submodules are empty and use init flag -cmdstr = strjoin({gitexepath, 'submodule update --remote --merge'}); -status = system(cmdstr, '-echo'); -if status ~= 0 - if fatalOnError - cd(origDir) - error('gitUpdate:submodule:updateFailed', ... - 'Failed to pull latest changes for submodules:, %s', cmdout) - else - warning('gitUpdate:submodule:updateFailed', ... - 'Failed to pull latest changes for submodules:, %s', cmdout) - end -end % Run any new tasks changesPath = fullfile(root, 'cortexlab', '+git', 'changes.m'); From f6a1ff5bcedc4fd7d8fe34e224cfe917a67a64ba Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 27 Nov 2018 19:37:13 +0000 Subject: [PATCH 221/515] Simplified ChoiceWorld water post --- cortexlab/+exp/ChoiceWorld.m | 22 +++------------------- cortexlab/+git/changes.m | 1 - 2 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 cortexlab/+git/changes.m diff --git a/cortexlab/+exp/ChoiceWorld.m b/cortexlab/+exp/ChoiceWorld.m index f55f0bb2..607d6d06 100644 --- a/cortexlab/+exp/ChoiceWorld.m +++ b/cortexlab/+exp/ChoiceWorld.m @@ -203,27 +203,11 @@ function saveData(obj) warning(ex.identifier, 'Failed to register files to Alyx: %s', ex.message); end try - if ~isfield(obj.Data,'trial') && ~isfield(obj.Data.trial,'feedbackType') + if ~isfield(obj.Data,'rewardDeliveredSizes') || ... + strcmp(obj.Data.endStatus, 'aborted') return % No completed trials end - % Reward volume - if ~any(strcmp(fieldnames(obj.Data.parameters),'rewardVolume')) % Reward is trial specific - condition = [obj.Data.trial.condition]; - reward = [condition.rewardVolume]; - amount = sum(reward(:,[obj.Data.trial.feedbackType]==1), 2); - else % Global reward x positive feedback - amount = obj.Data.parameters.rewardVolume(1)*... - sum([obj.Data.trial.feedbackType]==1); - end - % Reward on stimulus - if ~any(strcmp(fieldnames(obj.Data.parameters),'rewardOnStimulus')) % Reward is trial specific - condition = [obj.Data.trial.condition]; - stimReward = sum([condition.rewardOnStimulus],2); - amount = amount(1) + stimReward; - else % Global reward x positive feedback - amount = amount(1) + obj.Data.parameters.rewardOnStimulus(1); - end - if numel(amount)>1; amount = amount(1); end % Take first element (second being laser) + amount = sum(obj.Data.rewardDeliveredSizes(:,1)); % Take first element (second being laser) if ~any(amount); return; end % Return if no water was given controller = obj.RewardController.SignalGenerators(strcmp(obj.RewardController.ChannelNames,'rewardValve')); type = iff(isprop(controller, 'WaterType'), controller.WaterType, 'Water'); diff --git a/cortexlab/+git/changes.m b/cortexlab/+git/changes.m deleted file mode 100644 index 9232640b..00000000 --- a/cortexlab/+git/changes.m +++ /dev/null @@ -1 +0,0 @@ -addRigboxPaths; \ No newline at end of file From 779a9f817726d1c7e37ba5eb9cc66478cf893b20 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 27 Nov 2018 19:57:48 +0000 Subject: [PATCH 222/515] Scheduled update day set in paths file --- +dat/paths.m | 1 + +srv/expServer.m | 3 ++- mc.m | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 37f96514..aff32ea7 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -28,6 +28,7 @@ p.databaseURL = 'https://alyx.cortexlab.net'; % p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; p.gitExe = 'C:\Program Files\Git\cmd\git.exe'; +p.updateSchedule = 2; % Day on which to update code (2 = Monday) % Under the new system of having data grouped by mouse % rather than data type, all experimental data are saved here. diff --git a/+srv/expServer.m b/+srv/expServer.m index be5b3081..05e9c591 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -20,7 +20,8 @@ function expServer(useTimelineOverride, bgColour) %% Initialisation % Pull latest changes from remote -git.update(true, 2); % Update ever Monday +schedule = getOr(dat.paths, 'updateSchedule', 2); +git.update(true, schedule); % random seed random number generator rng('shuffle'); % communicator for receiving commands from clients diff --git a/mc.m b/mc.m index 071f4656..e81013d8 100644 --- a/mc.m +++ b/mc.m @@ -5,8 +5,9 @@ % 2013-06 CB created -% Pull latest changes from remote -git.update(true); +% Pull latest changes from remote every Monday +schedule = getOr(dat.paths, 'updateSchedule', 2); +git.update(true, schedule); f = figure('Name', 'MC',... 'MenuBar', 'none',... 'Toolbar', 'none',... From 318cae02c1c3c6abfb5ff9caa5cd034d6205edd1 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 28 Nov 2018 20:01:42 +0000 Subject: [PATCH 223/515] Launch Webpage for session fix --- +eui/AlyxPanel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 9f2e83dc..bdf360a2 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -473,7 +473,7 @@ function launchSessionURL(obj) % If the date of this latest base session is not the same date % as today, then create a new one for today - if isempty(sessions) || ~strcmp(sessions{end}.start_time(1:10), thisDate(1:10)) + if isempty(sessions) || ~strcmp(sessions(end).start_time(1:10), thisDate(1:10)) % Ask user whether he/she wants to create new session % Construct a questdlg with three options choice = questdlg('Would you like to create a new base session?', ... From a60e93af3eafaf923bba33b8ce92af16b8858660 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 30 Nov 2018 15:14:55 +0000 Subject: [PATCH 224/515] Small delay for correct behaviour of reward on stim --- cortexlab/+exp/configureChoiceExperiment.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cortexlab/+exp/configureChoiceExperiment.m b/cortexlab/+exp/configureChoiceExperiment.m index c37225f9..714f081b 100644 --- a/cortexlab/+exp/configureChoiceExperiment.m +++ b/cortexlab/+exp/configureChoiceExperiment.m @@ -117,6 +117,8 @@ % or 'onsetToneSoundPlayed' 'stimulusCueStarted' stimRewardHandler = exp.EventHandler('stimulusCueStarted'); stimRewardHandler.addAction(exp.DeliverReward('rewardOnStimulus')); + % Small delay to allow time for screen flip before the samples output + stimRewardHandler.Delay = exp.FixedTime(0.05); experiment.addEventHandler(stimRewardHandler); terminationHandler = exp.EventHandler('responseMade'); terminationHandler.addCallback(@(inf,t)reset(inf.Experiment.RewardController)); From b3a0f2f9987d608815a78cb64eab6a87c397e4bf Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 30 Nov 2018 16:06:14 +0000 Subject: [PATCH 225/515] Update tp submodules --- alyx-matlab | 2 +- signals | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alyx-matlab b/alyx-matlab index 1e193a9d..9f75b53a 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 1e193a9d21d59ac67900a41ef8181c7504d90b00 +Subproject commit 9f75b53a7fbbce7f80caf674157c592e19d91db2 diff --git a/signals b/signals index 8c480d8b..071e4420 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 8c480d8b002ef8ae24c82b138ce4fbeea0d961cb +Subproject commit 071e44207410dab429f5c962999a56ade4d050dc From 0908e3353f806c770d1df7b3d2001469a4f14949 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 3 Dec 2018 16:06:16 +0000 Subject: [PATCH 226/515] Removed star and end dates in water-restriction GET for view subject method --- +eui/AlyxPanel.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index bdf360a2..15025b61 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -538,8 +538,7 @@ function viewSubjectHistory(obj, ax) % If not logged in or 'default' is selected, return if ~obj.AlyxInstance.IsLoggedIn||strcmp(obj.Subject, 'default'); return; end % collect the data for the table - endpnt = sprintf('water-requirement/%s?start_date=2016-01-01&end_date=%s', obj.Subject, datestr(now, 'yyyy-mm-dd')); - wr = obj.AlyxInstance.getData(endpnt); + wr = obj.AlyxInstance.getData(['water-requirement/', obj.Subject]); iw = iff(isempty(wr.implant_weight), 0, wr.implant_weight); records = catStructs(wr.records, nan); % no weighings found From c5cccc143f2ae63b62ca131409dc2652f48f9e26 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Tue, 4 Dec 2018 14:57:48 +0000 Subject: [PATCH 227/515] commit for updated submodules --- alyx-matlab | 2 +- npy-matlab | 2 +- signals | 2 +- wheelAnalysis | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/alyx-matlab b/alyx-matlab index 3e88d1e9..9f75b53a 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 3e88d1e9c61a9b04eb99c49f269a64db843cb017 +Subproject commit 9f75b53a7fbbce7f80caf674157c592e19d91db2 diff --git a/npy-matlab b/npy-matlab index a7c4900b..b7b0a4ef 160000 --- a/npy-matlab +++ b/npy-matlab @@ -1 +1 @@ -Subproject commit a7c4900b62757e1b657f2cc983a5df3282abd674 +Subproject commit b7b0a4ef6ba26d98a8c54e651d5444083c88311c diff --git a/signals b/signals index 4e64108c..3bfc5dfc 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 4e64108ca6a8874edcb7a3e316df78004e6551ef +Subproject commit 3bfc5dfcdc3bbabbb24f93e25900a4f689161564 diff --git a/wheelAnalysis b/wheelAnalysis index 16979786..05f90203 160000 --- a/wheelAnalysis +++ b/wheelAnalysis @@ -1 +1 @@ -Subproject commit 169797868da3fe93e1581cb4d581cdc4f4d9cd34 +Subproject commit 05f902033bc834c98624d5634be3cf91b737f250 From 6f667d1872c69196e5dab25e4051fe0d5c2e23ed Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 5 Dec 2018 14:35:58 +0000 Subject: [PATCH 228/515] Fix'd weight plot; no longer ploting unweighed days --- +eui/AlyxPanel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 15025b61..eeb477be 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -547,7 +547,7 @@ function viewSubjectHistory(obj, ax) return end expected = [records.expected_weight]; - expected(expected==0) = nan; + expected(expected==0|cellfun('isempty',{records.weighing_at})) = nan; dates = cellfun(@(x)datenum(x), {records.date}); % build the figure to show it From 1462af7f939cd66f20f147bb1a6923afa0a69763 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 5 Dec 2018 14:40:17 +0000 Subject: [PATCH 229/515] Typo fix in signals repo --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index 8c480d8b..0dc60c11 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 8c480d8b002ef8ae24c82b138ce4fbeea0d961cb +Subproject commit 0dc60c11e20a75a3c63da9f80956fb1bb938f801 From 066ec03f97d851adfa411dcefef2f50ce65f060a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 5 Dec 2018 17:53:24 +0000 Subject: [PATCH 230/515] Updates to modules and update fun --- alyx-matlab | 2 +- cortexlab/+git/update.m | 12 ++++++++---- npy-matlab | 2 +- signals | 2 +- wheelAnalysis | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/alyx-matlab b/alyx-matlab index 3e88d1e9..9f75b53a 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 3e88d1e9c61a9b04eb99c49f269a64db843cb017 +Subproject commit 9f75b53a7fbbce7f80caf674157c592e19d91db2 diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index d45d1f79..f084e274 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -11,7 +11,8 @@ function update(fatalOnError, scheduled) root = fileparts(which('addRigboxPaths')); lastFetch = getOr(dir(fullfile(root, '.git', 'FETCH_HEAD')), 'datenum'); -if scheduled && weekday(now) ~= scheduled && now - lastFetch < 7 +if (scheduled && weekday(now) ~= scheduled && now - lastFetch < 7) || ... + (~scheduled && now - lastFetch < 1/24) return end disp('Updating code...') @@ -35,8 +36,12 @@ function update(fatalOnError, scheduled) % return % end -cmdstr = strjoin({gitexepath, 'pull'}); -[status, cmdout] = system(cmdstr); +%%% Check that the submodules are initialized +cmdstr = strjoin({gitexepath, 'submodule', 'update', '--init'}); +[status, cmdout] = system(cmdstr, '-echo'); + +cmdstr = strjoin({gitexepath, 'pull --recurse-submodules'}); +[status, cmdout] = system(cmdstr, '-echo'); if status ~= 0 if fatalOnError cd(origDir) @@ -45,7 +50,6 @@ function update(fatalOnError, scheduled) warning('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) end end -% TODO: check if submodules are empty and use init flag % Run any new tasks changesPath = fullfile(root, 'cortexlab', '+git', 'changes.m'); diff --git a/npy-matlab b/npy-matlab index a7c4900b..b7b0a4ef 160000 --- a/npy-matlab +++ b/npy-matlab @@ -1 +1 @@ -Subproject commit a7c4900b62757e1b657f2cc983a5df3282abd674 +Subproject commit b7b0a4ef6ba26d98a8c54e651d5444083c88311c diff --git a/signals b/signals index 4e64108c..c33a2791 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 4e64108ca6a8874edcb7a3e316df78004e6551ef +Subproject commit c33a2791b7d346f1be97433679fadc5467eedfdb diff --git a/wheelAnalysis b/wheelAnalysis index 16979786..05f90203 160000 --- a/wheelAnalysis +++ b/wheelAnalysis @@ -1 +1 @@ -Subproject commit 169797868da3fe93e1581cb4d581cdc4f4d9cd34 +Subproject commit 05f902033bc834c98624d5634be3cf91b737f250 From ddc5045d6bd1dd86dab61b5b5cd64faf0c479a3c Mon Sep 17 00:00:00 2001 From: jaib1 Date: Thu, 6 Dec 2018 19:18:02 +0000 Subject: [PATCH 231/515] stash and pull strategy changes to git.update --- cortexlab/+git/update.m | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index f084e274..ee2fee72 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -17,14 +17,15 @@ function update(fatalOnError, scheduled) end disp('Updating code...') -% Get the path to the Git exe +% Get the path to the Git exe (can we assume this is unnecessary)? gitexepath = getOr(dat.paths, 'gitExe'); if isempty(gitexepath) - [~,gitexepath] = system('where git'); + [~,gitexepath] = system('where git'); % this doesn't always work end gitexepath = ['"', strtrim(gitexepath), '"']; -% Temporarily change directory into Rigbox +% Temporarily change directory into Rigbox -> isn't it safe to assume we're +% already in Rigbox? (since we're running this file, presumably we are?) origDir = pwd; cd(root) @@ -36,12 +37,17 @@ function update(fatalOnError, scheduled) % return % end -%%% Check that the submodules are initialized -cmdstr = strjoin({gitexepath, 'submodule', 'update', '--init'}); -[status, cmdout] = system(cmdstr, '-echo'); +% Check that the submodules are initialized +cmdstrInit = [gitexepath, ' ', 'submodule update --init']; +[status, cmdout] = system(cmdstrInit, '-echo'); -cmdstr = strjoin({gitexepath, 'pull --recurse-submodules'}); -[status, cmdout] = system(cmdstr, '-echo'); +% Stash any WIP changes +cmdstrStash = [gitexepath ' ' 'stash push -m "stash working changes before scheduled git update"']; +[status, cmdout] = system(cmdstrStash, '-echo'); + +%Pull submodules using "theirs" merge strategy +cmdstrPull = [gitexepath, ' ', 'pull --recurse-submodules --strategy-option=theirs']; +[status, cmdout] = system(cmdstrPull, '-echo'); if status ~= 0 if fatalOnError cd(origDir) From 2a3b473ffcdf3009d47d80f73548f05347621364 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 7 Dec 2018 12:45:07 +0000 Subject: [PATCH 232/515] hw-info ext bugfix; new commits to alyx-matlab; added test paths --- +dat/expFilePath.m | 2 +- alyx-matlab | 2 +- tests/+dat/paths.m | 66 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 tests/+dat/paths.m diff --git a/+dat/expFilePath.m b/+dat/expFilePath.m index b9053047..89133929 100644 --- a/+dat/expFilePath.m +++ b/+dat/expFilePath.m @@ -53,7 +53,7 @@ case 'block' % MAT-file with info about each set of trials suff = '_Block.mat'; case 'hw-info' % MAT-file with info about the hardware used for an experiment - suff = '_hardwareInfo.mat'; + suff = '_hardwareInfo.json'; case '2p-raw' % TIFF with 2-photon raw fluorescence movies suff = '_2P.tif'; case 'calcium-preview' diff --git a/alyx-matlab b/alyx-matlab index 9f75b53a..6a4f2863 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 9f75b53a7fbbce7f80caf674157c592e19d91db2 +Subproject commit 6a4f2863281801627090a69693665a62f10e5aae diff --git a/tests/+dat/paths.m b/tests/+dat/paths.m new file mode 100644 index 00000000..95e39049 --- /dev/null +++ b/tests/+dat/paths.m @@ -0,0 +1,66 @@ +function p = paths(rig) +%DAT.PATHS Returns struct containing important paths for testing +% p = DAT.PATHS([RIG]) +% TODO: +% - Clean up expDefinitions directory +% Part of Rigbox + +% 2013-03 CB created + +thishost = 'dummyRig'; + +if nargin < 1 || isempty(rig) + rig = thishost; +end + +%% defaults +% path containing rigbox config folders +p.rigbox = fileparts(which('addRigboxPaths')); +% Repository for local copy of everything generated on this rig +p.localRepository = 'C:\LocalExpData'; +p.localAlyxQueue = fullfile(p.rigbox, 'tests', 'data', 'alyx'); +p.databaseURL = 'https://alyx-dev.cortexlab.net'; +% p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; +p.gitExe = 'C:\Program Files\Git\cmd\git.exe'; + +% Under the new system of having data grouped by mouse +% rather than data type, all experimental data are saved here. +p.mainRepository = fullfile(p.rigbox, 'tests', 'data', 'Subjects'); + +% directory for organisation-wide configuration files, for now these should +% all remain on zserver +p.globalConfig = fullfile(p.rigbox, 'tests', 'data', 'config'); +% directory for rig-specific configuration files +p.rigConfig = fullfile(p.globalConfig, rig); +% repository for all experiment definitions +p.expDefinitions = fullfile(p.rigbox, 'tests', 'data', 'expdefs'); + +% repository for working analyses that are not meant to be stored +% permanently +p.workingAnalysisRepository = fullfile(p.rigbox, 'tests', 'data'); + +% for tape backups, first files go here: +p.tapeStagingRepository = fullfile(p.rigbox, 'tests', 'staging'); + +% then they go here: +p.tapeArchiveRepository = fullfile(p.rigbox, 'tests', 'toarchive'); + + +%% load rig-specific overrides from config file, if any +customPathsFile = fullfile(p.rigConfig, 'paths.mat'); +if file.exists(customPathsFile) + customPaths = loadVar(customPathsFile, 'paths'); + if isfield(customPaths, 'centralRepository') + % 'centralRepository' is deprecated, remove field, if any + customPaths = rmfield(customPaths, 'centralRepository'); + end + if isfield(customPaths, 'expInfoRepository') + % 'expInfo' is deprecated, change to 'main' + p.mainRepository = customPaths.expInfoRepository; + customPaths = rmfield(customPaths, 'expInfoRepository'); + end + % merge paths structures, with precedence on the loaded custom paths + p = mergeStructs(customPaths, p); +end + +end From 3f764de7e92c821fdb9104cdc1a070a2edb2dcce Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Fri, 7 Dec 2018 14:39:33 +0000 Subject: [PATCH 233/515] Removed questioning directory comments --- cortexlab/+git/update.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index ee2fee72..cd5f0cb9 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -17,15 +17,14 @@ function update(fatalOnError, scheduled) end disp('Updating code...') -% Get the path to the Git exe (can we assume this is unnecessary)? +% Get the path to the Git exe gitexepath = getOr(dat.paths, 'gitExe'); if isempty(gitexepath) [~,gitexepath] = system('where git'); % this doesn't always work end gitexepath = ['"', strtrim(gitexepath), '"']; -% Temporarily change directory into Rigbox -> isn't it safe to assume we're -% already in Rigbox? (since we're running this file, presumably we are?) +% Temporarily change directory into Rigbox to git pull origDir = pwd; cd(root) @@ -65,4 +64,4 @@ function update(fatalOnError, scheduled) end cd(origDir) -end \ No newline at end of file +end From 6e8e9de9a2f8ef144715d067e1633b2c95cf034e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 7 Dec 2018 17:56:43 +0000 Subject: [PATCH 234/515] Give different water types in the future. Today's recorded weigth now displayed --- +eui/AlyxPanel.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index eeb477be..db481a67 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -309,8 +309,10 @@ function giveFutureWater(obj) % paramProfiles file. This may be used to notify weekend staff % of the experimentor's intent to train on that date. thisDate = now; - prompt = sprintf(['Enter space-separated numbers \n'... - '[tomorrow, day after that, day after that.. etc] \n',... + waterType = obj.WaterType.String{obj.WaterType.Value}; + prompt = sprintf(['To post future ', strrep(lower(waterType), '%', '%%'), ', ',... + 'enter space-separated numbers, i.e. \n',... + '[tomorrow, day after that, day after that.. etc] \n\n',... 'Enter "0" to skip a day\nEnter "-1" to indicate training for that day\n']); amtStr = inputdlg(prompt,'Future Amounts', [1 50]); if isempty(amtStr)||~obj.AlyxInstance.IsLoggedIn @@ -332,7 +334,7 @@ function giveFutureWater(obj) amtWtrDates = amt(amt > 0); % amount of water to give on future water dates for d = 1:length(futWtrDates) - obj.AlyxInstance.postWater(obj.Subject, amtWtrDates(d), futWtrDates(d), 'Water'); + obj.AlyxInstance.postWater(obj.Subject, amtWtrDates(d), futWtrDates(d), waterType); [~,day] = weekday(futWtrDates(d), 'long'); obj.log('Water administration of %.2f for %s posted successfully to alyx for %s %s',... amtWtrDates(d), obj.Subject, day, datestr(futWtrDates(d), 'dd mmm yyyy')); @@ -371,7 +373,7 @@ function dispWaterReq(obj, src, ~) else record = struct(); end - weight = getOr(record, 'weight', NaN); % Get today's measured weight + weight = iff(isempty(record.weighing_at), NaN, record.weight); % Get today's measured weight water = getOr(record, 'given_water_liquid', 0); % Get total water given gel = getOr(record, 'given_water_hydrogel', 0); % Get total gel given expected_weight = getOr(record, 'expected_weight', NaN); From 5d31c5acba003d1d52d22bae12a83499076875fd Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 7 Dec 2018 19:17:12 +0000 Subject: [PATCH 235/515] Update to alyx-matlab submodule --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 6a4f2863..87cd195c 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 6a4f2863281801627090a69693665a62f10e5aae +Subproject commit 87cd195c4745d74b56e01357255a34984675c89e From 05f723e667427fdc1e67eb670b4eb3ede5575987 Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Fri, 7 Dec 2018 22:02:40 +0000 Subject: [PATCH 236/515] Update readme.md --- readme.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 120f73ae..6f6e5470 100644 --- a/readme.md +++ b/readme.md @@ -10,8 +10,8 @@ The following is a brief description of how to install Rigbox on your experiment ## Prerequisites Rigbox has the following software dependencies: -* Windows Operating System (7 or later) -* MATLAB (2016a or later) +* Windows Operating System (7 or later, 64-bit) +* MATLAB (2016b or later) * The following MathWorks MATLAB toolboxes: * Data Acquisition Toolbox * Signal Processing Toolbox @@ -117,7 +117,7 @@ The 'StimulusControl' class is used by the mc computer to manage the stimulus se ### cb-tools/burgbox -Burgbox contains many simple helper functions that are used by the main packages. Within this directory are additional packages: +"Burgbox" contains many simple helper functions that are used by the main packages. Within this directory are additional packages: * +bui --- Classes for managing graphics objects such as axes * +aud --- Functions for interacting with PsychoPortAudio @@ -131,7 +131,11 @@ Burgbox contains many simple helper functions that are used by the main packages ### cortexlab -The cortexlab directory is intended for functions and classes that are rig or cortexlab specific, for instance code that allows compatibility with other stimulus presentation packages used by cortexlab (e.g. MPEP) +The "cortexlab" directory is intended for functions and classes that are rig or cortexlab specific, for instance code that allows compatibility with other stimulus presentation packages used by cortexlab (e.g. MPEP) + +### tests + +The "tests" directory contains code for running unit tests within Rigbox. ### submodules From ad6571b27a368ea7649005c0982d6307e1b9e112 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 10 Dec 2018 14:18:41 +0000 Subject: [PATCH 237/515] Update to signals --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index c33a2791..5dd71e46 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit c33a2791b7d346f1be97433679fadc5467eedfdb +Subproject commit 5dd71e4618ef7738a01f7ae6ab8ce79a3505ed63 From 8978915f389f23c935e2efbb20a7d193695548fe Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 10 Dec 2018 15:22:47 +0000 Subject: [PATCH 238/515] Update to signals --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index 5dd71e46..83a1cc17 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 5dd71e4618ef7738a01f7ae6ab8ce79a3505ed63 +Subproject commit 83a1cc17e47b98b2aa0a285dd9fe959c2253d5b3 From 89ce3fbb5ad1c0107049221f9a9ddd19820a79cb Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Mon, 10 Dec 2018 18:20:53 +0000 Subject: [PATCH 239/515] Update git.update --- cortexlab/+git/update.m | 46 ++++++++++++++--------------------------- 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index cd5f0cb9..5aa86c58 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -1,4 +1,4 @@ -function update(fatalOnError, scheduled) +function update(scheduled) % GIT.UPDATE Pull latest Rigbox code % Pulls the latest code from the remote repository. If scheduled is a % value in the range [1 7] corresponding to the days of the week, the @@ -6,8 +6,7 @@ function update(fatalOnError, scheduled) % a week ago. % TODO Find quicker way to check for changes % See also -if nargin == 0; fatalOnError = true; end -if nargin < 2; scheduled = 0; end +if nargin < 1; scheduled = 0; end root = fileparts(which('addRigboxPaths')); lastFetch = getOr(dir(fullfile(root, '.git', 'FETCH_HEAD')), 'datenum'); @@ -28,32 +27,20 @@ function update(fatalOnError, scheduled) origDir = pwd; cd(root) -% Check if there are changes before pulling -% cmdstr = strjoin({gitexepath, 'fetch'}); -% system(cmdstr, '-echo'); -% if isempty(cmdout) -% cd(origDir) -% return -% end - -% Check that the submodules are initialized -cmdstrInit = [gitexepath, ' ', 'submodule update --init']; -[status, cmdout] = system(cmdstrInit, '-echo'); - -% Stash any WIP changes -cmdstrStash = [gitexepath ' ' 'stash push -m "stash working changes before scheduled git update"']; -[status, cmdout] = system(cmdstrStash, '-echo'); - -%Pull submodules using "theirs" merge strategy -cmdstrPull = [gitexepath, ' ', 'pull --recurse-submodules --strategy-option=theirs']; -[status, cmdout] = system(cmdstrPull, '-echo'); -if status ~= 0 - if fatalOnError - cd(origDir) - error('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) - else - warning('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) - end +cmdstrStash = [gitexepath, ' stash push -m "stash Rigbox working changes before scheduled git update"']; +cmdstrStashSubs = [gitexepath, ' submodule foreach "git stash push"']; +cmdstrInit = [gitexepath, ' submodule update --init']; +cmdstrPull = [gitexepath, ' pull --recurse-submodules --strategy-option=theirs']; + +% Stash any WIP, check submodules are initialized, pull +try + [status, cmdout] = system(cmdstrStash, '-echo'); + [status, cmdout] = system(cmdstrStashSubs, '-echo'); + [status, cmdout] = system(cmdstrInit, '-echo'); + [status, cmdout] = system(cmdstrPull, '-echo'); +catch ex + cd(origDir) + error('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) end % Run any new tasks @@ -62,6 +49,5 @@ function update(fatalOnError, scheduled) git.changes; delete(changesPath); end - cd(origDir) end From 329bd47d66b75934b0e8502546c9559285efc6c8 Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Mon, 10 Dec 2018 18:21:38 +0000 Subject: [PATCH 240/515] corresponding 'git.update' update to 'mc' --- mc.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mc.m b/mc.m index 071f4656..8297142f 100644 --- a/mc.m +++ b/mc.m @@ -6,7 +6,7 @@ % 2013-06 CB created % Pull latest changes from remote -git.update(true); +git.update; f = figure('Name', 'MC',... 'MenuBar', 'none',... 'Toolbar', 'none',... From 5facbea0047b13001dfaa94437b1a300ebbba112 Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Mon, 10 Dec 2018 18:22:25 +0000 Subject: [PATCH 241/515] corresponding 'git.update' update to 'srv.expServer' --- +srv/expServer.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+srv/expServer.m b/+srv/expServer.m index 586f03b3..4e8d2bcc 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -20,7 +20,7 @@ function expServer(useTimelineOverride, bgColour) %% Initialisation % Pull latest changes from remote -git.update(true); +git.update; % random seed random number generator rng('shuffle'); % communicator for receiving commands from clients From 71c4ade2106a1c56d68be7208954dabcdcaa2ce8 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 27 Nov 2018 19:57:48 +0000 Subject: [PATCH 242/515] Scheduled update day taken from paths file --- +dat/paths.m | 5 +++-- +srv/expServer.m | 2 +- cortexlab/+git/update.m | 2 +- mc.m | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/+dat/paths.m b/+dat/paths.m index 37f96514..52c1145c 100644 --- a/+dat/paths.m +++ b/+dat/paths.m @@ -25,9 +25,10 @@ % Repository for local copy of everything generated on this rig p.localRepository = 'C:\LocalExpData'; p.localAlyxQueue = 'C:\localAlyxQueue'; -p.databaseURL = 'https://alyx.cortexlab.net'; -% p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; +p.databaseURL = 'https://alyx.cortexlab.net'; % 'https://dev.alyx.internationalbrainlab.org/'; p.gitExe = 'C:\Program Files\Git\cmd\git.exe'; +% Day on which to update code (0 = Everyday, 1 = Sunday, etc.) +p.updateSchedule = 0; % Under the new system of having data grouped by mouse % rather than data type, all experimental data are saved here. diff --git a/+srv/expServer.m b/+srv/expServer.m index 4e8d2bcc..235fd286 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -20,7 +20,7 @@ function expServer(useTimelineOverride, bgColour) %% Initialisation % Pull latest changes from remote -git.update; +git.update(); % random seed random number generator rng('shuffle'); % communicator for receiving commands from clients diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 5aa86c58..86cb25e9 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -6,7 +6,7 @@ function update(scheduled) % a week ago. % TODO Find quicker way to check for changes % See also -if nargin < 1; scheduled = 0; end +if nargin < 1; scheduled = getOr(dat.paths, 'updateSchedule', 0); end root = fileparts(which('addRigboxPaths')); lastFetch = getOr(dir(fullfile(root, '.git', 'FETCH_HEAD')), 'datenum'); diff --git a/mc.m b/mc.m index 8297142f..76379578 100644 --- a/mc.m +++ b/mc.m @@ -6,7 +6,7 @@ % 2013-06 CB created % Pull latest changes from remote -git.update; +git.update(); f = figure('Name', 'MC',... 'MenuBar', 'none',... 'Toolbar', 'none',... From 44090664d7aabbbf15f9014ca9bf685a9fb6ac32 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 14 Dec 2018 16:28:20 +0000 Subject: [PATCH 243/515] Update to submodules --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 87cd195c..8eeb2f5f 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 87cd195c4745d74b56e01357255a34984675c89e +Subproject commit 8eeb2f5f9336b701ced0bb9a9c4ce579e4623105 From d23f6fb5b3b90ccac56c056ae03f7ef03f5d9e57 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 14 Dec 2018 18:50:19 +0000 Subject: [PATCH 244/515] Fixed bug with hw-info saved as '.jjson' file --- +dat/expFilePath.m | 2 +- +eui/AlyxPanel.m | 2 +- +srv/expServer.m | 6 +++--- alyx-matlab | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/+dat/expFilePath.m b/+dat/expFilePath.m index 89133929..79736854 100644 --- a/+dat/expFilePath.m +++ b/+dat/expFilePath.m @@ -52,7 +52,7 @@ switch lower(type) case 'block' % MAT-file with info about each set of trials suff = '_Block.mat'; - case 'hw-info' % MAT-file with info about the hardware used for an experiment + case 'hw-info' % JSON-file with info about the hardware used for an experiment suff = '_hardwareInfo.json'; case '2p-raw' % TIFF with 2-photon raw fluorescence movies suff = '_2P.tif'; diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index db481a67..458293e0 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -711,7 +711,7 @@ function log(obj, varargin) case 'down' A = ceil(a*c)/c; otherwise - A = round(a*c)/c; + A = round(a, sigFigures, 'significant'); end end end diff --git a/+srv/expServer.m b/+srv/expServer.m index 586f03b3..501e170f 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -260,13 +260,13 @@ function handleMessage(id, data, host) rig.stimWindow.flip(); % clear the screen after % save a copy of the hardware in JSON - name = dat.expFilePath(expRef, 'hw-info', 'master'); - fid = fopen([name(1:end-3) 'json'], 'w'); + hwInfo = dat.expFilePath(expRef, 'hw-info', 'master'); + fid = fopen(hwInfo, 'w'); fprintf(fid, '%s', obj2json(rig)); fclose(fid); if ~strcmp(dat.parseExpRef(expRef), 'default') try - Alyx.registerFile([name(1:end-3) 'json']); + Alyx.registerFile(hwInfo); catch ex warning(ex.identifier, 'Failed to register hardware info: %s', ex.message); end diff --git a/alyx-matlab b/alyx-matlab index 87cd195c..11038d22 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 87cd195c4745d74b56e01357255a34984675c89e +Subproject commit 11038d22c42f96c0408027c7bbe3f0939f79028a From 8135874475deb241bb3db49613ff9e8990d58732 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 14 Dec 2018 19:01:07 +0000 Subject: [PATCH 245/515] Reverting changes; .mat hw-nfo still used by tlvs. Using strrep to deal with ext in expServer --- +dat/expFilePath.m | 4 ++-- +srv/expServer.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/+dat/expFilePath.m b/+dat/expFilePath.m index 79736854..b9053047 100644 --- a/+dat/expFilePath.m +++ b/+dat/expFilePath.m @@ -52,8 +52,8 @@ switch lower(type) case 'block' % MAT-file with info about each set of trials suff = '_Block.mat'; - case 'hw-info' % JSON-file with info about the hardware used for an experiment - suff = '_hardwareInfo.json'; + case 'hw-info' % MAT-file with info about the hardware used for an experiment + suff = '_hardwareInfo.mat'; case '2p-raw' % TIFF with 2-photon raw fluorescence movies suff = '_2P.tif'; case 'calcium-preview' diff --git a/+srv/expServer.m b/+srv/expServer.m index dff9a879..4748aa69 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -260,7 +260,7 @@ function handleMessage(id, data, host) rig.stimWindow.flip(); % clear the screen after % save a copy of the hardware in JSON - hwInfo = dat.expFilePath(expRef, 'hw-info', 'master'); + hwInfo = strrep(dat.expFilePath(expRef, 'hw-info', 'master'), '.mat', '.json'); fid = fopen(hwInfo, 'w'); fprintf(fid, '%s', obj2json(rig)); fclose(fid); From c9d7a00b4c30fc1663057563cd45b86098d21857 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 17 Dec 2018 14:24:31 +0000 Subject: [PATCH 246/515] Wheel assignment back in useRig --- +exp/SignalsExp.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index bcf93e6d..eae1c04e 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -153,8 +153,6 @@ obj.Events.newTrial = net.origin('newTrial'); obj.Events.expStop = net.origin('expStop'); obj.Inputs.wheel = net.origin('wheel'); - obj.Wheel = rig.mouseInput; - obj.Wheel.zero(); obj.Inputs.wheelMM = obj.Inputs.wheel.map(@... (x)obj.Wheel.MillimetresFactor*(x-obj.Wheel.ZeroOffset)).skipRepeats(); obj.Inputs.wheelDeg = obj.Inputs.wheel.map(... @@ -221,6 +219,8 @@ function useRig(obj, rig) warning('squeak:hw', 'No screen configuration specified. Visual locations will be wrong.'); end obj.DaqController = rig.daqController; + obj.Wheel = rig.mouseInput; + obj.Wheel.zero(); if isfield(rig, 'lickDetector') obj.LickDetector = rig.lickDetector; obj.LickDetector.zero(); From 77a3c2c113f77b6fc544ce348b394084916a104d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 18 Dec 2018 14:09:49 +0000 Subject: [PATCH 247/515] Rolled back DaqController due to issues with DigitalTTL output --- +hw/DaqController.m | 140 ++++++++++++-------------------------------- 1 file changed, 37 insertions(+), 103 deletions(-) diff --git a/+hw/DaqController.m b/+hw/DaqController.m index 524047e4..a9835d40 100644 --- a/+hw/DaqController.m +++ b/+hw/DaqController.m @@ -15,7 +15,7 @@ % %Define the channel ID to output on % daqController.DaqChannelIds = {'ai0'}; % %As it is an analogue output, set the AnalogueChannelsIdx to true - % daqController.AnalogueChannelsIdx(1) = true; + % daqController.AnalogueChannelIdx(1) = true; % %Add a signal generator that will return the correct samples for % %delivering a reward of a specified volume % daqController.SignalGenerators(1) = hw.RewardValveControl; @@ -37,11 +37,8 @@ % See also HW.CONTROLSIGNALGENERATOR, HW.DAQROTARYENCODER % 2013 CB created % 2017-07 MW added digital output support - % 2018-11 JB added output reward as clock channel - % 2018-11 JB added simultaneous analog/digital and digital/digital output properties - ChannelNames = {} % name to refer to each channel %Signal generator for each channel. Each should be an object of class %hw.ControlSignalGenerator, for generating command waveforms. @@ -51,75 +48,53 @@ SampleRate = 1000 % output sample rate ("scans/sec") of the daq device % 1000 is also the default of the ni daq devices themselves, so if % you don't change this, it doesn't actually do anything. - end properties (Transient) - DaqSession % should be a DAQ session containing at least one analogue output channel DigitalDaqSession % a DAQ session containing only digital output channels - ClockDaqSession % a DAQ session for implementing output to a clock channel - end properties (Dependent) - Value %The current voltage on each DAQ channel NumChannels %Number of channels controlled AnalogueChannelsIdx %Logical array of analogue channel IDs - end properties (Access = private, Transient) - CurrValue - end methods - function createDaqChannels(obj) - if isempty(obj.DaqSession)&&any(strncmp('ao',(obj.DaqChannelIds),2)) + if isempty(obj.DaqSession) obj.DaqSession = daq.createSession('ni'); obj.DaqSession.Rate = obj.SampleRate; end - if isempty(obj.DigitalDaqSession)&&any(strncmp('port',(obj.DaqChannelIds),4)) + if isempty(obj.DigitalDaqSession)&&any(~obj.AnalogueChannelsIdx) obj.DigitalDaqSession = daq.createSession('ni'); end - if isempty(obj.ClockDaqSession)&&any(strncmp('ctr',(obj.DaqChannelIds),3)) - obj.ClockDaqSession = daq.createSession('ni'); - end n = obj.NumChannels; if n > 0 - for i = 1:n + for ii = 1:n if iscell(obj.DaqIds) - daqid = obj.DaqIds{i}; + daqid = obj.DaqIds{ii}; else daqid = obj.DaqIds; end - % is channel analogue? - if strncmp('ao',(obj.DaqChannelIds{i}),2) + if obj.AnalogueChannelsIdx(ii) % is channal analogue? obj.DaqSession.addAnalogOutputChannel(... - daqid, obj.DaqChannelIds{i}, 'Voltage'); - % is channel clock output? - elseif strncmp('ctr',(obj.DaqChannelIds{i}),3) - obj.ClockDaqSession.addCounterOutputChannel(... - daqid, obj.DaqChannelIds{i}, 'PulseGeneration'); - else % assume digital, always 'OutputOnly' + daqid, obj.DaqChannelIds{ii}, 'Voltage'); + else % assume digital, always output only obj.DigitalDaqSession.addDigitalChannel(... - daqid, obj.DaqChannelIds{i}, 'OutputOnly'); + daqid, obj.DaqChannelIds{ii}, 'OutputOnly'); end end - - % what are these lines doing? why outputSingleScan? why a/d separate? - v = [obj.SignalGenerators.DefaultValue]; -% obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); -% % digital (non-clock) channel only -% nonClockDigis = strncmp('port',(obj.DaqChannelIds),4); -% if any(nonClockDigis) -% obj.DigitalDaqSession.outputSingleScan(v(nonClockDigis)); -% end + obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); + if any(~obj.AnalogueChannelsIdx) + obj.DigitalDaqSession.outputSingleScan(v(~obj.AnalogueChannelsIdx)); + end obj.CurrValue = v; else obj.CurrValue = []; @@ -130,14 +105,12 @@ function command(obj, varargin) % Sends command signals to each channel % % command(channels, values) - % sends command signal to a channel with the corresponding value - % (i.e. there is a channel-value pair for each command signal) - % 'channels' is a cell array of strings with each channel name, and - % 'value' is a cell array of values? + % sends command signals to each channel carrying each value. + % 'channels' is a cell array of strings with each channel name, and + % value is % % command(values) - % for length of values, sends command signals to the corresponding - % ordered channels + % sends command signals to all channels carrying each value % % [CHANNEL,INDEX] = addAnalogInputChannel(...) % addAnalogInputChannel optionally returns CHANNEL, which is an @@ -170,13 +143,13 @@ function command(obj, varargin) gen = obj.SignalGenerators(1:n); rate = obj.DaqSession.Rate; waveforms = cell(1, n); - for i = 1:n + for ii = 1:n if iscell(values) - v = values{i}; + v = values{ii}; else - v = values(:,i); + v = values(:,ii); end - waveforms{i} = gen(i).waveform(rate, v); + waveforms{ii} = gen(ii).waveform(rate, v); end if obj.DaqSession.IsRunning % if a daq operation is in progress, stop it, and set its output @@ -185,8 +158,7 @@ function command(obj, varargin) end channelNames = obj.ChannelNames(1:n); analogueChannelsIdx = obj.AnalogueChannelsIdx(1:n); - % for all analogue channel outputs - if any(analogueChannelsIdx)&&any(values(:,analogueChannelsIdx)~=0) + if any(analogueChannelsIdx)&&any(any(values(:,analogueChannelsIdx)~=0)) queue(obj, channelNames(analogueChannelsIdx), waveforms(analogueChannelsIdx)); if foreground startForeground(obj.DaqSession); @@ -195,43 +167,18 @@ function command(obj, varargin) end readyWait(obj); obj.DaqSession.release; - end - % for all digital or clock outputs (why does this have to be an else?) - if any(~analogueChannelsIdx)&&any(values(:,~analogueChannelsIdx)~=0) - maxLnWaveform = max(cellfun(@length, waveforms)); - % pad shorter waveforms - for i = 1:length(waveforms) - waveforms{i}(end:maxLnWaveform) = waveforms{i}(end); - end - waveformsMtx = cell2mat(waveforms); - %if iscolumn(waveformsMtx), waveformsMtx = waveformsMtx'; end - % output columns of waveformsMtx (values for each channel) - for n = 1:size(waveformsMtx,2) - %if we have some value to output - if any(waveformsMtx(:,n)) - % for clock output channels with a valid value to output - if strncmp('ctr',(obj.DaqChannelIds{n}),3) - obj.ClockDaqSession.DurationInSeconds = length(waveformsMtx) / obj.SampleRate; - %Duty Cycle must be b/w 0-1, so set to 'n' and scale frequency by 1/n - obj.ClockDaqSession.Channels.DutyCycle = 0.99; - obj.ClockDaqSession.Channels.Frequency = 1/obj.ClockDaqSession.DurationInSeconds/0.99; - startBackground(obj.ClockDaqSession); - %for digital output channels - elseif strncmp('port',(obj.DaqChannelIds{n}),4) - obj.DigitalDaqSession.outputSingleScan(waveformsMtx(:,n)); + elseif any(~analogueChannelsIdx) + waveforms = waveforms(~analogueChannelsIdx); + for n = 1:length(waveforms) + digitalValues = waveforms{n}; + for m = 1:length(digitalValues) + obj.DigitalDaqSession.outputSingleScan(digitalValues(m)); end end - end end end end - function clearSessions(obj) - obj.DaqSession = []; - obj.DigitalDaqSession = []; - obj.ClockDaqSession = []; - end - function v = get.NumChannels(obj) v = numel(obj.DaqChannelIds); end @@ -246,9 +193,7 @@ function clearSessions(obj) function set.Value(obj, v) readyWait(obj); - if any (obj.AnalogueChannelsIdx) - obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); - end + obj.DaqSession.outputSingleScan(v(obj.AnalogueChannelsIdx)); if any(~obj.AnalogueChannelsIdx) obj.DigitalDaqSession.outputSingleScan(v(~obj.AnalogueChannelsIdx)); end @@ -256,26 +201,20 @@ function clearSessions(obj) end function reset(obj) - if ~isempty(obj.DaqSession) - stop(obj.DaqSession); - end + stop(obj.DaqSession); if ~isempty(obj.DigitalDaqSession) stop(obj.DigitalDaqSession); end v = [obj.SignalGenerators.DefaultValue]; - if any(obj.AnalogueChannelsIdx) - outputSingleScan(obj.DaqSession, v(obj.AnalogueChannelsIdx)); - end + outputSingleScan(obj.DaqSession, v(obj.AnalogueChannelsIdx)); if any(~obj.AnalogueChannelsIdx) outputSingleScan(obj.DigitalDaqSession, v(~obj.AnalogueChannelsIdx)); end obj.CurrValue = v; end - end methods (Access = protected) - function queue(obj, names, waveforms) names = ensureCell(names); waveforms = ensureCell(waveforms); @@ -284,13 +223,12 @@ function queue(obj, names, waveforms) len = cellfun(@numel, waveforms); defaultValues = [obj.SignalGenerators.DefaultValue]; samples = repmat(defaultValues(obj.AnalogueChannelsIdx), max(len), 1); - for i = 1:numel(waveforms) - % cidx = strcmp(names{i}, obj.ChannelNames); - % assert(sum(cidx) == 1, 'Channel name mismatch'); - % samples(1:len(i),cidx) = waveforms{i}; - samples(1:len(i),i) = waveforms{i}; + for ii = 1:numel(waveforms) + cidx = strcmp(names{ii}, obj.ChannelNames); + assert(sum(cidx) == 1, 'Channel name mismatch'); + samples(1:len(ii),cidx) = waveforms{ii}; end - %readyWait(obj); + readyWait(obj); % plot(samples,'-x'), xlim([-1 300]) obj.DaqSession.queueOutputData(samples); % samplelen = size(samples,1)/1000 @@ -298,17 +236,13 @@ function queue(obj, names, waveforms) end function readyWait(obj) - if ~isempty(obj.DaqSession)&&obj.DaqSession.IsRunning + if obj.DaqSession.IsRunning obj.DaqSession.wait(); end if ~isempty(obj.DigitalDaqSession)&&obj.DigitalDaqSession.IsRunning obj.DigitalDaqSession.wait(); end - if ~isempty(obj.ClockDaqSession)&&obj.ClockDaqSession.IsRunning - obj.ClockDaqSession.wait(); - end end - end end From 0e5e4004e1daecdfefc2486994016899249a1990 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 18 Dec 2018 18:22:41 +0000 Subject: [PATCH 248/515] Logs no longer subtract reference time: already done by obj.Clock.now method --- +exp/SignalsExp.m | 8 ++++---- signals | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index eae1c04e..2eb9d192 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -600,17 +600,17 @@ function cleanup(obj) % collate the logs %events - obj.Data.events = logs(obj.Events, obj.Clock.ReferenceTime); + obj.Data.events = logs(obj.Events); %params parsLog = obj.ParamsLog.Node.CurrValue; obj.Data.paramsValues = [parsLog.value]; obj.Data.paramsTimes = [parsLog.time]; %inputs - obj.Data.inputs = logs(obj.Inputs, obj.Clock.ReferenceTime); + obj.Data.inputs = logs(obj.Inputs); %outputs - obj.Data.outputs = logs(obj.Outputs, obj.Clock.ReferenceTime); + obj.Data.outputs = logs(obj.Outputs); %audio -% obj.Data.audio = logs(audio, clockZeroTime); +% obj.Data.audio = logs(audio); % MATLAB time stamp for ending the experiment obj.Data.endDateTime = stopdatetime; diff --git a/signals b/signals index 83a1cc17..1c9127de 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 83a1cc17e47b98b2aa0a285dd9fe959c2253d5b3 +Subproject commit 1c9127de66f3edc4c2b0063019b3e9045929a21c From b55ea8e46cecd03d87e7b75fcd9a9c286a1c19a8 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 18 Dec 2018 19:41:27 +0000 Subject: [PATCH 249/515] Releasing hardware and ports properly after experiment end --- +srv/expServer.m | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/+srv/expServer.m b/+srv/expServer.m index 4748aa69..36ab8078 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -44,7 +44,20 @@ function expServer(useTimelineOverride, bgColour) KbQueueStart(); % get rig hardware -rig = hw.devices; +try + rig = hw.devices; +catch ME + fun.applyForce({ + @() communicator.close(),... + @() delete(listener),... + @KbQueueRelease,... + @() Screen('CloseAll'),... + @() PsychPortAudio('Close'),... + @() Priority(0),... %set back to normal priority level + @() PsychPortAudio('Verbosity', oldPpaVerbosity)... + }); + rethrow(ME) +end cleanup = onCleanup(@() fun.applyForce({ @() communicator.close(),... @@ -255,6 +268,7 @@ function handleMessage(id, data, host) communicator.EventMode = false; % back to pull message mode aborted = strcmp(experiment.Data.endStatus, 'aborted'); % clear the active experiment var + experiment.delete() experiment = []; rig.stimWindow.BackgroundColour = bgColour; rig.stimWindow.flip(); % clear the screen after From e5ed26f0cc6876b27203944e0ed79b235a8d85db Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 19 Dec 2018 16:16:10 +0000 Subject: [PATCH 250/515] Removed fieldOrDefault; same functionality as getOr --- +eui/MControl.m | 2 +- cb-tools/burgbox/+img/ImageArray.m | 4 ++-- cb-tools/burgbox/fieldOrDefault.m | 25 ------------------------- signals | 2 +- 4 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 cb-tools/burgbox/fieldOrDefault.m diff --git a/+eui/MControl.m b/+eui/MControl.m index 3ca11966..5b25075d 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -88,7 +88,7 @@ addlistener(obj.AlyxPanel, 'Disconnected', @obj.expSubjectChanged); try if isfield(rig, 'scale') && ~isempty(rig.scale) - obj.WeighingScale = fieldOrDefault(rig, 'scale'); + obj.WeighingScale = getOr(rig, 'scale'); init(obj.WeighingScale); % Add listners for new reading, both for the log tab and also for % the weigh button in the Alyx Panel. diff --git a/cb-tools/burgbox/+img/ImageArray.m b/cb-tools/burgbox/+img/ImageArray.m index 8c0ae1e1..71cb986d 100644 --- a/cb-tools/burgbox/+img/ImageArray.m +++ b/cb-tools/burgbox/+img/ImageArray.m @@ -130,8 +130,8 @@ else %TODO: generate it end - obj.BaseGenerator = fieldOrDefault(s, 'baseGenerator', []); - obj.Transforms = fieldOrDefault(s, 'transforms', []); + obj.BaseGenerator = getOr(s, 'baseGenerator', []); + obj.Transforms = getOr(s, 'transforms', []); end end diff --git a/cb-tools/burgbox/fieldOrDefault.m b/cb-tools/burgbox/fieldOrDefault.m deleted file mode 100644 index f349ba37..00000000 --- a/cb-tools/burgbox/fieldOrDefault.m +++ /dev/null @@ -1,25 +0,0 @@ -function value = fieldOrDefault(v, name, default) -%FIELDORDEFAULT Returns value of a field or a default if non-existent -% V = FIELDORDEFAULT(s, name, [default]) returns the value of the field -% 'name' in 's', or if no such field exists, returns 'default'. If no -% default is passed, [] is used. -% -% This works on structures or class objects (in which case it is the -% named property). -% -% Part of Burgbox - -% 2013-02 CB created - -if nargin < 3 - default = []; -end - -if ~isempty(v) && isfield(v, name) - value = v.(name); -else - value = default; -end - -end - diff --git a/signals b/signals index 1c9127de..dd82909b 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 1c9127de66f3edc4c2b0063019b3e9045929a21c +Subproject commit dd82909b1f101d94c577890059eb9bba25a9857d From 3b6a32270963c9dc92cc79858dbd3ab2f5d23e58 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 19 Dec 2018 16:27:33 +0000 Subject: [PATCH 251/515] Added ext input to expFilePath --- +dat/expFilePath.m | 84 ++++++++++++++++++++++++++++++---------------- +hw/Timeline.m | 10 +++--- +srv/expServer.m | 3 +- 3 files changed, 62 insertions(+), 35 deletions(-) diff --git a/+dat/expFilePath.m b/+dat/expFilePath.m index b9053047..37f9add7 100644 --- a/+dat/expFilePath.m +++ b/+dat/expFilePath.m @@ -7,88 +7,117 @@ % e.g. to get the paths for an experiments 2 photon TIFF movie: % DAT.EXPFILEPATH('mouse1', datenum(2013, 01, 01), 1, '2p-raw'); % -% [full, filename] = expFilePath(ref, type, [reposlocation]) +% [full, filename] = expFilePath(ref, type, [reposlocation, ext]) % -% [full, filename] = expFilePath(subject, date, seq, type, [reposlocation]) +% [full, filename] = expFilePath(subject, date, seq, type, [reposlocation, ext]) % % Options for reposlocation are: 'local' or 'master' % Many options for type, e.g. 'block', '2p-raw', 'eyetracking', etc +% If ext is specified, the path returned has the extention ext, otherwise +% the default for that type is used. % % Part of Rigbox % 2013-03 CB created -if nargin == 3 || nargin == 5 - % repos argument was passed, save the value and remove from varargin - location = varargin(end); - varargin(end) = []; -elseif nargin < 2 - error('Not enough arguments supplied.'); -else - % repos argument not passed - location = {}; +assert(length(varargin) > 1, 'Error: Not enough arguments supplied.') + +parsed = catStructs(regexp(varargin{1}, dat.expRefRegExp, 'names')); +if isempty(parsed) % Subject, not ref + if nargin > 4 + location = varargin{5}; + varargin(5) = []; + else + location = {}; + end + typeIdx = 4; +else % Ref, not subject + typeIdx = 2; + if nargin > 2 + location = varargin{3}; + varargin(3) = []; + else + location = {}; + end end % tabulate the args to get complete rows [varargin{1:end}, singleArgs] = tabulateArgs(varargin{:}); -% last argument is the file type -fileType = varargin{end}; +fileType = varargin{typeIdx}; +extention = iff(any(numel(varargin) == [3,5]), varargin{end},... + cell(1,length(varargin{1}))); +if any(numel(varargin) == [3,5]); varargin(end) = []; end + % convert file types to file suffixes -[repos, suffix, dateLevel] = mapToCell(@typeInfo, fileType); +[repos, suffix, dateLevel] = mapToCell(@typeInfo, fileType, extention); reposArgs = cat(2, {repos}, location); % and the rest are for the experiment reference [expPath, expRef] = dat.expPath(varargin{1:end - 1}, reposArgs{:}); - function [repos, suff, dateLevel] = typeInfo(type) + function [repos, suff, dateLevel] = typeInfo(type, newExt) % whether this repository is at the date level or otherwise deeper at the sequence % level (default). FIXME: Date level doesn't work, perhaps this should % be modified to work with deeper sequences also? E.g. % default\2018-05-04\1\2 dateLevel = false; repos = 'main'; + ext = '.mat'; switch lower(type) case 'block' % MAT-file with info about each set of trials - suff = '_Block.mat'; + suff = '_Block'; case 'hw-info' % MAT-file with info about the hardware used for an experiment - suff = '_hardwareInfo.mat'; + suff = '_hardwareInfo'; case '2p-raw' % TIFF with 2-photon raw fluorescence movies suff = '_2P.tif'; + ext = '.tif'; case 'calcium-preview' - suff = '_2P_CalciumPreview.tif'; + suff = '_2P_CalciumPreview'; + ext = '.tif'; case 'calcium-reg' suff = '_2P_CalciumReg'; + ext = ''; case 'calcium-regframe' - suff = '_2P_CalciumRegFrame.tif'; + suff = '_2P_CalciumRegFrame'; + ext = '.tif'; case 'timeline' % MAT-file with acquired timing information - suff = '_Timeline.mat'; + suff = '_Timeline'; case 'calcium-roi' - suff = '_ROI.mat'; + suff = '_ROI'; case 'calcium-fc' % minimally filtered fractional change frames suff = '_2P_CalciumFC'; + ext = ''; case 'calcium-ffc' % ROI filtered fractional change frames suff = '_2P_CalciumFFC'; + ext = ''; case 'calcium-widefield-svd' suff = '_SVD'; + ext = ''; case 'eyetracking' suff = '_eye'; + ext = ''; case 'parameters' % MAT-file with parameters used for experiment - suff = '_parameters.mat'; + suff = '_parameters'; case 'lasermanip' - suff = '_laserManip.mat'; + suff = '_laserManip'; case 'img-info' - suff = '_imgInfo.mat'; + suff = '_imgInfo'; case 'tmaze' - suff = '_TMaze.mat'; + suff = '_TMaze'; case 'expdeffun' - suff = '_expDef.m'; + suff = '_expDef'; + ext = '.m'; case 'svdspatialcomps' dateLevel = true; otherwise error('"%s" is not a valid file type', type); end + % Append extention to suffix + ext = iff(isempty(newExt)&&~ischar(newExt), ext, newExt); + suff = iff((isempty(ext)&&ischar(ext))||(~isempty(ext)&&ext(1)=='.'),... + [suff, ext], [suff, '.', ext]); end % generate a filename for each experiment @@ -103,5 +132,4 @@ filename = filename{1}; end -end - +end \ No newline at end of file diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 020a96c2..59cee5ba 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -57,6 +57,7 @@ % - In future could implement option to only write to disk to avoid % memory limitations when aquiring a lot of data % - Delete local binary files once timeline has successfully saved to zserver? +% - save par file in json instead % % See also HW.TIMELINECLOCK, HW.TLOUTPUT % @@ -83,7 +84,7 @@ AquiredDataType = 'double' % default data type for the acquired data array (i.e. Data.rawDAQData) UseTimeline = false % used by expServer. If true, timeline is started by default (otherwise can be toggled with the t key) LivePlot = false % if true the data are plotted as the data are aquired - FigureScale = []; % figure position in normalized units, default is [0 0 1 1] (full screen) + FigureScale = [0 0 1 1]; % figure position in normalized units, default is full screen WriteBufferToDisk = false % if true the data buffer is written to disk as they're aquired NB: in the future this will happen by default end @@ -155,9 +156,9 @@ function start(obj, expRef, ai) %find the local path to save the data to file during aquisition if obj.WriteBufferToDisk fprintf(1, 'opening binary file for writing\n'); - localPath = dat.expFilePath(expRef, 'timeline', 'local'); % get the local exp data path + localPath = dat.expFilePath(expRef, 'timeline', 'local', 'dat'); % get the local exp data path if ~dat.expExists(expRef); mkdir(fileparts(localPath)); end % if the folder doesn't exist, create it - obj.DataFID = fopen([localPath(1:end-4) '.dat'], 'w'); % open a binary data file + obj.DataFID = fopen(localPath, 'w'); % open a binary data file % save params now so if things crash later you at least have this record of the data type and size so you can load the dat parfid = fopen([localPath(1:end-4) '.par'], 'w'); % open a parameter file fprintf(parfid, 'type = %s\n', obj.AquiredDataType); % record the data type @@ -604,7 +605,6 @@ function livePlot(obj, data) % TL.LIVEPLOT(source, event) plots the data aquired by the % DAQ while the PlotLive property is true. if isempty(obj.Axes) - %f = figure('Units', 'Normalized', 'Position', [0 0 1 1]); % create a figure for plotting aquired data f = figure('Units', 'Normalized'); obj.Axes = gca; % store a handle to the axes if isprop(obj, 'FigurePosition') && ~isempty(obj.FigurePosition) @@ -665,4 +665,4 @@ function livePlot(obj, data) end end end -end \ No newline at end of file +end diff --git a/+srv/expServer.m b/+srv/expServer.m index 4748aa69..79878279 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -260,8 +260,7 @@ function handleMessage(id, data, host) rig.stimWindow.flip(); % clear the screen after % save a copy of the hardware in JSON - hwInfo = strrep(dat.expFilePath(expRef, 'hw-info', 'master'), '.mat', '.json'); - fid = fopen(hwInfo, 'w'); + fid = fopen(dat.expFilePath(expRef, 'hw-info', 'master', 'json'), 'w'); fprintf(fid, '%s', obj2json(rig)); fclose(fid); if ~strcmp(dat.parseExpRef(expRef), 'default') From 3169f66a0bec0e1a72d7b67d5dd1f10485ad5231 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 19 Dec 2018 18:46:05 +0000 Subject: [PATCH 252/515] bug fix: variable required transpose --- +dat/expFilePath.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+dat/expFilePath.m b/+dat/expFilePath.m index 37f9add7..20310348 100644 --- a/+dat/expFilePath.m +++ b/+dat/expFilePath.m @@ -50,7 +50,7 @@ if any(numel(varargin) == [3,5]); varargin(end) = []; end % convert file types to file suffixes -[repos, suffix, dateLevel] = mapToCell(@typeInfo, fileType, extention); +[repos, suffix, dateLevel] = mapToCell(@typeInfo, fileType(:), extention(:)); reposArgs = cat(2, {repos}, location); From fcd6dcb0fc03cadcd65d29503a20c666e92c0ffc Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 9 Jan 2019 15:12:09 +0000 Subject: [PATCH 253/515] Checks for local folder rather than remote when creating new dir for buffer --- +hw/Timeline.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+hw/Timeline.m b/+hw/Timeline.m index 59cee5ba..c97756c2 100644 --- a/+hw/Timeline.m +++ b/+hw/Timeline.m @@ -157,7 +157,7 @@ function start(obj, expRef, ai) if obj.WriteBufferToDisk fprintf(1, 'opening binary file for writing\n'); localPath = dat.expFilePath(expRef, 'timeline', 'local', 'dat'); % get the local exp data path - if ~dat.expExists(expRef); mkdir(fileparts(localPath)); end % if the folder doesn't exist, create it + if ~exist(fileparts(localPath),'dir'); mkdir(fileparts(localPath)); end % if the folder doesn't exist, create it obj.DataFID = fopen(localPath, 'w'); % open a binary data file % save params now so if things crash later you at least have this record of the data type and size so you can load the dat parfid = fopen([localPath(1:end-4) '.par'], 'w'); % open a parameter file From ddd772bf8336ec711ef225091e7b05af1a2e2a8e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 10 Jan 2019 21:51:22 +0200 Subject: [PATCH 254/515] Auto cleanup of WeekendWater profile; changes to comments --- +eui/AlyxPanel.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 458293e0..8ed2241a 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -142,14 +142,14 @@ 'String', 'Manual weighing', ... 'Enable', 'off',... 'Callback', @(~,~)obj.recordWeight); - % Button to launch dialog for submitting gel administrations + % Button to launch dialog for submitting water administrations % for future dates uicontrol('Parent', waterbox,... 'Style', 'pushbutton', ... 'String', 'Give water in future', ... 'Enable', 'off',... 'Callback', @(~,~)obj.giveFutureWater); - % Check box to indicate whether water was gel or liquid + % Dropdown to indicate water type (sucrose, gel, etc.) obj.WaterType = uicontrol('Parent', waterbox,... 'Style', 'popupmenu', ... 'String', {'Water'}, ... @@ -328,6 +328,11 @@ function giveFutureWater(obj) delim = iff(size(days,1) < 3, ' and ', {', ', ' and '}); obj.log('%s marked for training on %s',... obj.Subject, strjoin(strtrim(string(days)), delim)); + else % If no training dates given, delete from structure + try + dat.delParamProfile('WeekendWater', obj.Subject); + catch % Subject field may not exist is never marked for training + end end futWtrDates = futDates(amt > 0); % future water giving dates From 24ce0fde5c354dbfb21769059cf0bae953b9ea29 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 11 Jan 2019 13:13:19 +0000 Subject: [PATCH 255/515] Clearer plots and tables in view subject history --- +eui/AlyxPanel.m | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 8ed2241a..f8b6da14 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -456,11 +456,11 @@ function recordWeight(obj, weight, subject) try w = postWeight(ai, weight, subject); obj.log('Alyx weight posting succeeded: %.2f for %s', w.weight, w.subject); - catch + catch ex if ~ai.IsLoggedIn % if not logged in, save the weight for later obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); else - obj.log('Warning: Alyx weight posting failed!'); + obj.log('Warning: Alyx weight posting failed! %s', ex.message); end end % Update weight and refresh login timer @@ -554,7 +554,7 @@ function viewSubjectHistory(obj, ax) return end expected = [records.expected_weight]; - expected(expected==0|cellfun('isempty',{records.weighing_at})) = nan; + expected(expected==0|isnan([records.weighing_at])) = nan; dates = cellfun(@(x)datenum(x), {records.date}); % build the figure to show it @@ -567,13 +567,18 @@ function viewSubjectHistory(obj, ax) ax = axes('Parent', plotBox); end - plot(ax, dates, [records.weight], '.-'); + plot(ax, dates, [records.weighing_at], '.-'); hold(ax, 'on'); plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); % Change the plot x axis limits - if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end + maxDate = max(dates([records.is_water_restricted]|~isnan([records.weighing_at]))); + if numel(dates) > 1 && ~isempty(maxDate) + xlim(ax, [min(dates) maxDate]) + else + maxDate = now; + end if nargin == 1 set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) else @@ -584,23 +589,23 @@ function viewSubjectHistory(obj, ax) if nargin==1 ax = axes('Parent', plotBox); - plot(ax, dates, ([records.weight]-iw)./(expected-iw), '.-'); + plot(ax, dates, ([records.weighing_at]-iw)./(expected-iw), '.-'); hold(ax, 'on'); plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); - xlim(ax, [min(dates) max(dates)]); + xlim(ax, [min(dates) maxDate]); set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) ylabel(ax, 'weight as pct (%)'); axWater = axes('Parent',plotBox); - plot(axWater, dates, obj.round([records.given_water_liquid]+[records.given_water_hydrogel], 'up'), '.-'); + plot(axWater, dates, obj.round([records.given_water_total], 'up'), '.-'); hold(axWater, 'on'); plot(axWater, dates, obj.round([records.given_water_hydrogel], 'down'), '.-'); plot(axWater, dates, obj.round([records.given_water_liquid], 'down'), '.-'); plot(axWater, dates, obj.round([records.expected_water], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); - xlim(axWater, [min(dates) max(dates)]); + xlim(axWater, [min(dates) maxDate]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) ylabel(axWater, 'water/hydrogel (mL)'); @@ -609,23 +614,24 @@ function viewSubjectHistory(obj, ax) histTable = uitable('Parent', histbox,... 'FontName', 'Consolas',... 'RowName', []); - weightsByDate = num2cell([records.weight]); + weightsByDate = num2cell([records.weighing_at]); weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); - weightsByDate(isnan([records.weight])) = {[]}; - weightPctByDate = num2cell(([records.weight]-iw)./(expected-iw)); + weightsByDate(isnan([records.weighing_at])) = {[]}; + weightPctByDate = num2cell(([records.weighing_at]-iw)./(expected-iw)); weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); - weightPctByDate(isnan([records.weight])) = {[]}; + weightPctByDate(isnan([records.weighing_at])|~[records.is_water_restricted]) = {[]}; dat = horzcat(... arrayfun(@(x)datestr(x), dates', 'uni', false), ... weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.expected_weight]', 'uni', false), ... + arrayfun(@(x)iff(isnan(x), [], @()sprintf('%.1f', 0.8*(x-iw)+iw)), expected', 'uni', false), ... weightPctByDate'); waterDat = (... num2cell(horzcat([records.given_water_liquid]', [records.given_water_hydrogel]', ... - [records.given_water_liquid]'+[records.given_water_hydrogel]', [records.expected_water]',... - [records.given_water_liquid]'+[records.given_water_hydrogel]'-[records.expected_water]'))); + [records.given_water_total]', [records.expected_water]',... + [records.given_water_total]'-[records.expected_water]'))); waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); + waterDat(~[records.is_water_restricted],[1,3]) = {'ad lib'}; dat = horzcat(dat, waterDat); set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... From b64f90bd4eccfd08ebd917d757c54922cea10457 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 11 Jan 2019 13:13:51 +0000 Subject: [PATCH 256/515] Update to submodule; can't post zero weights --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 11038d22..df90cdae 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 11038d22c42f96c0408027c7bbe3f0939f79028a +Subproject commit df90cdae00175b43aa769a3d24fc6f8b87828e03 From 77febac0f851b3a9ebc88f9cbac7e578bbfe006c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 11 Jan 2019 13:13:19 +0000 Subject: [PATCH 257/515] Clearer plots and tables in view subject history --- +eui/AlyxPanel.m | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 9f2e83dc..5fa174f7 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -449,11 +449,11 @@ function recordWeight(obj, weight, subject) try w = postWeight(ai, weight, subject); obj.log('Alyx weight posting succeeded: %.2f for %s', w.weight, w.subject); - catch + catch ex if ~ai.IsLoggedIn % if not logged in, save the weight for later obj.log('Warning: Weight not posted to Alyx; will be posted upon login.'); else - obj.log('Warning: Alyx weight posting failed!'); + obj.log('Warning: Alyx weight posting failed! %s', ex.message); end end % Update weight and refresh login timer @@ -548,7 +548,7 @@ function viewSubjectHistory(obj, ax) return end expected = [records.expected_weight]; - expected(expected==0) = nan; + expected(expected==0|isnan([records.weighing_at])) = nan; dates = cellfun(@(x)datenum(x), {records.date}); % build the figure to show it @@ -561,13 +561,18 @@ function viewSubjectHistory(obj, ax) ax = axes('Parent', plotBox); end - plot(ax, dates, [records.weight], '.-'); + plot(ax, dates, [records.weighing_at], '.-'); hold(ax, 'on'); plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); % Change the plot x axis limits - if numel(dates) > 1; xlim(ax, [min(dates) max(dates)]); end + maxDate = max(dates([records.is_water_restricted]|~isnan([records.weighing_at]))); + if numel(dates) > 1 && ~isempty(maxDate) + xlim(ax, [min(dates) maxDate]) + else + maxDate = now; + end if nargin == 1 set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) else @@ -578,23 +583,23 @@ function viewSubjectHistory(obj, ax) if nargin==1 ax = axes('Parent', plotBox); - plot(ax, dates, ([records.weight]-iw)./(expected-iw), '.-'); + plot(ax, dates, ([records.weighing_at]-iw)./(expected-iw), '.-'); hold(ax, 'on'); plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); - xlim(ax, [min(dates) max(dates)]); + xlim(ax, [min(dates) maxDate]); set(ax, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(ax, 'XTick'), 'uni', false)) ylabel(ax, 'weight as pct (%)'); axWater = axes('Parent',plotBox); - plot(axWater, dates, obj.round([records.given_water_liquid]+[records.given_water_hydrogel], 'up'), '.-'); + plot(axWater, dates, obj.round([records.given_water_total], 'up'), '.-'); hold(axWater, 'on'); plot(axWater, dates, obj.round([records.given_water_hydrogel], 'down'), '.-'); plot(axWater, dates, obj.round([records.given_water_liquid], 'down'), '.-'); plot(axWater, dates, obj.round([records.expected_water], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); - xlim(axWater, [min(dates) max(dates)]); + xlim(axWater, [min(dates) maxDate]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) ylabel(axWater, 'water/hydrogel (mL)'); @@ -603,23 +608,24 @@ function viewSubjectHistory(obj, ax) histTable = uitable('Parent', histbox,... 'FontName', 'Consolas',... 'RowName', []); - weightsByDate = num2cell([records.weight]); + weightsByDate = num2cell([records.weighing_at]); weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); - weightsByDate(isnan([records.weight])) = {[]}; - weightPctByDate = num2cell(([records.weight]-iw)./(expected-iw)); + weightsByDate(isnan([records.weighing_at])) = {[]}; + weightPctByDate = num2cell(([records.weighing_at]-iw)./(expected-iw)); weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); - weightPctByDate(isnan([records.weight])) = {[]}; + weightPctByDate(isnan([records.weighing_at])|~[records.is_water_restricted]) = {[]}; dat = horzcat(... arrayfun(@(x)datestr(x), dates', 'uni', false), ... weightsByDate', ... - arrayfun(@(x)sprintf('%.1f', 0.8*(x-iw)+iw), [records.expected_weight]', 'uni', false), ... + arrayfun(@(x)iff(isnan(x), [], @()sprintf('%.1f', 0.8*(x-iw)+iw)), expected', 'uni', false), ... weightPctByDate'); waterDat = (... num2cell(horzcat([records.given_water_liquid]', [records.given_water_hydrogel]', ... - [records.given_water_liquid]'+[records.given_water_hydrogel]', [records.expected_water]',... - [records.given_water_liquid]'+[records.given_water_hydrogel]'-[records.expected_water]'))); + [records.given_water_total]', [records.expected_water]',... + [records.given_water_total]'-[records.expected_water]'))); waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); + waterDat(~[records.is_water_restricted],[1,3]) = {'ad lib'}; dat = horzcat(dat, waterDat); set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... From c7e758a3b316448935bc69a7bf7d15b0630f6835 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 11 Jan 2019 15:18:44 +0000 Subject: [PATCH 258/515] Update to submodules: added params to subsession JSON field --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index df90cdae..6fc933b9 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit df90cdae00175b43aa769a3d24fc6f8b87828e03 +Subproject commit 6fc933b99bec09689a83b024284e8023d2c5793d From c193c609b199455316c839ec2e828395f130cb4b Mon Sep 17 00:00:00 2001 From: ArminLak Date: Tue, 15 Jan 2019 14:07:18 +0000 Subject: [PATCH 259/515] updated submodule signals --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index dd82909b..897da00e 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit dd82909b1f101d94c577890059eb9bba25a9857d +Subproject commit 897da00ee217874db2f271b9dbad42886eb4ff7d From 56dd8b954888e2343ca938da3b72dadb222bb165 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Sun, 20 Jan 2019 18:04:03 +0200 Subject: [PATCH 260/515] Moved Signals vis functions from cortexlab directory --- cortexlab/+vis/checker4.m | 126 ---------------------------------- cortexlab/+vis/checker5.m | 126 ---------------------------------- cortexlab/+vis/checker6.m | 126 ---------------------------------- cortexlab/+vis/checkerLeft.m | 126 ---------------------------------- cortexlab/+vis/checkerRight.m | 126 ---------------------------------- signals | 2 +- 6 files changed, 1 insertion(+), 631 deletions(-) delete mode 100644 cortexlab/+vis/checker4.m delete mode 100644 cortexlab/+vis/checker5.m delete mode 100644 cortexlab/+vis/checker6.m delete mode 100644 cortexlab/+vis/checkerLeft.m delete mode 100644 cortexlab/+vis/checkerRight.m diff --git a/cortexlab/+vis/checker4.m b/cortexlab/+vis/checker4.m deleted file mode 100644 index be837609..00000000 --- a/cortexlab/+vis/checker4.m +++ /dev/null @@ -1,126 +0,0 @@ -function elem = checker3(t) -%vis.checker A grid of rectangles -% Detailed explanation goes here - -elem = t.Node.Net.subscriptableOrigin('checker'); - -%% make initial layers to be used as templates -maskTemplate = vis.emptyLayer(); -maskTemplate.isPeriodic = false; -maskTemplate.interpolation = 'nearest'; -maskTemplate.show = true; -maskTemplate.colourMask = [false false false true]; - -maskTemplate.textureId = 'checkerMaskPixel'; -[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); -maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value - -stencilTemplate = maskTemplate; -stencilTemplate.textureId = 'checkerStencilPixel'; -[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); -stencilTemplate.blending = 'none'; - -% pattern layer uses the alpha values laid down by mask layers -patternLayer = vis.emptyLayer(); -patternLayer.textureId = sprintf('~checker%i', randi(2^32)); -patternLayer.isPeriodic = false; -patternLayer.interpolation = 'nearest'; -patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this - -%% construct signals used to assemble layers -% N rows by cols signal is derived from the size of the pattern array but -% we skip repeats so that pattern changes don't update the mask layers -% unless the size has acutally changed -nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); -aziRange = elem.azimuthRange.flatten(); -altRange = elem.altitudeRange.flatten(); -sizeFrac = elem.rectSizeFrac.flatten(); -% signal containing the masking layers -gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... - maskTemplate, stencilTemplate, @gridMask); -% signal contain the checker layer -checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... - elem.colour.flatten(), @updateColour,... - elem.azimuthRange.flatten(), @updateAzi,... - elem.altitudeRange.flatten(), @updateAlt,... - elem.show.flatten(), @updateShow,... - patternLayer); % initial value -%% set default attribute values -elem.layers = [gridMaskLayers checkerLayer]; -elem.azimuthRange = [-132 132]; -elem.altitudeRange = [-36 36]; -elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle -elem.pattern = [ - 1 -1 1 -1 - -1 0 0 0 - 1 0 0 0 - -1 1 -1 1]; - elem.show = true; -end - -%% helper functions -function layer = updatePattern(layer, pattern) -% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then -% convert to RGBA texture format. -[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8(uint8(127.5*(1 + pattern)), 1); -end - -function layer = updateColour(layer, colour) -layer.maxColour = [colour 1]; -end - -function layer = updateAzi(layer, aziRange) -layer.size(1) = abs(diff(aziRange)); -layer.texOffset(1) = mean(aziRange); -end - -function layer = updateAlt(layer, altRange) -layer.size(2) = abs(diff(altRange)); -layer.texOffset(2) = mean(altRange); -end - -function layer = updateShow(layer, show) -layer.show = show; -end - -function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) -gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; -cellSize = gridDims./flip(nRowsByCols); -nCols = nRowsByCols(2) + 1; -nRows = nRowsByCols(1) + 1; -midAzi = mean(aziRange); -midAlt = mean(altRange); -%% base layer to imprint area the checker can draw on (by applying an alpha mask) -stencil.texOffset = [midAzi midAlt]; -stencil.size = gridDims; -if any(sizeFrac < 1) - %% layers for lines making up mask grid - masks out margins around each square - % make layers for vertical lines - if nCols > 1 - azi = linspace(aziRange(1), aziRange(2), nCols); - else - azi = midAzi; - end - collayers = repmat(mask, 1, nCols); - for vi = 1:nCols - collayers(vi).texOffset = [azi(vi) midAlt]; - end - [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); - % make layers for horizontal lines - if nRows > 1 - alt = linspace(altRange(1), altRange(2), nRows); - else - alt = midAlt; - end - rowlayers = repmat(mask, 1, nRows); - for hi = 1:nRows - rowlayers(hi).texOffset = [midAzi alt(hi)]; - end - [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); - %% combine the layers and return - layers = [stencil collayers rowlayers]; -else % no mask grid needed as each cell is full size - layers = stencil; -end - -end \ No newline at end of file diff --git a/cortexlab/+vis/checker5.m b/cortexlab/+vis/checker5.m deleted file mode 100644 index be37a1f4..00000000 --- a/cortexlab/+vis/checker5.m +++ /dev/null @@ -1,126 +0,0 @@ -function elem = checker5(t) -%vis.checker A grid of rectangles -% Detailed explanation goes here - -elem = t.Node.Net.subscriptableOrigin('checker'); - -%% make initial layers to be used as templates -maskTemplate = vis.emptyLayer(); -maskTemplate.isPeriodic = false; -maskTemplate.interpolation = 'nearest'; -maskTemplate.show = true; -maskTemplate.colourMask = [false false false true]; - -maskTemplate.textureId = 'checkerMaskPixel'; -[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); -maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value - -stencilTemplate = maskTemplate; -stencilTemplate.textureId = 'checkerStencilPixel'; -[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); -stencilTemplate.blending = 'none'; - -% pattern layer uses the alpha values laid down by mask layers -patternLayer = vis.emptyLayer(); -patternLayer.textureId = sprintf('~checker%i', randi(2^32)); -patternLayer.isPeriodic = false; -patternLayer.interpolation = 'nearest'; -patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this - -%% construct signals used to assemble layers -% N rows by cols signal is derived from the size of the pattern array but -% we skip repeats so that pattern changes don't update the mask layers -% unless the size has acutally changed -nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); -aziRange = elem.azimuthRange.flatten(); -altRange = elem.altitudeRange.flatten(); -sizeFrac = elem.rectSizeFrac.flatten(); -% signal containing the masking layers -gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... - maskTemplate, stencilTemplate, @gridMask); -% signal contain the checker layer -checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... - elem.colour.flatten(), @updateColour,... - elem.azimuthRange.flatten(), @updateAzi,... - elem.altitudeRange.flatten(), @updateAlt,... - elem.show.flatten(), @updateShow,... - patternLayer); % initial value -%% set default attribute values -elem.layers = [gridMaskLayers checkerLayer]; -elem.azimuthRange = [-132 132]; -elem.altitudeRange = [-36 36]; -elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle -elem.pattern = [ - 1 -1 1 -1 - -1 0 0 0 - 1 0 0 0 - -1 1 -1 1]; - elem.show = true; -end - -%% helper functions -function layer = updatePattern(layer, pattern) -% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then -% convert to RGBA texture format. -[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8_PC(uint8(127.5*(1 + pattern)), 1); -end - -function layer = updateColour(layer, colour) -layer.maxColour = [colour 1]; -end - -function layer = updateAzi(layer, aziRange) -layer.size(1) = abs(diff(aziRange)); -layer.texOffset(1) = mean(aziRange); -end - -function layer = updateAlt(layer, altRange) -layer.size(2) = abs(diff(altRange)); -layer.texOffset(2) = mean(altRange); -end - -function layer = updateShow(layer, show) -layer.show = show; -end - -function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) -gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; -cellSize = gridDims./fliplr(nRowsByCols); -nCols = nRowsByCols(2) + 1; -nRows = nRowsByCols(1) + 1; -midAzi = mean(aziRange); -midAlt = mean(altRange); -%% base layer to imprint area the checker can draw on (by applying an alpha mask) -stencil.texOffset = [midAzi midAlt]; -stencil.size = gridDims; -if any(sizeFrac < 1) - %% layers for lines making up mask grid - masks out margins around each square - % make layers for vertical lines - if nCols > 1 - azi = linspace(aziRange(1), aziRange(2), nCols); - else - azi = midAzi; - end - collayers = repmat(mask, 1, nCols); - for vi = 1:nCols - collayers(vi).texOffset = [azi(vi) midAlt]; - end - [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); - % make layers for horizontal lines - if nRows > 1 - alt = linspace(altRange(1), altRange(2), nRows); - else - alt = midAlt; - end - rowlayers = repmat(mask, 1, nRows); - for hi = 1:nRows - rowlayers(hi).texOffset = [midAzi alt(hi)]; - end - [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); - %% combine the layers and return - layers = [stencil collayers rowlayers]; -else % no mask grid needed as each cell is full size - layers = stencil; -end - -end \ No newline at end of file diff --git a/cortexlab/+vis/checker6.m b/cortexlab/+vis/checker6.m deleted file mode 100644 index 1733d8f7..00000000 --- a/cortexlab/+vis/checker6.m +++ /dev/null @@ -1,126 +0,0 @@ -function elem = checker6(t) -%vis.checker A grid of rectangles -% Detailed explanation goes here - -elem = t.Node.Net.subscriptableOrigin('checker'); - -%% make initial layers to be used as templates -maskTemplate = vis.emptyLayer(); -maskTemplate.isPeriodic = false; -maskTemplate.interpolation = 'nearest'; -maskTemplate.show = true; -maskTemplate.colourMask = [false false false true]; - -maskTemplate.textureId = 'checkerMaskPixel'; -[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); -maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value - -stencilTemplate = maskTemplate; -stencilTemplate.textureId = 'checkerStencilPixel'; -[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); -stencilTemplate.blending = 'none'; - -% pattern layer uses the alpha values laid down by mask layers -patternLayer = vis.emptyLayer(); -patternLayer.textureId = sprintf('~checker%i', randi(2^32)); -patternLayer.isPeriodic = false; -patternLayer.interpolation = 'nearest'; -patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this - -%% construct signals used to assemble layers -% N rows by cols signal is derived from the size of the pattern array but -% we skip repeats so that pattern changes don't update the mask layers -% unless the size has acutally changed -nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); -aziRange = elem.azimuthRange.flatten(); -altRange = elem.altitudeRange.flatten(); -sizeFrac = elem.rectSizeFrac.flatten(); -% signal containing the masking layers -gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... - maskTemplate, stencilTemplate, @gridMask); -% signal contain the checker layer -checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... - elem.colour.flatten(), @updateColour,... - elem.azimuthRange.flatten(), @updateAzi,... - elem.altitudeRange.flatten(), @updateAlt,... - elem.show.flatten(), @updateShow,... - patternLayer); % initial value -%% set default attribute values -elem.layers = [gridMaskLayers checkerLayer]; -elem.azimuthRange = [-135 135]; -elem.altitudeRange = [-37.5 37.5]; -elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle -elem.pattern = [ - 1 -1 1 -1 - -1 0 0 0 - 1 0 0 0 - -1 1 -1 1]; - elem.show = true; -end - -%% helper functions -function layer = updatePattern(layer, pattern) -% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then -% convert to RGBA texture format. -[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8(uint8(127.5*(1 + pattern)), 1); -end - -function layer = updateColour(layer, colour) -layer.maxColour = [colour 1]; -end - -function layer = updateAzi(layer, aziRange) -layer.size(1) = abs(diff(aziRange)); -layer.texOffset(1) = mean(aziRange); -end - -function layer = updateAlt(layer, altRange) -layer.size(2) = abs(diff(altRange)); -layer.texOffset(2) = mean(altRange); -end - -function layer = updateShow(layer, show) -layer.show = show; -end - -function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) -gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; -cellSize = gridDims./flip(nRowsByCols); -nCols = nRowsByCols(2) + 1; -nRows = nRowsByCols(1) + 1; -midAzi = mean(aziRange); -midAlt = mean(altRange); -%% base layer to imprint area the checker can draw on (by applying an alpha mask) -stencil.texOffset = [midAzi midAlt]; -stencil.size = gridDims; -if any(sizeFrac < 1) - %% layers for lines making up mask grid - masks out margins around each square - % make layers for vertical lines - if nCols > 1 - azi = linspace(aziRange(1), aziRange(2), nCols); - else - azi = midAzi; - end - collayers = repmat(mask, 1, nCols); - for vi = 1:nCols - collayers(vi).texOffset = [azi(vi) midAlt]; - end - [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); - % make layers for horizontal lines - if nRows > 1 - alt = linspace(altRange(1), altRange(2), nRows); - else - alt = midAlt; - end - rowlayers = repmat(mask, 1, nRows); - for hi = 1:nRows - rowlayers(hi).texOffset = [midAzi alt(hi)]; - end - [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); - %% combine the layers and return - layers = [stencil collayers rowlayers]; -else % no mask grid needed as each cell is full size - layers = stencil; -end - -end \ No newline at end of file diff --git a/cortexlab/+vis/checkerLeft.m b/cortexlab/+vis/checkerLeft.m deleted file mode 100644 index cf1122d7..00000000 --- a/cortexlab/+vis/checkerLeft.m +++ /dev/null @@ -1,126 +0,0 @@ -function elem = checkerLeft(t) -%vis.checker A grid of rectangles -% Detailed explanation goes here - -elem = t.Node.Net.subscriptableOrigin('checker'); - -%% make initial layers to be used as templates -maskTemplate = vis.emptyLayer(); -maskTemplate.isPeriodic = false; -maskTemplate.interpolation = 'nearest'; -maskTemplate.show = true; -maskTemplate.colourMask = [false false false true]; - -maskTemplate.textureId = 'checkerMaskPixel'; -[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); -maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value - -stencilTemplate = maskTemplate; -stencilTemplate.textureId = 'checkerStencilPixel'; -[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); -stencilTemplate.blending = 'none'; - -% pattern layer uses the alpha values laid down by mask layers -patternLayer = vis.emptyLayer(); -patternLayer.textureId = sprintf('~checker%i', randi(2^32)); -patternLayer.isPeriodic = false; -patternLayer.interpolation = 'nearest'; -patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this - -%% construct signals used to assemble layers -% N rows by cols signal is derived from the size of the pattern array but -% we skip repeats so that pattern changes don't update the mask layers -% unless the size has acutally changed -nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); -aziRange = elem.azimuthRange.flatten(); -altRange = elem.altitudeRange.flatten(); -sizeFrac = elem.rectSizeFrac.flatten(); -% signal containing the masking layers -gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... - maskTemplate, stencilTemplate, @gridMask); -% signal contain the checker layer -checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... - elem.colour.flatten(), @updateColour,... - elem.azimuthRange.flatten(), @updateAzi,... - elem.altitudeRange.flatten(), @updateAlt,... - elem.show.flatten(), @updateShow,... - patternLayer); % initial value -%% set default attribute values -elem.layers = [gridMaskLayers checkerLayer]; -elem.azimuthRange = [-135 0]; -elem.altitudeRange = [-37.5 37.5]; -elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle -elem.pattern = [ - 1 -1 1 -1 - -1 0 0 0 - 1 0 0 0 - -1 1 -1 1]; - elem.show = true; -end - -%% helper functions -function layer = updatePattern(layer, pattern) -% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then -% convert to RGBA texture format. -[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8(uint8(127.5*(1 + pattern)), 1); -end - -function layer = updateColour(layer, colour) -layer.maxColour = [colour 1]; -end - -function layer = updateAzi(layer, aziRange) -layer.size(1) = abs(diff(aziRange)); -layer.texOffset(1) = mean(aziRange); -end - -function layer = updateAlt(layer, altRange) -layer.size(2) = abs(diff(altRange)); -layer.texOffset(2) = mean(altRange); -end - -function layer = updateShow(layer, show) -layer.show = show; -end - -function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) -gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; -cellSize = gridDims./flip(nRowsByCols); -nCols = nRowsByCols(2) + 1; -nRows = nRowsByCols(1) + 1; -midAzi = mean(aziRange); -midAlt = mean(altRange); -%% base layer to imprint area the checker can draw on (by applying an alpha mask) -stencil.texOffset = [midAzi midAlt]; -stencil.size = gridDims; -if any(sizeFrac < 1) - %% layers for lines making up mask grid - masks out margins around each square - % make layers for vertical lines - if nCols > 1 - azi = linspace(aziRange(1), aziRange(2), nCols); - else - azi = midAzi; - end - collayers = repmat(mask, 1, nCols); - for vi = 1:nCols - collayers(vi).texOffset = [azi(vi) midAlt]; - end - [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); - % make layers for horizontal lines - if nRows > 1 - alt = linspace(altRange(1), altRange(2), nRows); - else - alt = midAlt; - end - rowlayers = repmat(mask, 1, nRows); - for hi = 1:nRows - rowlayers(hi).texOffset = [midAzi alt(hi)]; - end - [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); - %% combine the layers and return - layers = [stencil collayers rowlayers]; -else % no mask grid needed as each cell is full size - layers = stencil; -end - -end \ No newline at end of file diff --git a/cortexlab/+vis/checkerRight.m b/cortexlab/+vis/checkerRight.m deleted file mode 100644 index 78b03545..00000000 --- a/cortexlab/+vis/checkerRight.m +++ /dev/null @@ -1,126 +0,0 @@ -function elem = checkerRight(t) -%vis.checker A grid of rectangles -% Detailed explanation goes here - -elem = t.Node.Net.subscriptableOrigin('checker'); - -%% make initial layers to be used as templates -maskTemplate = vis.emptyLayer(); -maskTemplate.isPeriodic = false; -maskTemplate.interpolation = 'nearest'; -maskTemplate.show = true; -maskTemplate.colourMask = [false false false true]; - -maskTemplate.textureId = 'checkerMaskPixel'; -[maskTemplate.rgba, maskTemplate.rgbaSize] = vis.rgba(0, 0); -maskTemplate.blending = '1-source'; % allows us to lay down our zero alpha value - -stencilTemplate = maskTemplate; -stencilTemplate.textureId = 'checkerStencilPixel'; -[stencilTemplate.rgba, stencilTemplate.rgbaSize] = vis.rgba(1, 1); -stencilTemplate.blending = 'none'; - -% pattern layer uses the alpha values laid down by mask layers -patternLayer = vis.emptyLayer(); -patternLayer.textureId = sprintf('~checker%i', randi(2^32)); -patternLayer.isPeriodic = false; -patternLayer.interpolation = 'nearest'; -patternLayer.blending = 'destination'; % use the alpha mask gets laid down before this - -%% construct signals used to assemble layers -% N rows by cols signal is derived from the size of the pattern array but -% we skip repeats so that pattern changes don't update the mask layers -% unless the size has acutally changed -nRowsByCols = elem.pattern.flatten().map(@size).skipRepeats(); -aziRange = elem.azimuthRange.flatten(); -altRange = elem.altitudeRange.flatten(); -sizeFrac = elem.rectSizeFrac.flatten(); -% signal containing the masking layers -gridMaskLayers = mapn(nRowsByCols, aziRange, altRange, sizeFrac, ... - maskTemplate, stencilTemplate, @gridMask); -% signal contain the checker layer -checkerLayer = scan(elem.pattern.flatten(), @updatePattern,... - elem.colour.flatten(), @updateColour,... - elem.azimuthRange.flatten(), @updateAzi,... - elem.altitudeRange.flatten(), @updateAlt,... - elem.show.flatten(), @updateShow,... - patternLayer); % initial value -%% set default attribute values -elem.layers = [gridMaskLayers checkerLayer]; -elem.azimuthRange = [0 135]; -elem.altitudeRange = [-37.5 37.5]; -elem.rectSizeFrac = [1 1]; % horizontal and vertical size of each rectangle -elem.pattern = [ - 1 -1 1 -1 - -1 0 0 0 - 1 0 0 0 - -1 1 -1 1]; - elem.show = true; -end - -%% helper functions -function layer = updatePattern(layer, pattern) -% map pattern from -1 -> 1 range to 0->255, cast to 8 bit integers, then -% convert to RGBA texture format. -[layer.rgba, layer.rgbaSize] = vis.rgbaFromUint8(uint8(127.5*(1 + pattern)), 1); -end - -function layer = updateColour(layer, colour) -layer.maxColour = [colour 1]; -end - -function layer = updateAzi(layer, aziRange) -layer.size(1) = abs(diff(aziRange)); -layer.texOffset(1) = mean(aziRange); -end - -function layer = updateAlt(layer, altRange) -layer.size(2) = abs(diff(altRange)); -layer.texOffset(2) = mean(altRange); -end - -function layer = updateShow(layer, show) -layer.show = show; -end - -function layers = gridMask(nRowsByCols, aziRange, altRange, sizeFrac, mask, stencil) -gridDims = [abs(diff(aziRange)) abs(diff(altRange))]; -cellSize = gridDims./flip(nRowsByCols); -nCols = nRowsByCols(2) + 1; -nRows = nRowsByCols(1) + 1; -midAzi = mean(aziRange); -midAlt = mean(altRange); -%% base layer to imprint area the checker can draw on (by applying an alpha mask) -stencil.texOffset = [midAzi midAlt]; -stencil.size = gridDims; -if any(sizeFrac < 1) - %% layers for lines making up mask grid - masks out margins around each square - % make layers for vertical lines - if nCols > 1 - azi = linspace(aziRange(1), aziRange(2), nCols); - else - azi = midAzi; - end - collayers = repmat(mask, 1, nCols); - for vi = 1:nCols - collayers(vi).texOffset = [azi(vi) midAlt]; - end - [collayers.size] = deal([(1 - sizeFrac(1))*cellSize(1) gridDims(2)]); - % make layers for horizontal lines - if nRows > 1 - alt = linspace(altRange(1), altRange(2), nRows); - else - alt = midAlt; - end - rowlayers = repmat(mask, 1, nRows); - for hi = 1:nRows - rowlayers(hi).texOffset = [midAzi alt(hi)]; - end - [rowlayers.size] = deal([gridDims(1) (1 - sizeFrac(2))*cellSize(2)]); - %% combine the layers and return - layers = [stencil collayers rowlayers]; -else % no mask grid needed as each cell is full size - layers = stencil; -end - -end \ No newline at end of file diff --git a/signals b/signals index 897da00e..924de6a5 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 897da00ee217874db2f271b9dbad42886eb4ff7d +Subproject commit 924de6a5b850e1f797a5ad6b24e64644fb5b1f00 From 770499b4e9479c0cedb058bff2142f8c3b86e4d0 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 23 Jan 2019 01:34:36 +0200 Subject: [PATCH 261/515] cellFlat now works with arrays of Signals objects --- cb-tools/burgbox/cellflat.m | 2 +- signals | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cb-tools/burgbox/cellflat.m b/cb-tools/burgbox/cellflat.m index 532b011f..37a5252d 100644 --- a/cb-tools/burgbox/cellflat.m +++ b/cb-tools/burgbox/cellflat.m @@ -18,7 +18,7 @@ if isempty(elem) elem = {elem}; end - flat = [flat; elem]; + flat = [flat; ensureCell(elem)]; end end diff --git a/signals b/signals index 924de6a5..ebea3f63 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 924de6a5b850e1f797a5ad6b24e64644fb5b1f00 +Subproject commit ebea3f63a892edf25fc8b4d81156a219283c4a4c From 72acc9009c325197e5e20b6247488d24d7bca20f Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 24 Jan 2019 18:30:19 +0200 Subject: [PATCH 262/515] Comments still saved loaclly upon failure to post to Alyx --- +dat/updateLogEntry.m | 6 +++++- signals | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/+dat/updateLogEntry.m b/+dat/updateLogEntry.m index 0882ba2a..47678185 100644 --- a/+dat/updateLogEntry.m +++ b/+dat/updateLogEntry.m @@ -13,7 +13,11 @@ function updateLogEntry(subject, id, newEntry) if isfield(newEntry, 'AlyxInstance') % Update session narrative on Alyx if ~isempty(newEntry.comments) && ~strcmp(subject, 'default') - newEntry.comments = newEntry.AlyxInstance.updateNarrative(newEntry.comments); + try + newEntry.comments = newEntry.AlyxInstance.updateNarrative(newEntry.comments); + catch + warning('Alyx:updateNarrative:UploadFailed', 'Failed to update Alyx session narrative'); + end end newEntry = rmfield(newEntry, 'AlyxInstance'); end diff --git a/signals b/signals index ebea3f63..e05d9537 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit ebea3f63a892edf25fc8b4d81156a219283c4a4c +Subproject commit e05d95376fdc1d36b2dac8e55ed9484c3e6edded From 9ad2c06d3d6a02f7624c23fa781dc83b158024b2 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 24 Jan 2019 18:48:15 +0200 Subject: [PATCH 263/515] Updates to session done with PATCH --- +exp/SignalsExp.m | 4 ++-- alyx-matlab | 2 +- cortexlab/+exp/ChoiceWorld.m | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 2eb9d192..f616ea70 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -906,10 +906,10 @@ function saveData(obj) numCorrect = 0; end % Update Alyx session with end time, trial counts and water tye - sessionData = struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject); + sessionData = struct('end_time', obj.AlyxInstance.datestr(now)); if ~isempty(numTrials); sessionData.n_trials = numTrials; end if ~isempty(numCorrect); sessionData.n_correct_trials = numCorrect; end - obj.AlyxInstance.postData(url, sessionData, 'put'); + obj.AlyxInstance.postData(url, sessionData, 'patch'); else % Retrieve session from endpoint % subsessions = obj.AlyxInstance.getData(... diff --git a/alyx-matlab b/alyx-matlab index 6fc933b9..dd2ab36d 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 6fc933b99bec09689a83b024284e8023d2c5793d +Subproject commit dd2ab36de59843edc94c15956967731d81173b74 diff --git a/cortexlab/+exp/ChoiceWorld.m b/cortexlab/+exp/ChoiceWorld.m index 607d6d06..60ad59ec 100644 --- a/cortexlab/+exp/ChoiceWorld.m +++ b/cortexlab/+exp/ChoiceWorld.m @@ -194,8 +194,8 @@ function saveData(obj) numCorrect = 0; end sessionData = struct('end_time', obj.AlyxInstance.datestr(now), ... - 'subject', subject, 'n_trials', numTrials, 'n_correct_trials', numCorrect); - obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL, sessionData, 'put'); + 'n_trials', numTrials, 'n_correct_trials', numCorrect); + obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL, sessionData, 'patch'); else % Infer from date session and retrieve using expFilePath end From eb4cb395a7c58d637e793e88795c4238fb0a5f58 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 24 Jan 2019 18:48:15 +0200 Subject: [PATCH 264/515] Updates to session done with PATCH --- +exp/SignalsExp.m | 4 ++-- alyx-matlab | 2 +- cortexlab/+exp/ChoiceWorld.m | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index 2eb9d192..f616ea70 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -906,10 +906,10 @@ function saveData(obj) numCorrect = 0; end % Update Alyx session with end time, trial counts and water tye - sessionData = struct('end_time', obj.AlyxInstance.datestr(now), 'subject', subject); + sessionData = struct('end_time', obj.AlyxInstance.datestr(now)); if ~isempty(numTrials); sessionData.n_trials = numTrials; end if ~isempty(numCorrect); sessionData.n_correct_trials = numCorrect; end - obj.AlyxInstance.postData(url, sessionData, 'put'); + obj.AlyxInstance.postData(url, sessionData, 'patch'); else % Retrieve session from endpoint % subsessions = obj.AlyxInstance.getData(... diff --git a/alyx-matlab b/alyx-matlab index 7a860739..1f29e306 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 7a860739766fa1a08fd3cb084c7a0b2ec3a7ac37 +Subproject commit 1f29e306747a39cc76d99bb3ac51175309ecbda4 diff --git a/cortexlab/+exp/ChoiceWorld.m b/cortexlab/+exp/ChoiceWorld.m index 607d6d06..60ad59ec 100644 --- a/cortexlab/+exp/ChoiceWorld.m +++ b/cortexlab/+exp/ChoiceWorld.m @@ -194,8 +194,8 @@ function saveData(obj) numCorrect = 0; end sessionData = struct('end_time', obj.AlyxInstance.datestr(now), ... - 'subject', subject, 'n_trials', numTrials, 'n_correct_trials', numCorrect); - obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL, sessionData, 'put'); + 'n_trials', numTrials, 'n_correct_trials', numCorrect); + obj.AlyxInstance.postData(obj.AlyxInstance.SessionURL, sessionData, 'patch'); else % Infer from date session and retrieve using expFilePath end From d54582b72d6a57957a7a2719e2df5b6fbb6bc2ae Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 24 Jan 2019 19:18:28 +0200 Subject: [PATCH 265/515] Added change to patch cached put files to Alyx --- cortexlab/+git/changes.m | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cortexlab/+git/changes.m diff --git a/cortexlab/+git/changes.m b/cortexlab/+git/changes.m new file mode 100644 index 00000000..d9e9f013 --- /dev/null +++ b/cortexlab/+git/changes.m @@ -0,0 +1,6 @@ +disp('Updating queued Alyx posts...') +posts = dirPlus(getOr(dat.paths, 'localAlyxQueue', 'C:/localAlyxQueue')); +posts = posts(endsWith(posts, 'put')); +newPosts = cellfun(@(str)[str(1:end-3) 'patch'], posts, 'uni', 0); +status = cellfun(@movefile, posts, newPosts); +assert(all(status), 'Unable to rename queued Alyx files, please do this manually') \ No newline at end of file From e4a0325f029e039a08f4ea9c9ac113a87eef9a91 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 24 Jan 2019 19:18:28 +0200 Subject: [PATCH 266/515] Added change to patch cached put files to Alyx --- cortexlab/+git/changes.m | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cortexlab/+git/changes.m diff --git a/cortexlab/+git/changes.m b/cortexlab/+git/changes.m new file mode 100644 index 00000000..d9e9f013 --- /dev/null +++ b/cortexlab/+git/changes.m @@ -0,0 +1,6 @@ +disp('Updating queued Alyx posts...') +posts = dirPlus(getOr(dat.paths, 'localAlyxQueue', 'C:/localAlyxQueue')); +posts = posts(endsWith(posts, 'put')); +newPosts = cellfun(@(str)[str(1:end-3) 'patch'], posts, 'uni', 0); +status = cellfun(@movefile, posts, newPosts); +assert(all(status), 'Unable to rename queued Alyx files, please do this manually') \ No newline at end of file From 7ad3bab93386a26c83cbd9b4757eedbf09b96a8c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Sat, 26 Jan 2019 16:45:25 +0200 Subject: [PATCH 267/515] Fix bug for when code never fetched --- cortexlab/+git/update.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 86cb25e9..aaf67546 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -9,7 +9,12 @@ function update(scheduled) if nargin < 1; scheduled = getOr(dat.paths, 'updateSchedule', 0); end root = fileparts(which('addRigboxPaths')); -lastFetch = getOr(dir(fullfile(root, '.git', 'FETCH_HEAD')), 'datenum'); +% Attempt to find date of last fetch +fetch_head = fullfile(root, '.git', 'FETCH_HEAD'); +lastFetch = iff(exist(fetch_head,'file')==2, ... % If FETCH_HEAD file exists + @()getOr(dir(fetch_head), 'datenum'), 0); % Retrieve date modified +% If the code has not been fetched in over a week, force and update, +% otherwise return if (scheduled && weekday(now) ~= scheduled && now - lastFetch < 7) || ... (~scheduled && now - lastFetch < 1/24) return From 7ae881309bc8413506b13e1449cf546f97f7266c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Sun, 27 Jan 2019 17:03:20 +0200 Subject: [PATCH 268/515] Bug fix for timeplot --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index e05d9537..93520307 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit e05d95376fdc1d36b2dac8e55ed9484c3e6edded +Subproject commit 93520307c1cb1a9dc12fa8bda685a01b9ab80401 From 5dcb8285193ccce8c7b816d3848511402ef89c46 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Mon, 28 Jan 2019 08:16:59 +0000 Subject: [PATCH 269/515] add signals 'tutorials' folder to paths --- addRigboxPaths.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addRigboxPaths.m b/addRigboxPaths.m index b705367e..0364b06f 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -94,8 +94,8 @@ function addRigboxPaths(savePaths) % Add signals paths, this includes all the core code for running signals % experiments. This submodule is maintained by Chris Burgess. addpath(fullfile(root, 'signals'),... - fullfile(root, 'signals', 'mexnet'),... - fullfile(root, 'signals', 'util')); + fullfile(root, 'signals', 'mexnet'), fullfile(root, 'signals', 'util'),... + fullfile(root, 'signals', 'tutorials')); % Add the Java paths for signals jcp = fullfile(root, 'signals', 'java'); if ~any(strcmp(javaclasspath, jcp)); javaaddpath(jcp); end From 808d565bab222827b60f410842868d09c873b960 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Mon, 28 Jan 2019 12:27:38 +0000 Subject: [PATCH 270/515] Revert "add signals 'tutorials' folder to paths" This reverts commit 5dcb8285193ccce8c7b816d3848511402ef89c46. --- addRigboxPaths.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addRigboxPaths.m b/addRigboxPaths.m index 0364b06f..b705367e 100644 --- a/addRigboxPaths.m +++ b/addRigboxPaths.m @@ -94,8 +94,8 @@ function addRigboxPaths(savePaths) % Add signals paths, this includes all the core code for running signals % experiments. This submodule is maintained by Chris Burgess. addpath(fullfile(root, 'signals'),... - fullfile(root, 'signals', 'mexnet'), fullfile(root, 'signals', 'util'),... - fullfile(root, 'signals', 'tutorials')); + fullfile(root, 'signals', 'mexnet'),... + fullfile(root, 'signals', 'util')); % Add the Java paths for signals jcp = fullfile(root, 'signals', 'java'); if ~any(strcmp(javaclasspath, jcp)); javaaddpath(jcp); end From 3d90407b2353337a7e5d790537a0fc791a9abbf5 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 28 Jan 2019 17:43:37 +0200 Subject: [PATCH 271/515] Update only occurs once on scheduled day --- cortexlab/+git/update.m | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index aaf67546..fd6a7e0b 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -1,11 +1,15 @@ function update(scheduled) % GIT.UPDATE Pull latest Rigbox code % Pulls the latest code from the remote repository. If scheduled is a -% value in the range [1 7] corresponding to the days of the week, the -% function will only continue on that day, or if the last fetch was over -% a week ago. +% value in the range [1 7] corresponding to the days of the week starting +% Sunday, the function will only continue on that day, provided the last +% fetch was over a day ago. If it is not the scheduled day, but the last +% fetch was over a week ago, the function will pull changes. If +% scheduled is false, the function will pull changes provided the last +% fetch was over an hour ago. +% % TODO Find quicker way to check for changes -% See also +% See also DAT.PATHS if nargin < 1; scheduled = getOr(dat.paths, 'updateSchedule', 0); end root = fileparts(which('addRigboxPaths')); @@ -13,9 +17,15 @@ function update(scheduled) fetch_head = fullfile(root, '.git', 'FETCH_HEAD'); lastFetch = iff(exist(fetch_head,'file')==2, ... % If FETCH_HEAD file exists @()getOr(dir(fetch_head), 'datenum'), 0); % Retrieve date modified -% If the code has not been fetched in over a week, force and update, -% otherwise return + +% Don't pull changes if the following conditions are met: +% 1. The updates are scheduled for a different day and the last fetch was less +% than a week ago. +% 2. The updates are scheduled for today and the last fetch was today. +% 3. The updates are scheduled for every day and the last fetch was less +% than an hour ago. if (scheduled && weekday(now) ~= scheduled && now - lastFetch < 7) || ... + (scheduled && weekday(now) == scheduled && now - lastFetch < 1) || ... (~scheduled && now - lastFetch < 1/24) return end @@ -39,10 +49,10 @@ function update(scheduled) % Stash any WIP, check submodules are initialized, pull try - [status, cmdout] = system(cmdstrStash, '-echo'); - [status, cmdout] = system(cmdstrStashSubs, '-echo'); - [status, cmdout] = system(cmdstrInit, '-echo'); - [status, cmdout] = system(cmdstrPull, '-echo'); + [~, cmdout] = system(cmdstrStash, '-echo'); + [~, cmdout] = system(cmdstrStashSubs, '-echo'); + [~, cmdout] = system(cmdstrInit, '-echo'); + [~, cmdout] = system(cmdstrPull, '-echo'); %#ok catch ex cd(origDir) error('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) @@ -55,4 +65,4 @@ function update(scheduled) delete(changesPath); end cd(origDir) -end +end \ No newline at end of file From 0ff74273ede9adfe8ec372ae13d9a41997cad8a7 Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Mon, 28 Jan 2019 16:22:31 +0000 Subject: [PATCH 272/515] additional comments for git.update --- cortexlab/+git/update.m | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index fd6a7e0b..a04a9b62 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -1,32 +1,34 @@ function update(scheduled) % GIT.UPDATE Pull latest Rigbox code -% Pulls the latest code from the remote repository. If scheduled is a -% value in the range [1 7] corresponding to the days of the week starting -% Sunday, the function will only continue on that day, provided the last -% fetch was over a day ago. If it is not the scheduled day, but the last -% fetch was over a week ago, the function will pull changes. If -% scheduled is false, the function will pull changes provided the last -% fetch was over an hour ago. +% Pulls the latest code from the remote Github repository. If 'scheduled' +% is a value in the range [1 7] - corresponding to the days of the week, +% with Sunday=1 - code will be pulled only on the 'scheduled' day, +% provided the last fetch was over a day ago. Code will also be pulled if +% it is not the scheduled day, but the last fetch was over a week ago. If +% scheduled is 0, the function will pull changes provided the last fetch +% was over an hour ago. % % TODO Find quicker way to check for changes % See also DAT.PATHS -if nargin < 1; scheduled = getOr(dat.paths, 'updateSchedule', 0); end -root = fileparts(which('addRigboxPaths')); +% If not given as input argument, find 'scheduled' in 'dat.paths'. If not +% found, set 'scheduled' to 0. +if nargin < 1; scheduled = getOr(dat.paths, 'updateSchedule', 0); end +root = fileparts(which('addRigboxPaths')); % Rigbox root directory % Attempt to find date of last fetch fetch_head = fullfile(root, '.git', 'FETCH_HEAD'); lastFetch = iff(exist(fetch_head,'file')==2, ... % If FETCH_HEAD file exists @()getOr(dir(fetch_head), 'datenum'), 0); % Retrieve date modified % Don't pull changes if the following conditions are met: -% 1. The updates are scheduled for a different day and the last fetch was less -% than a week ago. +% 1. The updates are scheduled for a different day and the last fetch was +% less than a week ago. % 2. The updates are scheduled for today and the last fetch was today. % 3. The updates are scheduled for every day and the last fetch was less % than an hour ago. -if (scheduled && weekday(now) ~= scheduled && now - lastFetch < 7) || ... - (scheduled && weekday(now) == scheduled && now - lastFetch < 1) || ... - (~scheduled && now - lastFetch < 1/24) +if ((scheduled && weekday(now)) ~= (scheduled && (now - lastFetch < 7))) || ... + ((scheduled && weekday(now)) == (scheduled && (now - lastFetch < 1))) || ... + (~scheduled && (now - lastFetch < 1/24)) return end disp('Updating code...') @@ -34,7 +36,7 @@ function update(scheduled) % Get the path to the Git exe gitexepath = getOr(dat.paths, 'gitExe'); if isempty(gitexepath) - [~,gitexepath] = system('where git'); % this doesn't always work + [~,gitexepath] = system('where git'); % todo: this doesn't always work end gitexepath = ['"', strtrim(gitexepath), '"']; @@ -42,6 +44,8 @@ function update(scheduled) origDir = pwd; cd(root) +% Create Windows system commands for git stashing, initializing submodules, +% and pulling cmdstrStash = [gitexepath, ' stash push -m "stash Rigbox working changes before scheduled git update"']; cmdstrStashSubs = [gitexepath, ' submodule foreach "git stash push"']; cmdstrInit = [gitexepath, ' submodule update --init']; @@ -65,4 +69,4 @@ function update(scheduled) delete(changesPath); end cd(origDir) -end \ No newline at end of file +end From 2a5185d259499e250caf8f05a8d6641098ab287e Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Mon, 28 Jan 2019 16:25:34 +0000 Subject: [PATCH 273/515] updated git.update from commit 0ff742 in 'dev' --- cortexlab/+git/update.m | 47 +++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 86cb25e9..a04a9b62 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -1,17 +1,34 @@ function update(scheduled) % GIT.UPDATE Pull latest Rigbox code -% Pulls the latest code from the remote repository. If scheduled is a -% value in the range [1 7] corresponding to the days of the week, the -% function will only continue on that day, or if the last fetch was over -% a week ago. +% Pulls the latest code from the remote Github repository. If 'scheduled' +% is a value in the range [1 7] - corresponding to the days of the week, +% with Sunday=1 - code will be pulled only on the 'scheduled' day, +% provided the last fetch was over a day ago. Code will also be pulled if +% it is not the scheduled day, but the last fetch was over a week ago. If +% scheduled is 0, the function will pull changes provided the last fetch +% was over an hour ago. +% % TODO Find quicker way to check for changes -% See also +% See also DAT.PATHS + +% If not given as input argument, find 'scheduled' in 'dat.paths'. If not +% found, set 'scheduled' to 0. if nargin < 1; scheduled = getOr(dat.paths, 'updateSchedule', 0); end +root = fileparts(which('addRigboxPaths')); % Rigbox root directory +% Attempt to find date of last fetch +fetch_head = fullfile(root, '.git', 'FETCH_HEAD'); +lastFetch = iff(exist(fetch_head,'file')==2, ... % If FETCH_HEAD file exists + @()getOr(dir(fetch_head), 'datenum'), 0); % Retrieve date modified -root = fileparts(which('addRigboxPaths')); -lastFetch = getOr(dir(fullfile(root, '.git', 'FETCH_HEAD')), 'datenum'); -if (scheduled && weekday(now) ~= scheduled && now - lastFetch < 7) || ... - (~scheduled && now - lastFetch < 1/24) +% Don't pull changes if the following conditions are met: +% 1. The updates are scheduled for a different day and the last fetch was +% less than a week ago. +% 2. The updates are scheduled for today and the last fetch was today. +% 3. The updates are scheduled for every day and the last fetch was less +% than an hour ago. +if ((scheduled && weekday(now)) ~= (scheduled && (now - lastFetch < 7))) || ... + ((scheduled && weekday(now)) == (scheduled && (now - lastFetch < 1))) || ... + (~scheduled && (now - lastFetch < 1/24)) return end disp('Updating code...') @@ -19,7 +36,7 @@ function update(scheduled) % Get the path to the Git exe gitexepath = getOr(dat.paths, 'gitExe'); if isempty(gitexepath) - [~,gitexepath] = system('where git'); % this doesn't always work + [~,gitexepath] = system('where git'); % todo: this doesn't always work end gitexepath = ['"', strtrim(gitexepath), '"']; @@ -27,6 +44,8 @@ function update(scheduled) origDir = pwd; cd(root) +% Create Windows system commands for git stashing, initializing submodules, +% and pulling cmdstrStash = [gitexepath, ' stash push -m "stash Rigbox working changes before scheduled git update"']; cmdstrStashSubs = [gitexepath, ' submodule foreach "git stash push"']; cmdstrInit = [gitexepath, ' submodule update --init']; @@ -34,10 +53,10 @@ function update(scheduled) % Stash any WIP, check submodules are initialized, pull try - [status, cmdout] = system(cmdstrStash, '-echo'); - [status, cmdout] = system(cmdstrStashSubs, '-echo'); - [status, cmdout] = system(cmdstrInit, '-echo'); - [status, cmdout] = system(cmdstrPull, '-echo'); + [~, cmdout] = system(cmdstrStash, '-echo'); + [~, cmdout] = system(cmdstrStashSubs, '-echo'); + [~, cmdout] = system(cmdstrInit, '-echo'); + [~, cmdout] = system(cmdstrPull, '-echo'); %#ok catch ex cd(origDir) error('gitUpdate:pull:pullFailed', 'Failed to pull latest changes:, %s', cmdout) From c9c27a22749d09111754585a90a2528d261598f3 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 28 Jan 2019 19:53:47 +0200 Subject: [PATCH 274/515] Fix'd incorrect brackets --- cortexlab/+git/update.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index a04a9b62..200ba269 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -11,8 +11,8 @@ function update(scheduled) % TODO Find quicker way to check for changes % See also DAT.PATHS -% If not given as input argument, find 'scheduled' in 'dat.paths'. If not -% found, set 'scheduled' to 0. +% If not given as input argument, use 'updateSchedule' in 'dat.paths'. If +% not found, set 'scheduled' to 0. if nargin < 1; scheduled = getOr(dat.paths, 'updateSchedule', 0); end root = fileparts(which('addRigboxPaths')); % Rigbox root directory % Attempt to find date of last fetch @@ -26,9 +26,9 @@ function update(scheduled) % 2. The updates are scheduled for today and the last fetch was today. % 3. The updates are scheduled for every day and the last fetch was less % than an hour ago. -if ((scheduled && weekday(now)) ~= (scheduled && (now - lastFetch < 7))) || ... - ((scheduled && weekday(now)) == (scheduled && (now - lastFetch < 1))) || ... - (~scheduled && (now - lastFetch < 1/24)) +if (scheduled && (weekday(now) ~= scheduled) && now - lastFetch < 7) || ... + (scheduled && (weekday(now) == scheduled) && now - lastFetch < 1) || ... + (~scheduled && now - lastFetch < 1/24) return end disp('Updating code...') From cbb131337a85a5b1a25c56b1254db16cf3cf3a44 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 28 Jan 2019 19:53:47 +0200 Subject: [PATCH 275/515] Fix'd incorrect brackets --- cortexlab/+git/update.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index a04a9b62..200ba269 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -11,8 +11,8 @@ function update(scheduled) % TODO Find quicker way to check for changes % See also DAT.PATHS -% If not given as input argument, find 'scheduled' in 'dat.paths'. If not -% found, set 'scheduled' to 0. +% If not given as input argument, use 'updateSchedule' in 'dat.paths'. If +% not found, set 'scheduled' to 0. if nargin < 1; scheduled = getOr(dat.paths, 'updateSchedule', 0); end root = fileparts(which('addRigboxPaths')); % Rigbox root directory % Attempt to find date of last fetch @@ -26,9 +26,9 @@ function update(scheduled) % 2. The updates are scheduled for today and the last fetch was today. % 3. The updates are scheduled for every day and the last fetch was less % than an hour ago. -if ((scheduled && weekday(now)) ~= (scheduled && (now - lastFetch < 7))) || ... - ((scheduled && weekday(now)) == (scheduled && (now - lastFetch < 1))) || ... - (~scheduled && (now - lastFetch < 1/24)) +if (scheduled && (weekday(now) ~= scheduled) && now - lastFetch < 7) || ... + (scheduled && (weekday(now) == scheduled) && now - lastFetch < 1) || ... + (~scheduled && now - lastFetch < 1/24) return end disp('Updating code...') From b36cadb46f9b9deec89de5d6edf93aec00237bb8 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 31 Jan 2019 00:38:11 +0200 Subject: [PATCH 276/515] Attempt to integrate new Parameter Editor into mc --- +eui/ConditionPanel.m | 252 ++++++++++++++++ +eui/FieldPanel.m | 164 +++++++++++ +eui/MControl.m | 24 +- +eui/ParamEditor.m | 630 +++++++++++++--------------------------- +eui/ParamEditor_old.m | 516 ++++++++++++++++++++++++++++++++ +exp/Parameters.m | 10 +- cortexlab/+git/update.m | 2 +- signals | 2 +- 8 files changed, 1160 insertions(+), 440 deletions(-) create mode 100644 +eui/ConditionPanel.m create mode 100644 +eui/FieldPanel.m create mode 100644 +eui/ParamEditor_old.m diff --git a/+eui/ConditionPanel.m b/+eui/ConditionPanel.m new file mode 100644 index 00000000..7c4b89fe --- /dev/null +++ b/+eui/ConditionPanel.m @@ -0,0 +1,252 @@ +classdef ConditionPanel < handle + %UNTITLED Summary of this class goes here + % Detailed explanation goes here + % TODO Document + % TODO Add sort by column + % TODO Add set condition idx + % TODO Use tags for menu items + + properties + ConditionTable + MinWidth = 80 +% MaxWidth = 140 +% Margin = 4 + UIPanel + ButtonPanel + ContextMenus + end + + properties %(Access = protected) + ParamEditor + Listener + NewConditionButton + DeleteConditionButton + MakeGlobalButton + SetValuesButton + SelectedCells %[row, column;...] of each selected cell + end + + methods + function obj = ConditionPanel(f, ParamEditor, varargin) + obj.ParamEditor = ParamEditor; + obj.UIPanel = uipanel('Parent', f, 'BorderType', 'none',... + 'BackgroundColor', 'white', 'Position', [0.5 0.05 0.5 0.95]); + % Create a child menu for the uiContextMenus + c = uicontextmenu; + obj.UIPanel.UIContextMenu = c; + obj.ContextMenus = uimenu(c, 'Label', 'Make Global', 'MenuSelectedFcn', @(~,~)obj.makeGlobal); + fcn = @(s,~)obj.ParamEditor.setRandomized(~strcmp(s.Checked, 'on')); + obj.ContextMenus(2) = uimenu(c, 'Label', 'Randomize conditions', ... + 'MenuSelectedFcn', fcn, 'Checked', 'on', 'Tag', 'randomize button'); + obj.ContextMenus(3) = uimenu(c, 'Label', 'Sort by selected column', ... + 'MenuSelectedFcn', @(~,~)disp('feature not yet implemented'), 'Tag', 'sort by'); + % Create condition table + obj.ConditionTable = uitable('Parent', obj.UIPanel,... + 'FontName', 'Consolas',... + 'RowName', [],... + 'RearrangeableColumns', true,... + 'Units', 'normalized',... + 'Position',[0 0 1 1],... + 'UIContextMenu', c,... + 'CellEditCallback', @obj.onEdit,... + 'CellSelectionCallback', @obj.onSelect); + % Create button panel to hold condition control buttons + obj.ButtonPanel = uipanel('BackgroundColor', 'white',... + 'Position', [0.5 0 0.5 0.05], 'BorderType', 'none'); + % Create callback so that width of button panel is slave to width of + % conditional UIPanel + b = obj.ButtonPanel; + fcn = @(s)set(obj.ButtonPanel, 'Position', ... + [s.Position(1) b.Position(2) s.Position(3) b.Position(4)]); + obj.Listener = event.listener(obj.UIPanel, 'SizeChanged', @(s,~)fcn(s)); + % Define some common properties + props.BackgroundColor = 'white'; + props.Style = 'pushbutton'; + props.Units = 'normalized'; + props.Parent = obj.ButtonPanel; + % Create out four buttons + obj.NewConditionButton = uicontrol(props,... + 'String', 'New condition',... + 'Position',[0 0 1/4 1],... + 'TooltipString', 'Add a new condition',... + 'Callback', @(~, ~) obj.newCondition()); + obj.DeleteConditionButton = uicontrol(props,... + 'String', 'Delete condition',... + 'Position',[1/4 0 1/4 1],... + 'TooltipString', 'Delete the selected condition',... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.deleteSelectedConditions()); + obj.MakeGlobalButton = uicontrol(props,... + 'String', 'Globalise parameter',... + 'Position',[2/4 0 1/4 1],... + 'TooltipString', sprintf(['Make the selected condition-specific parameter global (i.e. not vary by trial)\n'... + 'This will move it to the global parameters section']),... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.makeGlobal()); + obj.SetValuesButton = uicontrol(props,... + 'String', 'Set values',... + 'Position',[3/4 0 1/4 1],... + 'TooltipString', 'Set selected values to specified value, range or function',... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.setSelectedValues()); + end + + function onEdit(obj, src, eventData) + disp('updating table cell'); + row = eventData.Indices(1); + col = eventData.Indices(2); + paramName = obj.ConditionTable.ColumnName{col}; + newValue = obj.ParamEditor.update(paramName, eventData.NewData, row); + reformed = obj.ParamEditor.paramValue2Control(newValue); + % If successful update the cell with default formatting + data = get(src, 'Data'); + if iscell(reformed) + % The reformed data type is a cell, this should be a one element + % wrapping cell + if numel(reformed) == 1 + reformed = reformed{1}; + else + error('Cannot handle data reformatted data type'); + end + end + data{row,col} = reformed; + set(src, 'Data', data); + end + + function clear(obj) + set(obj.ConditionTable, 'ColumnName', [], ... + 'Data', [], 'ColumnEditable', false); + end + + function delete(obj) + disp('delete called'); + delete(obj.UIPanel); + end + + function onSelect(obj, ~, eventData) + obj.SelectedCells = eventData.Indices; + if size(eventData.Indices, 1) > 0 + % cells selected, enable buttons + set(obj.MakeGlobalButton, 'Enable', 'on'); + set(obj.DeleteConditionButton, 'Enable', 'on'); + set(obj.SetValuesButton, 'Enable', 'on'); + set(obj.ContextMenus(1), 'Enable', 'on'); + set(obj.ContextMenus(3), 'Enable', 'on'); + else + % nothing selected, disable buttons + set(obj.MakeGlobalButton, 'Enable', 'off'); + set(obj.DeleteConditionButton, 'Enable', 'off'); + set(obj.SetValuesButton, 'Enable', 'off'); + set(obj.ContextMenus(1), 'Enable', 'off'); + set(obj.ContextMenus(3), 'Enable', 'off'); + end + end + + function makeGlobal(obj) + if isempty(obj.SelectedCells) + disp('nothing selected') + return + end + [cols, iu] = unique(obj.SelectedCells(:,2)); + names = obj.ConditionTable.ColumnName(cols); + rows = num2cell(obj.SelectedCells(iu,1)); %get rows of unique selected cols + PE = obj.ParamEditor; + cellfun(@PE.globaliseParamAtCell, names, rows); + end + + function deleteSelectedConditions(obj) + %DELETESELECTEDCONDITIONS Removes the selected conditions from table + % The callback for the 'Delete condition' button. This removes the + % selected conditions from the table and if less than two conditions + % remain, globalizes them. + % TODO: comment function better, index in a clearer fashion + % + % See also EXP.PARAMETERS, GLOBALISESELECTEDPARAMETERS + rows = unique(obj.SelectedCells(:,1)); + names = obj.ConditionTable.ColumnName; + numConditions = size(obj.ConditionTable.Data,2); + % If the number of remaining conditions is 1 or less... + if numConditions-length(rows) <= 1 + remainingIdx = find(all(1:numConditions~=rows,1)); + if isempty(remainingIdx); remainingIdx = 1; end + % change selected cells to be all fields (except numRepeats which + % is assumed to always be the last column) + obj.SelectedCells =[ones(length(names),1)*remainingIdx, (1:length(names))']; + %... globalize them + obj.makeGlobal; + else % Otherwise delete the selected conditions as usual + obj.ParamEditor.Parameters.removeConditions(rows); %FIXME: Should be in ParamEditor + end + % Refresh the table of conditions FIXME: Should be in ParamEditor + obj.ParamEditor.fillConditionTable(); + end + + function setSelectedValues(obj) % Set multiple fields in conditional table + disp('updating table cells'); + cols = obj.SelectedCells(:,2); % selected columns + uCol = unique(obj.SelectedCells(:,2)); + rows = obj.SelectedCells(:,1); % selected rows + % get current values of selected cells + currVals = arrayfun(@(u)obj.ConditionTable.Data(rows(cols==u),u), uCol, 'UniformOutput', 0); + names = obj.ConditionTable.ColumnName(uCol); % selected column names + promt = cellfun(@(a,b) [a ' (' num2str(sum(cols==b)) ')'],... + names, num2cell(uCol), 'UniformOutput', 0); % names of columns & num selected rows + defaultans = cellfun(@(c) c(1), currVals); + answer = inputdlg(promt,'Set values', 1, cellflat(defaultans)); % prompt for input + if isempty(answer) % if user presses cancel + return + end + % set values for each column + cellfun(@(a,b,c) setNewVals(a,b,c), answer, currVals, names, 'UniformOutput', 0); + function newVals = setNewVals(userIn, currVals, paramName) + % check array orientation + currVals = iff(size(currVals,1)>size(currVals,2),currVals',currVals); + if strStartsWith(userIn,'@') % anon function + func_h = str2func(userIn); + % apply function to each cell + currVals = cellfun(@str2double,currVals, 'UniformOutput', 0); % convert from char + newVals = cellfun(func_h, currVals, 'UniformOutput', 0); + elseif any(userIn==':') % array syntax + arr = eval(userIn); + newVals = num2cell(arr); % convert to cell array + elseif any(userIn==','|userIn==';') % 2D arrays + C = strsplit(userIn, ';'); + newVals = cellfun(@(c)textscan(c, '%f',... + 'ReturnOnError', false,... + 'delimiter', {' ', ','}, 'MultipleDelimsAsOne', 1),... + C); + else % single value to copy across all cells + userIn = str2double(userIn); + newVals = num2cell(ones(size(currVals))*userIn); + end + + if length(newVals)>length(currVals) % too many new values + newVals = newVals(1:length(currVals)); % truncate new array + elseif length(newVals) 5; w = 0.5; else; w = 0.1 * w; end +% obj.UI(2).Position = [1-w 0 w 1]; +% obj.UI(1).Position = [0 0 1-w 1]; + + %%% general coordinates + pos = getpixelposition(obj.UIPanel); + borderwidth = obj.Margin; + bounds = [pos(3) pos(4)] - 2*borderwidth; + n = numel(obj.Labels); + vspace = obj.RowSpacing; + hspace = obj.ColSpacing; + rowHeight = obj.MinRowHeight + 2*vspace; + rowsPerCol = floor(bounds(2)/rowHeight); + cols = ceil((1:n)/rowsPerCol)'; + ncols = cols(end); + rows = mod(0:n - 1, rowsPerCol)' + 1; + labelColWidth = max(obj.LabelWidths) + 2*hspace; + ctrlWidthAvail = bounds(1)/ncols - labelColWidth; + ctrlColWidth = max(obj.MinCtrlWidth, min(ctrlWidthAvail, obj.MaxCtrlWidth)); + fullColWidth = labelColWidth + ctrlColWidth; + + %%% coordinates of labels + by = bounds(2) - rows*rowHeight + vspace + 1 + borderwidth; + labelPos = [vspace + (cols - 1)*fullColWidth + 1 + borderwidth... + by... + obj.LabelWidths... + repmat(rowHeight - 2*vspace, n, 1)]; + + %%% coordinates of edits + editPos = [labelColWidth + hspace + (cols - 1)*fullColWidth + 1 + borderwidth ... + by... + repmat(ctrlColWidth - 2*hspace, n, 1)... + repmat(rowHeight - 2*vspace, n, 1)]; + set(obj.Labels, {'Position'}, num2cell(labelPos, 2)); + set(obj.Controls, {'Position'}, num2cell(editPos, 2)); + + end + end + +end + diff --git a/+eui/MControl.m b/+eui/MControl.m index 5b25075d..5bad701e 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -247,10 +247,10 @@ function saveParamProfile(obj) % Called by 'Save...' button press, save a new pa end function loadParamProfile(obj, profile) + set(obj.ParamProfileLabel, 'String', 'loading...', 'ForegroundColor', [1 0 0]); % Red 'Loading...' while new set loads if ~isempty(obj.ParamEditor) - %delete existing parameters control - delete(obj.ParamEditor); - set(obj.ParamProfileLabel, 'String', 'loading...', 'ForegroundColor', [1 0 0]); % Red 'Loading...' while new set loads + % Clear existing parameters control + % TODO end factory = obj.NewExpFactory; % Find which 'world' we are in @@ -305,12 +305,18 @@ function loadParamProfile(obj, profile) paramStruct = rmfield(paramStruct, 'services'); end obj.Parameters.Struct = paramStruct; - if ~isempty(paramStruct) % Now parameters are loaded, pass to ParamEditor for display, etc. - obj.ParamEditor = eui.ParamEditor(obj.Parameters, obj.ParamPanel); % Build parameter list in Global panel by calling eui.ParamEditor - obj.ParamEditor.addlistener('Changed', @(src,~) obj.paramChanged); - if strcmp(obj.RemoteRigs.Selected.Status, 'idle') - set(obj.BeginExpButton, 'Enable', 'on') % Re-enable start button - end + if isempty(paramStruct); return; end + % Now parameters are loaded, pass to ParamEditor for display, etc. + if isempty(obj.ParamEditor) + panel = uipanel('Parent', obj.ParamPanel, 'Position', [0 0 1 1]); +% panel = uiextras.Panel('Parent', obj.ParamPanel); + obj.ParamEditor = eui.ParamEditor(obj.Parameters, panel); % Build parameter list in Global panel by calling eui.ParamEditor + else + obj.ParamEditor.buildUI(obj.Parameters); + end + obj.ParamEditor.addlistener('Changed', @(src,~) obj.paramChanged); + if strcmp(obj.RemoteRigs.Selected.Status, 'idle') + set(obj.BeginExpButton, 'Enable', 'on') % Re-enable start button end end diff --git a/+eui/ParamEditor.m b/+eui/ParamEditor.m index 75aca882..74fa16e4 100644 --- a/+eui/ParamEditor.m +++ b/+eui/ParamEditor.m @@ -1,34 +1,20 @@ classdef ParamEditor < handle - %EUI.PARAMEDITOR UI control for configuring experiment parameters - % TODO. See also EXP.PARAMETERS. - % - % Part of Rigbox - - % 2012-11 CB created - % 2017-03 MW/NS Made global panel scrollable & improved performance of - % buildGlobalUI. - % 2017-03 MW Added set values button + %UNTITLED2 Summary of this class goes here + % Detailed explanation goes here properties - GlobalVSpacing = 20 Parameters end - properties (Dependent) - Enable + properties %(Access = private) + GlobalUI + ConditionalUI + Parent + Listener end - properties (Access = private) - Root - GlobalGrid - ConditionTable - TableColumnParamNames = {} - NewConditionButton - DeleteConditionButton - MakeGlobalButton - SetValuesButton - SelectedCells %[row, column;...] of each selected cell - GlobalControls + properties (Dependent) + Enable end events @@ -36,120 +22,103 @@ end methods - function obj = ParamEditor(params, parent) - if nargin < 2 % Can call this function to display parameters is new window - parent = figure('Name', 'Parameters', 'NumberTitle', 'off',... - 'Toolbar', 'none', 'Menubar', 'none'); + function obj = ParamEditor(pars, f) + if nargin == 0; pars = []; end + if nargin < 2 + f = figure('Name', 'Parameters', 'NumberTitle', 'off',... + 'Toolbar', 'none', 'Menubar', 'none', 'DeleteFcn', @(~,~)obj.delete); end - obj.Parameters = params; - obj.build(parent); + obj.Parent = f; + obj.Listener = event.listener(f, 'SizeChanged', @(~,~)obj.onResize); + obj.GlobalUI = eui.FieldPanel(f, obj); + obj.ConditionalUI = eui.ConditionPanel(f, obj); + obj.buildUI(pars); end function delete(obj) - disp('ParamEditor destructor called'); - if obj.Root.isvalid - obj.Root.delete(); - end - end - - function value = get.Enable(obj) - value = obj.Root.Enable; + delete(obj.GlobalUI); + delete(obj.ConditionalUI); end - + function set.Enable(obj, value) - obj.Root.Enable = value; + cUI = obj.ConditionalUI; + fig = obj.Parent; + if value == true + arrayfun(@(prop) set(prop, 'Enable', 'on'), findobj(fig,'Enable','off')); + if isempty(cUI.SelectedCells) + set(cUI.MakeGlobalButton, 'Enable', 'off'); + set(cUI.DeleteConditionButton, 'Enable', 'off'); + set(cUI.SetValuesButton, 'Enable', 'off'); + end + obj.Enable = true; + else + arrayfun(@(prop) set(prop, 'Enable', 'off'), findobj(fig,'Enable','on')); + obj.Enable = false; + end end - end - - methods %(Access = protected) - function build(obj, parent) % Build parameters panel - obj.Root = uiextras.HBox('Parent', parent, 'Padding', 5, 'Spacing', 5); % Add horizontal container for Global and Conditional panels -% globalPanel = uiextras.Panel('Parent', obj.Root,... % Make 'Global' parameters panel -% 'Title', 'Global', 'Padding', 5); - globPanel = uiextras.Panel('Parent', obj.Root,... % Make 'Global' parameters panel - 'Title', 'Global', 'Padding', 5); - globalPanel = uix.ScrollingPanel('Parent', globPanel,... % Make 'Global' scroll panel - 'Padding', 5); - - obj.GlobalGrid = uiextras.Grid('Parent', globalPanel, 'Padding', 4); % Make grid for parameter fields - obj.buildGlobalUI; % Populate Global panel - globalPanel.Heights = sum(obj.GlobalGrid.RowSizes)+45; - - conditionPanel = uiextras.Panel('Parent', obj.Root,... - 'Title', 'Conditional', 'Padding', 5); % Make 'Conditional' parameters panel - conditionVBox = uiextras.VBox('Parent', conditionPanel); - obj.ConditionTable = uitable('Parent', conditionVBox,... - 'FontName', 'Consolas',... - 'RowName', [],... - 'CellEditCallback', @obj.cellEditCallback,... - 'CellSelectionCallback', @obj.cellSelectionCallback); + + function buildUI(obj, pars) + obj.Parameters = pars; + clear(obj.GlobalUI); + clear(obj.ConditionalUI); + c = obj.GlobalUI; + names = pars.GlobalNames; + for nm = names' + if strcmp(nm, 'randomiseConditions'); continue; end + if islogical(pars.Struct.(nm{:})) % If parameter is logical, make checkbox + ctrl = uicontrol('Parent', c.UIPanel, 'Style', 'checkbox', ... + 'Value', pars.Struct.(nm{:}), 'BackgroundColor', 'white'); + addField(c, nm{:}, ctrl); + else + [~, ctrl] = addField(c, nm{:}); + ctrl.String = obj.paramValue2Control(pars.Struct.(nm{:})); + end + end obj.fillConditionTable(); - conditionButtonBox = uiextras.HBox('Parent', conditionVBox); - conditionVBox.Sizes = [-1 25]; - obj.NewConditionButton = uicontrol('Parent', conditionButtonBox,... - 'Style', 'pushbutton',... - 'String', 'New condition',... - 'TooltipString', 'Add a new condition',... - 'Callback', @(~, ~) obj.newCondition()); - obj.DeleteConditionButton = uicontrol('Parent', conditionButtonBox,... - 'Style', 'pushbutton',... - 'String', 'Delete condition',... - 'TooltipString', 'Delete the selected condition',... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.deleteSelectedConditions()); - obj.MakeGlobalButton = uicontrol('Parent', conditionButtonBox,... - 'Style', 'pushbutton',... - 'String', 'Globalise parameter',... - 'TooltipString', sprintf(['Make the selected condition-specific parameter global (i.e. not vary by trial)\n'... - 'This will move it to the global parameters section']),... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.globaliseSelectedParameters()); - obj.SetValuesButton = uicontrol('Parent', conditionButtonBox,... - 'Style', 'pushbutton',... - 'String', 'Set values',... - 'TooltipString', 'Set selected values to specified value, range or function',... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.setSelectedValues()); - - obj.Root.Sizes = [sum(obj.GlobalGrid.ColumnSizes) + 32, -1]; + obj.GlobalUI.onResize(); + %%% Special parameters + if ismember('randomiseConditions', obj.Parameters.Names) && ~pars.Struct.randomiseConditions + obj.ConditionalUI.ConditionTable.RowName = 'numbered'; + set(obj.ConditionalUI.ContextMenus(2), 'Checked', 'off'); + end end - function buildGlobalUI(obj) % Function to essemble global parameters - globalParamNames = fieldnames(obj.Parameters.assortForExperiment); % assortForExperiment divides params into global and trial-specific parameter structures - obj.GlobalControls = gobjects(length(globalParamNames),3); % Initialize object array (faster than assigning to end of array which results in two calls to constructor) - for i=1:length(globalParamNames) % using for loop (sorry Chris!) to populate object array 2017-02-14 MW - [obj.GlobalControls(i,1), obj.GlobalControls(i,2), obj.GlobalControls(i,3)]... % [editors, labels, buttons] - = obj.addParamUI(globalParamNames{i}); + function setRandomized(obj, value) + % If randomiseConditions doesn't exist and new value is false, add + % the parameter and set it to false + if ~ismember('randomiseConditions', obj.Parameters.Names) && value == false + description = 'Whether to randomise the conditional paramters or present them in order'; + obj.Parameters.set('randomiseConditions', false, description, 'logical') + elseif ismember('randomiseConditions', obj.Parameters.Names) + obj.update('randomiseConditions', logical(value)); + end + menu = obj.ConditionalUI.ContextMenus(2); + if value == false + obj.ConditionalUI.ConditionTable.RowName = 'numbered'; + menu.Checked = 'off'; + else + obj.ConditionalUI.ConditionTable.RowName = []; + menu.Checked = 'on'; end - % Above code replaces the following as after 2014a, MATLAB doesn't no - % longer uses numrical handles but instead uses object arrays -% [editors, labels, buttons] = cellfun(... -% @(n) obj.addParamUI(n), fieldnames(globalParams), 'UniformOutput', false); -% editors = cell2mat(editors); -% labels = cell2mat(labels); -% buttons = cell2mat(buttons); -% obj.GlobalControls = [labels, editors, buttons]; -% obj.GlobalGrid.Children = obj.GlobalControls(:); - -% obj.GlobalGrid.Children = -% blah = cat(1,obj.GlobalControls(:,1),obj.GlobalControls(:,2),obj.GlobalControls(:,3)); -% Doesn't work for some reason - MW 2017-02-15 - - child_handles = allchild(obj.GlobalGrid); % Get child handles for GlobalGrid - child_handles = [child_handles(end-1:-3:1); child_handles(end:-3:1); child_handles(end-2:-3:1)]; % Reorder them so all labels come first, then ctrls, then buttons -% child_handles = [child_handles(2:3:end); child_handles(3:3:end); child_handles(1:3:end)]; % Reorder them so all labels come first, then ctrls, then buttons - obj.GlobalGrid.Contents = child_handles; % Set children to new order - % uistack - - obj.GlobalGrid.ColumnSizes = [180, 200, 40]; % Set column sizes - obj.GlobalGrid.Spacing = 1; - obj.GlobalGrid.RowSizes = repmat(obj.GlobalVSpacing, 1, size(obj.GlobalControls, 1)); end -% function swapConditions(obj, idx1, idx2) % Function started, never -% finished - MW 2017-02-15 -% % params = obj.Parameters.trial -% end + function fillConditionTable(obj) + % Build the condition table + titles = obj.Parameters.TrialSpecificNames; + [~, trialParams] = obj.Parameters.assortForExperiment; + if isempty(titles) + obj.ConditionalUI.ButtonPanel.Visible = 'off'; + obj.ConditionalUI.UIPanel.Visible = 'off'; + obj.GlobalUI.UIPanel.Position(3) = 1; + else + obj.ConditionalUI.ButtonPanel.Visible = 'on'; + obj.ConditionalUI.UIPanel.Visible = 'on'; + data = reshape(struct2cell(trialParams), numel(titles), [])'; + data = mapToCell(@(e) obj.paramValue2Control(e), data); + set(obj.ConditionalUI.ConditionTable, 'ColumnName', titles, 'Data', data,... + 'ColumnEditable', true(1, numel(titles))); + end + end function addEmptyConditionToParam(obj, name) assert(obj.Parameters.isTrialSpecific(name),... @@ -183,217 +152,134 @@ function addEmptyConditionToParam(obj, name) obj.Parameters.Struct.(name) = cat(2, obj.Parameters.Struct.(name), newValue); end - function cellSelectionCallback(obj, src, eventData) - obj.SelectedCells = eventData.Indices; - if size(eventData.Indices, 1) > 0 - %cells selected, enable buttons - set(obj.MakeGlobalButton, 'Enable', 'on'); - set(obj.DeleteConditionButton, 'Enable', 'on'); - set(obj.SetValuesButton, 'Enable', 'on'); + function newValue = update(obj, name, value, row) + % FIXME change name to updateGlobal + if nargin < 4; row = 1; end + currValue = obj.Parameters.Struct.(name)(:,row); + if iscell(currValue) + % cell holders are allowed to be different types of value + newValue = obj.controlValue2Param(currValue{1}, value, true); + obj.Parameters.Struct.(name){:,row} = newValue; else - %nothing selected, disable buttons - set(obj.MakeGlobalButton, 'Enable', 'off'); - set(obj.DeleteConditionButton, 'Enable', 'off'); - set(obj.SetValuesButton, 'Enable', 'off'); + newValue = obj.controlValue2Param(currValue, value); + obj.Parameters.Struct.(name)(:,row) = newValue; end + notify(obj, 'Changed'); end - function newCondition(obj) - disp('adding new condition row'); - cellfun(@obj.addEmptyConditionToParam, obj.Parameters.TrialSpecificNames); - obj.fillConditionTable(); - end - - function deleteSelectedConditions(obj) - %DELETESELECTEDCONDITIONS Removes the selected conditions from table - % The callback for the 'Delete condition' button. This removes the - % selected conditions from the table and if less than two conditions - % remain, globalizes them. - % TODO: comment function better, index in a clearer fashion + function globaliseParamAtCell(obj, name, row) + % Make parameter 'name' a global parameter and set it's value to be + % that of the specified row. % - % See also EXP.PARAMETERS, GLOBALISESELECTEDPARAMETERS - rows = unique(obj.SelectedCells(:,1)); - % If the number of remaining conditions is 1 or less... - names = obj.Parameters.TrialSpecificNames; - numConditions = size(obj.Parameters.Struct.(names{1}),2); - if numConditions-length(rows) <= 1 - remainingIdx = find(all(1:numConditions~=rows,1)); - if isempty(remainingIdx); remainingIdx = 1; end - % change selected cells to be all fields (except numRepeats which - % is assumed to always be the last column) - obj.SelectedCells =[ones(length(names)-1,1)*remainingIdx, (1:length(names)-1)']; - %... globalize them - obj.globaliseSelectedParameters; - obj.Parameters.removeConditions(rows) -% for i = 1:numel(names) -% newValue = iff(any(remainingIdx), obj.Struct.(names{i})(:,remainingIdx), obj.Struct.(names{i})(1)); -% % If the parameter is Num repeats, set the value -% if strcmp(names{i}, 'numRepeats') -% obj.Struct.(names{i}) = newValue; -% else -% obj.makeGlobal(names{i}, newValue); -% end -% end - else % Otherwise delete the selected conditions as usual - obj.Parameters.removeConditions(rows); - end - obj.fillConditionTable(); %refresh the table of conditions - end - - function globaliseSelectedParameters(obj) - [cols, iu] = unique(obj.SelectedCells(:,2)); - names = obj.TableColumnParamNames(cols); - rows = obj.SelectedCells(iu,1); %get rows of unique selected cols - arrayfun(@obj.globaliseParamAtCell, rows, cols); - obj.fillConditionTable(); %refresh the table of conditions - %now add global controls for parameters - newGlobals = gobjects(length(names),3); % Initialize object array (faster than assigning to end of array which results in two calls to constructor) - for i=length(names):-1:1 % using for loop (sorry Chris!) to initialize and populate object array 2017-02-15 MW - [newGlobals(i,1), newGlobals(i,2), newGlobals(i,3)]... % [editors, labels, buttons] - = obj.addParamUI(names{i}); - end - -% [editors, labels, buttons] = arrayfun(@obj.addParamUI, names); % -% 2017-02-15 MW can no longer use arrayfun with object outputs - idx = size(obj.GlobalControls, 1); % Calculate number of current Global params - new = numel(newGlobals); - obj.GlobalControls = [obj.GlobalControls; newGlobals]; % Add new globals to object - ggHandles = obj.GlobalGrid.Contents; - ggHandles = [ggHandles(1:idx); ggHandles((end-new+2):3:end);... - ggHandles(idx+1:idx*2); ggHandles((end-new+1):3:end);... - ggHandles(idx*2+1:idx*3); ggHandles((end-new+3):3:end)]; % Reorder them so all labels come first, then ctrls, then buttons - obj.GlobalGrid.Contents = ggHandles; % Set children to new order - - % Reset sizes - obj.GlobalGrid.RowSizes = repmat(obj.GlobalVSpacing, 1, size(obj.GlobalControls, 1)); - set(get(obj.GlobalGrid, 'Parent'),... - 'Heights', sum(obj.GlobalGrid.RowSizes)+45); % Reset height of globalPanel - obj.GlobalGrid.ColumnSizes = [180, 200, 40]; - obj.GlobalGrid.Spacing = 1; - end - - function globaliseParamAtCell(obj, row, col) - name = obj.TableColumnParamNames{col}; + % See also EXP.PARAMETERS/MAKEGLOBAL, UI.CONDITIONPANEL/MAKEGLOBAL value = obj.Parameters.Struct.(name)(:,row); obj.Parameters.makeGlobal(name, value); - end - - function setSelectedValues(obj) % Set multiple fields in conditional table - disp('updating table cells'); - cols = obj.SelectedCells(:,2); % selected columns - uCol = unique(obj.SelectedCells(:,2)); - rows = obj.SelectedCells(:,1); % selected rows - % get current values of selected cells - currVals = arrayfun(@(u)obj.ConditionTable.Data(rows(cols==u),u), uCol, 'UniformOutput', 0); - names = obj.TableColumnParamNames(uCol); % selected column names - promt = cellfun(@(a,b) [a ' (' num2str(sum(cols==b)) ')'],... - names, num2cell(uCol), 'UniformOutput', 0); % names of columns & num selected rows - defaultans = cellfun(@(c) c(1), currVals); - answer = inputdlg(promt,'Set values', 1, cellflat(defaultans)); % prompt for input - if isempty(answer) % if user presses cancel - return + % Refresh the table of conditions + obj.fillConditionTable; + % Add new global parameter to field panel + if islogical(value) % If parameter is logical, make checkbox + ctrl = uicontrol('Parent', obj.GlobalUI.UIPanel, 'Style', 'checkbox', ... + 'Value', value, 'BackgroundColor', 'white'); + addField(obj.GlobalUI, name, ctrl); + else + [~, ctrl] = addField(obj.GlobalUI, name); + ctrl.String = obj.paramValue2Control(value); end - % set values for each column - cellfun(@(a,b,c) setNewVals(a,b,c), answer, currVals, names, 'UniformOutput', 0); - function newVals = setNewVals(userIn, currVals, paramName) - % check array orientation - currVals = iff(size(currVals,1)>size(currVals,2),currVals',currVals); - if strStartsWith(userIn,'@') % anon function - func_h = str2func(userIn); - % apply function to each cell - currVals = cellfun(@str2double,currVals, 'UniformOutput', 0); % convert from char - newVals = cellfun(func_h, currVals, 'UniformOutput', 0); - elseif any(userIn==':') % array syntax - arr = eval(userIn); - newVals = num2cell(arr); % convert to cell array - elseif any(userIn==','|userIn==';') % 2D arrays - C = strsplit(userIn, ';'); - newVals = cellfun(@(c)textscan(c, '%f',... - 'ReturnOnError', false,... - 'delimiter', {' ', ','}, 'MultipleDelimsAsOne', 1),... - C); - else % single value to copy across all cells - userIn = str2double(userIn); - newVals = num2cell(ones(size(currVals))*userIn); - end - - if length(newVals)>length(currVals) % too many new values - newVals = newVals(1:length(currVals)); % truncate new array - elseif length(newVals) gUIExtent && cUIExtent > obj.ConditionalUI.MinWidth + % If global UI controls are cut off and there is no dead space in + % the table but the minimum table width hasn't been reached, reduce + % the conditional UI width: table has scroll bar and global panel + % does not + % FIXME calculate how much space required for min control width +% obj.GlobalUI.MinCtrlWidth + % Calculate conditional UI width in normalized units + requiredWidth = (cUI.Position(3) / cUIExtent) * (colExtent - gUIExtent); + minConditionalWidth = (cUI.Position(3) / cUIExtent) * obj.ConditionalUI.MinWidth; + if requiredWidth < minConditionalWidth + % If the required width is smaller that the minimum table width, + % use minimum table width + cUI.Position(3) = minConditionalWidth; + else % Otherwise use this width + cUI.Position(3) = requiredWidth; + end + cUI.Position(1) = 1-cUI.Position(3); + gUI.Position(3) = 1-cUI.Position(3); + elseif extent(3) < 1 && colWidth < obj.GlobalUI.MaxCtrlWidth + % If there is dead table space and the global UI columns are cut + % off or squashed, reduce the conditional panel + cUI.Position(3) = cUI.Position(3) - (panelWidth - (panelWidth * extent(3))); + cUI.Position(1) = cUI.Position(1) + (panelWidth - (panelWidth * extent(3))); + gUI.Position(3) = cUI.Position(1); + elseif extent(3) < 1 && colExtent < gUIExtent + % Plenty of space! Increase conditional UI a bit + deadspace = gUIExtent - colExtent; % Spece between panels in pixels + % Convert global UI pixels to relative units + gUI.Position(3) = (gUI.Position(3) / gUIExtent) * (gUIExtent - (deadspace/2)); + cUI.Position(1) = gUI.Position(3); + cUI.Position(3) = 1-gUI.Position(3); + elseif extent(3) >= 1 && colExtent < gUIExtent + % If the table space is cut off and there is dead space in the + % global UI panel, reduce the global UI panel + % If the extra space is minimum, return + if floor(gUIExtent - colExtent) <= 2; return; end + deadspace = gUIExtent - colExtent; % Spece between panels in pixels + gUI.Position(3) = (gUI.Position(3) / gUIExtent) * (gUIExtent - deadspace); + cUI.Position(3) = 1-gUI.Position(3); + cUI.Position(1) = gUI.Position(3); else - newParam = obj.controlValue2Param(currValue, eventData.NewData); - obj.Parameters.Struct.(paramName)(:,row) = newParam; - end - % if successful update the cell with default formatting - data = get(src, 'Data'); - reformed = obj.paramValue2Control(newParam); - if iscell(reformed) - % the reformed data type is a cell, this should be a one element - % wrapping cell - if numel(reformed) == 1 - reformed = reformed{1}; - else - error('Cannot handle data reformatted data type'); - end + % Compromise by having both panels take up half the figure +% [cUI.Position([1,3]), gUI.Position(3)] = deal(0.5); end - data{row,col} = reformed; - set(src, 'Data', data); - %notify listeners of change - notify(obj, 'Changed'); + notify(obj.ConditionalUI.ButtonPanel, 'SizeChanged'); end - - function updateGlobal(obj, param, src) - currParamValue = obj.Parameters.Struct.(param); - switch get(src, 'style') - case 'checkbox' - newValue = logical(get(src, 'value')); - obj.Parameters.Struct.(param) = newValue; - case 'edit' - newValue = obj.controlValue2Param(currParamValue, get(src, 'string')); - obj.Parameters.Struct.(param) = newValue; - % if successful update the control with default formatting and - % modified colour - set(src, 'String', obj.paramValue2Control(newValue),... - 'ForegroundColor', [1 0 0]); %red indicating it has changed - %notify listeners of change - notify(obj, 'Changed'); + end + + methods (Static) + function data = paramValue2Control(data) + % convert from parameter value to control value, i.e. a value class + % that can be easily displayed and edited by the user. Everything + % except logicals are converted to charecter arrays. + switch class(data) + case 'function_handle' + % convert a function handle to it's string name + data = func2str(data); + case 'logical' + data = data ~= 0; % If logical do nothing, basically. + case 'string' + data = char(data); % Strings not allowed in condition table data + otherwise + if isnumeric(data) + % format numeric types as string number list + strlist = mapToCell(@num2str, data); + data = strJoin(strlist, ', '); + elseif iscellstr(data) + data = strJoin(data, ', '); + end end - end - - function [data, paramNames, titles] = tableData(obj) - [~, trialParams] = obj.Parameters.assortForExperiment; - paramNames = fieldnames(trialParams); - titles = obj.Parameters.title(paramNames); - data = reshape(struct2cell(trialParams), numel(paramNames), [])'; - data = mapToCell(@(e) obj.paramValue2Control(e), data); + % all other data types stay as they are end - function data = controlValue2Param(obj, currParam, data, allowTypeChange) + function data = controlValue2Param(currParam, data, allowTypeChange) % Convert the values displayed in the UI ('control values') to % parameter values. String representations of numrical arrays and % functions are converted back to their 'native' classes. @@ -432,111 +318,7 @@ function updateGlobal(obj, param, src) end end end - - function data = paramValue2Control(obj, data) - % convert from parameter value to control value, i.e. a value class - % that can be easily displayed and edited by the user. Everything - % except logicals are converted to charecter arrays. - switch class(data) - case 'function_handle' - % convert a function handle to it's string name - data = func2str(data); - case 'logical' - data = data ~= 0; % If logical do nothing, basically. - case 'string' - data = char(data); % Strings not allowed in condition table data - otherwise - if isnumeric(data) - % format numeric types as string number list - strlist = mapToCell(@num2str, data); - data = strJoin(strlist, ', '); - elseif iscellstr(data) - data = strJoin(data, ', '); - end - end - % all other data types stay as they are - end - - function fillConditionTable(obj) - [data, params, titles] = obj.tableData; - set(obj.ConditionTable, 'ColumnName', titles, 'Data', data,... - 'ColumnEditable', true(1, numel(titles))); - obj.TableColumnParamNames = params; - end - - function makeTrialSpecific(obj, paramName, ctrls) - [uirow, ~] = find(obj.GlobalControls == ctrls{1}); - assert(numel(uirow) == 1, 'Unexpected number of matching global controls'); - cellfun(@(c) delete(c), ctrls); - obj.GlobalControls(uirow,:) = []; - obj.GlobalGrid.RowSizes(uirow) = []; - obj.Parameters.makeTrialSpecific(paramName); - obj.fillConditionTable(); - set(get(obj.GlobalGrid, 'Parent'),... - 'Heights', sum(obj.GlobalGrid.RowSizes)+45); % Reset height of globalPanel - end - - function [ctrl, label, buttons] = addParamUI(obj, name) % Adds ui element for each parameter - parent = obj.GlobalGrid; % Made by build function above - ctrl = []; - label = []; - buttons = []; - if iscell(name) % 2017-02-14 MW function now called with arrayFun (instead of cellFun) - name = name{1,1}; - end - value = obj.paramValue2Control(obj.Parameters.Struct.(name)); % convert from parameter value to control value (everything but logical values become strings) - title = obj.Parameters.title(name); - description = obj.Parameters.description(name); - - if islogical(value) % If parameter is logical, make checkbox - for i = 1:length(value) - ctrl(end+1) = uicontrol('Parent', parent,... - 'Style', 'checkbox',... - 'TooltipString', description,... - 'Value', value(i),... % Added 2017-02-15 MW set checkbox to what ever the parameter value is - 'Callback', @(src, e) obj.updateGlobal(name, src)); - end - elseif ischar(value) - ctrl = uicontrol('Parent', parent,... - 'BackgroundColor', [1 1 1],... - 'Style', 'edit',... - 'String', value,... - 'TooltipString', description,... - 'UserData', name,... % save the name of the parameter in userdata - 'HorizontalAlignment', 'left',... - 'Callback', @(src, e) obj.updateGlobal(name, src)); -% elseif iscellstr(value) -% lines = mkStr(value, [], sprintf('\n'), []); -% ctrl = uicontrol('Parent', parent,... -% 'BackgroundColor', [1 1 1],... -% 'Style', 'edit',... -% 'Max', 2,... %make it multiline -% 'String', lines,... -% 'TooltipString', description,... -% 'HorizontalAlignment', 'left',... -% 'UserData', name,... % save the name of the parameter in userdata -% 'Callback', @(src, e) obj.updateGlobal(name, src)); - end - if ~isempty(ctrl) % If control box is made, add label and conditional button - label = uicontrol('Parent', parent,... - 'Style', 'text', 'String', title, 'HorizontalAlignment', 'left',... - 'TooltipString', description); % Why not use bui.label? MW 2017-02-15 - bbox = uiextras.HBox('Parent', parent); % Make HBox for button - % UIContainer no longer present in GUILayoutToolbox, it used to - % call uipanel with the following args: - % 'Units', 'Normalized'; 'BorderType', 'none') -% buttons = bbox.UIContainer; - buttons = uicontrol('Parent', bbox, 'Style', 'pushbutton',... % Make 'conditional parameter' button - 'String', '[...]',... - 'TooltipString', sprintf(['Make this a condition parameter (i.e. vary by trial).\n'... - 'This will move it to the trial conditions table.']),... - 'FontSize', 7,... - 'Callback', @(~,~) obj.makeTrialSpecific(name, {ctrl, label, bbox})); - bbox.Sizes = 29; % Resize button height to 29px - end - end end - end diff --git a/+eui/ParamEditor_old.m b/+eui/ParamEditor_old.m new file mode 100644 index 00000000..05855aef --- /dev/null +++ b/+eui/ParamEditor_old.m @@ -0,0 +1,516 @@ +classdef ParamEditor < handle + %EUI.PARAMEDITOR UI control for configuring experiment parameters + % TODO. See also EXP.PARAMETERS. + % + % Part of Rigbox + + % 2012-11 CB created + % 2017-03 MW/NS Made global panel scrollable & improved performance of + % buildGlobalUI. + % 2017-03 MW Added set values button + + properties + GlobalVSpacing = 20 + Parameters + end + + properties (Dependent) + Enable + end + + properties (Access = private) + Root + GlobalGrid + ConditionTable + TableColumnParamNames = {} + NewConditionButton + DeleteConditionButton + MakeGlobalButton + SetValuesButton + SelectedCells %[row, column;...] of each selected cell + GlobalControls + end + + events + Changed + end + + methods + function obj = ParamEditor(params, parent) + if nargin < 2 % Can call this function to display parameters is new window + parent = figure('Name', 'Parameters', 'NumberTitle', 'off',... + 'Toolbar', 'none', 'Menubar', 'none'); + end + obj.Parameters = params; + obj.build(parent); + end + + function delete(obj) + disp('ParamEditor destructor called'); + if obj.Root.isvalid + obj.Root.delete(); + end + end + + function value = get.Enable(obj) + value = obj.Root.Enable; + end + + function set.Enable(obj, value) + obj.Root.Enable = value; + end + end + + methods %(Access = protected) + function build(obj, parent) % Build parameters panel + obj.Root = uiextras.HBox('Parent', parent, 'Padding', 5, 'Spacing', 5); % Add horizontal container for Global and Conditional panels +% globalPanel = uiextras.Panel('Parent', obj.Root,... % Make 'Global' parameters panel +% 'Title', 'Global', 'Padding', 5); + globPanel = uiextras.Panel('Parent', obj.Root,... % Make 'Global' parameters panel + 'Title', 'Global', 'Padding', 5); + globalPanel = uix.ScrollingPanel('Parent', globPanel,... % Make 'Global' scroll panel + 'Padding', 5); + + obj.GlobalGrid = uiextras.Grid('Parent', globalPanel, 'Padding', 4); % Make grid for parameter fields + obj.buildGlobalUI; % Populate Global panel + globalPanel.Heights = sum(obj.GlobalGrid.RowSizes)+45; + + conditionPanel = uiextras.Panel('Parent', obj.Root,... + 'Title', 'Conditional', 'Padding', 5); % Make 'Conditional' parameters panel + conditionVBox = uiextras.VBox('Parent', conditionPanel); + obj.ConditionTable = uitable('Parent', conditionVBox,... + 'FontName', 'Consolas',... + 'RowName', [],... + 'CellEditCallback', @obj.cellEditCallback,... + 'CellSelectionCallback', @obj.cellSelectionCallback); + obj.fillConditionTable(); + conditionButtonBox = uiextras.HBox('Parent', conditionVBox); + conditionVBox.Sizes = [-1 25]; + obj.NewConditionButton = uicontrol('Parent', conditionButtonBox,... + 'Style', 'pushbutton',... + 'String', 'New condition',... + 'TooltipString', 'Add a new condition',... + 'Callback', @(~, ~) obj.newCondition()); + obj.DeleteConditionButton = uicontrol('Parent', conditionButtonBox,... + 'Style', 'pushbutton',... + 'String', 'Delete condition',... + 'TooltipString', 'Delete the selected condition',... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.deleteSelectedConditions()); + obj.MakeGlobalButton = uicontrol('Parent', conditionButtonBox,... + 'Style', 'pushbutton',... + 'String', 'Globalise parameter',... + 'TooltipString', sprintf(['Make the selected condition-specific parameter global (i.e. not vary by trial)\n'... + 'This will move it to the global parameters section']),... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.globaliseSelectedParameters()); + obj.SetValuesButton = uicontrol('Parent', conditionButtonBox,... + 'Style', 'pushbutton',... + 'String', 'Set values',... + 'TooltipString', 'Set selected values to specified value, range or function',... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.setSelectedValues()); + + obj.Root.Sizes = [sum(obj.GlobalGrid.ColumnSizes) + 32, -1]; + end + + function buildGlobalUI(obj) % Function to essemble global parameters + globalParamNames = fieldnames(obj.Parameters.assortForExperiment); % assortForExperiment divides params into global and trial-specific parameter structures + obj.GlobalControls = gobjects(length(globalParamNames),3); % Initialize object array (faster than assigning to end of array which results in two calls to constructor) + for i=1:length(globalParamNames) % using for loop (sorry Chris!) to populate object array 2017-02-14 MW + [obj.GlobalControls(i,1), obj.GlobalControls(i,2), obj.GlobalControls(i,3)]... % [editors, labels, buttons] + = obj.addParamUI(globalParamNames{i}); + end + + child_handles = allchild(obj.GlobalGrid); % Get child handles for GlobalGrid + child_handles = [child_handles(end-1:-3:1); child_handles(end:-3:1); child_handles(end-2:-3:1)]; % Reorder them so all labels come first, then ctrls, then buttons + obj.GlobalGrid.Contents = child_handles; % Set children to new order + + obj.GlobalGrid.ColumnSizes = [180, 200, 40]; % Set column sizes + obj.GlobalGrid.Spacing = 1; + obj.GlobalGrid.RowSizes = repmat(obj.GlobalVSpacing, 1, size(obj.GlobalControls, 1)); + end + +% function swapConditions(obj, idx1, idx2) % Function started, never +% finished - MW 2017-02-15 +% % params = obj.Parameters.trial +% end + + function addEmptyConditionToParam(obj, name) + assert(obj.Parameters.isTrialSpecific(name),... + 'Tried to add a new condition to global parameter ''%s''', name); + % work out what the right 'empty' is for the parameter + currValue = obj.Parameters.Struct.(name); + if isnumeric(currValue) + newValue = zeros(size(currValue, 1), 1, class(currValue)); + elseif islogical(currValue) + newValue = false(size(currValue, 1), 1); + elseif iscell(currValue) + if numel(currValue) > 0 + if iscellstr(currValue) + % if all elements are strings, default to a blank string + newValue = {''}; + elseif isa(currValue{1}, 'function_handle') + % first element is a function handle, so create with a @nop + % handle + newValue = {@nop}; + else + % misc cell case - default to empty element + newValue = {[]}; + end + else + % misc case - default to empty element + newValue = {[]}; + end + else + error('Adding empty condition for ''%s'' type not implemented', class(currValue)); + end + obj.Parameters.Struct.(name) = cat(2, obj.Parameters.Struct.(name), newValue); + end + + function cellSelectionCallback(obj, src, eventData) + obj.SelectedCells = eventData.Indices; + if size(eventData.Indices, 1) > 0 + %cells selected, enable buttons + set(obj.MakeGlobalButton, 'Enable', 'on'); + set(obj.DeleteConditionButton, 'Enable', 'on'); + set(obj.SetValuesButton, 'Enable', 'on'); + else + %nothing selected, disable buttons + set(obj.MakeGlobalButton, 'Enable', 'off'); + set(obj.DeleteConditionButton, 'Enable', 'off'); + set(obj.SetValuesButton, 'Enable', 'off'); + end + end + + function newCondition(obj) + disp('adding new condition row'); + cellfun(@obj.addEmptyConditionToParam, obj.Parameters.TrialSpecificNames); + obj.fillConditionTable(); + end + + function deleteSelectedConditions(obj) + %DELETESELECTEDCONDITIONS Removes the selected conditions from table + % The callback for the 'Delete condition' button. This removes the + % selected conditions from the table and if less than two conditions + % remain, globalizes them. + % TODO: comment function better, index in a clearer fashion + % + % See also EXP.PARAMETERS, GLOBALISESELECTEDPARAMETERS + rows = unique(obj.SelectedCells(:,1)); + % If the number of remaining conditions is 1 or less... + names = obj.Parameters.TrialSpecificNames; + numConditions = size(obj.Parameters.Struct.(names{1}),2); + if numConditions-length(rows) <= 1 + remainingIdx = find(all(1:numConditions~=rows,1)); + if isempty(remainingIdx); remainingIdx = 1; end + % change selected cells to be all fields (except numRepeats which + % is assumed to always be the last column) + obj.SelectedCells =[ones(length(names)-1,1)*remainingIdx, (1:length(names)-1)']; + %... globalize them + obj.globaliseSelectedParameters; + obj.Parameters.removeConditions(rows) + else % Otherwise delete the selected conditions as usual + obj.Parameters.removeConditions(rows); + end + obj.fillConditionTable(); %refresh the table of conditions + end + + function globaliseSelectedParameters(obj) + [cols, iu] = unique(obj.SelectedCells(:,2)); + names = obj.TableColumnParamNames(cols); + rows = obj.SelectedCells(iu,1); %get rows of unique selected cols + arrayfun(@obj.globaliseParamAtCell, rows, cols); + obj.fillConditionTable(); %refresh the table of conditions + %now add global controls for parameters + newGlobals = gobjects(length(names),3); % Initialize object array (faster than assigning to end of array which results in two calls to constructor) + for i=length(names):-1:1 % using for loop (sorry Chris!) to initialize and populate object array 2017-02-15 MW + [newGlobals(i,1), newGlobals(i,2), newGlobals(i,3)]... % [editors, labels, buttons] + = obj.addParamUI(names{i}); + end + + idx = size(obj.GlobalControls, 1); % Calculate number of current Global params + new = numel(newGlobals); + obj.GlobalControls = [obj.GlobalControls; newGlobals]; % Add new globals to object + ggHandles = obj.GlobalGrid.Contents; + ggHandles = [ggHandles(1:idx); ggHandles((end-new+2):3:end);... + ggHandles(idx+1:idx*2); ggHandles((end-new+1):3:end);... + ggHandles(idx*2+1:idx*3); ggHandles((end-new+3):3:end)]; % Reorder them so all labels come first, then ctrls, then buttons + obj.GlobalGrid.Contents = ggHandles; % Set children to new order + + % Reset sizes + obj.GlobalGrid.RowSizes = repmat(obj.GlobalVSpacing, 1, size(obj.GlobalControls, 1)); + set(get(obj.GlobalGrid, 'Parent'),... + 'Heights', sum(obj.GlobalGrid.RowSizes)+45); % Reset height of globalPanel + obj.GlobalGrid.ColumnSizes = [180, 200, 40]; + obj.GlobalGrid.Spacing = 1; + end + + function globaliseParamAtCell(obj, row, col) + name = obj.TableColumnParamNames{col}; + value = obj.Parameters.Struct.(name)(:,row); + obj.Parameters.makeGlobal(name, value); + end + + function setSelectedValues(obj) % Set multiple fields in conditional table + disp('updating table cells'); + cols = obj.SelectedCells(:,2); % selected columns + uCol = unique(obj.SelectedCells(:,2)); + rows = obj.SelectedCells(:,1); % selected rows + % get current values of selected cells + currVals = arrayfun(@(u)obj.ConditionTable.Data(rows(cols==u),u), uCol, 'UniformOutput', 0); + names = obj.TableColumnParamNames(uCol); % selected column names + promt = cellfun(@(a,b) [a ' (' num2str(sum(cols==b)) ')'],... + names, num2cell(uCol), 'UniformOutput', 0); % names of columns & num selected rows + defaultans = cellfun(@(c) c(1), currVals); + answer = inputdlg(promt,'Set values', 1, cellflat(defaultans)); % prompt for input + if isempty(answer) % if user presses cancel + return + end + % set values for each column + cellfun(@(a,b,c) setNewVals(a,b,c), answer, currVals, names, 'UniformOutput', 0); + function newVals = setNewVals(userIn, currVals, paramName) + % check array orientation + currVals = iff(size(currVals,1)>size(currVals,2),currVals',currVals); + if strStartsWith(userIn,'@') % anon function + func_h = str2func(userIn); + % apply function to each cell + currVals = cellfun(@str2double,currVals, 'UniformOutput', 0); % convert from char + newVals = cellfun(func_h, currVals, 'UniformOutput', 0); + elseif any(userIn==':') % array syntax + arr = eval(userIn); + newVals = num2cell(arr); % convert to cell array + elseif any(userIn==','|userIn==';') % 2D arrays + C = strsplit(userIn, ';'); + newVals = cellfun(@(c)textscan(c, '%f',... + 'ReturnOnError', false,... + 'delimiter', {' ', ','}, 'MultipleDelimsAsOne', 1),... + C); + else % single value to copy across all cells + userIn = str2double(userIn); + newVals = num2cell(ones(size(currVals))*userIn); + end + + if length(newVals)>length(currVals) % too many new values + newVals = newVals(1:length(currVals)); % truncate new array + elseif length(newVals) 1) ||... % Number of rows > 1 for chars - (~ischar(obj.pStruct.(n)) && size(obj.pStruct.(n), 2) > 1); % Number of columns > 1 for all others + ~strcmp(n, 'randomiseConditions') &&... % randomiseConditions always global + ((ischar(obj.pStruct.(n)) && size(obj.pStruct.(n), 1) > 1) ||... % Number of rows > 1 for chars + (~ischar(obj.pStruct.(n)) && size(obj.pStruct.(n), 2) > 1)); % Number of columns > 1 for all others for i = 1:n name = obj.pNames{i}; obj.IsTrialSpecific.(name) = isTrialSpecificDefault(name); @@ -182,8 +182,8 @@ function makeGlobal(obj, name, newValue) 'UniformOutput', false); % concatenate trial parameter trialParamValues = cat(1, trialParamValues{:}); - if isempty(trialParamValues) - trialParamValues = {1}; + if isempty(trialParamValues) % Removed MW 30.01.19 + trialParamValues = {}; end trialParams = cell2struct(trialParamValues, trialParamNames, 1)'; globalParams = cell2struct(globalParamValues, globalParamNames, 1); diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index 200ba269..cd939a83 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -28,7 +28,7 @@ function update(scheduled) % than an hour ago. if (scheduled && (weekday(now) ~= scheduled) && now - lastFetch < 7) || ... (scheduled && (weekday(now) == scheduled) && now - lastFetch < 1) || ... - (~scheduled && now - lastFetch < 1/24) + (~scheduled && now - lastFetch < 1/24) return end disp('Updating code...') diff --git a/signals b/signals index 93520307..85072177 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 93520307c1cb1a9dc12fa8bda685a01b9ab80401 +Subproject commit 850721777f0f4cd27c6a5248cf83aa246b53c9a2 From 04a8a3d9b0971cc31d87e397beacc02b5c70efcb Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 5 Feb 2019 12:51:16 +0200 Subject: [PATCH 277/515] Updates for GUILT compatibility --- +eui/ConditionPanel.m | 28 +++++++++++++++------------- +eui/FieldPanel.m | 3 ++- +eui/MControl.m | 2 +- +eui/ParamEditor.m | 18 ++++++++++++------ signals | 2 +- 5 files changed, 31 insertions(+), 22 deletions(-) diff --git a/+eui/ConditionPanel.m b/+eui/ConditionPanel.m index 7c4b89fe..eacd317f 100644 --- a/+eui/ConditionPanel.m +++ b/+eui/ConditionPanel.m @@ -29,8 +29,7 @@ methods function obj = ConditionPanel(f, ParamEditor, varargin) obj.ParamEditor = ParamEditor; - obj.UIPanel = uipanel('Parent', f, 'BorderType', 'none',... - 'BackgroundColor', 'white', 'Position', [0.5 0.05 0.5 0.95]); + obj.UIPanel = uix.VBox('Parent', f, 'BackgroundColor', 'white'); % Create a child menu for the uiContextMenus c = uicontextmenu; obj.UIPanel.UIContextMenu = c; @@ -41,7 +40,8 @@ obj.ContextMenus(3) = uimenu(c, 'Label', 'Sort by selected column', ... 'MenuSelectedFcn', @(~,~)disp('feature not yet implemented'), 'Tag', 'sort by'); % Create condition table - obj.ConditionTable = uitable('Parent', obj.UIPanel,... + p = uix.Panel('Parent', obj.UIPanel); + obj.ConditionTable = uitable('Parent', p,... 'FontName', 'Consolas',... 'RowName', [],... 'RearrangeableColumns', true,... @@ -51,14 +51,14 @@ 'CellEditCallback', @obj.onEdit,... 'CellSelectionCallback', @obj.onSelect); % Create button panel to hold condition control buttons - obj.ButtonPanel = uipanel('BackgroundColor', 'white',... - 'Position', [0.5 0 0.5 0.05], 'BorderType', 'none'); + obj.ButtonPanel = uix.HBox('Parent', obj.UIPanel, ... + 'BackgroundColor', 'white'); % Create callback so that width of button panel is slave to width of % conditional UIPanel - b = obj.ButtonPanel; - fcn = @(s)set(obj.ButtonPanel, 'Position', ... - [s.Position(1) b.Position(2) s.Position(3) b.Position(4)]); - obj.Listener = event.listener(obj.UIPanel, 'SizeChanged', @(s,~)fcn(s)); +% b = obj.ButtonPanel; +% fcn = @(s)set(obj.ButtonPanel, 'Position', ... +% [s.Position(1) b.Position(2) s.Position(3) b.Position(4)]); +% obj.Listener = event.listener(obj.UIPanel, 'SizeChanged', @(s,~)fcn(s)); % Define some common properties props.BackgroundColor = 'white'; props.Style = 'pushbutton'; @@ -67,28 +67,30 @@ % Create out four buttons obj.NewConditionButton = uicontrol(props,... 'String', 'New condition',... - 'Position',[0 0 1/4 1],... + ...'Position',[0 0 1/4 1],... 'TooltipString', 'Add a new condition',... 'Callback', @(~, ~) obj.newCondition()); obj.DeleteConditionButton = uicontrol(props,... 'String', 'Delete condition',... - 'Position',[1/4 0 1/4 1],... + ...'Position',[1/4 0 1/4 1],... 'TooltipString', 'Delete the selected condition',... 'Enable', 'off',... 'Callback', @(~, ~) obj.deleteSelectedConditions()); obj.MakeGlobalButton = uicontrol(props,... 'String', 'Globalise parameter',... - 'Position',[2/4 0 1/4 1],... + ...'Position',[2/4 0 1/4 1],... 'TooltipString', sprintf(['Make the selected condition-specific parameter global (i.e. not vary by trial)\n'... 'This will move it to the global parameters section']),... 'Enable', 'off',... 'Callback', @(~, ~) obj.makeGlobal()); obj.SetValuesButton = uicontrol(props,... 'String', 'Set values',... - 'Position',[3/4 0 1/4 1],... + ...'Position',[3/4 0 1/4 1],... 'TooltipString', 'Set selected values to specified value, range or function',... 'Enable', 'off',... 'Callback', @(~, ~) obj.setSelectedValues()); + obj.ButtonPanel.Widths = [-1 -1 -1 -1]; + obj.UIPanel.Heights = [-1 25]; end function onEdit(obj, src, eventData) diff --git a/+eui/FieldPanel.m b/+eui/FieldPanel.m index 33ae7ee1..10980cb6 100644 --- a/+eui/FieldPanel.m +++ b/+eui/FieldPanel.m @@ -28,7 +28,8 @@ methods function obj = FieldPanel(f, ParamEditor, varargin) obj.ParamEditor = ParamEditor; - obj.UIPanel = uipanel('Parent', f, 'BorderType', 'none',... + p = uix.Panel('Parent', f); + obj.UIPanel = uipanel('Parent', p, 'BorderType', 'none',... 'BackgroundColor', 'white', 'Position', [0 0 0.5 1]); obj.Listener = event.listener(obj.UIPanel, 'SizeChanged', @obj.onResize); end diff --git a/+eui/MControl.m b/+eui/MControl.m index 5bad701e..69c8628d 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -250,7 +250,7 @@ function loadParamProfile(obj, profile) set(obj.ParamProfileLabel, 'String', 'loading...', 'ForegroundColor', [1 0 0]); % Red 'Loading...' while new set loads if ~isempty(obj.ParamEditor) % Clear existing parameters control - % TODO + clear(obj.ParamEditor) end factory = obj.NewExpFactory; % Find which 'world' we are in diff --git a/+eui/ParamEditor.m b/+eui/ParamEditor.m index 74fa16e4..4c375b7e 100644 --- a/+eui/ParamEditor.m +++ b/+eui/ParamEditor.m @@ -7,6 +7,7 @@ end properties %(Access = private) + UIPanel GlobalUI ConditionalUI Parent @@ -27,11 +28,12 @@ if nargin < 2 f = figure('Name', 'Parameters', 'NumberTitle', 'off',... 'Toolbar', 'none', 'Menubar', 'none', 'DeleteFcn', @(~,~)obj.delete); + obj.Listener = event.listener(f, 'SizeChanged', @(~,~)obj.onResize); end obj.Parent = f; - obj.Listener = event.listener(f, 'SizeChanged', @(~,~)obj.onResize); - obj.GlobalUI = eui.FieldPanel(f, obj); - obj.ConditionalUI = eui.ConditionPanel(f, obj); + obj.UIPanel = uix.HBox('Parent', f); + obj.GlobalUI = eui.FieldPanel(obj.UIPanel, obj); + obj.ConditionalUI = eui.ConditionPanel(obj.UIPanel, obj); obj.buildUI(pars); end @@ -57,10 +59,14 @@ function delete(obj) end end - function buildUI(obj, pars) - obj.Parameters = pars; + function clear(obj) clear(obj.GlobalUI); clear(obj.ConditionalUI); + end + + function buildUI(obj, pars) + obj.Parameters = pars; + obj.clear() c = obj.GlobalUI; names = pars.GlobalNames; for nm = names' @@ -75,12 +81,12 @@ function buildUI(obj, pars) end end obj.fillConditionTable(); - obj.GlobalUI.onResize(); %%% Special parameters if ismember('randomiseConditions', obj.Parameters.Names) && ~pars.Struct.randomiseConditions obj.ConditionalUI.ConditionTable.RowName = 'numbered'; set(obj.ConditionalUI.ContextMenus(2), 'Checked', 'off'); end + obj.GlobalUI.onResize(); end function setRandomized(obj, value) diff --git a/signals b/signals index 85072177..23f93fb3 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 850721777f0f4cd27c6a5248cf83aa246b53c9a2 +Subproject commit 23f93fb365c441d803e7ff43b5d8f17801a409e9 From e47f4624469a9935d8c77e8372ad005447b6a597 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 8 Feb 2019 11:46:53 +0200 Subject: [PATCH 278/515] New infer params --- +exp/inferParameters.m | 33 ++++++--------------------------- signals | 2 +- 2 files changed, 7 insertions(+), 28 deletions(-) diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 945845d1..50009901 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -18,34 +18,16 @@ expdef = which(func2str(expdef)); end -net = sig.Net; -e = struct; -e.t = net.origin('t'); -e.events = net.subscriptableOrigin('events'); -e.pars = net.subscriptableOrigin('pars'); -e.pars.CacheSubscripts = true; -e.visual = net.subscriptableOrigin('visual'); -e.audio.Devices = @dummyDev; -e.inputs = net.subscriptableOrigin('inputs'); -e.outputs = net.subscriptableOrigin('outputs'); +e = sig.void; +pars = sig.void(true); +audio.Devices = @dummyDev; try + expdeffun(e.t, e.events, pars, e.visual, e.inputs, e.outputs, audio); - expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio); - - % paramNames will be the strings corresponding to the fields of e.pars + % paramNames will be the strings corresponding to the fields of pars % that the user tried to reference in her expdeffun. - paramNames = e.pars.Subscripts.keys'; - %The paramValues are signals corresponding to those parameters and they - %will all be empty, except when they've been given explicit numerical - %definitions right at the end of the function - and in that case, we'll - %take those values (extracted into matlab datatypes, from the signals, - %using .Node.CurrValue) to be the desired default values. - paramValues = e.pars.Subscripts.values'; - parsStruct = cell2struct(cell(size(paramNames)), paramNames); - for i = 1:size(paramNames,1) - parsStruct.(paramNames{i}) = paramValues{i}.Node.CurrValue; - end + parsStruct = pars.Subscripts; sz = iff(isempty(fieldnames(parsStruct)), 1,... % if there are no paramters sz = 1 structfun(@(a)size(a,2), parsStruct)); % otherwise get number of columns isChar = structfun(@ischar, parsStruct); % we disregard charecter arrays @@ -60,12 +42,9 @@ ExpPanel_fn = [path filesep ExpPanel_name ext]; if exist(ExpPanel_fn,'file'); parsStruct.expPanelFun = ExpPanel_name; end catch ex - net.delete(); rethrow(ex) end -net.delete(); - function dev = dummyDev(~) % Returns a dummy audio device structure, regardless of input % Returns a standard structure with values for generating tone diff --git a/signals b/signals index 93520307..c81b99e0 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 93520307c1cb1a9dc12fa8bda685a01b9ab80401 +Subproject commit c81b99e0922dbab9ab5d9a9770ff476c96fb6126 From 0f4bff25239bf0f9d96431f07f432b5e520d97e1 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 8 Feb 2019 12:44:53 +0200 Subject: [PATCH 279/515] Check for reserved params --- +exp/inferParameters.m | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 50009901..7e1a937e 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -5,12 +5,6 @@ % create some signals just to pass to the definition function and track % which parameter names are used -% if ischar(expdef) && file.exists(expdef) -% expdeffun = fileFunction(expdef); -% else -% expdeffun = expdef; -% expdef = which(func2str(expdef)); -% end if ischar(expdef) && file.exists(expdef) expdeffun = fileFunction(expdef); else @@ -28,6 +22,14 @@ % paramNames will be the strings corresponding to the fields of pars % that the user tried to reference in her expdeffun. parsStruct = pars.Subscripts; + + % Check for reserved fieldnames + reserved = {'randomiseConditions', 'services', 'expPanelFun', ... + 'numRepeats', 'defFunction', 'waterType', 'isPassive'}; + assert(~any(ismember(fieldnames(parsStruct), reserved)), ... + 'Lord have mercy, the following param names are reserved:\n%s', ... + strjoin(intersect(fieldnames(parsStruct), reserved), ', ')) + sz = iff(isempty(fieldnames(parsStruct)), 1,... % if there are no paramters sz = 1 structfun(@(a)size(a,2), parsStruct)); % otherwise get number of columns isChar = structfun(@ischar, parsStruct); % we disregard charecter arrays From c5a2e9821a77ad0a8750a196d04d46e3605e0a9e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 8 Feb 2019 13:39:56 +0200 Subject: [PATCH 280/515] No more multiple default aud dev names --- +hw/devices.m | 4 ++-- signals | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/+hw/devices.m b/+hw/devices.m index 2734fe92..cdf5f493 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -69,8 +69,8 @@ % Get list of audio devices devs = getOr(rig, 'audioDevices', PsychPortAudio('GetDevices')); % Sanitize the names - names = matlab.lang.makeValidName([{'default'} {devs(2:end).DeviceName}],... - 'ReplacementStyle', 'delete'); + names = matlab.lang.makeValidName({devs.DeviceName}, 'ReplacementStyle', 'delete'); + names = iff(ismember('defaut', names), names, @()[{'default'} names(2:end)]); for i = 1:length(names); devs(i).DeviceName = names{i}; end rig.audioDevices = devs; end diff --git a/signals b/signals index 93520307..c81b99e0 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 93520307c1cb1a9dc12fa8bda685a01b9ab80401 +Subproject commit c81b99e0922dbab9ab5d9a9770ff476c96fb6126 From 571ee1844a46ed90b82835ab27930cbc7e5f15c7 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 8 Feb 2019 14:28:40 +0200 Subject: [PATCH 281/515] Bug fix for numRepeats when there's signal char param --- +exp/inferParameters.m | 7 +++---- signals | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 7e1a937e..3c44117c 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -30,10 +30,9 @@ 'Lord have mercy, the following param names are reserved:\n%s', ... strjoin(intersect(fieldnames(parsStruct), reserved), ', ')) + szFcn = @(a)iff(ischar(a), @()size(a,1), @()size(a,2)); sz = iff(isempty(fieldnames(parsStruct)), 1,... % if there are no paramters sz = 1 - structfun(@(a)size(a,2), parsStruct)); % otherwise get number of columns - isChar = structfun(@ischar, parsStruct); % we disregard charecter arrays - if any(isChar); sz = sz(~isChar); end + structfun(szFcn, parsStruct)); % otherwise get number of columns % add 'numRepeats' parameter, where total number of trials = 1000 parsStruct.numRepeats = ones(1,max(sz))*floor(1000/max(sz)); parsStruct.defFunction = expdef; @@ -56,4 +55,4 @@ 'DefaultSampleRate', 44100,... 'NrOutputChannels', 2); end -end \ No newline at end of file +end diff --git a/signals b/signals index c81b99e0..8a56f9e6 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit c81b99e0922dbab9ab5d9a9770ff476c96fb6126 +Subproject commit 8a56f9e6b3b5cf0d37c34e5b0b948c2e55bb45d8 From 6e19d6126595524949e0fe0c6e9d33e89a9ce884 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 8 Feb 2019 15:39:51 +0200 Subject: [PATCH 282/515] Subjects list disabled during login --- +eui/AlyxPanel.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index f8b6da14..7abcff6e 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -217,6 +217,8 @@ function login(obj) % Logging out does not cause the token to expire, instead the % token is simply deleted from this object. + % Temporarily disable the Subject Selector + obj.NewExpSubject.UIControl.Enable = 'off'; % Reset headless flag in case user wishes to retry connection obj.AlyxInstance.Headless = false; % Are we logging in or out? @@ -282,6 +284,8 @@ function login(obj) notify(obj, 'Disconnected'); % Notify listeners of logout obj.log('Logged out of Alyx'); end + % Reable the Subject Selector + obj.NewExpSubject.UIControl.Enable = 'on'; obj.dispWaterReq() end From 8522c13d1c58d286acc1dd29c347444322b31621 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Sun, 10 Feb 2019 21:15:15 +0000 Subject: [PATCH 283/515] Field change to water-requirement endpoint --- +eui/AlyxPanel.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index f8b6da14..aade462f 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -601,13 +601,13 @@ function viewSubjectHistory(obj, ax) axWater = axes('Parent',plotBox); plot(axWater, dates, obj.round([records.given_water_total], 'up'), '.-'); hold(axWater, 'on'); - plot(axWater, dates, obj.round([records.given_water_hydrogel], 'down'), '.-'); - plot(axWater, dates, obj.round([records.given_water_liquid], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_supplement], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_reward], 'down'), '.-'); plot(axWater, dates, obj.round([records.expected_water], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); xlim(axWater, [min(dates) maxDate]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) - ylabel(axWater, 'water/hydrogel (mL)'); + ylabel(axWater, 'water (mL)'); % Create table of useful weight and water information, % sorted by date @@ -627,14 +627,14 @@ function viewSubjectHistory(obj, ax) arrayfun(@(x)iff(isnan(x), [], @()sprintf('%.1f', 0.8*(x-iw)+iw)), expected', 'uni', false), ... weightPctByDate'); waterDat = (... - num2cell(horzcat([records.given_water_liquid]', [records.given_water_hydrogel]', ... + num2cell(horzcat([records.given_water_reward]', [records.given_water_supplement]', ... [records.given_water_total]', [records.expected_water]',... [records.given_water_total]'-[records.expected_water]'))); waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); waterDat(~[records.is_water_restricted],[1,3]) = {'ad lib'}; dat = horzcat(dat, waterDat); - set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... + set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'supplement', 'total', 'min water', 'excess'}, ... 'Data', dat(end:-1:1,:),... 'ColumnEditable', false(1,5)); histbox.Widths = [ -1 725]; From 210c8486bc26b96d5fe8ee1ebecca8262c0e789c Mon Sep 17 00:00:00 2001 From: k1o0 Date: Sun, 10 Feb 2019 22:39:48 +0000 Subject: [PATCH 284/515] Pagination support --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 6fc933b9..13264858 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 6fc933b99bec09689a83b024284e8023d2c5793d +Subproject commit 132648581fe7ff7be9136baa00cdefe2cbb67c2f From 4ff9735bbf7b9147db107c99b95a6681ee8fab43 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Sun, 10 Feb 2019 21:15:15 +0000 Subject: [PATCH 285/515] Field change to water-requirement endpoint --- +eui/AlyxPanel.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index f8b6da14..aade462f 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -601,13 +601,13 @@ function viewSubjectHistory(obj, ax) axWater = axes('Parent',plotBox); plot(axWater, dates, obj.round([records.given_water_total], 'up'), '.-'); hold(axWater, 'on'); - plot(axWater, dates, obj.round([records.given_water_hydrogel], 'down'), '.-'); - plot(axWater, dates, obj.round([records.given_water_liquid], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_supplement], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_reward], 'down'), '.-'); plot(axWater, dates, obj.round([records.expected_water], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); xlim(axWater, [min(dates) maxDate]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) - ylabel(axWater, 'water/hydrogel (mL)'); + ylabel(axWater, 'water (mL)'); % Create table of useful weight and water information, % sorted by date @@ -627,14 +627,14 @@ function viewSubjectHistory(obj, ax) arrayfun(@(x)iff(isnan(x), [], @()sprintf('%.1f', 0.8*(x-iw)+iw)), expected', 'uni', false), ... weightPctByDate'); waterDat = (... - num2cell(horzcat([records.given_water_liquid]', [records.given_water_hydrogel]', ... + num2cell(horzcat([records.given_water_reward]', [records.given_water_supplement]', ... [records.given_water_total]', [records.expected_water]',... [records.given_water_total]'-[records.expected_water]'))); waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); waterDat(~[records.is_water_restricted],[1,3]) = {'ad lib'}; dat = horzcat(dat, waterDat); - set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... + set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'supplement', 'total', 'min water', 'excess'}, ... 'Data', dat(end:-1:1,:),... 'ColumnEditable', false(1,5)); histbox.Widths = [ -1 725]; From 18452921d1047317eeb54c7c3b71df46245639f5 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 11 Feb 2019 13:12:59 +0000 Subject: [PATCH 286/515] Pagination support --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 1f29e306..38d33275 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 1f29e306747a39cc76d99bb3ac51175309ecbda4 +Subproject commit 38d332754402aad2c608890bb50347d0ad969e0e From b5ea66e02e52d4025c7af63367be79be326d138a Mon Sep 17 00:00:00 2001 From: kevin-j-miller Date: Fri, 15 Feb 2019 15:57:28 +0000 Subject: [PATCH 287/515] Modify Alyx login to use newid instead of inputdlg. This makes the 'enter' key on the keyboard synonymous with the 'ok' button --- +eui/AlyxPanel.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 78f9c781..ef221f98 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -318,7 +318,7 @@ function giveFutureWater(obj) 'enter space-separated numbers, i.e. \n',... '[tomorrow, day after that, day after that.. etc] \n\n',... 'Enter "0" to skip a day\nEnter "-1" to indicate training for that day\n']); - amtStr = inputdlg(prompt,'Future Amounts', [1 50]); + amtStr = newid(prompt,'Future Amounts', [1 50]); if isempty(amtStr)||~obj.AlyxInstance.IsLoggedIn return % user pressed 'Close' or 'x' end @@ -450,10 +450,10 @@ function recordWeight(obj, weight, subject) dlgTitle = 'Manual weight logging'; numLines = 1; defaultAns = {'',''}; - weight = inputdlg(prompt, dlgTitle, numLines, defaultAns); + weight = newid(prompt, dlgTitle, numLines, defaultAns); if isempty(weight); return; end end - % inputdlg returns weight as a cell, otherwise it may now be + % newid returns weight as a cell, otherwise it may now be weight = ensureCell(weight); % ensure it's a cell % convert to double if weight is a string weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); From e9c2f5e3e7aa46c4f96a0ba501faa777624dd0df Mon Sep 17 00:00:00 2001 From: kevin-j-miller Date: Fri, 15 Feb 2019 15:57:40 +0000 Subject: [PATCH 288/515] Modify Alyx login to use newid instead of inputdlg. This makes the 'enter' key on the keyboard synonymous with the 'ok' button --- alyx-matlab | 2 +- cortexlab/+git/changes.m | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 cortexlab/+git/changes.m diff --git a/alyx-matlab b/alyx-matlab index 13264858..77a077ea 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 132648581fe7ff7be9136baa00cdefe2cbb67c2f +Subproject commit 77a077ead0c34ba3acdfb007e8da9ca40243547c diff --git a/cortexlab/+git/changes.m b/cortexlab/+git/changes.m deleted file mode 100644 index d9e9f013..00000000 --- a/cortexlab/+git/changes.m +++ /dev/null @@ -1,6 +0,0 @@ -disp('Updating queued Alyx posts...') -posts = dirPlus(getOr(dat.paths, 'localAlyxQueue', 'C:/localAlyxQueue')); -posts = posts(endsWith(posts, 'put')); -newPosts = cellfun(@(str)[str(1:end-3) 'patch'], posts, 'uni', 0); -status = cellfun(@movefile, posts, newPosts); -assert(all(status), 'Unable to rename queued Alyx files, please do this manually') \ No newline at end of file From 5f2fb584ee3c8fc9c70058ddf8fba4bbc5380cac Mon Sep 17 00:00:00 2001 From: kevin-j-miller Date: Fri, 15 Feb 2019 17:11:00 +0000 Subject: [PATCH 289/515] Expose the AlyxPanel property of the MControl object, so that the login method can be invoked from the command line. I want to do this so that I can put a batch file on the desktop of the computer that runs MC to help streamline the workflow. --- +eui/MControl.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/MControl.m b/+eui/MControl.m index 5b25075d..9d5c201c 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -17,6 +17,7 @@ properties LoggingDisplay % control for showing log output + AlyxPanel % holds the AlyxPanel object (see buildUI(), eui.AlyxPanel()) end properties (SetAccess = private) @@ -33,7 +34,6 @@ properties (Access = private) ParamEditor ParamPanel - AlyxPanel % holds the AlyxPanel object (see buildUI(), eui.AlyxPanel()) BeginExpButton % The 'Start' button that begins an experiment RigOptionsButton % The 'Options' button that opens the rig options dialog NewExpFactory % A struct containing all availiable experiment types and function handles to constructors for their default parameters From 9b56e4f80de5b49a3f686a2aa5066c00ebfd1155 Mon Sep 17 00:00:00 2001 From: kevin-j-miller Date: Mon, 18 Feb 2019 14:17:51 +0000 Subject: [PATCH 290/515] modified alyx-matlab with more convenient textboxes and desktop shortcuts for common use-cases --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index 77a077ea..c5c5c1ba 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit 77a077ead0c34ba3acdfb007e8da9ca40243547c +Subproject commit c5c5c1ba22dce86549ed56fd257c3852f5949391 From 64416dd363e42c0936d2d170c8672adba1945b78 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 19 Feb 2019 22:35:11 +0200 Subject: [PATCH 291/515] Bug fix for turning empty objects into struct --- cb-tools/obj2struct.m | 8 +++++--- tests/obj2json_test.m | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 tests/obj2json_test.m diff --git a/cb-tools/obj2struct.m b/cb-tools/obj2struct.m index 60e91eb6..67937832 100644 --- a/cb-tools/obj2struct.m +++ b/cb-tools/obj2struct.m @@ -23,12 +23,15 @@ end s = obj2struct(m); else % Normal object + s.ClassContructor = class(obj); % Supply class name for loading object names = fieldnames(obj); % Get list of public properties for i = 1:length(names) - if isobject(obj.(names{i})) % Property contains an object + if isempty(obj) % Object and therefore all properties are empty + s.(names{i}) = []; + elseif isobject(obj.(names{i})) % Property contains an object if startsWith(class(obj.(names{i})),'daq.ni.') % Do not attempt to save ni daq sessions of channels - s.(names{i}) = []; + s.(names{i}) = []; else % Recurse s.(names{i}) = obj2struct(obj.(names{i})); end @@ -55,7 +58,6 @@ s.(names{i}) = obj.(names{i}); end end - s.ClassContructor = class(obj); % Supply class name for loading object end elseif iscell(obj) % If dealing with cell array, recurse through elements diff --git a/tests/obj2json_test.m b/tests/obj2json_test.m new file mode 100644 index 00000000..e26dd2cf --- /dev/null +++ b/tests/obj2json_test.m @@ -0,0 +1,23 @@ +%% Test obj2struct with given data +data = struct; +data.A = struct(... % Scalar struct + 'field1', zeros(10), ... + 'field2', true(10), ... + 'field3', pi, ... + 'field4', single(10), ... + 'field5', '10'); +data.B = hw.DaqController(); % Obj containing empty obj +v = daq.getVendors(); +if v(strcmp({v.ID},'ni')).IsOperational + data.B.createDaqChannels(); % Add daq.ni obj +end +data.C = struct; % Non-scalar struct +data.C(1,1).a = 1; +data.C(2,1).a = 2; +data.C(1,2).a = 3; +data.C(2,2).a = 4; +data.D = @(a,b,c)zeros(c,b,a); % Function handle + +json = obj2json(data); +out = '{"A":{"field1":[[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0]],"field2":[[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true],[true,true,true,true,true,true,true,true,true,true]],"field3":3.1415926535897931,"field4":10,"field5":"10"},"B":{"ClassContructor":"hw.DaqController","ChannelNames":[],"SignalGenerators":{"ClassContructor":"hw.PulseSwitcher","OpenValue":[],"ClosedValue":[],"ParamsFun":[],"DefaultCommand":[],"DefaultValue":[]},"DaqIds":"Dev1","DaqChannelIds":[],"SampleRate":1000,"DaqSession":[],"DigitalDaqSession":[],"Value":[],"NumChannels":0,"AnalogueChannelsIdx":[]},"C":[[{"a":1},{"a":3}],[{"a":2},{"a":4}]],"D":"@(a,b,c)zeros(c,b,a)"}'; +assert(strcmp(json,out), 'Test failed') \ No newline at end of file From 4fda5c090a63f98180a7c8752e81520333a58f18 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 20 Feb 2019 00:38:50 +0200 Subject: [PATCH 292/515] Added error msgID and tests --- +exp/inferParameters.m | 3 +- tests/expDefinitions/advancedChoiceWorld.m | 195 ++++++ .../advancedChoiceWorldExpPanel.m | 1 + .../advancedChoiceWorld_parameters.mat | Bin 0 -> 729 bytes tests/expDefinitions/choiceWorld.m | 636 ++++++++++++++++++ .../expDefinitions/choiceWorld_parameters.mat | Bin 0 -> 709 bytes tests/inferParamsPerformanceTest.m | 21 + tests/inferParamsTest.m | 65 ++ 8 files changed, 920 insertions(+), 1 deletion(-) create mode 100644 tests/expDefinitions/advancedChoiceWorld.m create mode 100644 tests/expDefinitions/advancedChoiceWorldExpPanel.m create mode 100644 tests/expDefinitions/advancedChoiceWorld_parameters.mat create mode 100644 tests/expDefinitions/choiceWorld.m create mode 100644 tests/expDefinitions/choiceWorld_parameters.mat create mode 100644 tests/inferParamsPerformanceTest.m create mode 100644 tests/inferParamsTest.m diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 3c44117c..275c964f 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -27,7 +27,8 @@ reserved = {'randomiseConditions', 'services', 'expPanelFun', ... 'numRepeats', 'defFunction', 'waterType', 'isPassive'}; assert(~any(ismember(fieldnames(parsStruct), reserved)), ... - 'Lord have mercy, the following param names are reserved:\n%s', ... + 'exp:InferParameters:ReservedParameters', ... + 'The following param names are reserved:\n%s', ... strjoin(intersect(fieldnames(parsStruct), reserved), ', ')) szFcn = @(a)iff(ischar(a), @()size(a,1), @()size(a,2)); diff --git a/tests/expDefinitions/advancedChoiceWorld.m b/tests/expDefinitions/advancedChoiceWorld.m new file mode 100644 index 00000000..836ef546 --- /dev/null +++ b/tests/expDefinitions/advancedChoiceWorld.m @@ -0,0 +1,195 @@ +function advancedChoiceWorld(t, evts, p, vs, in, out, audio) +%% advancedChoiceWorld +% Burgess 2AUFC task with contrast discrimination and baited equal contrast +% trial conditions. +% 2017-03-25 Added contrast discrimination MW +% 2017-08 Added baited trials (thanks PZH) +% 2017-09-26 Added manual reward key presses +% 2017-10-26 p.wheelGain now in mm/deg units +% 2018-03-15 Added time sampler function for delays + +%% parameters +wheel = in.wheelMM; % The wheel input in mm turned tangential to the surface +rewardKey = p.rewardKey.at(evts.expStart); % get value of rewardKey at experiemnt start, otherwise it will take the same value each new trial +rewardKeyPressed = in.keyboard.strcmp(rewardKey); % true each time the reward key is pressed +contrastLeft = p.stimulusContrast(1); +contrastRight = p.stimulusContrast(2); + +%% when to present stimuli & allow visual stim to move +% stimulus should come on after the wheel has been held still for the +% duration of the preStimulusDelay. The quiescence threshold is a tenth of +% the rotary encoder resolution. +preStimulusDelay = p.preStimulusDelay.map(@timeSampler).at(evts.newTrial); % at(evts.newTrial) fix for rig pre-delay +stimulusOn = sig.quiescenceWatch(preStimulusDelay, t, wheel, 10); +interactiveDelay = p.interactiveDelay.map(@timeSampler); +interactiveOn = stimulusOn.delay(interactiveDelay); % the closed-loop period starts when the stimulus comes on, plus an 'interactive delay' + +audioDevice = audio.Devices('default'); +onsetToneSamples = p.onsetToneAmplitude*... + mapn(p.onsetToneFrequency, 0.1, audioDevice.DefaultSampleRate,... + 0.02, audioDevice.NrOutputChannels, @aud.pureTone); % aud.pureTone(freq, duration, samprate, "ramp duration", nAudChannels) +audio.default = onsetToneSamples.at(interactiveOn); % At the time of 'interative on', send samples to audio device and log as 'onsetTone' + +%% wheel position to stimulus displacement +% Here we define the multiplication factor for changing the wheel signal +% into mm/deg visual angle units. The Lego wheel used has a 31mm radius. +% The standard KÜBLER rotary encoder uses X4 encoding; we record all edges +% (up and down) from both channels for maximum resolution. This means that +% e.g. a KÜBLER 2400 with 100 pulses per revolution will actually generate +% *400* position ticks per full revolution. +wheelOrigin = wheel.at(interactiveOn); % wheel position sampled at 'interactiveOn' +stimulusDisplacement = p.wheelGain*(wheel - wheelOrigin); % yoke the stimulus displacment to the wheel movement during closed loop + +%% define response and response threshold +responseTimeOver = (t - t.at(interactiveOn)) > p.responseWindow; % p.responseWindow may be set to Inf +threshold = interactiveOn.setTrigger(... + abs(stimulusDisplacement) >= abs(p.stimulusAzimuth) | responseTimeOver); + +response = cond(... + responseTimeOver, 0,... % if the response time is over the response = 0 + true, -sign(stimulusDisplacement)); % otherwise it should be the inverse of the sign of the stimulusDisplacement + +response = response.at(threshold); % only update the response signal when the threshold has been crossed +stimulusOff = threshold.delay(1); % true a second after the threshold is crossed + +%% define correct response and feedback +% each trial randomly pick -1 or 1 value for use in baited (guess) trials +rndDraw = map(evts.newTrial, @(x) sign(rand(x)-0.5)); +correctResponse = cond(contrastLeft > contrastRight, -1,... % contrast left + contrastLeft < contrastRight, 1,... % contrast right + (contrastLeft + contrastRight == 0), 0,... % no-go (zero contrast) + (contrastLeft == contrastRight) & (rndDraw < 0), -1,... % equal contrast (baited) + (contrastLeft == contrastRight) & (rndDraw > 0), 1); % equal contrast (baited) +feedback = correctResponse == response; +% Only update the feedback signal at the time of the threshold being crossed +feedback = feedback.at(threshold).delay(0.1); + +noiseBurstSamples = p.noiseBurstAmp*... + mapn(audioDevice.NrOutputChannels, p.noiseBurstDur*audioDevice.DefaultSampleRate, @randn); +audio.default = noiseBurstSamples.at(feedback==0); % When the subject gives an incorrect response, send samples to audio device and log as 'noiseBurst' + +reward = merge(rewardKeyPressed, feedback > 0);% only update when feedback changes to greater than 0, or reward key is pressed +out.reward = p.rewardSize.at(reward); % output this signal to the reward controller + +%% stimulus azimuth +azimuth = cond(... + stimulusOn.to(interactiveOn), 0,... % Before the closed-loop condition, the stimulus is at it's starting azimuth + interactiveOn.to(threshold), stimulusDisplacement,... % Closed-loop condition, where the azimuth yoked to the wheel + threshold.to(stimulusOff), -response*abs(p.stimulusAzimuth)); % Once threshold is reached the stimulus is fixed again + +%% define the visual stimulus + +% Test stim left +leftStimulus = vis.grating(t, 'sinusoid', 'gaussian'); % create a Gabor grating +leftStimulus.orientation = p.stimulusOrientation(1); +leftStimulus.altitude = 0; +leftStimulus.sigma = [9,9]; % in visual degrees +leftStimulus.spatialFreq = p.spatialFrequency; % in cylces per degree +leftStimulus.phase = 2*pi*evts.newTrial.map(@(v)rand); % phase randomly changes each trial +leftStimulus.contrast = contrastLeft; +leftStimulus.azimuth = -p.stimulusAzimuth + azimuth; +% When show is true, the stimulus is visible +leftStimulus.show = stimulusOn.to(stimulusOff); + +vs.leftStimulus = leftStimulus; % store stimulus in visual stimuli set and log as 'leftStimulus' + +% Test stim right +rightStimulus = vis.grating(t, 'sinusoid', 'gaussian'); +rightStimulus.orientation = p.stimulusOrientation(2); +rightStimulus.altitude = 0; +rightStimulus.sigma = [9,9]; +rightStimulus.spatialFreq = p.spatialFrequency; +rightStimulus.phase = 2*pi*evts.newTrial.map(@(v)rand); +rightStimulus.contrast = contrastRight; +rightStimulus.azimuth = p.stimulusAzimuth + azimuth; +rightStimulus.show = stimulusOn.to(stimulusOff); + +vs.rightStimulus = rightStimulus; % store stimulus in visual stimuli set + +%% End trial and log events +% Let's use the next set of conditional paramters only if positive feedback +% was given, or if the parameter 'Repeat incorrect' was set to false. +nextCondition = feedback > 0 | p.repeatIncorrect == false; + +% we want to save these signals so we put them in events with appropriate +% names: +evts.stimulusOn = stimulusOn; +evts.preStimulusDelay = preStimulusDelay; +% save the contrasts as a difference between left and right +evts.contrast = p.stimulusContrast.map(@diff); +evts.contrastLeft = contrastLeft; +evts.contrastRight = contrastRight; +evts.azimuth = azimuth; +evts.response = response; +evts.feedback = feedback; +evts.interactiveOn = interactiveOn; +% Accumulate reward signals and append microlitre units +evts.totalReward = out.reward.scan(@plus, 0).map(fun.partial(@sprintf, '%.1fµl')); + +% Trial ends when evts.endTrial updates. +% If the value of evts.endTrial is false, the current set of conditional +% parameters are used for the next trial, if evts.endTrial updates to true, +% the next set of randowmly picked conditional parameters is used +evts.endTrial = nextCondition.at(stimulusOff).delay(p.interTrialDelay.map(@timeSampler)); + +%% Parameter defaults +% See timeSampler for full details on what values the *Delay paramters can +% take. Conditional perameters are defined as having ncols > 1, where each +% column is a condition. All conditional paramters must have the same +% number of columns. +try +%%% Contrast starting set +% C = [1 0;0 1;0.5 0;0 0.5]'; +%%% Contrast discrimination set +% c = [1 0.5 0.25 0.12 0.06 0]; +% c = combvec(c, c); +% C = unique([c, flipud(c)]', 'rows')'; +%%% Contrast detection set +c = [1 0.5 0.25 0.12 0.06 0]; +C = [c, zeros(1, numel(c)-1); zeros(1, numel(c)-1), c]; +%%% +p.stimulusContrast = C; + +p.repeatIncorrect = abs(diff(C,1)) > 0.25; % | all(C==0); +p.onsetToneFrequency = 5000; +p.interactiveDelay = 0.4; +p.onsetToneAmplitude = 0.15; +p.responseWindow = Inf; +p.stimulusAzimuth = 90; +p.noiseBurstAmp = 0.01; +p.noiseBurstDur = 0.5; +p.rewardSize = 3; +p.rewardKey = 'r'; +p.stimulusOrientation = [0, 0]'; +p.spatialFrequency = 0.19; % Prusky & Douglas, 2004 +p.interTrialDelay = 0.5; +p.wheelGain = 5; +p.preStimulusDelay = [0 0.1 0.09]'; +catch % ex +% disp(getReport(ex, 'extended', 'hyperlinks', 'on')) +end + +%% Helper functions +function duration = timeSampler(time) +% TIMESAMPLER Sample a time from some distribution +% If time is a single value, duration is that value. If time = [min max], +% then duration is sampled uniformally. If time = [min, max, time const], +% then duration is sampled from a exponential distribution, giving a flat +% hazard rate. If numel(time) > 3, duration is a randomly sampled value +% from time. +% +% See also exp.TimeSampler + if nargin == 0; duration = 0; return; end + switch length(time) + case 3 % A time sampled with a flat hazard function + duration = time(1) + exprnd(time(3)); + duration = iff(duration > time(2), time(2), duration); + case 2 % A time sampled from a uniform distribution + duration = time(1) + (time(2) - time(1))*rand; + case 1 % A fixed time + duration = time(1); + otherwise % Pick on of the values + duration = randsample(time, 1); + end +end +end \ No newline at end of file diff --git a/tests/expDefinitions/advancedChoiceWorldExpPanel.m b/tests/expDefinitions/advancedChoiceWorldExpPanel.m new file mode 100644 index 00000000..929b1a28 --- /dev/null +++ b/tests/expDefinitions/advancedChoiceWorldExpPanel.m @@ -0,0 +1 @@ +% --pass \ No newline at end of file diff --git a/tests/expDefinitions/advancedChoiceWorld_parameters.mat b/tests/expDefinitions/advancedChoiceWorld_parameters.mat new file mode 100644 index 0000000000000000000000000000000000000000..d84446fbc143b407ec1e2f38af5d21fca954679c GIT binary patch literal 729 zcmeZu4DoSvQZUssQ1EpO(M`+DN!3vZ$Vn_o%P-2cQV4Jk_w+L}(NSB|pf2Qo1*RLt2LxvAI(x(06ymPa!w(wF!>CwsOo`3(e@B6;*@BVD+5wP0Z6yWsyG~eTCW9scEAA%T5w?1FM|DfDpVOSiWlF2^nmZ}_slc}{U%5V1P zOc7+{7Zndu_uMdZ?b-^d^H;XHwi(3U4)$yC(&1d}(NcAM-_dgk&IdjjmP$T<;HKO0 z`tGw^rn=&RqF$!QJsrt;`qFc~mkaJ&<^SpL z*O%2nEvsK_U%I3|^~bTIZ@YZ%-SvJ_yS3`hPve^CUFSFU=-o*_TrDX2eWy`tw|Y_J zzP&FV{qOm)F7iiJs#Jdc`Iq1K8q_WD{+)zyT`rR=?j_VO@VU{Yb0q uvD)`#6W$-!k=rW6zj(KohuD$Q67CP?#TARsD{P+F^Z&$qdGps#)&T&{M@$$1 literal 0 HcmV?d00001 diff --git a/tests/expDefinitions/choiceWorld.m b/tests/expDefinitions/choiceWorld.m new file mode 100644 index 00000000..bcf265e3 --- /dev/null +++ b/tests/expDefinitions/choiceWorld.m @@ -0,0 +1,636 @@ +function choiceWorld(t, events, p, visStim, inputs, outputs, audio) +% ChoiceWorld(t, events, parameters, visStim, inputs, outputs, audio) +% +% A simple training protocol closely following that of our manual training. +% Contrasts are presented randomly (no staircase). The session is ended +% automatically if after a minimum number of trials either the median +% response time over the last 20 trials is over 5x (default) longer than +% that of the whole session, or if there is a greater than 50% (default) +% decrease in performance over the last 20 trials (compared to total +% performance over the whole session). +% +% The wheel gain changes only after the subject completes over 200 trials +% in a session. The gain only changes once and remains changed for all +% future sessions. +% +% There is no longer any change in reward volume, and there is no cue +% interactive delay. + +%% Fixed parameters +contrastSet = p.contrastSet.at(events.expStart); +startingContrasts = p.startingContrasts.at(events.expStart); +repeatOnMiss = p.repeatOnMiss.at(events.expStart); +trialsToBuffer = p.trialsToBuffer.at(events.expStart); +trialsToZeroContrast = p.trialsToZeroContrast.at(events.expStart); +rewardSize = p.rewardSize.at(events.expStart); +initialGain = p.initialGain.at(events.expStart); +normalGain = p.normalGain.at(events.expStart); +responseWindow = p.responseWindow.at(events.expStart); + +% Sounds +audioDevice = audio.Devices('default'); +onsetToneFreq = 5000; +onsetToneDuration = 0.1; +onsetToneRampDuration = 0.01; +toneSamples = p.onsetToneAmplitude*events.expStart.map(@(x) ... + aud.pureTone(onsetToneFreq, onsetToneDuration, audioDevice.DefaultSampleRate, ... + onsetToneRampDuration, audioDevice.NrOutputChannels)); +missNoiseDuration = 0.5; +missNoiseSamples = p.missNoiseAmplitude*events.expStart.map(@(x) ... + randn(audioDevice.NrOutputChannels, audioDevice.DefaultSampleRate*missNoiseDuration)); + +%% Initialize trial data +trialDataInit = events.expStart.mapn(... + contrastSet, startingContrasts, repeatOnMiss, ... + trialsToBuffer, trialsToZeroContrast, rewardSize,... + @initializeTrialData).subscriptable; + +%% Set up wheel +wheel = inputs.wheelMM; +quiescThreshold = 1000; +% millimetersFactor = events.newTrial.map2(31*2*pi/(p.encoderRes*4), @times); % convert the wheel gain to a value in mm/deg +gain = events.expStart.mapn(initialGain, normalGain, @initWheelGain); +enoughTrials = events.trialNum > 200; +wheelGain = iff(enoughTrials, normalGain, gain); + +%% Trial event times +% (this is set up to be independent of trial conditon, that way the trial +% condition can be chosen in a performance-dependent manner) + +% Resetting pre-stim quiescent period +prestimQuiescentPeriod = at(p.prestimQuiescentTime.map(@(A)rnd.exp(A(3),1,A(1:2))), events.newTrial); +preStimQuiescence = sig.quiescenceWatch(prestimQuiescentPeriod, t, wheel, quiescThreshold); +% Stimulus onset +stimOn = at(true, preStimQuiescence); % FIXME test whether at is needed here +% Play tone at interactive onset +audio.default = toneSamples.at(stimOn); +% The wheel displacement is zeroed at stimOn +stimDisplacement = wheelGain*(wheel - wheel.at(stimOn)); + +responseTimeOver = (t - t.at(stimOn)) > responseWindow; % p.responseWindow may be set to Inf +threshold = stimOn.setTrigger(... + abs(stimDisplacement) >= abs(p.responseDisplacement) | responseTimeOver); +response = cond(... + responseTimeOver, 3,... % if the response time is over the response = 0 + true, -sign(stimDisplacement)); % otherwise it should be the inverse of the sign of the stimulusDisplacement +response = response.at(stimOn.setTrigger(threshold)); % only update the response signal when the threshold has been crossed + +%% Bias +bias = merge(response.keepWhen(response~=3).bufferUpTo(10).map(@sum), ... + at(0, events.expStart)); % Initialize with 0 at expStart + +%% Update performance at response +responseData = vertcat(stimDisplacement, events.trialNum, response, bias); +trialData = responseData.at(response).scan(@updateTrialData, trialDataInit).subscriptable; +% trialData = response.scan(@updateTrialData, trialDataInit, 'pars', stimDisplacement, events.trialNum, bias).subscriptable; +% Set trial contrast (chosen when updating performance) +trialContrast = trialData.trialContrast.at(events.newTrial); +hit = trialData.hit.at(response); + +%% Task disengagement +% Response time = duration (seconds) between new trial and response +rt = t.at(stimOn).map2(t, @(a,b)diff([a,b])).at(response); +% The median response time over the last 20 trials +windowedRT = rt.buffer(20).map(@median); +% The median response time over all trials +baselineRT = rt.bufferUpTo(1000).map(@median); +% tooSlow is true when windowed rt is x times longer than median rt for the +% session, where x is the rtCriterion +tooSlow = windowedRT > baselineRT*p.rtCriterion; +% noResponse is true when mouse fails to respond for over x seconds, where +% x is maxRespWindow +% noResponse = t-t.at(events.newTrial) > p.maxRespWindow; + +% A rolloing buffer of performance (proportion of last 20 trials that were +% correct) - this includes repeat on incorrect trials +windowedPerf = hit.buffer(20).map(@(a)sum(a)/length(a)); +% Proportion of all trials that were correct +baselinePerf = hit.bufferUpTo(1000).map(@(a)sum(a)/length(a)); +% True when there is an x% decrease in performance over the last 20 trials +% compared to the session average, where x is pctPerfDecrease +poorPerformance = iff(trialData.proportionLeft == 0.5, ... + (baselinePerf - windowedPerf)/baselinePerf > p.pctPerfDecrease/100, false); +% poorPerformance = (baselinePerf - windowedPerf)/baselinePerf > p.pctPerfDecrease/100; + +% The subject is identified as disengaged from the task when, after +% minTrials have been completed, the subject is either too slow or exhibits +% a significant drop in performance. If the subject has not completed the +% minimum number of trials in 45 minutes it is also classed as disengaged. +disengaged = iff(events.trialNum > p.minTrials, tooSlow, ... + events.expStart.delay(60*45)); +% The session is finished when either the session has been running for x +% seconds, where x is trialDataInit.endAfter (20min on the first day, 40min +% on the seconds, Inf otherwise), or when the subject is disengaged +% finish = merge(at(true, disengaged),... +% at(true, events.expStart.delay(trialDataInit.endAfter))); +finish = cond(disengaged, true,... + events.expStart.delay(trialDataInit.endAfter), true); + +% When finish takes a value (it may only sample true), this is posted to +% events.expStop to trigger the end of the session +expStop = events.expStop; +expStop.Node.Listeners = [expStop.Node.Listeners, ... + into(finish, expStop)]; + +%% Give feedback and end trial +% Ensures reward size is not re-calculated at the response time +rewardSize = trialData.rewardSize.at(events.newTrial); +% NOTE: there is a 10ms delay for water output, because otherwise water and +% stim output compete and stim is delayed +outputs.reward = rewardSize.at(hit==true).delay(0.01); +% Play noise on miss +audio.default = missNoiseSamples.at(delay(hit==false, 0.01)); +% ITI defined by outcome +iti = iff(hit==1, p.itiHit, p.itiMiss); +% Stim stays on until the end of the ITI +stimOff = threshold.delay(iti); + +%% Visual stimulus +% Azimuth control +% 1) stim fixed in place until interactive on +% 2) wheel-conditional during interactive +% 3) fixed at response displacement azimuth after response +trialSide = trialData.trialSide.at(stimOn); +azimuth = cond( ... + stimOn.to(threshold), p.startingAzimuth*trialSide + stimDisplacement, ... + threshold.to(events.newTrial), ... + p.startingAzimuth*trialSide + ... + iff(response~=3, -response*abs(p.responseDisplacement), trialSide*abs(p.responseDisplacement))); + +% Stim flicker +% stimFlicker = sin((t - t.at(stimOn))*stimFlickerFrequency*2*pi) > 0; +stim = vis.grating(t, 'sine', 'gaussian'); +stim.sigma = p.sigma; +stim.spatialFreq = p.spatialFreq; +stim.phase = 2*pi*events.newTrial.map(@(v)rand); +stim.azimuth = azimuth; +%stim.contrast = trialContrast.at(stimOn)*stimFlicker; +stim.contrast = trialContrast; +stim.show = stimOn.to(stimOff); + +visStim.stim = stim; + +%% Display and save +% events.pPerf = (baselinePerf - windowedPerf)/baselinePerf > p.pctPerfDecrease/100; +% Wheel and stim +events.azimuth = azimuth; + +% Trial times +events.prestimQuiescentPeriod = prestimQuiescentPeriod; +events.stimulusOn = stimOn; +events.interactiveOn = stimOn; +events.stimulusOff = stimOff; +events.feedback = iff(hit==1, hit, -1); +events.threshold = threshold; +% End trial samples a false when the next trial is to be a repeat trial. +% NB: the identity function is used to ensure that stimOff takes a value +% before endTrial +events.endTrial = at(~trialData.repeatTrial, stimOff.identity); +% Used to identify what form of disengagement has occured +events.disengaged = skipRepeats(keepWhen(cond(... + tooSlow, 'long RT',... + true, 'false'), events.trialNum > p.minTrials)); +events.windowedRT = windowedRT.map(fun.partial(@sprintf, '%.1f sec')); +events.baselineRT = baselineRT.map(fun.partial(@sprintf, '%.1f sec')); +events.pctDecrease = map(((baselinePerf - windowedPerf)/baselinePerf)*100, fun.partial(@sprintf, '%.1f%%')); +events.endAfter = trialDataInit.endAfter/60; + +% Trial side probability +events.bias = bias; + +% Performance +events.contrastSet = trialData.contrastSet; +events.repeatOnMiss = trialData.repeatOnMiss; +events.contrastLeft = iff(trialData.trialSide == -1, trialData.trialContrast, trialData.trialContrast*0); +events.contrastRight = iff(trialData.trialSide == 1, trialData.trialContrast, trialData.trialContrast*0); +% events.trialSide = trialData.trialSide; +events.hit = hit; +events.response = at(iff(response==3, 0, response), threshold); +events.useContrasts = trialData.useContrasts; +events.trialsToZeroContrast = trialData.trialsToZeroContrast; +events.hitBuffer = trialData.hitBuffer; +events.wheelGain = wheelGain; +events.totalWater = outputs.reward.scan(@plus, 0).map(fun.partial(@sprintf, '%.1fµl')); + +%% Defaults +try +% The entire stimulus/target contrast set +p.contrastSet = [1,0.5,0.25,0.125,0.06,0]'; +% (which conrasts to use at the beginning of training) +p.startingContrasts = double([true,true,false,false,false,false]'); +% (which contrasts to repeat on incorrect) +p.repeatOnMiss = double([true,true,false,false,false,false]'); +% (number of trials to judge rolling performance) +p.trialsToBuffer = 50; +% (number of trials after introducing 12.5% contrast to introduce 0%) +p.trialsToZeroContrast = 200; +p.spatialFreq = 1/10; +p.sigma = [7, 7]'; +% stimFlickerFrequency = 5; % DISABLED BELOW +p.startingAzimuth = 35; % (degrees) +p.responseDisplacement = 35; % (degrees) +% Starting reward size (this value is ignored after the first session) +p.rewardSize = 3; % (microliters) +% Initial wheel gain +p.initialGain = 8; % ~= 20 @ 90 deg; +p.normalGain = 4; % ~= 10 @ 90 deg; + +% Timing +p.prestimQuiescentTime = [0.2, 0.5, 0.35]'; % (seconds) +% p.cueInteractiveDelay = 0.2; +% Inter-trial interval on correct response +p.itiHit = 1; % (seconds) +% Inter-trial interval on incorrect response +p.itiMiss = 2; % (seconds) +p.responseWindow = 60; % (seconds) + +% How many times slower the subject must become in order to be marked as +% disengaged +p.rtCriterion = 5; % (multiplier) +% The percent decrease in performance that subject must exhibit to be +% marked as disengaged +p.pctPerfDecrease = 50; % (percent) +% The minimum number of trials to be completed before the subject may be +% classified as disengaged +p.minTrials = 400; +% The maximum number of seconds the subject can take to give a response +% before being classified as disengaged +p.maxRespWindow = 60; % (seconds) + +% Audio +p.missNoiseAmplitude = 0.01; +p.onsetToneAmplitude = 0.15; +catch +end +end +function wheelGain = initWheelGain(expRef, initialGain, normalGain) +subject = dat.parseExpRef(expRef); +expRef = dat.listExps(subject); +wheelGain = initialGain; +if length(expRef) > 1 + % Loop through blocks from latest to oldest, if any have the relevant + % parameters then carry them over + for check_expt = length(expRef)-1:-1:1 + previousBlockFilename = dat.expFilePath(expRef{check_expt}, 'block', 'master'); + trialNum = []; + if exist(previousBlockFilename,'file') + previousBlock = load(previousBlockFilename); + if isfield(previousBlock.block,'events')&&isfield(previousBlock.block.events,'newTrialValues') + trialNum = previousBlock.block.events.newTrialValues; + end + end + % Check if the relevant fields exist + if length(trialNum) > 200 + % Break the loop and use these parameters + wheelGain = normalGain; + break + end + end +end +end + +function trialDataInit = initializeTrialData(expRef, ... + contrastSet,startingContrasts,repeatOnMiss,trialsToBuffer, ... + trialsToZeroContrast,rewardSize) + +%%%% Get the subject +% (from events.expStart - derive subject from expRef) +subject = dat.parseExpRef(expRef); + +startingContrasts = logical(startingContrasts)'; +repeatOnMiss = logical(repeatOnMiss)'; + +%%%% Initialize all of the session-independent performance values +trialDataInit = struct; + +% Store which trials are repeated on miss +trialDataInit.repeatOnMiss = repeatOnMiss; +% Set up the flag for repeating incorrect +trialDataInit.repeatTrial = false; +% Initialize hit/miss +trialDataInit.hit = nan; + +%%%% Load the last experiment for the subject if it exists +% (note: MC creates folder on initilization, so start search at 1-back) +expRef = dat.listExps(subject); +% Check how many days mouse has been trained +[~, dates] = dat.parseExpRef(expRef); +dayNum = find(floor(now) == unique(dates), 1, 'last'); +trialDataInit.endAfter = iff(dayNum<3, 60*20*dayNum, Inf); +trialDataInit.endAfter = Inf; + +useOldParams = false; +if length(expRef) > 1 + % Loop through blocks from latest to oldest, if any have the relevant + % parameters then carry them over + for check_expt = length(expRef)-1:-1:1 + learned = isLearned(expRef{check_expt}); + previousBlockFilename = dat.expFilePath(expRef{check_expt}, 'block', 'master'); + if exist(previousBlockFilename,'file') + previousBlock = load(previousBlockFilename); + if ~isfield(previousBlock.block, 'outputs')||... + ~isfield(previousBlock.block.outputs, 'rewardValues')||... + isempty(previousBlock.block.outputs.rewardValues) + lastRewardSize = rewardSize; + else + lastRewardSize = previousBlock.block.outputs.rewardValues(end); + end + + if isfield(previousBlock.block,'events') + previousBlock = previousBlock.block.events; + else + previousBlock = []; + end + end + % Check if the relevant fields exist + if exist('previousBlock','var') && all(isfield(previousBlock, ... + {'useContrastsValues','hitBufferValues','trialsToZeroContrastValues'})) &&... + length(previousBlock.newTrialValues) > 5 + % Break the loop and use these parameters + useOldParams = true; + break + end + end +end + +if useOldParams + % If the last experiment file has the relevant fields, set up performance + + % Which contrasts are currently in use + try + len = length(previousBlock.contrastSetValues)/length(previousBlock.contrastSetTimes); + trialDataInit.contrastSet = previousBlock.contrastSetValues(end-len+1:end); + catch + len = length(contrastSet'); + trialDataInit.contrastSet = contrastSet'; + end + trialDataInit.useContrasts = previousBlock.useContrastsValues(end-len+1:end); + + % The buffer to judge recent performance for adding contrasts + trialDataInit.hitBuffer = ... + previousBlock.hitBufferValues(:,end-len+1:end,:); + + % The countdown to adding 0% contrast + trialDataInit.trialsToZeroContrast = previousBlock.trialsToZeroContrastValues(end); + + % If zero contrasts have been introduced and lapse rate is < 0.2 for + % 50% contrasts, remove them. +% if trialDataInit.trialsToZeroContrast == 0 && ... +% sum(trialDataInit.hitBuffer(:,2,1))/size(trialDataInit.hitBuffer,1) > 0.8 && ... +% sum(trialDataInit.hitBuffer(:,2,2))/size(trialDataInit.hitBuffer,1) > 0.8 +% trialDataInit.useContrasts(trialDataInit.contrastSet == 0.5) = false; +% end + + % If the subject did over 200 trials last session, reduce the reward by + % 0.1, unless it is 2ml + if length(previousBlock.newTrialValues) > 200 && lastRewardSize > 1.5 + trialDataInit.rewardSize = lastRewardSize-0.1; + else + trialDataInit.rewardSize = lastRewardSize; + end + if learned + % Remove repeat on incorrect + trialDataInit.repeatOnMiss = zeros(1,length(trialDataInit.contrastSet)); + end + +else + % If this animal has no previous experiments, initialize performance + % Store the contrasts which are used + trialDataInit.contrastSet = contrastSet'; + trialDataInit.useContrasts = startingContrasts; + trialDataInit.hitBuffer = nan(trialsToBuffer, length(contrastSet), 2); % two tables, one for each side + trialDataInit.trialsToZeroContrast = trialsToZeroContrast; + % Initialize water reward size & wheel gain + trialDataInit.rewardSize = rewardSize; +end + +% Set the first contrast +contrasts = trialDataInit.contrastSet(trialDataInit.useContrasts); +w = ((contrasts~=0) + 1) / length(unique([contrasts, -contrasts])); +trialDataInit.trialContrast = randsample(contrasts, 1, true, w); +trialDataInit.trialSide = iff(rand <= 0.5, -1, 1); +end + +function trialData = updateTrialData(trialData,responseData) +% Update the performance and pick the next contrast +stimDisplacement = responseData(1); +response = responseData(3); +% bias normalized by trial number: abs(bias) = 0:1 +bias = responseData(4)/10; +% windowedRT = responseData(2); +% trialNum = responseData(3); + +% if trialNum > 50 && windowedRT < 60 +% trialData.wheelGain = 3; +% end +% +%%%% Get index of current trial contrast +currentContrastIdx = trialData.trialContrast == trialData.contrastSet; + +%%%% Define response type based on trial condition +trialData.hit = response~=3 && stimDisplacement*trialData.trialSide < 0; + +% Index for whether contrast was on the left or the right as performance is +% calculated for both sides. If the contrast was on the left, the index is +% 1, otherwise 2 +trialSideIdx = iff(trialData.trialSide<0, 1, 2); + + +%%%% Update buffers and counters if not a repeat trial +if ~trialData.repeatTrial + %%%% Contrast-adding performance buffer + % Update hit buffer for running performance + trialData.hitBuffer(:,currentContrastIdx,trialSideIdx) = ... + [trialData.hit;trialData.hitBuffer(1:end-1,currentContrastIdx,trialSideIdx)]; +end + +%%%% Add new contrasts as necessary given performance +% This is based on the last trialsToBuffer trials for rolling performance +% (these parameters are hard-coded because too specific) +% (these are side-dependent) +current_min_contrast = min(trialData.contrastSet(trialData.useContrasts & trialData.contrastSet ~= 0)); +trialsToBuffer = size(trialData.hitBuffer,1); +switch current_min_contrast + + case 0.5 + % Lower from 0.5 contrast after > 70% correct + min_hit_percentage = 0.70; + + contrast_buffer_idx = ismember(trialData.contrastSet,[0.5,1]); + contrast_total_trials = sum(~isnan(trialData.hitBuffer(:,contrast_buffer_idx,:))); + % If there have been enough buffer trials, check performance + if sum(contrast_total_trials) >= size(trialData.hitBuffer,1) + % Sample as evenly as possible across pooled contrasts. Here + % we pool the columns representing the 50% and 100% contrasts + % for each side (dim 3) individually, then shift the dimentions + % so that pooled_hits(1,:) = all 50% and 100% trials on the + % left, and pooled_hits(2,:) = all 50% and 100% trials on the + % right. + pooled_hits = shiftdim(... + reshape(trialData.hitBuffer(:,contrast_buffer_idx,:),[],1,2), 2); + use_hits(1) = sum(pooled_hits(1,(find(~isnan(pooled_hits(1,:)),trialsToBuffer/2)))); + use_hits(2) = sum(pooled_hits(2,(find(~isnan(pooled_hits(2,:)),trialsToBuffer/2)))); + min_hits = find(1 - binocdf(1:trialsToBuffer/2,trialsToBuffer/2,min_hit_percentage) < 0.05,1); + if all(use_hits >= min_hits) + trialData.useContrasts(find(~trialData.useContrasts,1)) = true; + end + end + + case 0.25 + % Lower from 0.25 contrast after > 50% correct + min_hit_percentage = 0.70; + + contrast_buffer_idx = ismember(trialData.contrastSet,current_min_contrast); + contrast_total_trials = sum(~isnan(trialData.hitBuffer(:,contrast_buffer_idx,:))); + % If there have been enough buffer trials, check performance + if sum(contrast_total_trials) >= size(trialData.hitBuffer,1) + % Sample as evenly as possible across pooled contrasts + pooled_hits = shiftdim(... + reshape(trialData.hitBuffer(:,contrast_buffer_idx,:),[],1,2), 2); + use_hits(1) = sum(pooled_hits(1,(find(~isnan(pooled_hits(1,:)),trialsToBuffer/2)))); + use_hits(2) = sum(pooled_hits(2,(find(~isnan(pooled_hits(2,:)),trialsToBuffer/2)))); + min_hits = find(1 - binocdf(1:trialsToBuffer/2,trialsToBuffer/2,min_hit_percentage) < 0.05,1); + if all(use_hits >= min_hits) + trialData.useContrasts(find(~trialData.useContrasts,1)) = true; + end + end + + case 0.125 + % Lower from 0.125 contrast after > 65% correct + min_hit_percentage = 0.65; + + contrast_buffer_idx = ismember(trialData.contrastSet,current_min_contrast); + contrast_total_trials = sum(~isnan(trialData.hitBuffer(:,contrast_buffer_idx,:))); + % If there have been enough buffer trials, check performance + if sum(contrast_total_trials) >= size(trialData.hitBuffer,1) + % Sample as evenly as possible across pooled contrasts + pooled_hits = shiftdim(... + reshape(trialData.hitBuffer(:,contrast_buffer_idx,:),[],1,2), 2); + use_hits(1) = sum(pooled_hits(1,(find(~isnan(pooled_hits(1,:)),trialsToBuffer/2)))); + use_hits(2) = sum(pooled_hits(2,(find(~isnan(pooled_hits(2,:)),trialsToBuffer/2)))); + min_hits = find(1 - binocdf(1:trialsToBuffer/2,trialsToBuffer/2,min_hit_percentage) < 0.05,1); + if all(use_hits >= min_hits) + trialData.useContrasts(find(~trialData.useContrasts,1)) = true; + end + end + +end + +% 200 trials after 12.5 % contrast introduced, put 6% +% 400 trials after 12.5 % contrast introduced, put 0% +% 600 trials after 12.5 % contrast introduced, remove 50% +if min(trialData.contrastSet(trialData.useContrasts)) <= 0.125 && ... + trialData.trialsToZeroContrast > 0 + % Subtract one from the countdown + trialData.trialsToZeroContrast = trialData.trialsToZeroContrast-1; + + if trialData.trialsToZeroContrast == 0 && ... + ~trialData.useContrasts(trialData.contrastSet == 0.06) + trialData.useContrasts(trialData.contrastSet == 0.06) = true; % Add 6% + trialData.trialsToZeroContrast = 200; % Reset counter + + elseif trialData.trialsToZeroContrast == 0 && ... + ~trialData.useContrasts(trialData.contrastSet == 0) + trialData.useContrasts(trialData.contrastSet == 0) = true; % Add 0% + trialData.trialsToZeroContrast = 200; % Reset counter + + elseif trialData.trialsToZeroContrast == 0 && ... + trialData.useContrasts(trialData.contrastSet == 0) + trialData.useContrasts(trialData.contrastSet == 0.5) = false; % Remove 50% + end +end + +%%%% Set flag to repeat - skip trial choice if so +if ~trialData.hit && any(trialData.repeatOnMiss==true) && ... + ismember(trialData.trialContrast,trialData.contrastSet(trialData.repeatOnMiss)) + % If the response is a no-go, repeat the same trial side + if response ~= 3 + % Otherwise take biased sample from normal distribution + sd = 0.5; % standard deviation + r = 0.5 + sd.*randn; % pull number from normal dist with mean 0.5 + trialData.trialSide = iff((r - bias) > 0.5, 1, -1); + % trialData.trialSide = iff(binornd(1,bias), + end + trialData.repeatTrial = true; + return +else + trialData.repeatTrial = false; +end + +%%%% Pick next contrast + +% Next contrast is random from current contrast set +contrasts = trialData.contrastSet(trialData.useContrasts); +w = ((contrasts~=0) + 1) / length(unique([contrasts, -contrasts])); +trialData.trialContrast = randsample(contrasts, 1, true, w); +%%%% Pick next side +trialData.trialSide = iff(rand <= 0.5, -1, 1); +end +function learned = isLearned(ref) +learned = false; +subject = dat.parseExpRef(ref); +expRef = dat.listExps(subject); +j = 1; +pooledCont = []; +pooledIncl = []; +pooledChoice = []; +for i = length(expRef):-1:1 + p = dat.expFilePath(expRef{i}, 'block', 'master'); + if exist(p,'file')==2 + % Block doesn't exist + p = fileparts(p); + else + fprintf('No block file for session %s: skipping\n', expRef{i}) + continue + end + try + feedback = readNPY(fullfile(p,'_ibl_trials.feedbackType.npy')); + contrastLeft = readNPY(fullfile(p,'_ibl_trials.contrastLeft.npy')); + contrastRight = readNPY(fullfile(p,'_ibl_trials.contrastRight.npy')); + incl = readNPY(fullfile(p,'_ibl_trials.included.npy')); + choice = readNPY(fullfile(p,'_ibl_trials.choice.npy')); + catch + warning('isLearned:ALFLoad:MissingFiles', ... + 'Unable to load files for session %s', expRef{i}) + continue + end + % If the zero contrast stimuli have not been introduced, the subject + % can't have learned. NB: Unfortunately if the hand of fate not once + % chose a zero contrast trial then the mouse would fail here, even if it + % was available to sample. This is fairly unlikely to happen and this + % method is much quicker than loading the block file to retreive the + % actual contrast set. + contrast = diff([contrastLeft,contrastRight],[],2); + if ~any(contrast==0) + fprintf('Low contrasts not yet introduced\n') + return + end + perfOnEasy = sum(feedback==1 & abs(contrast > 0.25)) / sum(abs(contrast > 0.25)); + if length(feedback) > 200 && perfOnEasy > 0.8 + pooledCont = [pooledCont; contrast]; + pooledIncl = [pooledIncl; incl]; + pooledChoice = [pooledChoice; choice]; + if j < 3 + j = j+1; + else + % All three sessions meet criteria + contrastSet = unique(pooledCont); + nn = arrayfun(@(c)sum(pooledCont==c & pooledIncl), contrastSet); + pp = arrayfun(@(c)sum(pooledCont==c & pooledIncl & pooledChoice==-1), contrastSet)./nn; + pars = psy.mle_fit_psycho([contrastSet';nn';pp'], 'erf_psycho_2gammas',... + [mean(contrastSet), 3, 0.05, 0.05],... + [min(contrastSet), 10, 0, 0],... + [max(contrastSet), 30, 0.4, 0.4]); + if abs(pars(1)) < 16 && pars(2) < 19 && pars(3) < 0.2 && pars(4) < 0.2 + learned = true; + else + fprintf('Fit parameter values below threshold\n') + return + end + end + else + fprintf('Low trial count or performance at high contrast\n') + return + end +end +end \ No newline at end of file diff --git a/tests/expDefinitions/choiceWorld_parameters.mat b/tests/expDefinitions/choiceWorld_parameters.mat new file mode 100644 index 0000000000000000000000000000000000000000..35d67dbd3e5e9d754c33dd1387b8e9ef492ba80f GIT binary patch literal 709 zcmeZu4DoSvQZUssQ1EpO(M`+DN!3vZ$Vn_o%P-2cQV4Jk_w+L}(NSB|pf+cGgQRLogBb$`CFp~&&t zpBLplLU=-wk`moTbvP7VRRbrt%KJ8JEtD?Me?Lk6=(oiE!Ojth@44z-o^Mjzc;MI( z9%&)&dZvA+pB9z(a&4`+WPLjR_v3W?{gby#B&$pJti5^7Y|XJ}*UtQkJGefgf5$T> zjxCXAvNycV`Ln8(S=F=HncYFh+&M=0RG_uAPb9BkL6wsHLc^avmrkgsEs#5w$gxYw zj(x3|cf_9=uOBj=OOR||=(4GJx6IR^DPG;H(h7w&Gam>%4UkPwQo7*ac|-Ifi>91f zHuvuR$GLnxdvyFYz9q8=H!NY~I&uBYf=)FXhD7!m%eJ}A)(>g@5a{6V*e=UqQZRY0 z!vdKl>bg0TZ+`wVA>!tmh*MFTCwCi*81@kRH>P0{v->Q~g}lFM8zqWLxTA*63^3qn4R-|8=cZ-IiIazPx_>v$x;Z{GGK` zK04j}{=ZxH*14jO@9cJ&bIa-TKl%N|jPK_@wk$Oe_ttj8Xs@}_TP-Xo(Wh1Ux66FKUh*X7)yBk= z!sm78J>PMDmhyM~pKInm&dRC1yI1b{*AE9@{uBRyF!lZ8^xAX2+%d_l*R>0-Z>syf z@Bf(_*KPm)k`+C2QakOB-X#mWProg!f`aG2d7WM}!%ddsviWtp>N Date: Wed, 20 Feb 2019 16:00:33 +0000 Subject: [PATCH 293/515] modify alyx_matlab --- alyx-matlab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alyx-matlab b/alyx-matlab index c5c5c1ba..a013557f 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit c5c5c1ba22dce86549ed56fd257c3852f5949391 +Subproject commit a013557feab80af3b90903a6b4cd06b8b5c85293 From fde8177a6a44164d8365b95b201c08955b5c4079 Mon Sep 17 00:00:00 2001 From: kevin-j-miller Date: Wed, 20 Feb 2019 16:01:37 +0000 Subject: [PATCH 294/515] move alyxpanel property to private setaccess --- +eui/MControl.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/MControl.m b/+eui/MControl.m index 9d5c201c..0c432533 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -17,10 +17,10 @@ properties LoggingDisplay % control for showing log output - AlyxPanel % holds the AlyxPanel object (see buildUI(), eui.AlyxPanel()) end properties (SetAccess = private) + AlyxPanel % holds the AlyxPanel object (see buildUI(), eui.AlyxPanel()) LogSubject % Subject selector control NewExpSubject % Experiment selector control NewExpType % Experiment type selector control From 6f07fc8ec517b60ec593733f3e57daea43221795 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 21 Feb 2019 18:32:30 +0200 Subject: [PATCH 295/515] Bugfix for registering hw info --- +srv/expServer.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/+srv/expServer.m b/+srv/expServer.m index 7fb3ca2f..7af7d14c 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -274,7 +274,8 @@ function handleMessage(id, data, host) rig.stimWindow.flip(); % clear the screen after % save a copy of the hardware in JSON - fid = fopen(dat.expFilePath(expRef, 'hw-info', 'master', 'json'), 'w'); + hwInfo = dat.expFilePath(expRef, 'hw-info', 'master', 'json'); + fid = fopen(hwInfo, 'w'); fprintf(fid, '%s', obj2json(rig)); fclose(fid); if ~strcmp(dat.parseExpRef(expRef), 'default') From 6bceeeaf5d3be0052534a2bab21264631839b2c5 Mon Sep 17 00:00:00 2001 From: Jai Bhagat Date: Thu, 21 Feb 2019 18:55:16 +0000 Subject: [PATCH 296/515] bugfix for registering hw.info --- +srv/expServer.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/+srv/expServer.m b/+srv/expServer.m index 7fb3ca2f..7af7d14c 100644 --- a/+srv/expServer.m +++ b/+srv/expServer.m @@ -274,7 +274,8 @@ function handleMessage(id, data, host) rig.stimWindow.flip(); % clear the screen after % save a copy of the hardware in JSON - fid = fopen(dat.expFilePath(expRef, 'hw-info', 'master', 'json'), 'w'); + hwInfo = dat.expFilePath(expRef, 'hw-info', 'master', 'json'); + fid = fopen(hwInfo, 'w'); fprintf(fid, '%s', obj2json(rig)); fclose(fid); if ~strcmp(dat.parseExpRef(expRef), 'default') From 9b5cb2a1840fb08e78e4a13a2052d8d495b2276c Mon Sep 17 00:00:00 2001 From: jaib1 Date: Fri, 22 Feb 2019 16:42:02 +0000 Subject: [PATCH 297/515] added test for 'vis.sinusoidLayer' and updated 'alyx' (dev) and 'signals' (dev) submodules --- alyx-matlab | 2 +- signals | 2 +- tests/sinusoidLayer_test.m | 49 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 tests/sinusoidLayer_test.m diff --git a/alyx-matlab b/alyx-matlab index a013557f..b44b998d 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit a013557feab80af3b90903a6b4cd06b8b5c85293 +Subproject commit b44b998da6323289adeaf404eddd637251174435 diff --git a/signals b/signals index c81b99e0..4b45e84b 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit c81b99e0922dbab9ab5d9a9770ff476c96fb6126 +Subproject commit 4b45e84b15b052bbba897126b9b6a27e4c7cd0e6 diff --git a/tests/sinusoidLayer_test.m b/tests/sinusoidLayer_test.m new file mode 100644 index 00000000..41fe9001 --- /dev/null +++ b/tests/sinusoidLayer_test.m @@ -0,0 +1,49 @@ +%% Test 1: vis.grating default values +azimuth = 0; spatialFreq = 1/15; phase = 0; orientation = 0; +[layer, image] = vis.sinusoidLayer(azimuth, spatialFreq, phase, orientation); +TestAns = [layer.texOffset(1), layer.texAngle, layer.size(1)]; +ExpectedAns = [0 0 15]; +assert(isequal(TestAns,ExpectedAns), 'Test 1 failed.'); + +%% Test 2: Negative Azimuth +azimuth = -90; spatialFreq = 1/15; phase = 0; orientation = 0; +[layer, image] = vis.sinusoidLayer(azimuth, spatialFreq, phase, orientation); +TestAns = [layer.texOffset(1), layer.texAngle, layer.size(1)]; +ExpectedAns = [-90 0 15]; +assert(isequal(TestAns,ExpectedAns), 'Test 2 failed.'); + +%% Test 3: High Spatial Frequency +azimuth = 0; spatialFreq = 2; phase = 0; orientation = 0; +[layer, image] = vis.sinusoidLayer(azimuth, spatialFreq, phase, orientation); +TestAns = round([layer.texOffset(1), layer.texAngle, layer.size(1)],4); +ExpectedAns = [0 0 0.5000]; +assert(isequal(TestAns,ExpectedAns), 'Test 3 failed.'); + + +%% Test 4: Negative Phase +azimuth = 0; spatialFreq = 1/15; phase = -90; orientation = 0; +[layer, image] = vis.sinusoidLayer(azimuth, spatialFreq, phase, orientation); +TestAns = round([layer.texOffset(1), layer.texAngle, layer.size(1)],4); +ExpectedAns = [10.1408 0 15.0000]; +assert(isequal(TestAns,ExpectedAns), 'Test 4 failed.'); + +%% Test 5: Negative Orientation +azimuth = 0; spatialFreq = 1/15; phase = 0; orientation = -90; +[layer, image] = vis.sinusoidLayer(azimuth, spatialFreq, phase, orientation); +TestAns = [layer.texOffset(1), layer.texAngle, layer.size(1)]; +ExpectedAns = [0 -90 15]; +assert(isequal(TestAns,ExpectedAns), 'Test 5 failed.'); + +%% Test 6: Non-zero values for all input args +azimuth = 45; spatialFreq = 7/15; phase = 30; orientation = 60; +[layer, image] = vis.sinusoidLayer(azimuth, spatialFreq, phase, orientation); +TestAns = round([layer.texOffset(1), layer.texAngle, layer.size(1)],4); +ExpectedAns = [24.1600 60.0000 2.1429]; +assert(isequal(TestAns,ExpectedAns), 'Test 6 failed.'); + +%% Test 7: Impossible Spatial Frequency +azimuth = 45; spatialFreq = -1/15; phase = 30; orientation = 60; +[layer, image] = vis.sinusoidLayer(azimuth, spatialFreq, phase, orientation); +TestAns = round([layer.texOffset(1), layer.texAngle, layer.size(1)],4); +ExpectedAns = [10.8803 60.0000 -15.0000]; +assert(isequal(TestAns,ExpectedAns), 'Test 7 failed.'); \ No newline at end of file From 5f1a10e60c01ec7f22656f7582013d4b3b651ed7 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 25 Feb 2019 16:18:57 +0200 Subject: [PATCH 298/515] Update readme Added coverage badge --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 6f6e5470..c2fed245 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,8 @@ ---------- # Rigbox +[![Coverage Status](https://coveralls.io/repos/github/cortex-lab/Rigbox/badge.svg?branch=master)](https://coveralls.io/github/cortex-lab/Rigbox?branch=master) + Rigbox is a (mostly) object-oriented MATLAB software package for designing and controlling neurophysiological behavioural experiments (principally, the [steering wheel setup](https://www.ucl.ac.uk/cortexlab/tools/wheel) which [we](https://www.ucl.ac.uk/cortexlab) developed to probe mouse behaviour). Rigbox requires two machines, one for stimulus presentation ('the stimulus server') and another for controlling and monitoring the experiment ('mc'). ## Getting Started From aa123dbe2618e48bfac39815f7c8e38f3a48f8a1 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 26 Feb 2019 15:52:17 +0200 Subject: [PATCH 299/515] Started AlyxPanel tests --- +eui/AlyxPanel.m | 4 ++-- alyx-matlab | 2 +- tests/+dat/paths.m | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index f8b6da14..1e367cf3 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -211,7 +211,7 @@ function delete(obj) end end - function login(obj) + function login(obj, varargin) % Used both to log in and out of Alyx. Logging means to % generate an Alyx token with which to send/request data. % Logging out does not cause the token to expire, instead the @@ -222,7 +222,7 @@ function login(obj) % Are we logging in or out? if ~obj.AlyxInstance.IsLoggedIn % logging in % attempt login - obj.AlyxInstance = obj.AlyxInstance.login(); % returns an instance if success, empty if you cancel + obj.AlyxInstance = obj.AlyxInstance.login(varargin{:}); % returns an instance if success, empty if you cancel if obj.AlyxInstance.IsLoggedIn % successful % Start log in timer, to automatically log out after 30 % minutes of 'inactivity' (defined as not calling diff --git a/alyx-matlab b/alyx-matlab index dd2ab36d..8b4f4f96 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit dd2ab36de59843edc94c15956967731d81173b74 +Subproject commit 8b4f4f96f7cfe4094cb4b2b8690aeb454f22c7b7 diff --git a/tests/+dat/paths.m b/tests/+dat/paths.m index 95e39049..7d22e839 100644 --- a/tests/+dat/paths.m +++ b/tests/+dat/paths.m @@ -18,9 +18,8 @@ p.rigbox = fileparts(which('addRigboxPaths')); % Repository for local copy of everything generated on this rig p.localRepository = 'C:\LocalExpData'; -p.localAlyxQueue = fullfile(p.rigbox, 'tests', 'data', 'alyx'); -p.databaseURL = 'https://alyx-dev.cortexlab.net'; -% p.databaseURL = 'https://dev.alyx.internationalbrainlab.org/'; +p.localAlyxQueue = fullfile(p.rigbox, 'alyx-matlab', 'tests', 'data'); +p.databaseURL = 'https://test.alyx.internationalbrainlab.org'; p.gitExe = 'C:\Program Files\Git\cmd\git.exe'; % Under the new system of having data grouped by mouse From cf9a2c2a4d940a443e46fa5ebdba62840d7f3923 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Wed, 27 Feb 2019 13:06:13 +0200 Subject: [PATCH 300/515] Change to validation params --- tests/expDefinitions/choiceWorld_parameters.mat | Bin 709 -> 701 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/tests/expDefinitions/choiceWorld_parameters.mat b/tests/expDefinitions/choiceWorld_parameters.mat index 35d67dbd3e5e9d754c33dd1387b8e9ef492ba80f..0a70ff65f120214e81f5776ea788184a1a589793 100644 GIT binary patch delta 614 zcmV-s0-62A1-%83G#FQ9WFSUmVjwa%ATcvKFflqbHXt%EF*%V@BavVQk#rD$H39$t zc$~eJzi$&U6vv&*kG2dI14x}%*ils$gpfi>)MVjD+n`G52HeZL1`GW6=3V7g2KA*pNpL@^GFY+cK{*)5P6NVVh<=CcpZqWA(PPF8e664Kucv^!IKtf41{SJHPFoU3u|s|LnBu#@Rk6 zj@z%91?FwtlWTZ#fd|)rGStgP!QJ==Zo}%&E}ag(ES`6L@@*0SxYu)g=M{Iy#vPu+ zHCM#lGUN5D%swppCeH0s_fPw%_hC?KR`A)!RZs4gC)f1k+JC_Xzi|OsTl4Ra;+)=i z^+#FP|9zf2p4@v6F8kkqZ5G_z;aV%Wp~GFY>)y@qp)$8|{tWv)B1*HXNQDE`)ATqz zz{#%jI%+jS97R(mTsv`{QRnzmvBZV<#Jot=ZN#tj6Zn%=%uz zuUL<`<^l+`S5Gh44{-KuSOeJ7`Xx908lto@p`A6sWP z-~QS^J8c!?+`B}a+CuYx{vW?{0q>pTJ$A>D`|QZo9k~rhuHnc%V1K`lDz};GcT@Y+ za^+uNKkfdQy-E4r1$=!4f5ZCwcZq$;>o!d7TgxR6w;c1=bmUy>v0=#*&n=$kxX+p+ z_b>UZo#Se3ecint=k@Tx>HZi0!Da8`XMN613tVFb*DG+>vVQwTzW>bF*FF9E9TmjM zD`xyI(l|cy`#3sMQ=jbXXMC7O9SGAm*FJlGFjg4Aq0*D#ZBfnFs`zV__(?yA4JpCc IAFB?~ekw&PWB>pF From 6d78c2c820216e06674792ccb7e4377c5e2cd842 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Thu, 28 Feb 2019 16:49:52 +0200 Subject: [PATCH 301/515] Fix for xlim when single water restricted weight --- +eui/AlyxPanel.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 1e367cf3..53d573fc 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -574,7 +574,7 @@ function viewSubjectHistory(obj, ax) box(ax, 'off'); % Change the plot x axis limits maxDate = max(dates([records.is_water_restricted]|~isnan([records.weighing_at]))); - if numel(dates) > 1 && ~isempty(maxDate) + if numel(dates) > 1 && ~isempty(maxDate) && min(dates) ~= maxDate xlim(ax, [min(dates) maxDate]) else maxDate = now; From 4f0cf69179993cddadf5160d19763f083cb67423 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 5 Mar 2019 14:08:38 +0200 Subject: [PATCH 302/515] Bug fix for differing def fun paths --- tests/inferParamsTest.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/inferParamsTest.m b/tests/inferParamsTest.m index a6e0a1bc..1b34cb19 100644 --- a/tests/inferParamsTest.m +++ b/tests/inferParamsTest.m @@ -12,6 +12,12 @@ pars = exp.inferParameters([expDefPath filesep 'advancedChoiceWorld.m']); load(fullfile(expDefPath, 'advancedChoiceWorld_parameters.mat')); +assert(strcmp(pars.defFunction, [expDefPath filesep 'advancedChoiceWorld.m']), ... + 'Incorrect expDef path') + +% Remove defFunction field before comparison +pars = rmfield(pars, 'defFunction'); +parameters = rmfield(parameters, 'defFunction'); assert(isequal(pars, parameters), 'Unexpected parameter struct returned') %% Test 2: choiceWorld @@ -19,6 +25,9 @@ pars = exp.inferParameters([expDefPath filesep 'choiceWorld.m']); load(fullfile(expDefPath, 'choiceWorld_parameters.mat')); +% Remove defFunction field before comparison +pars = rmfield(pars, 'defFunction'); +parameters = rmfield(parameters, 'defFunction'); assert(isequal(pars, parameters), 'Unexpected parameter struct returned') %% Test 3: single global parameter From 35a387060f523134ffddcdf8ff9b5d628df7f76d Mon Sep 17 00:00:00 2001 From: jaib1 Date: Fri, 15 Feb 2019 12:31:15 +0000 Subject: [PATCH 303/515] Rebased 'TestPanelClasses' onto 'dev' at diverge point c9c27a2 after pull request changes Test Panel as Classes modeled off SignalsExp & MControl variable name changes to exp.SignalsExp added 'cprintf.m' updated signals submodule updated signals submodule updates submodule signals updates signals submodule (TestPanelClasses branch) updated submodule signals (TestPanelClasses branch) MControl and mc commits to match dev branch alyx-related commits to match dev branch updated submodule signals (TestPanelClasses branch) updated submodule signals (TestPanelClasses branch) updated signals submodule (to 'TestPanelClasses' branch) and alyx-matlab(to 'dev' branch) and improved 'namedArg' updated signals submodule ('TestPanelClasses') after rebasing that branch in that submodule typo fix in 'hw.devices' made changes for Miles updated signals (TestPanelClasses) submodule Rebased 'TestPanelClasses' onto 'dev' at diverge point after pull request changes Rebased 'TestPanelClasses' onto 'dev' at diverge point Test Panel as Classes modeled off SignalsExp & MControl variable name changes to exp.SignalsExp added 'cprintf.m' updated signals submodule updated signals submodule updates submodule signals updates signals submodule (TestPanelClasses branch) updated submodule signals (TestPanelClasses branch) MControl and mc commits to match dev branch alyx-related commits to match dev branch updated submodule signals (TestPanelClasses branch) updated submodule signals (TestPanelClasses branch) updated signals submodule (to 'TestPanelClasses' branch) and alyx-matlab(to 'dev' branch) and improved 'namedArg' updated signals submodule ('TestPanelClasses') after rebasing that branch in that submodule typo fix in 'hw.devices' made changes for Miles updated signals (TestPanelClasses) submodule updated signals (TestPannelClasses) submodule after incorporating pull request changes undid variable name changes for Miles --- +eui/AlyxPanel.m | 20 ++++++++------ +eui/MControl.m | 2 +- +exp/SignalsExp.m | 2 ++ +exp/inferParameters.m | 55 ++++++++++++------------------------- +hw/devices.m | 6 ++-- alyx-matlab | 2 +- cb-tools/burgbox/namedArg.m | 2 +- cortexlab/+git/changes.m | 6 ---- signals | 2 +- 9 files changed, 39 insertions(+), 58 deletions(-) delete mode 100644 cortexlab/+git/changes.m diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index f8b6da14..ef221f98 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -217,6 +217,8 @@ function login(obj) % Logging out does not cause the token to expire, instead the % token is simply deleted from this object. + % Temporarily disable the Subject Selector + obj.NewExpSubject.UIControl.Enable = 'off'; % Reset headless flag in case user wishes to retry connection obj.AlyxInstance.Headless = false; % Are we logging in or out? @@ -282,6 +284,8 @@ function login(obj) notify(obj, 'Disconnected'); % Notify listeners of logout obj.log('Logged out of Alyx'); end + % Reable the Subject Selector + obj.NewExpSubject.UIControl.Enable = 'on'; obj.dispWaterReq() end @@ -314,7 +318,7 @@ function giveFutureWater(obj) 'enter space-separated numbers, i.e. \n',... '[tomorrow, day after that, day after that.. etc] \n\n',... 'Enter "0" to skip a day\nEnter "-1" to indicate training for that day\n']); - amtStr = inputdlg(prompt,'Future Amounts', [1 50]); + amtStr = newid(prompt,'Future Amounts', [1 50]); if isempty(amtStr)||~obj.AlyxInstance.IsLoggedIn return % user pressed 'Close' or 'x' end @@ -446,10 +450,10 @@ function recordWeight(obj, weight, subject) dlgTitle = 'Manual weight logging'; numLines = 1; defaultAns = {'',''}; - weight = inputdlg(prompt, dlgTitle, numLines, defaultAns); + weight = newid(prompt, dlgTitle, numLines, defaultAns); if isempty(weight); return; end end - % inputdlg returns weight as a cell, otherwise it may now be + % newid returns weight as a cell, otherwise it may now be weight = ensureCell(weight); % ensure it's a cell % convert to double if weight is a string weight = iff(ischar(weight{1}), str2double(weight{1}), weight{1}); @@ -601,13 +605,13 @@ function viewSubjectHistory(obj, ax) axWater = axes('Parent',plotBox); plot(axWater, dates, obj.round([records.given_water_total], 'up'), '.-'); hold(axWater, 'on'); - plot(axWater, dates, obj.round([records.given_water_hydrogel], 'down'), '.-'); - plot(axWater, dates, obj.round([records.given_water_liquid], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_supplement], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_reward], 'down'), '.-'); plot(axWater, dates, obj.round([records.expected_water], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); xlim(axWater, [min(dates) maxDate]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) - ylabel(axWater, 'water/hydrogel (mL)'); + ylabel(axWater, 'water (mL)'); % Create table of useful weight and water information, % sorted by date @@ -627,14 +631,14 @@ function viewSubjectHistory(obj, ax) arrayfun(@(x)iff(isnan(x), [], @()sprintf('%.1f', 0.8*(x-iw)+iw)), expected', 'uni', false), ... weightPctByDate'); waterDat = (... - num2cell(horzcat([records.given_water_liquid]', [records.given_water_hydrogel]', ... + num2cell(horzcat([records.given_water_reward]', [records.given_water_supplement]', ... [records.given_water_total]', [records.expected_water]',... [records.given_water_total]'-[records.expected_water]'))); waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); waterDat(~[records.is_water_restricted],[1,3]) = {'ad lib'}; dat = horzcat(dat, waterDat); - set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... + set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'supplement', 'total', 'min water', 'excess'}, ... 'Data', dat(end:-1:1,:),... 'ColumnEditable', false(1,5)); histbox.Widths = [ -1 725]; diff --git a/+eui/MControl.m b/+eui/MControl.m index 5b25075d..0c432533 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -20,6 +20,7 @@ end properties (SetAccess = private) + AlyxPanel % holds the AlyxPanel object (see buildUI(), eui.AlyxPanel()) LogSubject % Subject selector control NewExpSubject % Experiment selector control NewExpType % Experiment type selector control @@ -33,7 +34,6 @@ properties (Access = private) ParamEditor ParamPanel - AlyxPanel % holds the AlyxPanel object (see buildUI(), eui.AlyxPanel()) BeginExpButton % The 'Start' button that begins an experiment RigOptionsButton % The 'Options' button that opens the rig options dialog NewExpFactory % A struct containing all availiable experiment types and function handles to constructors for their default parameters diff --git a/+exp/SignalsExp.m b/+exp/SignalsExp.m index f616ea70..d2fb2631 100644 --- a/+exp/SignalsExp.m +++ b/+exp/SignalsExp.m @@ -720,6 +720,8 @@ function mainLoop(obj) obj.Data.stimWindowRenderTimes(obj.StimWindowUpdateCount) = renderTime; obj.StimWindowInvalid = false; end + % make sure some minimum time passes before updating signals, to + % improve performance on MC if (obj.Clock.now - t) > 0.1 || obj.IsLooping == false sendSignalUpdates(obj); t = obj.Clock.now; diff --git a/+exp/inferParameters.m b/+exp/inferParameters.m index 945845d1..275c964f 100644 --- a/+exp/inferParameters.m +++ b/+exp/inferParameters.m @@ -5,12 +5,6 @@ % create some signals just to pass to the definition function and track % which parameter names are used -% if ischar(expdef) && file.exists(expdef) -% expdeffun = fileFunction(expdef); -% else -% expdeffun = expdef; -% expdef = which(func2str(expdef)); -% end if ischar(expdef) && file.exists(expdef) expdeffun = fileFunction(expdef); else @@ -18,38 +12,28 @@ expdef = which(func2str(expdef)); end -net = sig.Net; -e = struct; -e.t = net.origin('t'); -e.events = net.subscriptableOrigin('events'); -e.pars = net.subscriptableOrigin('pars'); -e.pars.CacheSubscripts = true; -e.visual = net.subscriptableOrigin('visual'); -e.audio.Devices = @dummyDev; -e.inputs = net.subscriptableOrigin('inputs'); -e.outputs = net.subscriptableOrigin('outputs'); +e = sig.void; +pars = sig.void(true); +audio.Devices = @dummyDev; try + expdeffun(e.t, e.events, pars, e.visual, e.inputs, e.outputs, audio); - expdeffun(e.t, e.events, e.pars, e.visual, e.inputs, e.outputs, e.audio); - - % paramNames will be the strings corresponding to the fields of e.pars + % paramNames will be the strings corresponding to the fields of pars % that the user tried to reference in her expdeffun. - paramNames = e.pars.Subscripts.keys'; - %The paramValues are signals corresponding to those parameters and they - %will all be empty, except when they've been given explicit numerical - %definitions right at the end of the function - and in that case, we'll - %take those values (extracted into matlab datatypes, from the signals, - %using .Node.CurrValue) to be the desired default values. - paramValues = e.pars.Subscripts.values'; - parsStruct = cell2struct(cell(size(paramNames)), paramNames); - for i = 1:size(paramNames,1) - parsStruct.(paramNames{i}) = paramValues{i}.Node.CurrValue; - end + parsStruct = pars.Subscripts; + + % Check for reserved fieldnames + reserved = {'randomiseConditions', 'services', 'expPanelFun', ... + 'numRepeats', 'defFunction', 'waterType', 'isPassive'}; + assert(~any(ismember(fieldnames(parsStruct), reserved)), ... + 'exp:InferParameters:ReservedParameters', ... + 'The following param names are reserved:\n%s', ... + strjoin(intersect(fieldnames(parsStruct), reserved), ', ')) + + szFcn = @(a)iff(ischar(a), @()size(a,1), @()size(a,2)); sz = iff(isempty(fieldnames(parsStruct)), 1,... % if there are no paramters sz = 1 - structfun(@(a)size(a,2), parsStruct)); % otherwise get number of columns - isChar = structfun(@ischar, parsStruct); % we disregard charecter arrays - if any(isChar); sz = sz(~isChar); end + structfun(szFcn, parsStruct)); % otherwise get number of columns % add 'numRepeats' parameter, where total number of trials = 1000 parsStruct.numRepeats = ones(1,max(sz))*floor(1000/max(sz)); parsStruct.defFunction = expdef; @@ -60,12 +44,9 @@ ExpPanel_fn = [path filesep ExpPanel_name ext]; if exist(ExpPanel_fn,'file'); parsStruct.expPanelFun = ExpPanel_name; end catch ex - net.delete(); rethrow(ex) end -net.delete(); - function dev = dummyDev(~) % Returns a dummy audio device structure, regardless of input % Returns a standard structure with values for generating tone @@ -75,4 +56,4 @@ 'DefaultSampleRate', 44100,... 'NrOutputChannels', 2); end -end \ No newline at end of file +end diff --git a/+hw/devices.m b/+hw/devices.m index 2734fe92..1bba5908 100644 --- a/+hw/devices.m +++ b/+hw/devices.m @@ -69,8 +69,8 @@ % Get list of audio devices devs = getOr(rig, 'audioDevices', PsychPortAudio('GetDevices')); % Sanitize the names - names = matlab.lang.makeValidName([{'default'} {devs(2:end).DeviceName}],... - 'ReplacementStyle', 'delete'); + names = matlab.lang.makeValidName({devs.DeviceName}, 'ReplacementStyle', 'delete'); + names = iff(ismember('default', names), names, @()[{'default'} names(2:end)]); for i = 1:length(names); devs(i).DeviceName = names{i}; end rig.audioDevices = devs; end @@ -93,4 +93,4 @@ function configure(deviceName, usedaq) end end -end \ No newline at end of file +end diff --git a/alyx-matlab b/alyx-matlab index dd2ab36d..55e3e2ad 160000 --- a/alyx-matlab +++ b/alyx-matlab @@ -1 +1 @@ -Subproject commit dd2ab36de59843edc94c15956967731d81173b74 +Subproject commit 55e3e2adc57c42a1c84dbc0b8570c428f246f65d diff --git a/cb-tools/burgbox/namedArg.m b/cb-tools/burgbox/namedArg.m index 5e5820fb..72264f8a 100644 --- a/cb-tools/burgbox/namedArg.m +++ b/cb-tools/burgbox/namedArg.m @@ -8,7 +8,7 @@ % 2014-02 CB created -defIdx = find(cellfun(@(a) isequal(a, name), args), 1); +defIdx = find(cellfun(@(a) strcmpi(a, name), args), 1); if ~isempty(defIdx) present = true; value = args{defIdx + 1}; diff --git a/cortexlab/+git/changes.m b/cortexlab/+git/changes.m deleted file mode 100644 index d9e9f013..00000000 --- a/cortexlab/+git/changes.m +++ /dev/null @@ -1,6 +0,0 @@ -disp('Updating queued Alyx posts...') -posts = dirPlus(getOr(dat.paths, 'localAlyxQueue', 'C:/localAlyxQueue')); -posts = posts(endsWith(posts, 'put')); -newPosts = cellfun(@(str)[str(1:end-3) 'patch'], posts, 'uni', 0); -status = cellfun(@movefile, posts, newPosts); -assert(all(status), 'Unable to rename queued Alyx files, please do this manually') \ No newline at end of file diff --git a/signals b/signals index 93520307..ea8f85fe 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 93520307c1cb1a9dc12fa8bda685a01b9ab80401 +Subproject commit ea8f85fe28313ca9562f9a52ff58114b3f7ef6de From 86fcbbbe86861182737cd09501611382a2bd4e75 Mon Sep 17 00:00:00 2001 From: jaib1 Date: Thu, 7 Mar 2019 11:05:17 +0000 Subject: [PATCH 304/515] updated signals (dev) submodule --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index 8a56f9e6..01829db3 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 8a56f9e6b3b5cf0d37c34e5b0b948c2e55bb45d8 +Subproject commit 01829db30c43561a0ec7481b14cfa895e31c59bb From b6b47dba83c449c464fc8f1bc1f79efc0957b3ca Mon Sep 17 00:00:00 2001 From: jaib1 Date: Thu, 7 Mar 2019 12:35:30 +0000 Subject: [PATCH 305/515] updated signals (TestPanelClasses) submodule --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index ea8f85fe..38007424 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit ea8f85fe28313ca9562f9a52ff58114b3f7ef6de +Subproject commit 380074249abfd91b9f0be65fb3a9f5eb5b5944d6 From 6238fda95e8c724f6975d7ee3adfa3f2ffc1a5ea Mon Sep 17 00:00:00 2001 From: jaib1 Date: Thu, 7 Mar 2019 12:40:00 +0000 Subject: [PATCH 306/515] updated signals (dev, merged into from TestPanelClasses) submodule --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index 38007424..2350bac3 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 380074249abfd91b9f0be65fb3a9f5eb5b5944d6 +Subproject commit 2350bac34f61f0cecab49e7fcd9fa6c055157262 From 5be5059e4a336468534be169de98e39212d9940e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 8 Mar 2019 17:06:30 +0200 Subject: [PATCH 307/515] Added tests and bug fix for timer deletion --- +eui/AlyxPanel.m | 3 +- tests/AlyxPanelTest.m | 133 +++++++++++++++++++++++++++++++++ tests/data/viewSubjectData.mat | Bin 0 -> 8840 bytes 3 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 tests/AlyxPanelTest.m create mode 100644 tests/data/viewSubjectData.mat diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 53d573fc..7e4306d2 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -76,7 +76,8 @@ 'Toolbar', 'none',... 'NumberTitle', 'off',... 'Units', 'normalized',... - 'OuterPosition', [0.1 0.1 0.4 .4]); + 'OuterPosition', [0.1 0.1 0.4 .4],... + 'DeleteFcn', @(~,~)obj.delete); parent = uiextras.VBox('Parent', f,... 'Visible', 'on'); % subject selector diff --git a/tests/AlyxPanelTest.m b/tests/AlyxPanelTest.m new file mode 100644 index 00000000..b220d9cb --- /dev/null +++ b/tests/AlyxPanelTest.m @@ -0,0 +1,133 @@ +classdef AlyxPanelTest < matlab.unittest.TestCase + + properties + % Figure visibility setting before running tests + FigureVisibleDefault + % AlyxPanel instance + Panel + % Figure handle for AlyxPanel + hPanel + % Figure handle for any extra figures opened during tests + Figure + % List of subjects returned by the test database + Subjects = {'ZM_1085'; 'ZM_1087'; 'ZM_1094'; 'ZM_1098'; 'ZM_335'} + % bui.Selector object for setting the subject list in tests + SubjectUI + % Expected Y-axis labels for the viewSubjectHistory plots + Ylabels = {'water (mL)', 'weight as pct (%)', 'weight (g)'} + % The table data for the the viewSubjectHistory table + TableData + % Cell array of graph data for the the viewSubjectHistory plots. One + % cell per plot containing {xData, yData} arrays. + GraphData + end + + methods (TestClassSetup) + function killFigures(testCase) + testCase.FigureVisibleDefault = get(0,'DefaultFigureVisible'); + set(0,'DefaultFigureVisible','off'); + end + + function loadData(testCase) + % 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 + load('data/viewSubjectData.mat', 'tableData', 'graphData') + testCase.TableData = tableData; + testCase.GraphData = graphData; + end + + function setupPanel(testCase) + % Check paths file + assert(endsWith(which('dat.paths'), fullfile('tests','+dat','paths.m'))); + % Create figure for panel + testCase.hPanel = figure('Name', 'alyx GUI',... + 'MenuBar', 'none',... + 'Toolbar', 'none',... + 'NumberTitle', 'off',... + 'Units', 'normalized',... + 'OuterPosition', [0.1 0.1 0.4 .4]); + parent = uiextras.VBox('Parent', testCase.hPanel, 'Visible', 'on'); + testCase.Panel = eui.AlyxPanel(parent); + % subject selector + sbox = uix.HBox('Parent', parent); + bui.label('Select subject: ', sbox); + % Subject dropdown box + testCase.SubjectUI = bui.Selector(sbox, [{'default'}; testCase.Subjects]); + % set a callback on subject selection so that we can show water + % requirements for new mice as they are selected. This should + % be set by any other GUI that instantiates this object (e.g. + % MControl using this as a panel. + testCase.SubjectUI.addlistener('SelectionChanged', ... + @(src, evt)testCase.Panel.dispWaterReq(src, evt)); + + % Set Alyx Instance and log in + testCase.Panel.login('test_user', 'TapetesBloc18'); + testCase.fatalAssertTrue(testCase.Panel.AlyxInstance.IsLoggedIn,... + 'Failed to log into Alyx'); + end + end + + methods (TestClassTeardown) + function restoreFigures(testCase) + set(0,'DefaultFigureVisible',testCase.FigureVisibleDefault); + close(testCase.hPanel) + end + end + + methods (TestMethodTeardown) + function closeFigure(testCase) + % Close any figures opened during the test + if ~isempty(testCase.Figure); close(testCase.Figure); end + end + end + + methods (Test) + function test_viewSubjectHistory(testCase) + % Post some weights for plotting + + % Set new subject + testCase.SubjectUI.Selected = testCase.SubjectUI.Option{3}; + testCase.Panel.viewSubjectHistory + testCase.Figure = gcf(); + child_handles = testCase.Figure.Children.Children; + % Verify table data + testCase.assertTrue(isa(child_handles(1),'matlab.ui.control.Table')); + tableData = child_handles(1).Data; + testCase.verifyTrue(isequal(size(tableData), [ceil(now-737146) 9]), ... + 'Unexpected table data'); + expected = testCase.TableData; + % Remove empty days + idx = find(strcmp(expected{1,1}, tableData(:,1)),1); + tableData = tableData(idx:end,:); + testCase.verifyTrue(isequal(tableData, expected), 'Unexpected table data'); + + ax_h = child_handles(2).Children; + testCase.assertTrue(isa(ax_h, 'matlab.graphics.axis.Axes')) + testCase.assertTrue(length(ax_h)==3, 'Not all axes created') + + for i = 1:length(ax_h) + label = testCase.Ylabels{i}; + testCase.verifyEqual(ax_h(i).YLabel.String, label); + testCase.verifyEqual(length(ax_h(i).Children), ... + size(testCase.GraphData{i}{1},1)); + xData = vertcat(ax_h(i).Children(:).XData); + yData = vertcat(ax_h(i).Children(:).YData); + testCase.verifyEqual(xData, testCase.GraphData{i}{1}); + testCase.verifyEqual(yData, testCase.GraphData{i}{2}); + end + end + + function test_viewAllSubjects(testCase) + testCase.Panel.viewAllSubjects; + testCase.Figure = gcf(); + child_handle = testCase.Figure.Children.Children; + tableData = child_handle.Data; + expected = {'algernon', '0.00', '0.00'}; + testCase.verifyTrue(isequal(tableData, expected)); + end + + end + +end \ No newline at end of file diff --git a/tests/data/viewSubjectData.mat b/tests/data/viewSubjectData.mat new file mode 100644 index 0000000000000000000000000000000000000000..7bd663b95c8630a659a07ceec01f7ad4a4d5371f GIT binary patch literal 8840 zcma)hcT`i~voF0j6$Gh4K~Rvc1PFv8AW~I&FDlY&gisPXh#(>;pg<@hMLH;*&{0YP z(tDKvq4y+&Jiq1L_j~vLbN5!W>pr9PjHYn_f0AR_<-!z5RP+4+r7%gskA5226JF!ho2- z>+Y*eN!<^HT{EH_tNdp?U!#TZjcs4ymiHR1)!Ej%!|kzYrsD9l3<+*MySgAkfE!m; z!f)Zz^os11?+|^~FtyDv^V~4y)cPyi z^~BzNs_gp$N1EWHUNWXG08fV?#{Q7OMx_KM=C8xcC8f!P!gvUjgvIXiZuB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O{1e5)tDFvvUNgsnmK&Z~R(wn#E6;K7(Qf Q9Ak2j5=>Ti*GKdJ03HqOoB#j- literal 0 HcmV?d00001 From 447eb42415e4046364da2deac6606ce2c4f34a43 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Fri, 8 Mar 2019 18:06:04 +0200 Subject: [PATCH 308/515] Last weight used in calculation for subject history plots --- +eui/AlyxPanel.m | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/+eui/AlyxPanel.m b/+eui/AlyxPanel.m index 7e4306d2..e8b24c6c 100644 --- a/+eui/AlyxPanel.m +++ b/+eui/AlyxPanel.m @@ -554,8 +554,10 @@ function viewSubjectHistory(obj, ax) obj.log('No weight data found for subject %s', obj.Subject); return end + weights = [records.weight]; + weights(isnan([records.weighing_at])) = nan; expected = [records.expected_weight]; - expected(expected==0|isnan([records.weighing_at])) = nan; + expected(expected==0|isnan(weights)) = nan; dates = cellfun(@(x)datenum(x), {records.date}); % build the figure to show it @@ -568,13 +570,13 @@ function viewSubjectHistory(obj, ax) ax = axes('Parent', plotBox); end - plot(ax, dates, [records.weighing_at], '.-'); + plot(ax, dates, weights, '.-'); hold(ax, 'on'); plot(ax, dates, ((expected-iw)*0.7)+iw, 'r', 'LineWidth', 2.0); plot(ax, dates, ((expected-iw)*0.8)+iw, 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); box(ax, 'off'); % Change the plot x axis limits - maxDate = max(dates([records.is_water_restricted]|~isnan([records.weighing_at]))); + maxDate = max(dates([records.is_water_restricted]|~isnan(weights))); if numel(dates) > 1 && ~isempty(maxDate) && min(dates) ~= maxDate xlim(ax, [min(dates) maxDate]) else @@ -590,7 +592,7 @@ function viewSubjectHistory(obj, ax) if nargin==1 ax = axes('Parent', plotBox); - plot(ax, dates, ([records.weighing_at]-iw)./(expected-iw), '.-'); + plot(ax, dates, (weights-iw)./(expected-iw), '.-'); hold(ax, 'on'); plot(ax, dates, 0.7*ones(size(dates)), 'r', 'LineWidth', 2.0); plot(ax, dates, 0.8*ones(size(dates)), 'LineWidth', 2.0, 'Color', [244, 191, 66]/255); @@ -602,25 +604,25 @@ function viewSubjectHistory(obj, ax) axWater = axes('Parent',plotBox); plot(axWater, dates, obj.round([records.given_water_total], 'up'), '.-'); hold(axWater, 'on'); - plot(axWater, dates, obj.round([records.given_water_hydrogel], 'down'), '.-'); - plot(axWater, dates, obj.round([records.given_water_liquid], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_supplement], 'down'), '.-'); + plot(axWater, dates, obj.round([records.given_water_reward], 'down'), '.-'); plot(axWater, dates, obj.round([records.expected_water], 'up'), 'r', 'LineWidth', 2.0); box(axWater, 'off'); xlim(axWater, [min(dates) maxDate]); set(axWater, 'XTickLabel', arrayfun(@(x)datestr(x, 'dd-mmm'), get(axWater, 'XTick'), 'uni', false)) - ylabel(axWater, 'water/hydrogel (mL)'); + ylabel(axWater, 'water (mL)'); % Create table of useful weight and water information, % sorted by date histTable = uitable('Parent', histbox,... 'FontName', 'Consolas',... 'RowName', []); - weightsByDate = num2cell([records.weighing_at]); + weightsByDate = num2cell(weights); weightsByDate = cellfun(@(x)sprintf('%.1f', x), weightsByDate, 'uni', false); - weightsByDate(isnan([records.weighing_at])) = {[]}; - weightPctByDate = num2cell(([records.weighing_at]-iw)./(expected-iw)); + weightsByDate(isnan(weights)) = {[]}; + weightPctByDate = num2cell((weights-iw)./(expected-iw)); weightPctByDate = cellfun(@(x)sprintf('%.1f', x*100), weightPctByDate, 'uni', false); - weightPctByDate(isnan([records.weighing_at])|~[records.is_water_restricted]) = {[]}; + weightPctByDate(isnan(weights)|~[records.is_water_restricted]) = {[]}; dat = horzcat(... arrayfun(@(x)datestr(x), dates', 'uni', false), ... @@ -628,14 +630,14 @@ function viewSubjectHistory(obj, ax) arrayfun(@(x)iff(isnan(x), [], @()sprintf('%.1f', 0.8*(x-iw)+iw)), expected', 'uni', false), ... weightPctByDate'); waterDat = (... - num2cell(horzcat([records.given_water_liquid]', [records.given_water_hydrogel]', ... + num2cell(horzcat([records.given_water_reward]', [records.given_water_supplement]', ... [records.given_water_total]', [records.expected_water]',... [records.given_water_total]'-[records.expected_water]'))); waterDat = cellfun(@(x)sprintf('%.2f', x), waterDat, 'uni', false); waterDat(~[records.is_water_restricted],[1,3]) = {'ad lib'}; dat = horzcat(dat, waterDat); - set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'hydrogel', 'total', 'min water', 'excess'}, ... + set(histTable, 'ColumnName', {'date', 'meas. weight', '80% weight', 'weight pct', 'water', 'supplement', 'total', 'min water', 'excess'}, ... 'Data', dat(end:-1:1,:),... 'ColumnEditable', false(1,5)); histbox.Widths = [ -1 725]; From df607ec3ae2d42d6b0ef1543156406d13a90e10e Mon Sep 17 00:00:00 2001 From: k1o0 Date: Sun, 10 Mar 2019 12:56:02 +0200 Subject: [PATCH 309/515] Revert irrelevent commits --- +eui/ConditionPanel.m | 254 ---------------- +eui/FieldPanel.m | 165 ----------- +eui/MControl.m | 24 +- +eui/ParamEditor.m | 632 +++++++++++++++++++++++++++------------- +eui/ParamEditor_old.m | 516 -------------------------------- +exp/Parameters.m | 10 +- cortexlab/+git/update.m | 2 +- signals | 2 +- 8 files changed, 438 insertions(+), 1167 deletions(-) delete mode 100644 +eui/ConditionPanel.m delete mode 100644 +eui/FieldPanel.m delete mode 100644 +eui/ParamEditor_old.m diff --git a/+eui/ConditionPanel.m b/+eui/ConditionPanel.m deleted file mode 100644 index eacd317f..00000000 --- a/+eui/ConditionPanel.m +++ /dev/null @@ -1,254 +0,0 @@ -classdef ConditionPanel < handle - %UNTITLED Summary of this class goes here - % Detailed explanation goes here - % TODO Document - % TODO Add sort by column - % TODO Add set condition idx - % TODO Use tags for menu items - - properties - ConditionTable - MinWidth = 80 -% MaxWidth = 140 -% Margin = 4 - UIPanel - ButtonPanel - ContextMenus - end - - properties %(Access = protected) - ParamEditor - Listener - NewConditionButton - DeleteConditionButton - MakeGlobalButton - SetValuesButton - SelectedCells %[row, column;...] of each selected cell - end - - methods - function obj = ConditionPanel(f, ParamEditor, varargin) - obj.ParamEditor = ParamEditor; - obj.UIPanel = uix.VBox('Parent', f, 'BackgroundColor', 'white'); - % Create a child menu for the uiContextMenus - c = uicontextmenu; - obj.UIPanel.UIContextMenu = c; - obj.ContextMenus = uimenu(c, 'Label', 'Make Global', 'MenuSelectedFcn', @(~,~)obj.makeGlobal); - fcn = @(s,~)obj.ParamEditor.setRandomized(~strcmp(s.Checked, 'on')); - obj.ContextMenus(2) = uimenu(c, 'Label', 'Randomize conditions', ... - 'MenuSelectedFcn', fcn, 'Checked', 'on', 'Tag', 'randomize button'); - obj.ContextMenus(3) = uimenu(c, 'Label', 'Sort by selected column', ... - 'MenuSelectedFcn', @(~,~)disp('feature not yet implemented'), 'Tag', 'sort by'); - % Create condition table - p = uix.Panel('Parent', obj.UIPanel); - obj.ConditionTable = uitable('Parent', p,... - 'FontName', 'Consolas',... - 'RowName', [],... - 'RearrangeableColumns', true,... - 'Units', 'normalized',... - 'Position',[0 0 1 1],... - 'UIContextMenu', c,... - 'CellEditCallback', @obj.onEdit,... - 'CellSelectionCallback', @obj.onSelect); - % Create button panel to hold condition control buttons - obj.ButtonPanel = uix.HBox('Parent', obj.UIPanel, ... - 'BackgroundColor', 'white'); - % Create callback so that width of button panel is slave to width of - % conditional UIPanel -% b = obj.ButtonPanel; -% fcn = @(s)set(obj.ButtonPanel, 'Position', ... -% [s.Position(1) b.Position(2) s.Position(3) b.Position(4)]); -% obj.Listener = event.listener(obj.UIPanel, 'SizeChanged', @(s,~)fcn(s)); - % Define some common properties - props.BackgroundColor = 'white'; - props.Style = 'pushbutton'; - props.Units = 'normalized'; - props.Parent = obj.ButtonPanel; - % Create out four buttons - obj.NewConditionButton = uicontrol(props,... - 'String', 'New condition',... - ...'Position',[0 0 1/4 1],... - 'TooltipString', 'Add a new condition',... - 'Callback', @(~, ~) obj.newCondition()); - obj.DeleteConditionButton = uicontrol(props,... - 'String', 'Delete condition',... - ...'Position',[1/4 0 1/4 1],... - 'TooltipString', 'Delete the selected condition',... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.deleteSelectedConditions()); - obj.MakeGlobalButton = uicontrol(props,... - 'String', 'Globalise parameter',... - ...'Position',[2/4 0 1/4 1],... - 'TooltipString', sprintf(['Make the selected condition-specific parameter global (i.e. not vary by trial)\n'... - 'This will move it to the global parameters section']),... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.makeGlobal()); - obj.SetValuesButton = uicontrol(props,... - 'String', 'Set values',... - ...'Position',[3/4 0 1/4 1],... - 'TooltipString', 'Set selected values to specified value, range or function',... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.setSelectedValues()); - obj.ButtonPanel.Widths = [-1 -1 -1 -1]; - obj.UIPanel.Heights = [-1 25]; - end - - function onEdit(obj, src, eventData) - disp('updating table cell'); - row = eventData.Indices(1); - col = eventData.Indices(2); - paramName = obj.ConditionTable.ColumnName{col}; - newValue = obj.ParamEditor.update(paramName, eventData.NewData, row); - reformed = obj.ParamEditor.paramValue2Control(newValue); - % If successful update the cell with default formatting - data = get(src, 'Data'); - if iscell(reformed) - % The reformed data type is a cell, this should be a one element - % wrapping cell - if numel(reformed) == 1 - reformed = reformed{1}; - else - error('Cannot handle data reformatted data type'); - end - end - data{row,col} = reformed; - set(src, 'Data', data); - end - - function clear(obj) - set(obj.ConditionTable, 'ColumnName', [], ... - 'Data', [], 'ColumnEditable', false); - end - - function delete(obj) - disp('delete called'); - delete(obj.UIPanel); - end - - function onSelect(obj, ~, eventData) - obj.SelectedCells = eventData.Indices; - if size(eventData.Indices, 1) > 0 - % cells selected, enable buttons - set(obj.MakeGlobalButton, 'Enable', 'on'); - set(obj.DeleteConditionButton, 'Enable', 'on'); - set(obj.SetValuesButton, 'Enable', 'on'); - set(obj.ContextMenus(1), 'Enable', 'on'); - set(obj.ContextMenus(3), 'Enable', 'on'); - else - % nothing selected, disable buttons - set(obj.MakeGlobalButton, 'Enable', 'off'); - set(obj.DeleteConditionButton, 'Enable', 'off'); - set(obj.SetValuesButton, 'Enable', 'off'); - set(obj.ContextMenus(1), 'Enable', 'off'); - set(obj.ContextMenus(3), 'Enable', 'off'); - end - end - - function makeGlobal(obj) - if isempty(obj.SelectedCells) - disp('nothing selected') - return - end - [cols, iu] = unique(obj.SelectedCells(:,2)); - names = obj.ConditionTable.ColumnName(cols); - rows = num2cell(obj.SelectedCells(iu,1)); %get rows of unique selected cols - PE = obj.ParamEditor; - cellfun(@PE.globaliseParamAtCell, names, rows); - end - - function deleteSelectedConditions(obj) - %DELETESELECTEDCONDITIONS Removes the selected conditions from table - % The callback for the 'Delete condition' button. This removes the - % selected conditions from the table and if less than two conditions - % remain, globalizes them. - % TODO: comment function better, index in a clearer fashion - % - % See also EXP.PARAMETERS, GLOBALISESELECTEDPARAMETERS - rows = unique(obj.SelectedCells(:,1)); - names = obj.ConditionTable.ColumnName; - numConditions = size(obj.ConditionTable.Data,2); - % If the number of remaining conditions is 1 or less... - if numConditions-length(rows) <= 1 - remainingIdx = find(all(1:numConditions~=rows,1)); - if isempty(remainingIdx); remainingIdx = 1; end - % change selected cells to be all fields (except numRepeats which - % is assumed to always be the last column) - obj.SelectedCells =[ones(length(names),1)*remainingIdx, (1:length(names))']; - %... globalize them - obj.makeGlobal; - else % Otherwise delete the selected conditions as usual - obj.ParamEditor.Parameters.removeConditions(rows); %FIXME: Should be in ParamEditor - end - % Refresh the table of conditions FIXME: Should be in ParamEditor - obj.ParamEditor.fillConditionTable(); - end - - function setSelectedValues(obj) % Set multiple fields in conditional table - disp('updating table cells'); - cols = obj.SelectedCells(:,2); % selected columns - uCol = unique(obj.SelectedCells(:,2)); - rows = obj.SelectedCells(:,1); % selected rows - % get current values of selected cells - currVals = arrayfun(@(u)obj.ConditionTable.Data(rows(cols==u),u), uCol, 'UniformOutput', 0); - names = obj.ConditionTable.ColumnName(uCol); % selected column names - promt = cellfun(@(a,b) [a ' (' num2str(sum(cols==b)) ')'],... - names, num2cell(uCol), 'UniformOutput', 0); % names of columns & num selected rows - defaultans = cellfun(@(c) c(1), currVals); - answer = inputdlg(promt,'Set values', 1, cellflat(defaultans)); % prompt for input - if isempty(answer) % if user presses cancel - return - end - % set values for each column - cellfun(@(a,b,c) setNewVals(a,b,c), answer, currVals, names, 'UniformOutput', 0); - function newVals = setNewVals(userIn, currVals, paramName) - % check array orientation - currVals = iff(size(currVals,1)>size(currVals,2),currVals',currVals); - if strStartsWith(userIn,'@') % anon function - func_h = str2func(userIn); - % apply function to each cell - currVals = cellfun(@str2double,currVals, 'UniformOutput', 0); % convert from char - newVals = cellfun(func_h, currVals, 'UniformOutput', 0); - elseif any(userIn==':') % array syntax - arr = eval(userIn); - newVals = num2cell(arr); % convert to cell array - elseif any(userIn==','|userIn==';') % 2D arrays - C = strsplit(userIn, ';'); - newVals = cellfun(@(c)textscan(c, '%f',... - 'ReturnOnError', false,... - 'delimiter', {' ', ','}, 'MultipleDelimsAsOne', 1),... - C); - else % single value to copy across all cells - userIn = str2double(userIn); - newVals = num2cell(ones(size(currVals))*userIn); - end - - if length(newVals)>length(currVals) % too many new values - newVals = newVals(1:length(currVals)); % truncate new array - elseif length(newVals) 5; w = 0.5; else; w = 0.1 * w; end -% obj.UI(2).Position = [1-w 0 w 1]; -% obj.UI(1).Position = [0 0 1-w 1]; - - %%% general coordinates - pos = getpixelposition(obj.UIPanel); - borderwidth = obj.Margin; - bounds = [pos(3) pos(4)] - 2*borderwidth; - n = numel(obj.Labels); - vspace = obj.RowSpacing; - hspace = obj.ColSpacing; - rowHeight = obj.MinRowHeight + 2*vspace; - rowsPerCol = floor(bounds(2)/rowHeight); - cols = ceil((1:n)/rowsPerCol)'; - ncols = cols(end); - rows = mod(0:n - 1, rowsPerCol)' + 1; - labelColWidth = max(obj.LabelWidths) + 2*hspace; - ctrlWidthAvail = bounds(1)/ncols - labelColWidth; - ctrlColWidth = max(obj.MinCtrlWidth, min(ctrlWidthAvail, obj.MaxCtrlWidth)); - fullColWidth = labelColWidth + ctrlColWidth; - - %%% coordinates of labels - by = bounds(2) - rows*rowHeight + vspace + 1 + borderwidth; - labelPos = [vspace + (cols - 1)*fullColWidth + 1 + borderwidth... - by... - obj.LabelWidths... - repmat(rowHeight - 2*vspace, n, 1)]; - - %%% coordinates of edits - editPos = [labelColWidth + hspace + (cols - 1)*fullColWidth + 1 + borderwidth ... - by... - repmat(ctrlColWidth - 2*hspace, n, 1)... - repmat(rowHeight - 2*vspace, n, 1)]; - set(obj.Labels, {'Position'}, num2cell(labelPos, 2)); - set(obj.Controls, {'Position'}, num2cell(editPos, 2)); - - end - end - -end - diff --git a/+eui/MControl.m b/+eui/MControl.m index 69c8628d..5b25075d 100644 --- a/+eui/MControl.m +++ b/+eui/MControl.m @@ -247,10 +247,10 @@ function saveParamProfile(obj) % Called by 'Save...' button press, save a new pa end function loadParamProfile(obj, profile) - set(obj.ParamProfileLabel, 'String', 'loading...', 'ForegroundColor', [1 0 0]); % Red 'Loading...' while new set loads if ~isempty(obj.ParamEditor) - % Clear existing parameters control - clear(obj.ParamEditor) + %delete existing parameters control + delete(obj.ParamEditor); + set(obj.ParamProfileLabel, 'String', 'loading...', 'ForegroundColor', [1 0 0]); % Red 'Loading...' while new set loads end factory = obj.NewExpFactory; % Find which 'world' we are in @@ -305,18 +305,12 @@ function loadParamProfile(obj, profile) paramStruct = rmfield(paramStruct, 'services'); end obj.Parameters.Struct = paramStruct; - if isempty(paramStruct); return; end - % Now parameters are loaded, pass to ParamEditor for display, etc. - if isempty(obj.ParamEditor) - panel = uipanel('Parent', obj.ParamPanel, 'Position', [0 0 1 1]); -% panel = uiextras.Panel('Parent', obj.ParamPanel); - obj.ParamEditor = eui.ParamEditor(obj.Parameters, panel); % Build parameter list in Global panel by calling eui.ParamEditor - else - obj.ParamEditor.buildUI(obj.Parameters); - end - obj.ParamEditor.addlistener('Changed', @(src,~) obj.paramChanged); - if strcmp(obj.RemoteRigs.Selected.Status, 'idle') - set(obj.BeginExpButton, 'Enable', 'on') % Re-enable start button + if ~isempty(paramStruct) % Now parameters are loaded, pass to ParamEditor for display, etc. + obj.ParamEditor = eui.ParamEditor(obj.Parameters, obj.ParamPanel); % Build parameter list in Global panel by calling eui.ParamEditor + obj.ParamEditor.addlistener('Changed', @(src,~) obj.paramChanged); + if strcmp(obj.RemoteRigs.Selected.Status, 'idle') + set(obj.BeginExpButton, 'Enable', 'on') % Re-enable start button + end end end diff --git a/+eui/ParamEditor.m b/+eui/ParamEditor.m index 4c375b7e..75aca882 100644 --- a/+eui/ParamEditor.m +++ b/+eui/ParamEditor.m @@ -1,130 +1,155 @@ classdef ParamEditor < handle - %UNTITLED2 Summary of this class goes here - % Detailed explanation goes here + %EUI.PARAMEDITOR UI control for configuring experiment parameters + % TODO. See also EXP.PARAMETERS. + % + % Part of Rigbox + + % 2012-11 CB created + % 2017-03 MW/NS Made global panel scrollable & improved performance of + % buildGlobalUI. + % 2017-03 MW Added set values button properties + GlobalVSpacing = 20 Parameters end - properties %(Access = private) - UIPanel - GlobalUI - ConditionalUI - Parent - Listener - end - properties (Dependent) Enable end + properties (Access = private) + Root + GlobalGrid + ConditionTable + TableColumnParamNames = {} + NewConditionButton + DeleteConditionButton + MakeGlobalButton + SetValuesButton + SelectedCells %[row, column;...] of each selected cell + GlobalControls + end + events Changed end methods - function obj = ParamEditor(pars, f) - if nargin == 0; pars = []; end - if nargin < 2 - f = figure('Name', 'Parameters', 'NumberTitle', 'off',... - 'Toolbar', 'none', 'Menubar', 'none', 'DeleteFcn', @(~,~)obj.delete); - obj.Listener = event.listener(f, 'SizeChanged', @(~,~)obj.onResize); + function obj = ParamEditor(params, parent) + if nargin < 2 % Can call this function to display parameters is new window + parent = figure('Name', 'Parameters', 'NumberTitle', 'off',... + 'Toolbar', 'none', 'Menubar', 'none'); end - obj.Parent = f; - obj.UIPanel = uix.HBox('Parent', f); - obj.GlobalUI = eui.FieldPanel(obj.UIPanel, obj); - obj.ConditionalUI = eui.ConditionPanel(obj.UIPanel, obj); - obj.buildUI(pars); + obj.Parameters = params; + obj.build(parent); end function delete(obj) - delete(obj.GlobalUI); - delete(obj.ConditionalUI); - end - - function set.Enable(obj, value) - cUI = obj.ConditionalUI; - fig = obj.Parent; - if value == true - arrayfun(@(prop) set(prop, 'Enable', 'on'), findobj(fig,'Enable','off')); - if isempty(cUI.SelectedCells) - set(cUI.MakeGlobalButton, 'Enable', 'off'); - set(cUI.DeleteConditionButton, 'Enable', 'off'); - set(cUI.SetValuesButton, 'Enable', 'off'); - end - obj.Enable = true; - else - arrayfun(@(prop) set(prop, 'Enable', 'off'), findobj(fig,'Enable','on')); - obj.Enable = false; + disp('ParamEditor destructor called'); + if obj.Root.isvalid + obj.Root.delete(); end end - function clear(obj) - clear(obj.GlobalUI); - clear(obj.ConditionalUI); + function value = get.Enable(obj) + value = obj.Root.Enable; end - function buildUI(obj, pars) - obj.Parameters = pars; - obj.clear() - c = obj.GlobalUI; - names = pars.GlobalNames; - for nm = names' - if strcmp(nm, 'randomiseConditions'); continue; end - if islogical(pars.Struct.(nm{:})) % If parameter is logical, make checkbox - ctrl = uicontrol('Parent', c.UIPanel, 'Style', 'checkbox', ... - 'Value', pars.Struct.(nm{:}), 'BackgroundColor', 'white'); - addField(c, nm{:}, ctrl); - else - [~, ctrl] = addField(c, nm{:}); - ctrl.String = obj.paramValue2Control(pars.Struct.(nm{:})); - end - end + function set.Enable(obj, value) + obj.Root.Enable = value; + end + end + + methods %(Access = protected) + function build(obj, parent) % Build parameters panel + obj.Root = uiextras.HBox('Parent', parent, 'Padding', 5, 'Spacing', 5); % Add horizontal container for Global and Conditional panels +% globalPanel = uiextras.Panel('Parent', obj.Root,... % Make 'Global' parameters panel +% 'Title', 'Global', 'Padding', 5); + globPanel = uiextras.Panel('Parent', obj.Root,... % Make 'Global' parameters panel + 'Title', 'Global', 'Padding', 5); + globalPanel = uix.ScrollingPanel('Parent', globPanel,... % Make 'Global' scroll panel + 'Padding', 5); + + obj.GlobalGrid = uiextras.Grid('Parent', globalPanel, 'Padding', 4); % Make grid for parameter fields + obj.buildGlobalUI; % Populate Global panel + globalPanel.Heights = sum(obj.GlobalGrid.RowSizes)+45; + + conditionPanel = uiextras.Panel('Parent', obj.Root,... + 'Title', 'Conditional', 'Padding', 5); % Make 'Conditional' parameters panel + conditionVBox = uiextras.VBox('Parent', conditionPanel); + obj.ConditionTable = uitable('Parent', conditionVBox,... + 'FontName', 'Consolas',... + 'RowName', [],... + 'CellEditCallback', @obj.cellEditCallback,... + 'CellSelectionCallback', @obj.cellSelectionCallback); obj.fillConditionTable(); - %%% Special parameters - if ismember('randomiseConditions', obj.Parameters.Names) && ~pars.Struct.randomiseConditions - obj.ConditionalUI.ConditionTable.RowName = 'numbered'; - set(obj.ConditionalUI.ContextMenus(2), 'Checked', 'off'); - end - obj.GlobalUI.onResize(); + conditionButtonBox = uiextras.HBox('Parent', conditionVBox); + conditionVBox.Sizes = [-1 25]; + obj.NewConditionButton = uicontrol('Parent', conditionButtonBox,... + 'Style', 'pushbutton',... + 'String', 'New condition',... + 'TooltipString', 'Add a new condition',... + 'Callback', @(~, ~) obj.newCondition()); + obj.DeleteConditionButton = uicontrol('Parent', conditionButtonBox,... + 'Style', 'pushbutton',... + 'String', 'Delete condition',... + 'TooltipString', 'Delete the selected condition',... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.deleteSelectedConditions()); + obj.MakeGlobalButton = uicontrol('Parent', conditionButtonBox,... + 'Style', 'pushbutton',... + 'String', 'Globalise parameter',... + 'TooltipString', sprintf(['Make the selected condition-specific parameter global (i.e. not vary by trial)\n'... + 'This will move it to the global parameters section']),... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.globaliseSelectedParameters()); + obj.SetValuesButton = uicontrol('Parent', conditionButtonBox,... + 'Style', 'pushbutton',... + 'String', 'Set values',... + 'TooltipString', 'Set selected values to specified value, range or function',... + 'Enable', 'off',... + 'Callback', @(~, ~) obj.setSelectedValues()); + + obj.Root.Sizes = [sum(obj.GlobalGrid.ColumnSizes) + 32, -1]; end - function setRandomized(obj, value) - % If randomiseConditions doesn't exist and new value is false, add - % the parameter and set it to false - if ~ismember('randomiseConditions', obj.Parameters.Names) && value == false - description = 'Whether to randomise the conditional paramters or present them in order'; - obj.Parameters.set('randomiseConditions', false, description, 'logical') - elseif ismember('randomiseConditions', obj.Parameters.Names) - obj.update('randomiseConditions', logical(value)); - end - menu = obj.ConditionalUI.ContextMenus(2); - if value == false - obj.ConditionalUI.ConditionTable.RowName = 'numbered'; - menu.Checked = 'off'; - else - obj.ConditionalUI.ConditionTable.RowName = []; - menu.Checked = 'on'; + function buildGlobalUI(obj) % Function to essemble global parameters + globalParamNames = fieldnames(obj.Parameters.assortForExperiment); % assortForExperiment divides params into global and trial-specific parameter structures + obj.GlobalControls = gobjects(length(globalParamNames),3); % Initialize object array (faster than assigning to end of array which results in two calls to constructor) + for i=1:length(globalParamNames) % using for loop (sorry Chris!) to populate object array 2017-02-14 MW + [obj.GlobalControls(i,1), obj.GlobalControls(i,2), obj.GlobalControls(i,3)]... % [editors, labels, buttons] + = obj.addParamUI(globalParamNames{i}); end + % Above code replaces the following as after 2014a, MATLAB doesn't no + % longer uses numrical handles but instead uses object arrays +% [editors, labels, buttons] = cellfun(... +% @(n) obj.addParamUI(n), fieldnames(globalParams), 'UniformOutput', false); +% editors = cell2mat(editors); +% labels = cell2mat(labels); +% buttons = cell2mat(buttons); +% obj.GlobalControls = [labels, editors, buttons]; +% obj.GlobalGrid.Children = obj.GlobalControls(:); + +% obj.GlobalGrid.Children = +% blah = cat(1,obj.GlobalControls(:,1),obj.GlobalControls(:,2),obj.GlobalControls(:,3)); +% Doesn't work for some reason - MW 2017-02-15 + + child_handles = allchild(obj.GlobalGrid); % Get child handles for GlobalGrid + child_handles = [child_handles(end-1:-3:1); child_handles(end:-3:1); child_handles(end-2:-3:1)]; % Reorder them so all labels come first, then ctrls, then buttons +% child_handles = [child_handles(2:3:end); child_handles(3:3:end); child_handles(1:3:end)]; % Reorder them so all labels come first, then ctrls, then buttons + obj.GlobalGrid.Contents = child_handles; % Set children to new order + % uistack + + obj.GlobalGrid.ColumnSizes = [180, 200, 40]; % Set column sizes + obj.GlobalGrid.Spacing = 1; + obj.GlobalGrid.RowSizes = repmat(obj.GlobalVSpacing, 1, size(obj.GlobalControls, 1)); end - function fillConditionTable(obj) - % Build the condition table - titles = obj.Parameters.TrialSpecificNames; - [~, trialParams] = obj.Parameters.assortForExperiment; - if isempty(titles) - obj.ConditionalUI.ButtonPanel.Visible = 'off'; - obj.ConditionalUI.UIPanel.Visible = 'off'; - obj.GlobalUI.UIPanel.Position(3) = 1; - else - obj.ConditionalUI.ButtonPanel.Visible = 'on'; - obj.ConditionalUI.UIPanel.Visible = 'on'; - data = reshape(struct2cell(trialParams), numel(titles), [])'; - data = mapToCell(@(e) obj.paramValue2Control(e), data); - set(obj.ConditionalUI.ConditionTable, 'ColumnName', titles, 'Data', data,... - 'ColumnEditable', true(1, numel(titles))); - end - end +% function swapConditions(obj, idx1, idx2) % Function started, never +% finished - MW 2017-02-15 +% % params = obj.Parameters.trial +% end function addEmptyConditionToParam(obj, name) assert(obj.Parameters.isTrialSpecific(name),... @@ -158,134 +183,217 @@ function addEmptyConditionToParam(obj, name) obj.Parameters.Struct.(name) = cat(2, obj.Parameters.Struct.(name), newValue); end - function newValue = update(obj, name, value, row) - % FIXME change name to updateGlobal - if nargin < 4; row = 1; end - currValue = obj.Parameters.Struct.(name)(:,row); - if iscell(currValue) - % cell holders are allowed to be different types of value - newValue = obj.controlValue2Param(currValue{1}, value, true); - obj.Parameters.Struct.(name){:,row} = newValue; + function cellSelectionCallback(obj, src, eventData) + obj.SelectedCells = eventData.Indices; + if size(eventData.Indices, 1) > 0 + %cells selected, enable buttons + set(obj.MakeGlobalButton, 'Enable', 'on'); + set(obj.DeleteConditionButton, 'Enable', 'on'); + set(obj.SetValuesButton, 'Enable', 'on'); else - newValue = obj.controlValue2Param(currValue, value); - obj.Parameters.Struct.(name)(:,row) = newValue; + %nothing selected, disable buttons + set(obj.MakeGlobalButton, 'Enable', 'off'); + set(obj.DeleteConditionButton, 'Enable', 'off'); + set(obj.SetValuesButton, 'Enable', 'off'); end - notify(obj, 'Changed'); end - function globaliseParamAtCell(obj, name, row) - % Make parameter 'name' a global parameter and set it's value to be - % that of the specified row. + function newCondition(obj) + disp('adding new condition row'); + cellfun(@obj.addEmptyConditionToParam, obj.Parameters.TrialSpecificNames); + obj.fillConditionTable(); + end + + function deleteSelectedConditions(obj) + %DELETESELECTEDCONDITIONS Removes the selected conditions from table + % The callback for the 'Delete condition' button. This removes the + % selected conditions from the table and if less than two conditions + % remain, globalizes them. + % TODO: comment function better, index in a clearer fashion % - % See also EXP.PARAMETERS/MAKEGLOBAL, UI.CONDITIONPANEL/MAKEGLOBAL + % See also EXP.PARAMETERS, GLOBALISESELECTEDPARAMETERS + rows = unique(obj.SelectedCells(:,1)); + % If the number of remaining conditions is 1 or less... + names = obj.Parameters.TrialSpecificNames; + numConditions = size(obj.Parameters.Struct.(names{1}),2); + if numConditions-length(rows) <= 1 + remainingIdx = find(all(1:numConditions~=rows,1)); + if isempty(remainingIdx); remainingIdx = 1; end + % change selected cells to be all fields (except numRepeats which + % is assumed to always be the last column) + obj.SelectedCells =[ones(length(names)-1,1)*remainingIdx, (1:length(names)-1)']; + %... globalize them + obj.globaliseSelectedParameters; + obj.Parameters.removeConditions(rows) +% for i = 1:numel(names) +% newValue = iff(any(remainingIdx), obj.Struct.(names{i})(:,remainingIdx), obj.Struct.(names{i})(1)); +% % If the parameter is Num repeats, set the value +% if strcmp(names{i}, 'numRepeats') +% obj.Struct.(names{i}) = newValue; +% else +% obj.makeGlobal(names{i}, newValue); +% end +% end + else % Otherwise delete the selected conditions as usual + obj.Parameters.removeConditions(rows); + end + obj.fillConditionTable(); %refresh the table of conditions + end + + function globaliseSelectedParameters(obj) + [cols, iu] = unique(obj.SelectedCells(:,2)); + names = obj.TableColumnParamNames(cols); + rows = obj.SelectedCells(iu,1); %get rows of unique selected cols + arrayfun(@obj.globaliseParamAtCell, rows, cols); + obj.fillConditionTable(); %refresh the table of conditions + %now add global controls for parameters + newGlobals = gobjects(length(names),3); % Initialize object array (faster than assigning to end of array which results in two calls to constructor) + for i=length(names):-1:1 % using for loop (sorry Chris!) to initialize and populate object array 2017-02-15 MW + [newGlobals(i,1), newGlobals(i,2), newGlobals(i,3)]... % [editors, labels, buttons] + = obj.addParamUI(names{i}); + end + +% [editors, labels, buttons] = arrayfun(@obj.addParamUI, names); % +% 2017-02-15 MW can no longer use arrayfun with object outputs + idx = size(obj.GlobalControls, 1); % Calculate number of current Global params + new = numel(newGlobals); + obj.GlobalControls = [obj.GlobalControls; newGlobals]; % Add new globals to object + ggHandles = obj.GlobalGrid.Contents; + ggHandles = [ggHandles(1:idx); ggHandles((end-new+2):3:end);... + ggHandles(idx+1:idx*2); ggHandles((end-new+1):3:end);... + ggHandles(idx*2+1:idx*3); ggHandles((end-new+3):3:end)]; % Reorder them so all labels come first, then ctrls, then buttons + obj.GlobalGrid.Contents = ggHandles; % Set children to new order + + % Reset sizes + obj.GlobalGrid.RowSizes = repmat(obj.GlobalVSpacing, 1, size(obj.GlobalControls, 1)); + set(get(obj.GlobalGrid, 'Parent'),... + 'Heights', sum(obj.GlobalGrid.RowSizes)+45); % Reset height of globalPanel + obj.GlobalGrid.ColumnSizes = [180, 200, 40]; + obj.GlobalGrid.Spacing = 1; + end + + function globaliseParamAtCell(obj, row, col) + name = obj.TableColumnParamNames{col}; value = obj.Parameters.Struct.(name)(:,row); obj.Parameters.makeGlobal(name, value); - % Refresh the table of conditions - obj.fillConditionTable; - % Add new global parameter to field panel - if islogical(value) % If parameter is logical, make checkbox - ctrl = uicontrol('Parent', obj.GlobalUI.UIPanel, 'Style', 'checkbox', ... - 'Value', value, 'BackgroundColor', 'white'); - addField(obj.GlobalUI, name, ctrl); - else - [~, ctrl] = addField(obj.GlobalUI, name); - ctrl.String = obj.paramValue2Control(value); - end - obj.GlobalUI.onResize(); - obj.notify('Changed'); end - - function onResize(obj) - %%% resize condition table - notify(obj.ConditionalUI.ButtonPanel, 'SizeChanged'); - cUI = obj.ConditionalUI.UIPanel; - gUI = obj.GlobalUI.UIPanel; - - pos = obj.GlobalUI.Controls(end).Position; - colExtent = pos(1) + pos(3) + obj.GlobalUI.Margin; - colWidth = pos(3) + obj.GlobalUI.Margin + obj.GlobalUI.ColSpacing; % FIXME: inaccurate - pos = getpixelposition(gUI); - gUIExtent = pos(3); - pos = getpixelposition(cUI); - cUIExtent = pos(3); - - extent = get(obj.ConditionalUI.ConditionTable, 'Extent'); - panelWidth = cUI.Position(3); - if colExtent > gUIExtent && cUIExtent > obj.ConditionalUI.MinWidth - % If global UI controls are cut off and there is no dead space in - % the table but the minimum table width hasn't been reached, reduce - % the conditional UI width: table has scroll bar and global panel - % does not - % FIXME calculate how much space required for min control width -% obj.GlobalUI.MinCtrlWidth - % Calculate conditional UI width in normalized units - requiredWidth = (cUI.Position(3) / cUIExtent) * (colExtent - gUIExtent); - minConditionalWidth = (cUI.Position(3) / cUIExtent) * obj.ConditionalUI.MinWidth; - if requiredWidth < minConditionalWidth - % If the required width is smaller that the minimum table width, - % use minimum table width - cUI.Position(3) = minConditionalWidth; - else % Otherwise use this width - cUI.Position(3) = requiredWidth; + + function setSelectedValues(obj) % Set multiple fields in conditional table + disp('updating table cells'); + cols = obj.SelectedCells(:,2); % selected columns + uCol = unique(obj.SelectedCells(:,2)); + rows = obj.SelectedCells(:,1); % selected rows + % get current values of selected cells + currVals = arrayfun(@(u)obj.ConditionTable.Data(rows(cols==u),u), uCol, 'UniformOutput', 0); + names = obj.TableColumnParamNames(uCol); % selected column names + promt = cellfun(@(a,b) [a ' (' num2str(sum(cols==b)) ')'],... + names, num2cell(uCol), 'UniformOutput', 0); % names of columns & num selected rows + defaultans = cellfun(@(c) c(1), currVals); + answer = inputdlg(promt,'Set values', 1, cellflat(defaultans)); % prompt for input + if isempty(answer) % if user presses cancel + return + end + % set values for each column + cellfun(@(a,b,c) setNewVals(a,b,c), answer, currVals, names, 'UniformOutput', 0); + function newVals = setNewVals(userIn, currVals, paramName) + % check array orientation + currVals = iff(size(currVals,1)>size(currVals,2),currVals',currVals); + if strStartsWith(userIn,'@') % anon function + func_h = str2func(userIn); + % apply function to each cell + currVals = cellfun(@str2double,currVals, 'UniformOutput', 0); % convert from char + newVals = cellfun(func_h, currVals, 'UniformOutput', 0); + elseif any(userIn==':') % array syntax + arr = eval(userIn); + newVals = num2cell(arr); % convert to cell array + elseif any(userIn==','|userIn==';') % 2D arrays + C = strsplit(userIn, ';'); + newVals = cellfun(@(c)textscan(c, '%f',... + 'ReturnOnError', false,... + 'delimiter', {' ', ','}, 'MultipleDelimsAsOne', 1),... + C); + else % single value to copy across all cells + userIn = str2double(userIn); + newVals = num2cell(ones(size(currVals))*userIn); + end + + if length(newVals)>length(currVals) % too many new values + newVals = newVals(1:length(currVals)); % truncate new array + elseif length(newVals)= 1 && colExtent < gUIExtent - % If the table space is cut off and there is dead space in the - % global UI panel, reduce the global UI panel - % If the extra space is minimum, return - if floor(gUIExtent - colExtent) <= 2; return; end - deadspace = gUIExtent - colExtent; % Spece between panels in pixels - gUI.Position(3) = (gUI.Position(3) / gUIExtent) * (gUIExtent - deadspace); - cUI.Position(3) = 1-gUI.Position(3); - cUI.Position(1) = gUI.Position(3); + notify(obj, 'Changed'); + end + + function cellEditCallback(obj, src, eventData) + disp('updating table cell'); + row = eventData.Indices(1); + col = eventData.Indices(2); + paramName = obj.TableColumnParamNames{col}; + currValue = obj.Parameters.Struct.(paramName)(:,row); + if iscell(currValue) + % cell holders are allowed to be different types of value + newParam = obj.controlValue2Param(currValue{1}, eventData.NewData, true); + obj.Parameters.Struct.(paramName){:,row} = newParam; else - % Compromise by having both panels take up half the figure -% [cUI.Position([1,3]), gUI.Position(3)] = deal(0.5); + newParam = obj.controlValue2Param(currValue, eventData.NewData); + obj.Parameters.Struct.(paramName)(:,row) = newParam; end - notify(obj.ConditionalUI.ButtonPanel, 'SizeChanged'); + % if successful update the cell with default formatting + data = get(src, 'Data'); + reformed = obj.paramValue2Control(newParam); + if iscell(reformed) + % the reformed data type is a cell, this should be a one element + % wrapping cell + if numel(reformed) == 1 + reformed = reformed{1}; + else + error('Cannot handle data reformatted data type'); + end + end + data{row,col} = reformed; + set(src, 'Data', data); + %notify listeners of change + notify(obj, 'Changed'); end - end - - methods (Static) - function data = paramValue2Control(data) - % convert from parameter value to control value, i.e. a value class - % that can be easily displayed and edited by the user. Everything - % except logicals are converted to charecter arrays. - switch class(data) - case 'function_handle' - % convert a function handle to it's string name - data = func2str(data); - case 'logical' - data = data ~= 0; % If logical do nothing, basically. - case 'string' - data = char(data); % Strings not allowed in condition table data - otherwise - if isnumeric(data) - % format numeric types as string number list - strlist = mapToCell(@num2str, data); - data = strJoin(strlist, ', '); - elseif iscellstr(data) - data = strJoin(data, ', '); - end + + function updateGlobal(obj, param, src) + currParamValue = obj.Parameters.Struct.(param); + switch get(src, 'style') + case 'checkbox' + newValue = logical(get(src, 'value')); + obj.Parameters.Struct.(param) = newValue; + case 'edit' + newValue = obj.controlValue2Param(currParamValue, get(src, 'string')); + obj.Parameters.Struct.(param) = newValue; + % if successful update the control with default formatting and + % modified colour + set(src, 'String', obj.paramValue2Control(newValue),... + 'ForegroundColor', [1 0 0]); %red indicating it has changed + %notify listeners of change + notify(obj, 'Changed'); end - % all other data types stay as they are + end + + function [data, paramNames, titles] = tableData(obj) + [~, trialParams] = obj.Parameters.assortForExperiment; + paramNames = fieldnames(trialParams); + titles = obj.Parameters.title(paramNames); + data = reshape(struct2cell(trialParams), numel(paramNames), [])'; + data = mapToCell(@(e) obj.paramValue2Control(e), data); end - function data = controlValue2Param(currParam, data, allowTypeChange) + function data = controlValue2Param(obj, currParam, data, allowTypeChange) % Convert the values displayed in the UI ('control values') to % parameter values. String representations of numrical arrays and % functions are converted back to their 'native' classes. @@ -324,7 +432,111 @@ function onResize(obj) end end end + + function data = paramValue2Control(obj, data) + % convert from parameter value to control value, i.e. a value class + % that can be easily displayed and edited by the user. Everything + % except logicals are converted to charecter arrays. + switch class(data) + case 'function_handle' + % convert a function handle to it's string name + data = func2str(data); + case 'logical' + data = data ~= 0; % If logical do nothing, basically. + case 'string' + data = char(data); % Strings not allowed in condition table data + otherwise + if isnumeric(data) + % format numeric types as string number list + strlist = mapToCell(@num2str, data); + data = strJoin(strlist, ', '); + elseif iscellstr(data) + data = strJoin(data, ', '); + end + end + % all other data types stay as they are + end + + function fillConditionTable(obj) + [data, params, titles] = obj.tableData; + set(obj.ConditionTable, 'ColumnName', titles, 'Data', data,... + 'ColumnEditable', true(1, numel(titles))); + obj.TableColumnParamNames = params; + end + + function makeTrialSpecific(obj, paramName, ctrls) + [uirow, ~] = find(obj.GlobalControls == ctrls{1}); + assert(numel(uirow) == 1, 'Unexpected number of matching global controls'); + cellfun(@(c) delete(c), ctrls); + obj.GlobalControls(uirow,:) = []; + obj.GlobalGrid.RowSizes(uirow) = []; + obj.Parameters.makeTrialSpecific(paramName); + obj.fillConditionTable(); + set(get(obj.GlobalGrid, 'Parent'),... + 'Heights', sum(obj.GlobalGrid.RowSizes)+45); % Reset height of globalPanel + end + function [ctrl, label, buttons] = addParamUI(obj, name) % Adds ui element for each parameter + parent = obj.GlobalGrid; % Made by build function above + ctrl = []; + label = []; + buttons = []; + if iscell(name) % 2017-02-14 MW function now called with arrayFun (instead of cellFun) + name = name{1,1}; + end + value = obj.paramValue2Control(obj.Parameters.Struct.(name)); % convert from parameter value to control value (everything but logical values become strings) + title = obj.Parameters.title(name); + description = obj.Parameters.description(name); + + if islogical(value) % If parameter is logical, make checkbox + for i = 1:length(value) + ctrl(end+1) = uicontrol('Parent', parent,... + 'Style', 'checkbox',... + 'TooltipString', description,... + 'Value', value(i),... % Added 2017-02-15 MW set checkbox to what ever the parameter value is + 'Callback', @(src, e) obj.updateGlobal(name, src)); + end + elseif ischar(value) + ctrl = uicontrol('Parent', parent,... + 'BackgroundColor', [1 1 1],... + 'Style', 'edit',... + 'String', value,... + 'TooltipString', description,... + 'UserData', name,... % save the name of the parameter in userdata + 'HorizontalAlignment', 'left',... + 'Callback', @(src, e) obj.updateGlobal(name, src)); +% elseif iscellstr(value) +% lines = mkStr(value, [], sprintf('\n'), []); +% ctrl = uicontrol('Parent', parent,... +% 'BackgroundColor', [1 1 1],... +% 'Style', 'edit',... +% 'Max', 2,... %make it multiline +% 'String', lines,... +% 'TooltipString', description,... +% 'HorizontalAlignment', 'left',... +% 'UserData', name,... % save the name of the parameter in userdata +% 'Callback', @(src, e) obj.updateGlobal(name, src)); + end + + if ~isempty(ctrl) % If control box is made, add label and conditional button + label = uicontrol('Parent', parent,... + 'Style', 'text', 'String', title, 'HorizontalAlignment', 'left',... + 'TooltipString', description); % Why not use bui.label? MW 2017-02-15 + bbox = uiextras.HBox('Parent', parent); % Make HBox for button + % UIContainer no longer present in GUILayoutToolbox, it used to + % call uipanel with the following args: + % 'Units', 'Normalized'; 'BorderType', 'none') +% buttons = bbox.UIContainer; + buttons = uicontrol('Parent', bbox, 'Style', 'pushbutton',... % Make 'conditional parameter' button + 'String', '[...]',... + 'TooltipString', sprintf(['Make this a condition parameter (i.e. vary by trial).\n'... + 'This will move it to the trial conditions table.']),... + 'FontSize', 7,... + 'Callback', @(~,~) obj.makeTrialSpecific(name, {ctrl, label, bbox})); + bbox.Sizes = 29; % Resize button height to 29px + end + end end + end diff --git a/+eui/ParamEditor_old.m b/+eui/ParamEditor_old.m deleted file mode 100644 index 05855aef..00000000 --- a/+eui/ParamEditor_old.m +++ /dev/null @@ -1,516 +0,0 @@ -classdef ParamEditor < handle - %EUI.PARAMEDITOR UI control for configuring experiment parameters - % TODO. See also EXP.PARAMETERS. - % - % Part of Rigbox - - % 2012-11 CB created - % 2017-03 MW/NS Made global panel scrollable & improved performance of - % buildGlobalUI. - % 2017-03 MW Added set values button - - properties - GlobalVSpacing = 20 - Parameters - end - - properties (Dependent) - Enable - end - - properties (Access = private) - Root - GlobalGrid - ConditionTable - TableColumnParamNames = {} - NewConditionButton - DeleteConditionButton - MakeGlobalButton - SetValuesButton - SelectedCells %[row, column;...] of each selected cell - GlobalControls - end - - events - Changed - end - - methods - function obj = ParamEditor(params, parent) - if nargin < 2 % Can call this function to display parameters is new window - parent = figure('Name', 'Parameters', 'NumberTitle', 'off',... - 'Toolbar', 'none', 'Menubar', 'none'); - end - obj.Parameters = params; - obj.build(parent); - end - - function delete(obj) - disp('ParamEditor destructor called'); - if obj.Root.isvalid - obj.Root.delete(); - end - end - - function value = get.Enable(obj) - value = obj.Root.Enable; - end - - function set.Enable(obj, value) - obj.Root.Enable = value; - end - end - - methods %(Access = protected) - function build(obj, parent) % Build parameters panel - obj.Root = uiextras.HBox('Parent', parent, 'Padding', 5, 'Spacing', 5); % Add horizontal container for Global and Conditional panels -% globalPanel = uiextras.Panel('Parent', obj.Root,... % Make 'Global' parameters panel -% 'Title', 'Global', 'Padding', 5); - globPanel = uiextras.Panel('Parent', obj.Root,... % Make 'Global' parameters panel - 'Title', 'Global', 'Padding', 5); - globalPanel = uix.ScrollingPanel('Parent', globPanel,... % Make 'Global' scroll panel - 'Padding', 5); - - obj.GlobalGrid = uiextras.Grid('Parent', globalPanel, 'Padding', 4); % Make grid for parameter fields - obj.buildGlobalUI; % Populate Global panel - globalPanel.Heights = sum(obj.GlobalGrid.RowSizes)+45; - - conditionPanel = uiextras.Panel('Parent', obj.Root,... - 'Title', 'Conditional', 'Padding', 5); % Make 'Conditional' parameters panel - conditionVBox = uiextras.VBox('Parent', conditionPanel); - obj.ConditionTable = uitable('Parent', conditionVBox,... - 'FontName', 'Consolas',... - 'RowName', [],... - 'CellEditCallback', @obj.cellEditCallback,... - 'CellSelectionCallback', @obj.cellSelectionCallback); - obj.fillConditionTable(); - conditionButtonBox = uiextras.HBox('Parent', conditionVBox); - conditionVBox.Sizes = [-1 25]; - obj.NewConditionButton = uicontrol('Parent', conditionButtonBox,... - 'Style', 'pushbutton',... - 'String', 'New condition',... - 'TooltipString', 'Add a new condition',... - 'Callback', @(~, ~) obj.newCondition()); - obj.DeleteConditionButton = uicontrol('Parent', conditionButtonBox,... - 'Style', 'pushbutton',... - 'String', 'Delete condition',... - 'TooltipString', 'Delete the selected condition',... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.deleteSelectedConditions()); - obj.MakeGlobalButton = uicontrol('Parent', conditionButtonBox,... - 'Style', 'pushbutton',... - 'String', 'Globalise parameter',... - 'TooltipString', sprintf(['Make the selected condition-specific parameter global (i.e. not vary by trial)\n'... - 'This will move it to the global parameters section']),... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.globaliseSelectedParameters()); - obj.SetValuesButton = uicontrol('Parent', conditionButtonBox,... - 'Style', 'pushbutton',... - 'String', 'Set values',... - 'TooltipString', 'Set selected values to specified value, range or function',... - 'Enable', 'off',... - 'Callback', @(~, ~) obj.setSelectedValues()); - - obj.Root.Sizes = [sum(obj.GlobalGrid.ColumnSizes) + 32, -1]; - end - - function buildGlobalUI(obj) % Function to essemble global parameters - globalParamNames = fieldnames(obj.Parameters.assortForExperiment); % assortForExperiment divides params into global and trial-specific parameter structures - obj.GlobalControls = gobjects(length(globalParamNames),3); % Initialize object array (faster than assigning to end of array which results in two calls to constructor) - for i=1:length(globalParamNames) % using for loop (sorry Chris!) to populate object array 2017-02-14 MW - [obj.GlobalControls(i,1), obj.GlobalControls(i,2), obj.GlobalControls(i,3)]... % [editors, labels, buttons] - = obj.addParamUI(globalParamNames{i}); - end - - child_handles = allchild(obj.GlobalGrid); % Get child handles for GlobalGrid - child_handles = [child_handles(end-1:-3:1); child_handles(end:-3:1); child_handles(end-2:-3:1)]; % Reorder them so all labels come first, then ctrls, then buttons - obj.GlobalGrid.Contents = child_handles; % Set children to new order - - obj.GlobalGrid.ColumnSizes = [180, 200, 40]; % Set column sizes - obj.GlobalGrid.Spacing = 1; - obj.GlobalGrid.RowSizes = repmat(obj.GlobalVSpacing, 1, size(obj.GlobalControls, 1)); - end - -% function swapConditions(obj, idx1, idx2) % Function started, never -% finished - MW 2017-02-15 -% % params = obj.Parameters.trial -% end - - function addEmptyConditionToParam(obj, name) - assert(obj.Parameters.isTrialSpecific(name),... - 'Tried to add a new condition to global parameter ''%s''', name); - % work out what the right 'empty' is for the parameter - currValue = obj.Parameters.Struct.(name); - if isnumeric(currValue) - newValue = zeros(size(currValue, 1), 1, class(currValue)); - elseif islogical(currValue) - newValue = false(size(currValue, 1), 1); - elseif iscell(currValue) - if numel(currValue) > 0 - if iscellstr(currValue) - % if all elements are strings, default to a blank string - newValue = {''}; - elseif isa(currValue{1}, 'function_handle') - % first element is a function handle, so create with a @nop - % handle - newValue = {@nop}; - else - % misc cell case - default to empty element - newValue = {[]}; - end - else - % misc case - default to empty element - newValue = {[]}; - end - else - error('Adding empty condition for ''%s'' type not implemented', class(currValue)); - end - obj.Parameters.Struct.(name) = cat(2, obj.Parameters.Struct.(name), newValue); - end - - function cellSelectionCallback(obj, src, eventData) - obj.SelectedCells = eventData.Indices; - if size(eventData.Indices, 1) > 0 - %cells selected, enable buttons - set(obj.MakeGlobalButton, 'Enable', 'on'); - set(obj.DeleteConditionButton, 'Enable', 'on'); - set(obj.SetValuesButton, 'Enable', 'on'); - else - %nothing selected, disable buttons - set(obj.MakeGlobalButton, 'Enable', 'off'); - set(obj.DeleteConditionButton, 'Enable', 'off'); - set(obj.SetValuesButton, 'Enable', 'off'); - end - end - - function newCondition(obj) - disp('adding new condition row'); - cellfun(@obj.addEmptyConditionToParam, obj.Parameters.TrialSpecificNames); - obj.fillConditionTable(); - end - - function deleteSelectedConditions(obj) - %DELETESELECTEDCONDITIONS Removes the selected conditions from table - % The callback for the 'Delete condition' button. This removes the - % selected conditions from the table and if less than two conditions - % remain, globalizes them. - % TODO: comment function better, index in a clearer fashion - % - % See also EXP.PARAMETERS, GLOBALISESELECTEDPARAMETERS - rows = unique(obj.SelectedCells(:,1)); - % If the number of remaining conditions is 1 or less... - names = obj.Parameters.TrialSpecificNames; - numConditions = size(obj.Parameters.Struct.(names{1}),2); - if numConditions-length(rows) <= 1 - remainingIdx = find(all(1:numConditions~=rows,1)); - if isempty(remainingIdx); remainingIdx = 1; end - % change selected cells to be all fields (except numRepeats which - % is assumed to always be the last column) - obj.SelectedCells =[ones(length(names)-1,1)*remainingIdx, (1:length(names)-1)']; - %... globalize them - obj.globaliseSelectedParameters; - obj.Parameters.removeConditions(rows) - else % Otherwise delete the selected conditions as usual - obj.Parameters.removeConditions(rows); - end - obj.fillConditionTable(); %refresh the table of conditions - end - - function globaliseSelectedParameters(obj) - [cols, iu] = unique(obj.SelectedCells(:,2)); - names = obj.TableColumnParamNames(cols); - rows = obj.SelectedCells(iu,1); %get rows of unique selected cols - arrayfun(@obj.globaliseParamAtCell, rows, cols); - obj.fillConditionTable(); %refresh the table of conditions - %now add global controls for parameters - newGlobals = gobjects(length(names),3); % Initialize object array (faster than assigning to end of array which results in two calls to constructor) - for i=length(names):-1:1 % using for loop (sorry Chris!) to initialize and populate object array 2017-02-15 MW - [newGlobals(i,1), newGlobals(i,2), newGlobals(i,3)]... % [editors, labels, buttons] - = obj.addParamUI(names{i}); - end - - idx = size(obj.GlobalControls, 1); % Calculate number of current Global params - new = numel(newGlobals); - obj.GlobalControls = [obj.GlobalControls; newGlobals]; % Add new globals to object - ggHandles = obj.GlobalGrid.Contents; - ggHandles = [ggHandles(1:idx); ggHandles((end-new+2):3:end);... - ggHandles(idx+1:idx*2); ggHandles((end-new+1):3:end);... - ggHandles(idx*2+1:idx*3); ggHandles((end-new+3):3:end)]; % Reorder them so all labels come first, then ctrls, then buttons - obj.GlobalGrid.Contents = ggHandles; % Set children to new order - - % Reset sizes - obj.GlobalGrid.RowSizes = repmat(obj.GlobalVSpacing, 1, size(obj.GlobalControls, 1)); - set(get(obj.GlobalGrid, 'Parent'),... - 'Heights', sum(obj.GlobalGrid.RowSizes)+45); % Reset height of globalPanel - obj.GlobalGrid.ColumnSizes = [180, 200, 40]; - obj.GlobalGrid.Spacing = 1; - end - - function globaliseParamAtCell(obj, row, col) - name = obj.TableColumnParamNames{col}; - value = obj.Parameters.Struct.(name)(:,row); - obj.Parameters.makeGlobal(name, value); - end - - function setSelectedValues(obj) % Set multiple fields in conditional table - disp('updating table cells'); - cols = obj.SelectedCells(:,2); % selected columns - uCol = unique(obj.SelectedCells(:,2)); - rows = obj.SelectedCells(:,1); % selected rows - % get current values of selected cells - currVals = arrayfun(@(u)obj.ConditionTable.Data(rows(cols==u),u), uCol, 'UniformOutput', 0); - names = obj.TableColumnParamNames(uCol); % selected column names - promt = cellfun(@(a,b) [a ' (' num2str(sum(cols==b)) ')'],... - names, num2cell(uCol), 'UniformOutput', 0); % names of columns & num selected rows - defaultans = cellfun(@(c) c(1), currVals); - answer = inputdlg(promt,'Set values', 1, cellflat(defaultans)); % prompt for input - if isempty(answer) % if user presses cancel - return - end - % set values for each column - cellfun(@(a,b,c) setNewVals(a,b,c), answer, currVals, names, 'UniformOutput', 0); - function newVals = setNewVals(userIn, currVals, paramName) - % check array orientation - currVals = iff(size(currVals,1)>size(currVals,2),currVals',currVals); - if strStartsWith(userIn,'@') % anon function - func_h = str2func(userIn); - % apply function to each cell - currVals = cellfun(@str2double,currVals, 'UniformOutput', 0); % convert from char - newVals = cellfun(func_h, currVals, 'UniformOutput', 0); - elseif any(userIn==':') % array syntax - arr = eval(userIn); - newVals = num2cell(arr); % convert to cell array - elseif any(userIn==','|userIn==';') % 2D arrays - C = strsplit(userIn, ';'); - newVals = cellfun(@(c)textscan(c, '%f',... - 'ReturnOnError', false,... - 'delimiter', {' ', ','}, 'MultipleDelimsAsOne', 1),... - C); - else % single value to copy across all cells - userIn = str2double(userIn); - newVals = num2cell(ones(size(currVals))*userIn); - end - - if length(newVals)>length(currVals) % too many new values - newVals = newVals(1:length(currVals)); % truncate new array - elseif length(newVals) 1) ||... % Number of rows > 1 for chars - (~ischar(obj.pStruct.(n)) && size(obj.pStruct.(n), 2) > 1)); % Number of columns > 1 for all others + strcmp(n, 'numRepeats') ||... % numRepeats always trail specific + (ischar(obj.pStruct.(n)) && size(obj.pStruct.(n), 1) > 1) ||... % Number of rows > 1 for chars + (~ischar(obj.pStruct.(n)) && size(obj.pStruct.(n), 2) > 1); % Number of columns > 1 for all others for i = 1:n name = obj.pNames{i}; obj.IsTrialSpecific.(name) = isTrialSpecificDefault(name); @@ -182,8 +182,8 @@ function makeGlobal(obj, name, newValue) 'UniformOutput', false); % concatenate trial parameter trialParamValues = cat(1, trialParamValues{:}); - if isempty(trialParamValues) % Removed MW 30.01.19 - trialParamValues = {}; + if isempty(trialParamValues) + trialParamValues = {1}; end trialParams = cell2struct(trialParamValues, trialParamNames, 1)'; globalParams = cell2struct(globalParamValues, globalParamNames, 1); diff --git a/cortexlab/+git/update.m b/cortexlab/+git/update.m index cd939a83..200ba269 100644 --- a/cortexlab/+git/update.m +++ b/cortexlab/+git/update.m @@ -28,7 +28,7 @@ function update(scheduled) % than an hour ago. if (scheduled && (weekday(now) ~= scheduled) && now - lastFetch < 7) || ... (scheduled && (weekday(now) == scheduled) && now - lastFetch < 1) || ... - (~scheduled && now - lastFetch < 1/24) + (~scheduled && now - lastFetch < 1/24) return end disp('Updating code...') diff --git a/signals b/signals index 23f93fb3..0c9a2bea 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 23f93fb365c441d803e7ff43b5d8f17801a409e9 +Subproject commit 0c9a2bea861352758c77a03978a874cd286835c9 From f93f73b17a48dc6bd10e91fc5cf1517e799d211d Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 11 Mar 2019 13:57:34 +0200 Subject: [PATCH 310/515] Updates to signals --- signals | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signals b/signals index 2350bac3..bb6086a0 160000 --- a/signals +++ b/signals @@ -1 +1 @@ -Subproject commit 2350bac34f61f0cecab49e7fcd9fa6c055157262 +Subproject commit bb6086a019e0382a937cbe4ccf0925c1fcd8d6e5 From 9babd51a4c8529a381f8880c056c2ca0f50b310a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 11 Mar 2019 16:30:59 +0200 Subject: [PATCH 311/515] Added config file for todo bot --- .github/config.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/config.yml diff --git a/.github/config.yml b/.github/config.yml new file mode 100644 index 00000000..c41e8225 --- /dev/null +++ b/.github/config.yml @@ -0,0 +1,2 @@ +todo: + keyword: ['@todo','TODO','@fixme','FIXME'] From 09deaf1b4ac045413d2383ebee96484a17dd0e85 Mon Sep 17 00:00:00 2001 From: k1o0 Date: Mon, 11 Mar 2019 16:35:05 +0200 Subject: [PATCH 312/515] Hack for resize issue and fix for makeConditional() --- +eui/ConditionPanel.m | 6 ++++-- +eui/FieldPanel.m | 2 +- +eui/ParamEditor.m | 22 +++++++++++++++------- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/+eui/ConditionPanel.m b/+eui/ConditionPanel.m index eacd317f..d060abcd 100644 --- a/+eui/ConditionPanel.m +++ b/+eui/ConditionPanel.m @@ -33,12 +33,14 @@ % Create a child menu for the uiContextMenus c = uicontextmenu; obj.UIPanel.UIContextMenu = c; - obj.ContextMenus = uimenu(c, 'Label', 'Make Global', 'MenuSelectedFcn', @(~,~)obj.makeGlobal); + obj.ContextMenus = uimenu(c, 'Label', 'Make Global', ... + 'MenuSelectedFcn', @(~,~)obj.makeGlobal, 'Enable', 'off'); fcn = @(s,~)obj.ParamEditor.setRandomized(~strcmp(s.Checked, 'on')); obj.ContextMenus(2) = uimenu(c, 'Label', 'Randomize conditions', ... 'MenuSelectedFcn', fcn, 'Checked', 'on', 'Tag', 'randomize button'); obj.ContextMenus(3) = uimenu(c, 'Label', 'Sort by selected column', ... - 'MenuSelectedFcn', @(~,~)disp('feature not yet implemented'), 'Tag', 'sort by'); + 'MenuSelectedFcn', @(~,~)disp('feature not yet implemented'), ... + 'Tag', 'sort by', 'Enable', 'off'); % Create condition table p = uix.Panel('Parent', obj.UIPanel); obj.ConditionTable = uitable('Parent', p,... diff --git a/+eui/FieldPanel.m b/+eui/FieldPanel.m index 10980cb6..c0c38627 100644 --- a/+eui/FieldPanel.m +++ b/+eui/FieldPanel.m @@ -83,7 +83,7 @@ function clear(obj, idx) % FIXME Rename to clearFields function makeConditional(obj, name) if nargin == 1 - selected = obj.UIPanel.Parent.CurrentObject; %FIXME Doesn't work is parent is not figure + selected = obj.ParamEditor.Root.CurrentObject; if isa(selected, 'matlab.ui.control.UIControl') && ... strcmp(selected.Style, 'text') name = selected.String; diff --git a/+eui/ParamEditor.m b/+eui/ParamEditor.m index 4c375b7e..8a760e08 100644 --- a/+eui/ParamEditor.m +++ b/+eui/ParamEditor.m @@ -11,6 +11,7 @@ GlobalUI ConditionalUI Parent + Root Listener end @@ -23,18 +24,25 @@ end methods - function obj = ParamEditor(pars, f) + function obj = ParamEditor(pars, parent) if nargin == 0; pars = []; end if nargin < 2 - f = figure('Name', 'Parameters', 'NumberTitle', 'off',... + parent = figure('Name', 'Parameters', 'NumberTitle', 'off',... 'Toolbar', 'none', 'Menubar', 'none', 'DeleteFcn', @(~,~)obj.delete); obj.Listener = event.listener(f, 'SizeChanged', @(~,~)obj.onResize); end - obj.Parent = f; - obj.UIPanel = uix.HBox('Parent', f); + obj.Root = parent; + while ~isa(obj.Root, 'matlab.ui.Figure'); obj.Root = obj.Root.Parent; end + + obj.Parent = parent; + obj.UIPanel = uix.HBox('Parent', parent); obj.GlobalUI = eui.FieldPanel(obj.UIPanel, obj); obj.ConditionalUI = eui.ConditionPanel(obj.UIPanel, obj); obj.buildUI(pars); + % FIXME Current hack for drawing params first time + pos = obj.Root.Position; + obj.Root.Position = pos+0.01; + obj.Root.Position = pos; end function delete(obj) @@ -44,9 +52,9 @@ function delete(obj) function set.Enable(obj, value) cUI = obj.ConditionalUI; - fig = obj.Parent; + parent = obj.UIPanel; if value == true - arrayfun(@(prop) set(prop, 'Enable', 'on'), findobj(fig,'Enable','off')); + arrayfun(@(prop) set(prop, 'Enable', 'on'), findobj(parent,'Enable','off')); if isempty(cUI.SelectedCells) set(cUI.MakeGlobalButton, 'Enable', 'off'); set(cUI.DeleteConditionButton, 'Enable', 'off'); @@ -54,7 +62,7 @@ function delete(obj) end obj.Enable = true; else - arrayfun(@(prop) set(prop, 'Enable', 'off'), findobj(fig,'Enable','on')); + arrayfun(@(prop) set(prop, 'Enable', 'off'), findobj(parent,'Enable','on')); obj.Enable = false; end end From 29266f0f00c5b6db89da5d98d19317147090c35a Mon Sep 17 00:00:00 2001 From: k1o0 Date: Tue, 12 Mar 2019 14:57:22 +0200 Subject: [PATCH 313/515] Added some tests and minor modifications --- +eui/ConditionPanel.m | 48 +++++++------ +eui/FieldPanel.m | 39 +++++++---- +eui/MControl.m | 6 +- +eui/ParamEditor.m | 149 +++++++++++++++++++++------------------- +exp/Parameters.m | 6 +- tests/ParamEditorTest.m | 137 ++++++++++++++++++++++++++++++++++++ tests/ParametersTest.m | 91 ++++++++++++++++++++++++ 7 files changed, 368 insertions(+), 108 deletions(-) create mode 100644 tests/ParamEditorTest.m create mode 100644 tests/ParametersTest.m diff --git a/+eui/ConditionPanel.m b/+eui/ConditionPanel.m index d060abcd..a674f901 100644 --- a/+eui/ConditionPanel.m +++ b/+eui/ConditionPanel.m @@ -1,5 +1,5 @@ classdef ConditionPanel < handle - %UNTITLED Summary of this class goes here + %UNTITLED Deals with formatting trial conditions UI table % Detailed explanation goes here % TODO Document % TODO Add sort by column @@ -16,7 +16,7 @@ ContextMenus end - properties %(Access = protected) + properties (Access = protected) ParamEditor Listener NewConditionButton @@ -29,7 +29,8 @@ methods function obj = ConditionPanel(f, ParamEditor, varargin) obj.ParamEditor = ParamEditor; - obj.UIPanel = uix.VBox('Parent', f, 'BackgroundColor', 'white'); + obj.UIPanel = uix.VBox('Parent', f); +% obj.UIPanel.BackgroundColor = 'white'; % Create a child menu for the uiContextMenus c = uicontextmenu; obj.UIPanel.UIContextMenu = c; @@ -42,7 +43,7 @@ 'MenuSelectedFcn', @(~,~)disp('feature not yet implemented'), ... 'Tag', 'sort by', 'Enable', 'off'); % Create condition table - p = uix.Panel('Parent', obj.UIPanel); + p = uix.Panel('Parent', obj.UIPanel, 'BorderType', 'none'); obj.ConditionTable = uitable('Parent', p,... 'FontName', 'Consolas',... 'RowName', [],... @@ -53,48 +54,37 @@ 'CellEditCallback', @obj.onEdit,... 'CellSelectionCallback', @obj.onSelect); % Create button panel to hold condition control buttons - obj.ButtonPanel = uix.HBox('Parent', obj.UIPanel, ... - 'BackgroundColor', 'white'); - % Create callback so that width of button panel is slave to width of - % conditional UIPanel -% b = obj.ButtonPanel; -% fcn = @(s)set(obj.ButtonPanel, 'Position', ... -% [s.Position(1) b.Position(2) s.Position(3) b.Position(4)]); -% obj.Listener = event.listener(obj.UIPanel, 'SizeChanged', @(s,~)fcn(s)); + obj.ButtonPanel = uix.HBox('Parent', obj.UIPanel); % Define some common properties - props.BackgroundColor = 'white'; +% props.BackgroundColor = 'white'; props.Style = 'pushbutton'; props.Units = 'normalized'; props.Parent = obj.ButtonPanel; % Create out four buttons obj.NewConditionButton = uicontrol(props,... 'String', 'New condition',... - ...'Position',[0 0 1/4 1],... 'TooltipString', 'Add a new condition',... 'Callback', @(~, ~) obj.newCondition()); obj.DeleteConditionButton = uicontrol(props,... 'String', 'Delete condition',... - ...'Position',[1/4 0 1/4 1],... 'TooltipString', 'Delete the selected condition',... 'Enable', 'off',... 'Callback', @(~, ~) obj.deleteSelectedConditions()); obj.MakeGlobalButton = uicontrol(props,... 'String', 'Globalise parameter',... - ...'Position',[2/4 0 1/4 1],... 'TooltipString', sprintf(['Make the selected condition-specific parameter global (i.e. not vary by trial)\n'... 'This will move it to the global parameters section']),... 'Enable', 'off',... 'Callback', @(~, ~) obj.makeGlobal()); obj.SetValuesButton = uicontrol(props,... 'String', 'Set values',... - ...'Position',[3/4 0 1/4 1],... 'TooltipString', 'Set selected values to specified value, range or function',... 'Enable', 'off',... 'Callback', @(~, ~) obj.setSelectedValues()); obj.ButtonPanel.Widths = [-1 -1 -1 -1]; obj.UIPanel.Heights = [-1 25]; end - + function onEdit(obj, src, eventData) disp('updating table cell'); row = eventData.Indices(1); @@ -229,7 +219,7 @@ function setSelectedValues(obj) % Set multiple fields in conditional table elseif length(newVals)