Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 14e31c3bf9 | |||
| 9ce1079998 |
+6
-5
@@ -5,6 +5,7 @@
|
||||
|
||||
import struct
|
||||
import numpy as np
|
||||
from scipy import linalg
|
||||
|
||||
from .constants import FIFF
|
||||
|
||||
@@ -270,15 +271,15 @@ def read_tag(fid, pos=None):
|
||||
loc = tag.data['loc']
|
||||
kind = tag.data['kind']
|
||||
if kind == FIFF.FIFFV_MEG_CH or kind == FIFF.FIFFV_REF_MEG_CH:
|
||||
tag.data['coil_trans'] = np.r_[np.c_[loc[3:5], loc[6:8],
|
||||
loc[9:11], loc[0:2]],
|
||||
tag.data['coil_trans'] = np.r_[np.c_[loc[3:6], loc[6:9],
|
||||
loc[9:12], loc[0:3]],
|
||||
np.array([0, 0, 0, 1]).reshape(1, 4)]
|
||||
tag.data['coord_frame'] = FIFF.FIFFV_COORD_DEVICE
|
||||
elif tag.data['kind'] == FIFF.FIFFV_EEG_CH:
|
||||
if np.linalg.norm(loc[3:5]) > 0:
|
||||
tag.data['eeg_loc'] = np.c_[loc[0:2], loc[3:5]]
|
||||
if linalg.norm(loc[3:6]) > 0.:
|
||||
tag.data['eeg_loc'] = np.c_[loc[0:3], loc[3:6]]
|
||||
else:
|
||||
tag.data['eeg_loc'] = loc[1:3]
|
||||
tag.data['eeg_loc'] = loc[0:3]
|
||||
tag.data['coord_frame'] = FIFF.FIFFV_COORD_HEAD
|
||||
#
|
||||
# Unit and exponent
|
||||
|
||||
@@ -10,8 +10,7 @@ import sys
|
||||
import mne
|
||||
|
||||
DISTNAME = 'mne'
|
||||
DESCRIPTION = 'MNE python project for MEG and EEG data analysis'
|
||||
LONG_DESCRIPTION = descr
|
||||
DESCRIPTION = descr
|
||||
MAINTAINER = 'Alexandre Gramfort'
|
||||
MAINTAINER_EMAIL = 'gramfort@nmr.mgh.harvard.edu'
|
||||
URL = 'http://martinos.org/mne'
|
||||
@@ -36,7 +35,7 @@ if __name__ == "__main__":
|
||||
url = URL,
|
||||
version = VERSION,
|
||||
download_url = DOWNLOAD_URL,
|
||||
long_description = LONG_DESCRIPTION,
|
||||
long_description = open('README.rst').read(),
|
||||
zip_safe=False, # the package can run out of an .egg file
|
||||
classifiers =
|
||||
['Intended Audience :: Science/Research',
|
||||
|
||||
Reference in New Issue
Block a user