Skip to content

Commit

Permalink
Fixes #83 #84 #86
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Liddell committed Feb 11, 2019
1 parent 643662c commit b742df7
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 7 deletions.
2 changes: 1 addition & 1 deletion +jrclust/+controllers/+curate/CurateController.m
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ function addMenu(obj, hFig)
hFig.figApply(@set, 'MenuBar','None');

obj.hMenus('FileMenu') = hFig.uimenu('Label', 'File');
uimenu(obj.hMenus('FileMenu'), 'Label', 'Save', 'Callback', @obj.saveFiles);
uimenu(obj.hMenus('FileMenu'), 'Label', 'Save', 'Callback', @(hO, hE) obj.saveFiles());
uimenu(obj.hMenus('FileMenu'), 'Label', 'Save figures as .fig', 'Callback', @(hO, hE) obj.saveFigures('.fig'));
uimenu(obj.hMenus('FileMenu'), 'Label', 'Save figures as .png', 'Callback', @(hO, hE) obj.saveFigures('.png'));
uimenu(obj.hMenus('FileMenu'), 'Label', 'Export units to csv', 'Callback', @(hO, hE) obj.hClust.exportToCSV(), 'Separator', 'on');
Expand Down
6 changes: 5 additions & 1 deletion +jrclust/Config.m
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ function validateParams(obj)
obj.error('nSitesExcl is too large or nSiteDir is too small', 'Bad configuration');
end

obj.ignoreSites = obj.ignoreSites(ismember(obj.ignoreSites, obj.siteMap));
% ignoreSites/ignoreChans
obj.ignoreChans = obj.ignoreChans(ismember(obj.ignoreChans, obj.siteMap));
obj.ignoreSites = intersect(obj.ignoreSites, 1:numel(obj.siteMap));
obj.ignoreSites = union(obj.ignoreSites, find(ismember(obj.siteMap, obj.ignoreChans)));

obj.siteNeighbors = findSiteNeighbors(obj.siteLoc, 2*obj.nSiteDir + 1, obj.ignoreSites, obj.shankMap);

% boost that gain
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.TXT
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
11 Feb 2019

# Parameters
- ignoreChans (formerly viChanZero) (re)implemented to address issue #83.

# Config
- canonical version of ignoreSites was computed wrong in validation; this has been fixed

# CurateController
- "File > Save" menu callback crashed with "Too many input arguments" (see #86); this has been fixed

7 Feb 2019

# Parameters
Expand Down
3 changes: 2 additions & 1 deletion default.prm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ blankThresh = []; % (formerly blank_thresh) Threshold (in MADs) above which to r
filterType = 'ndiff'; % (formerly vcFilter) Type of filter to use on raw data
filtOrder = 3; % Bandpass filter order
freqLimBP = [300, 3000]; % (formerly freqLim) Frequency cutoffs for bandpass filter
ignoreSites = []; % (formerly viSiteZero) Sites to ignore manually
ignoreChans = []; % (formerly viChanZero) Channel numbers to ignore manually
ignoreSites = []; % (formerly viSiteZero) Site IDs to ignore manually

% SPIKE DETECTION PARAMETERS
blankPeriod = 5; % (formerly blank_period_ms) Duration of blanking period (in ms) when the common mean exceeds blankThresh
Expand Down
16 changes: 15 additions & 1 deletion docs/parameters/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,28 @@ JRCLUST will skip this many bytes at the beginning of your recording file.

**Default** is 0.

.. _ignoreChans:

ignoreChans
^^^^^^^^^^^

(Formerly ``viChanZero``)

Channel numbers to ignore manually.
Should be an array of integers between 1 and nChans.
These values will be merged into :ref:`ignoreSites`.

**Default** is empty.

.. _ignoreSites:

ignoreSites
^^^^^^^^^^^

(Formerly ``viSiteZero``)

Sites to ignore manually.
Site IDs to ignore manually.
Should be an array of integers between 1 and nSites.

**Default** is empty.

Expand Down
4 changes: 2 additions & 2 deletions jrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"major": 4,
"minor": 0,
"release": 0,
"tag": "alpha-patch2",
"tag": "alpha-patch4",
"codename": "Edward"
},
"changeDate": "7 Feb 2019",
"changeDate": "11 Feb 2019",
"authors": [
"James Jun"
],
Expand Down
16 changes: 15 additions & 1 deletion params.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,21 @@
},
"section": ["recording file"]
},
"ignoreChans": {
"description": "Channel numbers to ignore manually",
"comment": "",
"default_value": [],
"validation": {
"classes": ["numeric"],
"attributes": [
"integer",
"positive"
]
},
"section": ["preprocessing"]
},
"ignoreSites": {
"description": "Sites to ignore manually",
"description": "Site IDs to ignore manually",
"comment": "",
"default_value": [],
"validation": {
Expand Down Expand Up @@ -1764,6 +1777,7 @@
"vcFilter": "filterType",
"vcFilter_show": "dispFilter",
"vcLabel_aux": "auxLabel",
"viChanZero": "ignoreChans",
"viShank_site": "shankMap",
"viSite2Chan": "siteMap",
"viSiteZero": "ignoreSites",
Expand Down

0 comments on commit b742df7

Please sign in to comment.