Skip to content

Tb kit - #475

Closed
teonbrooks wants to merge 33 commits into
mne-tools:masterfrom
teonbrooks:tb-kit
Closed

Tb kit#475
teonbrooks wants to merge 33 commits into
mne-tools:masterfrom
teonbrooks:tb-kit

Conversation

@teonbrooks

Copy link
Copy Markdown
Member

Thanks @christianmbrodbeck for help with the rebase. This is a clean branch of the kit2fiff module.

@teonbrooks

Copy link
Copy Markdown
Member Author

Fix to #366 .

This was referenced Feb 18, 2013
@dengemann

Copy link
Copy Markdown
Member

... does not look like it can be automatically merged. there seems to be a merhe conflict.

teonbrooks and others added 26 commits February 18, 2013 18:14
Here is the beginning of a python implementation of mne_kit2fiff. It is
very much a WIP. Major points to be worked on are:
-channel coil transformation
-channel unit vectors of coord_frame.
-fix dev_head_t
-creating a synthetic trigger channel

FIX: dev_head_t, RM: excess classes, unneccesary methods

Fixed the error in dev_head_t to give proper transformation matrix.
Reduced the number of classes to three main ones:
-sqd_params, RawKIT, coreg.
Added stringdocs to all methods and classes

ENH: layout

Enhances some of the layout. Update to be done for  docstrings to match
style. PEP8 in progress. :)

ADD: test files for troubleshooting and validation

These are all the required files for creating a raw object.
-sns.txt is the sensor locations for KIT-NYU system.
-test.elp is the digitizer laser points from Polhemus.
-test.hsp is the digitizer head shape from Polhemus.
-test.sqd is the datafile acquired from the KIT-NYU system.
-test_Ykgw.mat is a mat file containing the data extracted using the
Yokogawa matlab toolkit. This is to check that the proper data is being
extracted.
-test_marker.txt is the marker coil position within the MEG.

ENH: pep8 correction

STY: update script
Update mne/bin/mne_kit2fiff.py

Fix error.
ADD: synthetic channel, UPDATE: constants,
UPDATE: ch dict
RF: invert_transform

DOC
ENH: apply transform function

ENH: add transforms/coreg module with fit_matched_pts function
ENH: cleanup, docstrings

FIX: kit2fiff dev-head coregistration

ENH: cosmetics, RM: print
ENH: pep8

FIX: channel info, FIX: mne_kit2fiff command line tool
FIX: sensitivities, and loc

ENH: file info

ADD: test data
Coreg class now reads Polhemus data directly. Includes all digitization
points. Fix info.dig dict.
Here is the beginning of a python implementation of mne_kit2fiff. It is
very much a WIP. Major points to be worked on are:
-channel coil transformation
-channel unit vectors of coord_frame.
-fix dev_head_t
-creating a synthetic trigger channel

FIX: dev_head_t, RM: excess classes, unneccesary methods

Fixed the error in dev_head_t to give proper transformation matrix.
Reduced the number of classes to three main ones:
-sqd_params, RawKIT, coreg.
Added stringdocs to all methods and classes

ENH: layout

Enhances some of the layout. Update to be done for  docstrings to match
style. PEP8 in progress. :)

ADD: test files for troubleshooting and validation

These are all the required files for creating a raw object.
-sns.txt is the sensor locations for KIT-NYU system.
-test.elp is the digitizer laser points from Polhemus.
-test.hsp is the digitizer head shape from Polhemus.
-test.sqd is the datafile acquired from the KIT-NYU system.
-test_Ykgw.mat is a mat file containing the data extracted using the
Yokogawa matlab toolkit. This is to check that the proper data is being
extracted.
-test_marker.txt is the marker coil position within the MEG.

ENH: pep8 correction

STY: update script

Update mne/bin/mne_kit2fiff.py

Fix error.
ADD: synthetic channel, UPDATE: constants,
UPDATE: ch dict

ENH: add default to stim and stimthresh
FIX: kit2fiff dev-head coregistration

ENH: cosmetics, RM: print
FIX: channel info, FIX: mne_kit2fiff command line tool
Coreg class now reads Polhemus data directly. Includes all digitization
points. Fix info.dig dict.

FIX/ADD: reset_origin

Adds reset_origin function to reorient points centered at mid-distance
of peri-auricular points according to the mne manual, pg. 97.

ENH: downsample based on KIT.DIG_POINTS

FIX: ident, kind in dict
ENH: addresses the comments

coreg is now a module of functions.
kit has been condensed and stripped of methods; only relevant Raw
atrributes are added to keep consistency.

Problem to be resolved:
there is a problem with deep copy. Currently there is a hack in place
to deal with it.

ENH: scipy norm instead of numpy FIX: bunch problem
ENH: channel names, command line tool, python ref

Standardized channel names.

ENH: added comments for consistency

ENH: addresses all the comments made

RM: sqd_params class
ADD: get_sqd_params function, docstrings
cosmetic changes
ENH: docstring
ENH: update fif files for test

ENH: updated fif files for comparison

So, the recently updated test_bin.py had problems loading. It may be a
function of there being too few samples. This has one sec of recording.

ENH: include the file that got away

ENH: modified mrk file

Found a way to have a smaller marker sqd file.
PEP8

ENH: cosmetic changes

ENH fit_matched_pts: add tolerance parameter
ENH: remove unnecessary reading

DOC cosmetics
@teonbrooks

Copy link
Copy Markdown
Member Author

Should be good to go now.

@christianbrodbeck

Copy link
Copy Markdown
Member

Tests pass here too

@agramfort

Copy link
Copy Markdown
Member

merged by rebase after squashing a few commits and updating what's new page. great job !

@agramfort agramfort closed this Feb 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants