Skip to content

Commit

Permalink
Added some NOHELPINFO tag-words, worked on help docs etc. Related to #10
Browse files Browse the repository at this point in the history
 issue
  • Loading branch information
mmagnuski committed Aug 16, 2014
1 parent 193eea0 commit f6cef90
Show file tree
Hide file tree
Showing 26 changed files with 67 additions and 7 deletions.
2 changes: 2 additions & 0 deletions ICAw_add_badch.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
% channel labels:

if ~isnumeric(badch) && ischar(badch)
% CHANGE - doesn't make sense to require EEG in base workspace for this
% CHANGE - chanlocs should be in datainfo
chans = strsplit(badch, ' ');
badch = zeros(size(chans));

Expand Down
6 changes: 3 additions & 3 deletions ICAw_add_remep.m
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
function ICAw = ICAw_add_remep(ICAw, r, ep_rem)

% ICAw_add_remep() function allows for adding
% additiona removals to the ICAw structure database
% additional removals to the ICAw structure database
%
% ICAw = ICAw_add_remep(ICAw, r, rem_ep)
% Where ICAw is the ICAw structure, r is
% register index to update and rem_ep is
% a 1 by N vector with info on rejections
% the record index to update and rem_ep is
% a 1 by N vector with epoch indices to remove

% create vector with epoch indices:
eps = 1:max([max(ICAw(r).removed), max(ep_rem)])+1;
Expand Down
3 changes: 3 additions & 0 deletions ICAw_addloc.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
function ICAw_addloc(ICAw, varargin)

% NOHELPINFO
% NON-UNIVERSAL

%% ustaw mastref i avgref:
% oba na false je¿eli bez rereferencji (tylko lokalizacje elektr)
% tylko avref je¿eli referencja do œredniej
Expand Down
1 change: 1 addition & 0 deletions ICAw_addpath.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
% TODOs:
% [ ] 'ignore cleanline' when all files have been
% brought to a single folder
% CONSIDER - how intermediate files should be treated and located

cll = 'CleanLine\';
for r = 1:length(ICAw)
Expand Down
3 changes: 3 additions & 0 deletions ICAw_addrej.m
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
function ICAw = ICAw_addrej(ICAw, r, rej)

% ICAw = ICAw_addrej(ICAw, r, rej)
% function that adds rejection info to ICAw database
% this is different from changing 'userrem' or 'autorem'
% fields - the rejections added by ICAw_addrej are final
% (or accepted in other words)
%
% FIXHELPINFO

% TODOs:
% [ ] compare with ICAw_add_remep
Expand Down
5 changes: 4 additions & 1 deletion ICAw_addw.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
function ICAw = ICAw_addw(ICAw, r, EEG)


% NOHELPINFO
% NOTUSED

ICAw(r).icaweights = EEG.icaweights;
ICAw(r).icasphere = EEG.icasphere;
ICAw(r).icawinv = EEG.icawinv;
Expand Down
4 changes: 4 additions & 0 deletions ICAw_adj_check.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
% NON-UNIVERSAL
% CHANGE
% BRANCH

% adjust checker
% shows components marked as artifacts
% by adjust. Only components belonging
Expand Down
4 changes: 4 additions & 0 deletions ICAw_adj_conf_GUI.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
function varargout = ICAw_adj_conf_GUI(varargin)

% NOHELPINDO
% GUIDE SUCKS
%
% ICAW_ADJ_CONF_GUI MATLAB code for ICAw_adj_conf_GUI.fig
% ICAW_ADJ_CONF_GUI, by itself, creates a new ICAW_ADJ_CONF_GUI or raises the existing
% singleton*.
Expand Down
3 changes: 3 additions & 0 deletions ICAw_adjusting_ICA.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
% NON-UNIVERSAL
% BRANCH

% function for running ADJUST on files
% stored in ICAw base

Expand Down
2 changes: 2 additions & 0 deletions ICAw_apply_icarem.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

% Applies remove and ifremove info from ICA_desc
% to ICAw, cool stuff!
%
% FIXHELPINFO

% if r's not given - assume all records:
if ~exist('rec', 'var')
Expand Down
2 changes: 1 addition & 1 deletion ICAw_applyrej.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function ICAw = ICAw_applyrej(ICAw, rs, varargin)

% ADD help text
% NOHELPINFO
% function used to apply rejections to ICAw database

% written by M Magnuski, [email protected]
Expand Down
3 changes: 3 additions & 0 deletions ICAw_badchan_summary.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
function badelec = ICAw_badchan_summary(ICAw, chanloc)

% badelec = ICAw_badchan_summary(ICAw, chanloc)
% checks bad channels as stated in
% ICAw.badchan and plots the summary
% - topoplot of bad channels occurrance
%
% FIXHELPINFO

% get number of electrodes
elen = length(chanloc);
Expand Down
2 changes: 2 additions & 0 deletions ICAw_bringversion.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function ICAw = ICAw_bringversion(ICAw, r, verf)

% NOHELPINFO

% TODOs:
% [ ] CHECK more thoroughly - testing
% [ ] if some fields are filled but are not present
Expand Down
3 changes: 3 additions & 0 deletions ICAw_buildbase.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
% from files in a given folder
%
% ICAw = ICAw_buildbase(filepath)
%
% FIXHELPINFO
% CHANGE - PRIORITY

% TODOS:
% [ ] change from loop to one call to
Expand Down
4 changes: 4 additions & 0 deletions ICAw_checkbase.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
function [answer, ans_adr] = ICAw_checkbase(ICAbase, EEG, varargin)

% Its a shitty function that noone really uses.
% Needs to be changed/rewritten to be useful.
% One possibility - recursion instead of those dumb nested ifs
%
% [answer, ans_adr] = ICAw_checkbase(ICAbase, EEG, varargin)
% Function used for checking whether given EEG structure is
% represented in a database and to what degree.
Expand Down
3 changes: 3 additions & 0 deletions ICAw_checkbase_present.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
% not)
%
% ans_adr =
%
% FIXHELPINFO
% FINISH UP

if nargin>2
fields_to_check = varargin{1};
Expand Down
5 changes: 4 additions & 1 deletion ICAw_checkfields.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
function fldch = ICAw_checkfields(ICAw, r, flds, varargin)

% ADD help text
% NOHELPINFO
%
% function used to check fields of ICAw (or any other structure)

% CHANGE - establish copyright and license info (everywhere)
% written by Miko³aj Magnuski, [email protected]

%% defaults
Expand Down
2 changes: 1 addition & 1 deletion ICAw_copybase.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
% some content then this content is copied
% rather than the content of the other data-
% base's field. (see example 2)
% ICAw2 - structure which to copy fields from
% ICAw2 - structure to copy fields from
%
% ===EXAMPLES===
% Example 1:
Expand Down
2 changes: 2 additions & 0 deletions ICAw_copyrec.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function ICAw = ICAw_copyrec(ICAw, num)

% NOHELPINFO

len = length(ICAw);
newf = len + 1;
fld = fields(ICAw);
Expand Down
2 changes: 2 additions & 0 deletions ICAw_create_base.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
function varargout = ICAw_create_base(varargin)

% ICAW_CREATE_BASE - GUI for creating ICAw database
% The same can be performed using specific calls
% to functions like ICAw_buildbase etc.
% FIXHELPINFO

% Last Modified by GUIDE v2.5 24-May-2014 17:54:02

Expand Down
2 changes: 2 additions & 0 deletions ICAw_dipfit.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function ICAw = ICAw_dipfit(ICAw, varargin)

% NOHELPINFO

% =================
% info for hackers:
%
Expand Down
6 changes: 6 additions & 0 deletions badchan_ind.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
% deleted
%
% (MZ)
%
%
% Potentially problematic if used more than once on such a file
% I don't think we should support undocumented missing channels.
% CHANGE - add field informing about missing channels to datainfo field
% (MM)

function corrected=badchan_ind(newICAw,r, chanlocs)

Expand Down
3 changes: 3 additions & 0 deletions check_dipfit_status.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
function check_dipfit_status

% NOHELPINFO
% NON-UNIVERSAL

ld = load(['D:\Dropbox\Dropbox\CURRENT PROJECTS\CUTTING\',...
'DIPfit filled\ICAw_dipfit.mat']);
ICAw = ld.ICAw;
Expand Down
2 changes: 2 additions & 0 deletions comment_search.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
function comm_events = comment_search(filename, evnts, varargin)

% NOHELPINFO

%% input checks
if ~exist('evnts', 'var') || isempty(evnts)
error(['Second argument of the function (',...
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f6cef90

Please sign in to comment.