Skip to content

Commit

Permalink
complete help text updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Bach committed Jan 28, 2025
1 parent c9325f5 commit 4a79664
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
20 changes: 11 additions & 9 deletions src/g_SCR.m
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
function [gx,dgdx,dgdPhi] = g_SCR(Xt,Phi,ut,inG)
% ● Description // needs description
% TBA.
% ● Description
% This is the SCR observation function required by the VBA toolbox. It
% adds the three generative processes (phasic SCR, SF, SCL) modelled in
% f_SCR.
% ● Arguments
% Xt:
% Phi:
% ut:
% inG:
% Xt: a 7-element vector
% Phi: input required by VBA, ignored
% ut: input required by VBA, ignored
% inG: input required by VBA, ignored
% ● History
% Introduced in PsPM 3.0
% Written in 2008-2015 by Dominik R Bach (Wellcome Trust Centre for Neuroimaging)

global settings;
if isempty(settings), pspm_init; end;
if isempty(settings), pspm_init; end
gx = Xt(1) + Xt(4) + Xt(7);
dgdx = zeros(size(Xt,1),1);
dgdx([1;4;7]) = 1;
dgdPhi = [];
if any(isnan(gx)|isinf(gx)), keyboard; end;
if any(isnan(dgdx)|isinf(dgdx)), keyboard; end;
if any(isnan(gx)|isinf(gx)), keyboard; end
if any(isnan(dgdx)|isinf(dgdx)), keyboard; end
2 changes: 1 addition & 1 deletion src/pspm_get_mat.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
% * datafile : a .mat file that contains a variable 'data' that is either
% [1] a cell array of channel data vectors;
% [2] a datapoints x channel matrix
% * import :
% * import : import structure as defined by pspm_import
% ● History
% Introduced in PsPM 3.0
% Written in 2008-2015 by Dominik R Bach (Wellcome Trust Centre for Neuroimaging)
Expand Down
4 changes: 2 additions & 2 deletions src/pspm_get_smr.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
% ● Arguments
% datafile
% ┌───import
% ───
% └───denoise:
% ───denoise: for marker channels in CED spike format (recorded as 'level'),
% only retains markers with duration longer than the value given here (in ms).
% ● Outputs
% import
% ┌──sourceinfo
Expand Down
2 changes: 1 addition & 1 deletion src/pspm_get_viewpoint.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
% │ custom channel id.
% ├─────.units: Units of the channel.
% ├────────.sr: Sampling rate.
% ├─sourceinfo: information on the data source
% └───.chan_id: Channel index of the imported channel in the raw data columns.
% //sourceinfo: is missing
% ● History
% Written in 2019 by Eshref Yozdemir (University of Zurich)
% Maintained in 2021-2022 by Teddy
Expand Down

0 comments on commit 4a79664

Please sign in to comment.