text
stringlengths
0
1.05M
meta
dict
from copy import deepcopy import numpy as np import warnings from .baseline import rescale from .channels.channels import (ContainsMixin, PickDropChannelsMixin, SetChannelsMixin, InterpolationMixin, equalize_channels) from .filter import resample, detren...
{ "repo_name": "aestrivex/mne-python", "path": "mne/evoked.py", "copies": "2", "size": "48018", "license": "bsd-3-clause", "hash": -9044728415328822000, "line_mean": 39.4873524452, "line_max": 81, "alpha_frac": 0.5571244117, "autogenerated": false, "ratio": 4.095701125895599, "config_test": fals...
from copy import deepcopy import numpy as np import warnings from .baseline import rescale from .channels.channels import (ContainsMixin, UpdateChannelsMixin, SetChannelsMixin, InterpolationMixin, equalize_channels) from .filter import resample, detrend,...
{ "repo_name": "antiface/mne-python", "path": "mne/evoked.py", "copies": "2", "size": "48644", "license": "bsd-3-clause", "hash": -3466791200641108000, "line_mean": 39.3349917081, "line_max": 81, "alpha_frac": 0.5563892772, "autogenerated": false, "ratio": 4.0990983399342715, "config_test": fals...
from copy import deepcopy import numpy as np from .baseline import rescale from .channels.channels import (ContainsMixin, UpdateChannelsMixin, SetChannelsMixin, InterpolationMixin, equalize_channels) from .filter import resample, detrend, FilterMixin fro...
{ "repo_name": "wronk/mne-python", "path": "mne/evoked.py", "copies": "1", "size": "60841", "license": "bsd-3-clause", "hash": 1367482009505480400, "line_mean": 39.9427994616, "line_max": 79, "alpha_frac": 0.5650959057, "autogenerated": false, "ratio": 4.148155723733551, "config_test": false, ...
from copy import deepcopy import numpy as np import warnings from .baseline import rescale from .channels.channels import (ContainsMixin, PickDropChannelsMixin, SetChannelsMixin) from .filter import resample, detrend from .fixes import in1d from .utils import (_check_pandas_installed, ...
{ "repo_name": "effigies/mne-python", "path": "mne/evoked.py", "copies": "1", "size": "44159", "license": "bsd-3-clause", "hash": 6411598745254146000, "line_mean": 38.533572068, "line_max": 79, "alpha_frac": 0.5470232569, "autogenerated": false, "ratio": 4.0647091310751104, "config_test": false,...
from copy import deepcopy import numpy as np import warnings from .baseline import rescale from .channels import ContainsMixin, PickDropChannelsMixin from .filter import resample, detrend from .fixes import in1d from .utils import (_check_pandas_installed, check_fname, logger, verbose, deprecated,...
{ "repo_name": "jaeilepp/eggie", "path": "mne/evoked.py", "copies": "1", "size": "47473", "license": "bsd-2-clause", "hash": -1817806494166825700, "line_mean": 37.5332792208, "line_max": 80, "alpha_frac": 0.5564426095, "autogenerated": false, "ratio": 3.965998329156224, "config_test": false, "...
import os import os.path as op import sys import numpy as np from scipy import sparse from ..utils import (verbose, logger, warn, copy_function_doc_to_method_doc, _check_preload, _validate_type, fill_doc, _check_option) from ..io.compensator import get_current_comp from ..io.constants import FIF...
{ "repo_name": "adykstra/mne-python", "path": "mne/channels/channels.py", "copies": "1", "size": "52814", "license": "bsd-3-clause", "hash": -7237960979239639000, "line_mean": 36.5900355872, "line_max": 79, "alpha_frac": 0.5679744007, "autogenerated": false, "ratio": 3.957290573954743, "config_t...
import os import os.path as op import warnings import numpy as np from scipy import sparse from ..externals.six import string_types from ..utils import verbose, logger from ..io.pick import (channel_type, pick_info, pick_types, _check_excludes_includes) from ..io.constants import FIFF def _...
{ "repo_name": "cmoutard/mne-python", "path": "mne/channels/channels.py", "copies": "1", "size": "28664", "license": "bsd-3-clause", "hash": -858041748708670200, "line_mean": 34.5192069393, "line_max": 79, "alpha_frac": 0.5556795981, "autogenerated": false, "ratio": 3.9308831596269886, "config_t...
import os import os.path as op import warnings import numpy as np from scipy import sparse from ..externals.six import string_types from ..utils import verbose, logger from ..io.pick import channel_type, pick_info, pick_types from ..io.constants import FIFF def _get_meg_system(info): """Educated guess for the...
{ "repo_name": "matthew-tucker/mne-python", "path": "mne/channels/channels.py", "copies": "2", "size": "23008", "license": "bsd-3-clause", "hash": -1656314884933417500, "line_mean": 34.0197869102, "line_max": 79, "alpha_frac": 0.5450712796, "autogenerated": false, "ratio": 3.9397260273972603, "c...
import os import os.path as op import numpy as np from scipy import sparse from ..externals.six import string_types from ..utils import verbose, logger, warn, copy_function_doc_to_method_doc from ..utils import _check_preload from ..io.compensator import get_current_comp from ..io.constants import FIFF from ..io.mea...
{ "repo_name": "jaeilepp/mne-python", "path": "mne/channels/channels.py", "copies": "1", "size": "47704", "license": "bsd-3-clause", "hash": -5146395356184269000, "line_mean": 37.2550120289, "line_max": 79, "alpha_frac": 0.5700360557, "autogenerated": false, "ratio": 3.937923064223213, "config_t...
import os import os.path as op import numpy as np from scipy import sparse from ..externals.six import string_types from ..utils import verbose, logger, warn, _check_copy_dep from ..io.pick import (channel_type, pick_info, pick_types, _check_excludes_includes, _PICK_TYPES_KEYS) from ..io.cons...
{ "repo_name": "wronk/mne-python", "path": "mne/channels/channels.py", "copies": "1", "size": "31888", "license": "bsd-3-clause", "hash": -1914458427826687200, "line_mean": 35.1541950113, "line_max": 79, "alpha_frac": 0.5586741094, "autogenerated": false, "ratio": 3.9528945084913847, "config_tes...
import os import os.path as op import numpy as np from scipy import sparse from ..externals.six import string_types from ..utils import verbose, logger, warn, copy_function_doc_to_method_doc from ..io.compensator import get_current_comp from ..io.constants import FIFF from ..io.meas_info import anonymize_info from ...
{ "repo_name": "nicproulx/mne-python", "path": "mne/channels/channels.py", "copies": "2", "size": "39343", "license": "bsd-3-clause", "hash": 4785753184477791000, "line_mean": 36.1862003781, "line_max": 79, "alpha_frac": 0.5669623567, "autogenerated": false, "ratio": 4.037664203612479, "config_t...
import os import os.path as op import numpy as np from scipy import sparse from ..externals.six import string_types from ..utils import verbose, logger, warn from ..io.compensator import get_current_comp from ..io.meas_info import anonymize_info from ..io.pick import (channel_type, pick_info, pick_types, ...
{ "repo_name": "alexandrebarachant/mne-python", "path": "mne/channels/channels.py", "copies": "2", "size": "33641", "license": "bsd-3-clause", "hash": 7625100358122311000, "line_mean": 34.7502656748, "line_max": 79, "alpha_frac": 0.557979846, "autogenerated": false, "ratio": 3.984012316437707, "...
import os import os.path as op import numpy as np from scipy import sparse from ..externals.six import string_types from ..utils import verbose, logger, warn from ..io.pick import (channel_type, pick_info, pick_types, _check_excludes_includes, _PICK_TYPES_KEYS) from ..io.constants import FIFF...
{ "repo_name": "ARudiuk/mne-python", "path": "mne/channels/channels.py", "copies": "1", "size": "31361", "license": "bsd-3-clause", "hash": 1813074794998495000, "line_mean": 34.5164212911, "line_max": 79, "alpha_frac": 0.5554350945, "autogenerated": false, "ratio": 3.9537317196167425, "config_te...
import os import os.path as op import numpy as np from scipy.io import loadmat from scipy import sparse from ..externals.six import string_types from ..utils import verbose, logger from ..io.pick import channel_type, pick_info, pick_types from ..io.constants import FIFF def _get_meg_system(info): """Educated ...
{ "repo_name": "effigies/mne-python", "path": "mne/channels/channels.py", "copies": "1", "size": "15328", "license": "bsd-3-clause", "hash": 1434249195374030600, "line_mean": 34.7296037296, "line_max": 79, "alpha_frac": 0.5686325678, "autogenerated": false, "ratio": 3.8668012108980827, "config_t...
from copy import deepcopy from math import sqrt import numpy as np from scipy import linalg from itertools import count from .tree import dir_tree_find from .tag import find_tag from .constants import FIFF from .pick import pick_types from ..utils import logger, verbose class Projection(dict): """Projection vec...
{ "repo_name": "jaeilepp/eggie", "path": "mne/io/proj.py", "copies": "2", "size": "20380", "license": "bsd-2-clause", "hash": -344185930237088640, "line_mean": 31.0440251572, "line_max": 79, "alpha_frac": 0.5539744848, "autogenerated": false, "ratio": 3.986697965571205, "config_test": false, "...
from copy import deepcopy import numpy as np from .constants import FIFF from .tag import find_tag, has_tag, read_tag from .tree import dir_tree_find from .write import start_block, end_block, write_int from .matrix import write_named_matrix from ..utils import logger, verbose def hex2dec(s): return int(s, 16...
{ "repo_name": "dimkal/mne-python", "path": "mne/io/ctf.py", "copies": "15", "size": "8024", "license": "bsd-3-clause", "hash": -4319249564481080300, "line_mean": 30.34375, "line_max": 79, "alpha_frac": 0.5205633101, "autogenerated": false, "ratio": 3.6357045763479836, "config_test": false, "h...
from copy import deepcopy import numpy as np from .constants import FIFF from .tag import find_tag, has_tag, read_tag from .tree import dir_tree_find from ..utils import logger, verbose def hex2dec(s): return int(s, 16) def _read_named_matrix(fid, node, matkind): """read_named_matrix(fid,node) Read...
{ "repo_name": "effigies/mne-python", "path": "mne/io/ctf.py", "copies": "3", "size": "8120", "license": "bsd-3-clause", "hash": -5207362609175185000, "line_mean": 30.4728682171, "line_max": 79, "alpha_frac": 0.514408867, "autogenerated": false, "ratio": 3.677536231884058, "config_test": false, ...
from copy import deepcopy import numpy as np from .constants import FIFF from .tag import read_tag from .tree import dir_tree_find from .write import start_block, end_block, write_int from .matrix import write_named_matrix, _read_named_matrix from ..utils import logger, verbose def _add_kind(one): """Convert ...
{ "repo_name": "jaeilepp/mne-python", "path": "mne/io/ctf_comp.py", "copies": "8", "size": "5276", "license": "bsd-3-clause", "hash": -4338880203234085400, "line_mean": 31.975, "line_max": 79, "alpha_frac": 0.5452994693, "autogenerated": false, "ratio": 3.45740498034076, "config_test": false, ...
from copy import deepcopy from itertools import count from math import sqrt import warnings import numpy as np from scipy import linalg from .tree import dir_tree_find from .tag import find_tag from .constants import FIFF from .pick import pick_types from .write import (write_int, write_float, write_string, write_na...
{ "repo_name": "adykstra/mne-python", "path": "mne/io/proj.py", "copies": "2", "size": "32759", "license": "bsd-3-clause", "hash": 2682090568286638000, "line_mean": 36.141723356, "line_max": 83, "alpha_frac": 0.569706035, "autogenerated": false, "ratio": 4.088741887169246, "config_test": false, ...
from copy import deepcopy from itertools import count from math import sqrt import numpy as np from scipy import linalg from .tree import dir_tree_find from .tag import find_tag from .constants import FIFF from .pick import pick_types from .write import (write_int, write_float, write_string, write_name_list, ...
{ "repo_name": "jmontoyam/mne-python", "path": "mne/io/proj.py", "copies": "3", "size": "28184", "license": "bsd-3-clause", "hash": 7540644797556663000, "line_mean": 34.4070351759, "line_max": 79, "alpha_frac": 0.5682302015, "autogenerated": false, "ratio": 4.040716845878136, "config_test": fals...
from copy import deepcopy from math import sqrt import numpy as np from scipy import linalg from itertools import count import warnings from .tree import dir_tree_find from .tag import find_tag from .constants import FIFF from .pick import pick_types from ..utils import logger, verbose class Projection(dict): "...
{ "repo_name": "effigies/mne-python", "path": "mne/io/proj.py", "copies": "1", "size": "22513", "license": "bsd-3-clause", "hash": -9010814555615634000, "line_mean": 32.0102639296, "line_max": 79, "alpha_frac": 0.5527917203, "autogenerated": false, "ratio": 4.0309758281110115, "config_test": fal...
import numpy as np from scipy.io import loadmat from scipy import sparse from .externals.six import string_types from .utils import verbose, logger from .io.pick import channel_type, pick_info from .io.constants import FIFF def _get_meg_system(info): """Educated guess for the helmet type based on channels""" ...
{ "repo_name": "jaeilepp/eggie", "path": "mne/channels.py", "copies": "2", "size": "12201", "license": "bsd-2-clause", "hash": -1276033226743626000, "line_mean": 34.0603448276, "line_max": 79, "alpha_frac": 0.5777395295, "autogenerated": false, "ratio": 3.825964252116651, "config_test": false, ...
from functools import partial import glob import os import os.path as op import shutil from copy import deepcopy import numpy as np from scipy import linalg from .io.constants import FIFF, FWD from .io.meas_info import _dig_kind_dict, _dig_kind_rev, _dig_kind_ints from .io.write import (start_file, start_block, writ...
{ "repo_name": "adykstra/mne-python", "path": "mne/bem.py", "copies": "1", "size": "72173", "license": "bsd-3-clause", "hash": 7240667967905068000, "line_mean": 36.7869109948, "line_max": 79, "alpha_frac": 0.5616089119, "autogenerated": false, "ratio": 3.4381192835365852, "config_test": false, ...
from functools import partial import glob import os import os.path as op import shutil from copy import deepcopy import numpy as np from scipy import linalg from .transforms import _ensure_trans, apply_trans from .io.constants import FIFF from .io.write import (start_file, start_block, write_float, write_int, ...
{ "repo_name": "teonlamont/mne-python", "path": "mne/bem.py", "copies": "2", "size": "71757", "license": "bsd-3-clause", "hash": 8416324611753609000, "line_mean": 36.8066385669, "line_max": 79, "alpha_frac": 0.5647950723, "autogenerated": false, "ratio": 3.444060475161987, "config_test": false, ...
from functools import partial import glob import os import os.path as op import shutil import sys import numpy as np from scipy import linalg from .transforms import _ensure_trans, apply_trans from .io import Info from .io.constants import FIFF from .io.write import (start_file, start_block, write_float, write_int, ...
{ "repo_name": "nicproulx/mne-python", "path": "mne/bem.py", "copies": "2", "size": "71955", "license": "bsd-3-clause", "hash": -4302546822566165500, "line_mean": 36.9910242872, "line_max": 79, "alpha_frac": 0.5645333889, "autogenerated": false, "ratio": 3.430839650979831, "config_test": false, ...
from functools import partial import glob import os import os.path as op import shutil import sys import numpy as np from scipy import linalg from .utils import verbose, logger, run_subprocess, get_subjects_dir, warn from .transforms import _ensure_trans, apply_trans from .io import Info from .io.constants import FI...
{ "repo_name": "jniediek/mne-python", "path": "mne/bem.py", "copies": "3", "size": "70571", "license": "bsd-3-clause", "hash": -4474667579853174300, "line_mean": 36.8599785408, "line_max": 79, "alpha_frac": 0.5634184013, "autogenerated": false, "ratio": 3.4271076146076145, "config_test": false, ...
import sys import os import os.path as op import shutil import glob import numpy as np from scipy import linalg from .fixes import partial from .utils import (verbose, logger, run_subprocess, deprecated, get_subjects_dir) from .transforms import _ensure_trans, apply_trans from .io.constants import...
{ "repo_name": "rajegannathan/grasp-lift-eeg-cat-dog-solution-updated", "path": "python-packages/mne-python-0.10/mne/bem.py", "copies": "1", "size": "61974", "license": "bsd-3-clause", "hash": 2206501949489054500, "line_mean": 36.3337349398, "line_max": 79, "alpha_frac": 0.5643334301, "autogenerated...
import sys import os import os.path as op import shutil import glob import numpy as np from scipy import linalg from .fixes import partial from .utils import verbose, logger, run_subprocess, get_subjects_dir from .transforms import _ensure_trans, apply_trans from .io.constants import FIFF from .io.write import (start...
{ "repo_name": "yousrabk/mne-python", "path": "mne/bem.py", "copies": "1", "size": "61506", "license": "bsd-3-clause", "hash": -6379882188546215000, "line_mean": 36.5036585366, "line_max": 79, "alpha_frac": 0.5641888596, "autogenerated": false, "ratio": 3.390441541260129, "config_test": false, ...
import sys import os import os.path as op import shutil import glob import numpy as np from scipy import linalg from .fixes import partial from .utils import verbose, logger, run_subprocess, get_subjects_dir from .transforms import _ensure_trans, apply_trans from .io.constants import FIFF from .io.write import (star...
{ "repo_name": "cmoutard/mne-python", "path": "mne/bem.py", "copies": "1", "size": "64012", "license": "bsd-3-clause", "hash": 2165412669367587000, "line_mean": 36.7206835592, "line_max": 79, "alpha_frac": 0.5629725676, "autogenerated": false, "ratio": 3.409972299168975, "config_test": false, ...
import numpy as np from scipy import linalg from .fixes import partial from .utils import verbose, logger from .io.constants import FIFF from .externals.six import string_types # ############################################################################ # Compute EEG sphere model def _fwd_eeg_get_multi_sphere_mo...
{ "repo_name": "Odingod/mne-python", "path": "mne/bem.py", "copies": "2", "size": "11943", "license": "bsd-3-clause", "hash": -2675546399206590500, "line_mean": 34.7574850299, "line_max": 79, "alpha_frac": 0.5389768065, "autogenerated": false, "ratio": 3.2339561332250204, "config_test": false, ...
import sys import os import os.path as op import shutil import numpy as np from scipy import linalg from .fixes import partial from .utils import (verbose, logger, run_subprocess, deprecated, get_subjects_dir) from .io.constants import FIFF from .io.write import (start_file, start_block, write_flo...
{ "repo_name": "matthew-tucker/mne-python", "path": "mne/bem.py", "copies": "1", "size": "47266", "license": "bsd-3-clause", "hash": 4023964450967949300, "line_mean": 34.9984767708, "line_max": 79, "alpha_frac": 0.5599796894, "autogenerated": false, "ratio": 3.295175683212493, "config_test": fal...
import sys import os import os.path as op import shutil import numpy as np from scipy import linalg from .fixes import partial from .utils import (verbose, logger, run_subprocess, get_subjects_dir) from .io.constants import FIFF from .externals.six import string_types from .surface import read_surface, write_bem_surf...
{ "repo_name": "dgwakeman/mne-python", "path": "mne/bem.py", "copies": "2", "size": "16258", "license": "bsd-3-clause", "hash": -1742239873265521000, "line_mean": 34.9690265487, "line_max": 79, "alpha_frac": 0.5462541518, "autogenerated": false, "ratio": 3.2964314679643145, "config_test": false,...
from math import floor, ceil import copy from copy import deepcopy import warnings import os import os.path as op import numpy as np from scipy.signal import hilbert from scipy import linalg from .constants import FIFF from .pick import pick_types, channel_type, pick_channels from .meas_info import write_meas_info f...
{ "repo_name": "jaeilepp/eggie", "path": "mne/io/base.py", "copies": "1", "size": "73937", "license": "bsd-2-clause", "hash": -3721078589514858500, "line_mean": 39.7366391185, "line_max": 79, "alpha_frac": 0.5645752465, "autogenerated": false, "ratio": 4.082661512976256, "config_test": false, ...
import copy import warnings import os import os.path as op import numpy as np from ..constants import FIFF from ..open import fiff_open, _fiff_get_fid from ..meas_info import read_meas_info from ..tree import dir_tree_find from ..tag import read_tag from ..proj import proj_equal from ..compensator import get_current...
{ "repo_name": "effigies/mne-python", "path": "mne/io/fiff/raw.py", "copies": "3", "size": "25902", "license": "bsd-3-clause", "hash": -2441454812977921500, "line_mean": 42.3143812709, "line_max": 80, "alpha_frac": 0.4871438499, "autogenerated": false, "ratio": 4.34014745308311, "config_test": f...
import numpy as np from ..externals.six import b from .constants import FIFF def _find_channels(ch_names, ch_type='EOG'): """Find EOG channel.""" substrings = (ch_type,) substrings = [s.upper() for s in substrings] if ch_type == 'EOG': substrings = ('EOG', 'EYE') eog_idx = [idx for idx, ...
{ "repo_name": "jaeilepp/mne-python", "path": "mne/io/utils.py", "copies": "3", "size": "8594", "license": "bsd-3-clause", "hash": -8212764541928627000, "line_mean": 35.4152542373, "line_max": 104, "alpha_frac": 0.5560856411, "autogenerated": false, "ratio": 3.4035643564356435, "config_test": tr...
import numpy as np def _find_channels(ch_names, ch_type='EOG'): """Helper to find EOG channel. """ substrings = (ch_type,) substrings = [s.upper() for s in substrings] if ch_type == 'EOG': substrings = ('EOG', 'EYE') eog_idx = [idx for idx, ch in enumerate(ch_names) if ...
{ "repo_name": "cmoutard/mne-python", "path": "mne/io/utils.py", "copies": "1", "size": "6186", "license": "bsd-3-clause", "hash": -2948060419839781400, "line_mean": 35.6035502959, "line_max": 104, "alpha_frac": 0.5476883285, "autogenerated": false, "ratio": 3.398901098901099, "config_test": fal...
from copy import deepcopy import os import os.path as op import numpy as np from .constants import FIFF from .pick import pick_types, channel_type, pick_channels, pick_info from .pick import _pick_data_channels, _pick_data_or_ica from .meas_info import write_meas_info from .proj import setup_proj, activate_proj, _pr...
{ "repo_name": "teonlamont/mne-python", "path": "mne/io/base.py", "copies": "2", "size": "106471", "license": "bsd-3-clause", "hash": -6407128994158822000, "line_mean": 40.6553208138, "line_max": 103, "alpha_frac": 0.5612983817, "autogenerated": false, "ratio": 4.163740174416331, "config_test": ...
import copy from copy import deepcopy import os import os.path as op import numpy as np from scipy import linalg from .constants import FIFF from .pick import pick_types, channel_type, pick_channels, pick_info from .pick import _pick_data_channels, _pick_data_or_ica from .meas_info import write_meas_info from .proj ...
{ "repo_name": "wronk/mne-python", "path": "mne/io/base.py", "copies": "1", "size": "96519", "license": "bsd-3-clause", "hash": 2397454402258756600, "line_mean": 40.4957007739, "line_max": 104, "alpha_frac": 0.5589365824, "autogenerated": false, "ratio": 4.188102056756053, "config_test": false, ...
import copy from copy import deepcopy import os import os.path as op import numpy as np from .constants import FIFF from .pick import pick_types, channel_type, pick_channels, pick_info from .pick import _pick_data_channels, _pick_data_or_ica from .meas_info import write_meas_info, anonymize_info from .proj import se...
{ "repo_name": "alexandrebarachant/mne-python", "path": "mne/io/base.py", "copies": "1", "size": "100287", "license": "bsd-3-clause", "hash": -7319110267273082000, "line_mean": 40.5267080745, "line_max": 104, "alpha_frac": 0.5580583725, "autogenerated": false, "ratio": 4.204553077310079, "config...
import copy from copy import deepcopy import warnings import os import os.path as op import numpy as np from scipy import linalg from .constants import FIFF from .pick import pick_types, channel_type, pick_channels, pick_info from .meas_info import write_meas_info from .proj import setup_proj, activate_proj, _proj_e...
{ "repo_name": "matthew-tucker/mne-python", "path": "mne/io/base.py", "copies": "2", "size": "86978", "license": "bsd-3-clause", "hash": 8195529986398320000, "line_mean": 40.6561302682, "line_max": 79, "alpha_frac": 0.5583135965, "autogenerated": false, "ratio": 4.157250740846956, "config_test":...
from math import floor, ceil import copy from copy import deepcopy import warnings import os import os.path as op import numpy as np from scipy.signal import hilbert from scipy import linalg from .constants import FIFF from .pick import pick_types, channel_type, pick_channels from .meas_info import write_meas_info f...
{ "repo_name": "effigies/mne-python", "path": "mne/io/base.py", "copies": "1", "size": "76744", "license": "bsd-3-clause", "hash": -4105570449554446000, "line_mean": 40.0395721925, "line_max": 79, "alpha_frac": 0.5650344001, "autogenerated": false, "ratio": 4.093231639020748, "config_test": fals...
import copy import os import os.path as op import numpy as np from ..constants import FIFF from ..open import fiff_open, _fiff_get_fid, _get_next_fname from ..meas_info import read_meas_info from ..tree import dir_tree_find from ..tag import read_tag, read_tag_info from ..base import (BaseRaw, _RawShell, _check_raw_...
{ "repo_name": "jaeilepp/mne-python", "path": "mne/io/fiff/raw.py", "copies": "1", "size": "20497", "license": "bsd-3-clause", "hash": 7960743583105839000, "line_mean": 41.7912317328, "line_max": 79, "alpha_frac": 0.5006098453, "autogenerated": false, "ratio": 4.343504979868616, "config_test": f...
import copy import warnings import os import os.path as op import numpy as np from ..constants import FIFF from ..open import fiff_open, _fiff_get_fid, _get_next_fname from ..meas_info import read_meas_info from ..tree import dir_tree_find from ..tag import read_tag, read_tag_info from ..proj import make_eeg_average...
{ "repo_name": "cmoutard/mne-python", "path": "mne/io/fiff/raw.py", "copies": "1", "size": "20548", "license": "bsd-3-clause", "hash": 7820098324863419000, "line_mean": 41.9874476987, "line_max": 79, "alpha_frac": 0.5172766206, "autogenerated": false, "ratio": 4.326805643293325, "config_test": f...
import copy import warnings import os import os.path as op import numpy as np from ..constants import FIFF from ..open import fiff_open, _fiff_get_fid from ..meas_info import read_meas_info from ..tree import dir_tree_find from ..tag import read_tag, read_tag_info from ..proj import make_eeg_average_ref_proj, _needs...
{ "repo_name": "Odingod/mne-python", "path": "mne/io/fiff/raw.py", "copies": "3", "size": "21309", "license": "bsd-3-clause", "hash": -4175922781680299000, "line_mean": 42.8456790123, "line_max": 79, "alpha_frac": 0.4898399737, "autogenerated": false, "ratio": 4.427384167878662, "config_test": f...
from copy import deepcopy from contextlib import contextmanager import os import os.path as op import numpy as np from ._compute_forward import _compute_forwards from ..io import read_info, _loc_to_coil_trans, _loc_to_eeg_loc, Info from ..io.pick import _has_kit_refs, pick_types, pick_info from ..io.constants import...
{ "repo_name": "adykstra/mne-python", "path": "mne/forward/_make_forward.py", "copies": "1", "size": "31134", "license": "bsd-3-clause", "hash": 6582302937795728000, "line_mean": 38.0639899624, "line_max": 79, "alpha_frac": 0.5902229074, "autogenerated": false, "ratio": 3.605558772437753, "confi...
from copy import deepcopy import os from os import path as op import numpy as np from ..io import read_info, _loc_to_coil_trans, _loc_to_eeg_loc, Info from ..io.pick import _has_kit_refs, pick_types, pick_info from ..io.constants import FIFF from ..transforms import (_ensure_trans, transform_surface_to, apply_trans, ...
{ "repo_name": "jaeilepp/mne-python", "path": "mne/forward/_make_forward.py", "copies": "1", "size": "30906", "license": "bsd-3-clause", "hash": 781051079625700400, "line_mean": 39.7193675889, "line_max": 79, "alpha_frac": 0.5943182554, "autogenerated": false, "ratio": 3.605459636024265, "config...
from ..externals.six import string_types import os from os import path as op import numpy as np from .. import pick_types, pick_info from ..io.pick import _has_kit_refs from ..io import read_info from ..io.constants import FIFF from .forward import Forward, write_forward_solution, _merge_meg_eeg_fwds from ._compute_f...
{ "repo_name": "jaeilepp/eggie", "path": "mne/forward/_make_forward.py", "copies": "1", "size": "20653", "license": "bsd-2-clause", "hash": 8028633363826065000, "line_mean": 40.306, "line_max": 79, "alpha_frac": 0.5675688762, "autogenerated": false, "ratio": 3.5431463372791216, "config_test": fa...
import numpy as np from copy import deepcopy from ..surface import (fast_cross_3d, _find_nearest_tri_pt, _get_tri_supp_geom, _triangle_coords) from ..io.constants import FIFF from ..transforms import apply_trans from ..utils import logger from ..parallel import parallel_func from ..io.compensat...
{ "repo_name": "jaeilepp/eggie", "path": "mne/forward/_compute_forward.py", "copies": "3", "size": "15075", "license": "bsd-2-clause", "hash": 1343935193578843100, "line_mean": 42.1948424069, "line_max": 79, "alpha_frac": 0.5607296849, "autogenerated": false, "ratio": 3.2729049066435083, "config...
import os from os import path as op import numpy as np from .. import pick_types, pick_info from ..io.pick import _has_kit_refs from ..io import read_info, _loc_to_coil_trans, _loc_to_eeg_loc from ..io.meas_info import Info from ..io.constants import FIFF from .forward import Forward, write_forward_solution, _merge_m...
{ "repo_name": "rajegannathan/grasp-lift-eeg-cat-dog-solution-updated", "path": "python-packages/mne-python-0.10/mne/forward/_make_forward.py", "copies": "1", "size": "23464", "license": "bsd-3-clause", "hash": 2376459768063260000, "line_mean": 39.1780821918, "line_max": 79, "alpha_frac": 0.5890300034...
import os from os import path as op import numpy as np from .. import pick_types, pick_info from ..io.pick import _has_kit_refs from ..io import read_info from ..io.constants import FIFF from .forward import Forward, write_forward_solution, _merge_meg_eeg_fwds from ._compute_forward import _compute_forwards from ..tr...
{ "repo_name": "Odingod/mne-python", "path": "mne/forward/_make_forward.py", "copies": "3", "size": "21670", "license": "bsd-3-clause", "hash": -4938249679524363000, "line_mean": 40.1977186312, "line_max": 79, "alpha_frac": 0.5784956161, "autogenerated": false, "ratio": 3.564731041289686, "confi...
import os from os import path as op import numpy as np from .. import pick_types, pick_info from ..io.pick import _has_kit_refs from ..io import read_info from ..io.meas_info import Info from ..io.constants import FIFF from .forward import Forward, write_forward_solution, _merge_meg_eeg_fwds from ._compute_forward im...
{ "repo_name": "leggitta/mne-python", "path": "mne/forward/_make_forward.py", "copies": "2", "size": "24163", "license": "bsd-3-clause", "hash": 8103760211432005000, "line_mean": 38.5466448445, "line_max": 79, "alpha_frac": 0.5868062741, "autogenerated": false, "ratio": 3.588209088209088, "confi...
import os from os import path as op import numpy as np from ..io import read_info, _loc_to_coil_trans, _loc_to_eeg_loc, Info from ..io.pick import _has_kit_refs, pick_types, pick_info from ..io.constants import FIFF from ..transforms import (_ensure_trans, transform_surface_to, apply_trans, ...
{ "repo_name": "cmoutard/mne-python", "path": "mne/forward/_make_forward.py", "copies": "1", "size": "24024", "license": "bsd-3-clause", "hash": 4066876780362700000, "line_mean": 38.7748344371, "line_max": 79, "alpha_frac": 0.5988594739, "autogenerated": false, "ratio": 3.545977859778598, "confi...
from .externals.six import string_types import os import copy from math import ceil import numpy as np from scipy import linalg, sparse from scipy.sparse import csr_matrix, coo_matrix import warnings from ._hdf5 import read_hdf5, write_hdf5 from .filter import resample from .evoked import _get_peak from .parallel imp...
{ "repo_name": "matthew-tucker/mne-python", "path": "mne/source_estimate.py", "copies": "4", "size": "109211", "license": "bsd-3-clause", "hash": 5651543745874711000, "line_mean": 36.9204861111, "line_max": 79, "alpha_frac": 0.5756654549, "autogenerated": false, "ratio": 4.068509481056513, "conf...
import copy import os from math import ceil import warnings import numpy as np from scipy import linalg, sparse from scipy.sparse import coo_matrix from .filter import resample from .evoked import _get_peak from .parallel import parallel_func from .surface import (read_surface, _get_ico_surface, read_morph_map, ...
{ "repo_name": "ARudiuk/mne-python", "path": "mne/source_estimate.py", "copies": "1", "size": "110601", "license": "bsd-3-clause", "hash": 2769722458686169000, "line_mean": 37.2702422145, "line_max": 81, "alpha_frac": 0.5775445068, "autogenerated": false, "ratio": 4.072801590808661, "config_test...
import copy import os.path as op from math import ceil import warnings import numpy as np from scipy import linalg, sparse from scipy.sparse import coo_matrix, block_diag as sparse_block_diag from .filter import resample from .evoked import _get_peak from .parallel import parallel_func from .surface import (read_sur...
{ "repo_name": "nicproulx/mne-python", "path": "mne/source_estimate.py", "copies": "2", "size": "113445", "license": "bsd-3-clause", "hash": 2139192372025843200, "line_mean": 37.9310226493, "line_max": 81, "alpha_frac": 0.575503548, "autogenerated": false, "ratio": 4.050160656908247, "config_tes...
import copy import os.path as op from math import ceil import warnings import numpy as np from scipy import linalg, sparse from scipy.sparse import coo_matrix from .filter import resample from .evoked import _get_peak from .parallel import parallel_func from .surface import (read_surface, _get_ico_surface, read_morp...
{ "repo_name": "alexandrebarachant/mne-python", "path": "mne/source_estimate.py", "copies": "2", "size": "114461", "license": "bsd-3-clause", "hash": 9144839998377753000, "line_mean": 37.7477995938, "line_max": 81, "alpha_frac": 0.5775679052, "autogenerated": false, "ratio": 4.093448251198055, "...
import copy import os.path as op import numpy as np from scipy import linalg, sparse from scipy.sparse import coo_matrix, block_diag as sparse_block_diag from .filter import resample from .fixes import einsum from .evoked import _get_peak from .surface import read_surface, _get_ico_surface, mesh_edges from .source_sp...
{ "repo_name": "adykstra/mne-python", "path": "mne/source_estimate.py", "copies": "1", "size": "101396", "license": "bsd-3-clause", "hash": -467179561408181950, "line_mean": 36.3741245853, "line_max": 89, "alpha_frac": 0.5756834589, "autogenerated": false, "ratio": 4.102443761126396, "config_tes...
import os import copy from math import ceil import warnings import numpy as np from scipy import linalg, sparse from scipy.sparse import coo_matrix from .filter import resample from .evoked import _get_peak from .parallel import parallel_func from .surface import (read_surface, _get_ico_surface, read_morph_map, ...
{ "repo_name": "yousrabk/mne-python", "path": "mne/source_estimate.py", "copies": "2", "size": "109254", "license": "bsd-3-clause", "hash": 8607829034368000000, "line_mean": 37.2542016807, "line_max": 81, "alpha_frac": 0.5760979003, "autogenerated": false, "ratio": 4.076641791044776, "config_tes...
import os import copy from math import ceil import warnings import numpy as np from scipy import linalg, sparse from scipy.sparse import csr_matrix, coo_matrix from .filter import resample from .evoked import _get_peak from .parallel import parallel_func from .surface import (read_surface, _get_ico_surface, read_mor...
{ "repo_name": "andyh616/mne-python", "path": "mne/source_estimate.py", "copies": "4", "size": "109226", "license": "bsd-3-clause", "hash": 8603278841697452000, "line_mean": 36.9784422809, "line_max": 81, "alpha_frac": 0.5762547379, "autogenerated": false, "ratio": 4.066947164612578, "config_tes...
from copy import deepcopy import re import numpy as np from .constants import FIFF from ..utils import logger, verbose from ..externals.six import string_types def channel_type(info, idx): """Get channel type Parameters ---------- info : dict Measurement info idx : int Index of...
{ "repo_name": "jmontoyam/mne-python", "path": "mne/io/pick.py", "copies": "2", "size": "25170", "license": "bsd-3-clause", "hash": -4598849493791500300, "line_mean": 33.3383356071, "line_max": 79, "alpha_frac": 0.5820023838, "autogenerated": false, "ratio": 3.6215827338129496, "config_test": fa...
from copy import deepcopy import re import numpy as np from .constants import FIFF from ..utils import logger, verbose, _validate_type from ..externals.six import string_types from .compensator import get_current_comp def get_channel_types(): """Return all known channel types. Returns ------- chan...
{ "repo_name": "teonlamont/mne-python", "path": "mne/io/pick.py", "copies": "2", "size": "29062", "license": "bsd-3-clause", "hash": 4052709841231952000, "line_mean": 34.7466174662, "line_max": 79, "alpha_frac": 0.5792099649, "autogenerated": false, "ratio": 3.656517362858581, "config_test": fal...
from ..externals.six import string_types from time import time import warnings from copy import deepcopy import re import numpy as np from scipy import linalg, sparse import shutil import os from os import path as op import tempfile from ..fixes import sparse_block_diag from ..io.constants import FIFF from ..io.ope...
{ "repo_name": "leggitta/mne-python", "path": "mne/forward/forward.py", "copies": "2", "size": "61900", "license": "bsd-3-clause", "hash": -1600815466851406300, "line_mean": 36.0880766926, "line_max": 79, "alpha_frac": 0.5735702746, "autogenerated": false, "ratio": 3.682989230677694, "config_tes...
from ..externals.six import string_types import os from warnings import warn import logging import numpy as np from scipy import optimize, linalg from ..io import Raw from ..io.constants import FIFF from ..utils import logger, verbose from ..externals.six.moves import map from ..externals.six.moves import zip @ver...
{ "repo_name": "jaeilepp/eggie", "path": "mne/preprocessing/maxfilter.py", "copies": "1", "size": "8901", "license": "bsd-2-clause", "hash": -5244925377674923000, "line_mean": 29.1728813559, "line_max": 79, "alpha_frac": 0.5861139198, "autogenerated": false, "ratio": 3.547628537265843, "config_t...
from ..externals.six import string_types import os from warnings import warn from ..bem import fit_sphere_to_headshape from ..io import Raw from ..utils import logger, verbose from ..externals.six.moves import map def _mxwarn(msg): warn('Possible MaxFilter bug: %s, more info: ' 'http://imaging.mrc-cbu...
{ "repo_name": "yousrabk/mne-python", "path": "mne/preprocessing/maxfilter.py", "copies": "16", "size": "6664", "license": "bsd-3-clause", "hash": 9040706223920036000, "line_mean": 28.3568281938, "line_max": 79, "alpha_frac": 0.5832833133, "autogenerated": false, "ratio": 3.655512890839276, "con...
from ..externals.six import string_types import os from ..bem import fit_sphere_to_headshape from ..io import Raw from ..utils import logger, verbose, warn from ..externals.six.moves import map def _mxwarn(msg): warn('Possible MaxFilter bug: %s, more info: ' 'http://imaging.mrc-cbu.cam.ac.uk/meg/maxbu...
{ "repo_name": "alexandrebarachant/mne-python", "path": "mne/preprocessing/maxfilter.py", "copies": "5", "size": "6656", "license": "bsd-3-clause", "hash": -2703067599587324400, "line_mean": 28.4513274336, "line_max": 79, "alpha_frac": 0.5823317308, "autogenerated": false, "ratio": 3.6491228070175...
from ..externals.six import string_types import os from ..bem import fit_sphere_to_headshape from ..io import read_raw_fif from ..utils import logger, verbose, warn from ..externals.six.moves import map def _mxwarn(msg): """Warn about a bug.""" warn('Possible MaxFilter bug: %s, more info: ' 'http:...
{ "repo_name": "nicproulx/mne-python", "path": "mne/preprocessing/maxfilter.py", "copies": "7", "size": "6744", "license": "bsd-3-clause", "hash": -1531095566293981200, "line_mean": 32.3861386139, "line_max": 79, "alpha_frac": 0.5857058126, "autogenerated": false, "ratio": 3.627756858526089, "co...
from os import path from .io.meas_info import Info from . import pick_types from .utils import logger, verbose @verbose def read_selection(name, fname=None, info=None, verbose=None): """Read channel selection from file By default, the selections used in ``mne_browse_raw`` are supported. Additional sele...
{ "repo_name": "wronk/mne-python", "path": "mne/selection.py", "copies": "2", "size": "4123", "license": "bsd-3-clause", "hash": 4797488433213895000, "line_mean": 34.5431034483, "line_max": 79, "alpha_frac": 0.5779772011, "autogenerated": false, "ratio": 3.9606147934678195, "config_test": false,...
from os import path from .utils import logger, verbose from .externals import six @verbose def read_selection(name, fname=None, verbose=None): """Read channel selection from file By default, the selections used in mne_browse_raw are supported*. Additional selections can be added by specifying a selecti...
{ "repo_name": "rajegannathan/grasp-lift-eeg-cat-dog-solution-updated", "path": "python-packages/mne-python-0.10/mne/selection.py", "copies": "12", "size": "3297", "license": "bsd-3-clause", "hash": 6161068417359771000, "line_mean": 28.7027027027, "line_max": 79, "alpha_frac": 0.602062481, "autogene...
from os import path import numpy as np from .io.meas_info import Info from .io.pick import _pick_data_channels, pick_types from .utils import logger, verbose, _get_stim_channel _SELECTIONS = ['Vertex', 'Left-temporal', 'Right-temporal', 'Left-parietal', 'Right-parietal', 'Left-occipital', 'Right-occi...
{ "repo_name": "teonlamont/mne-python", "path": "mne/selection.py", "copies": "8", "size": "7124", "license": "bsd-3-clause", "hash": -6815879751023628000, "line_mean": 36.4947368421, "line_max": 79, "alpha_frac": 0.5925042111, "autogenerated": false, "ratio": 3.4432092798453358, "config_test": ...
from time import time from copy import deepcopy import re import numpy as np from scipy import linalg, sparse import shutil import os from os import path as op import tempfile from ..externals.six import string_types from ..fixes import sparse_block_diag from ..io import RawArray, Info from ..io.constants import FI...
{ "repo_name": "wronk/mne-python", "path": "mne/forward/forward.py", "copies": "1", "size": "64206", "license": "bsd-3-clause", "hash": 3642745983701160000, "line_mean": 36.1993047509, "line_max": 79, "alpha_frac": 0.5767841012, "autogenerated": false, "ratio": 3.7010606409960802, "config_test":...
from time import time from copy import deepcopy import re import numpy as np from scipy import linalg, sparse import shutil import os from os import path as op import tempfile from ..io import RawArray, Info from ..io.constants import FIFF from ..io.open import fiff_open from ..io.tree import dir_tree_find from ..i...
{ "repo_name": "adykstra/mne-python", "path": "mne/forward/forward.py", "copies": "1", "size": "73416", "license": "bsd-3-clause", "hash": -6908250074983084000, "line_mean": 37.1381818182, "line_max": 79, "alpha_frac": 0.5719597908, "autogenerated": false, "ratio": 3.7022692889561273, "config_te...
import copy as cp from warnings import warn import numpy as np from .. import Epochs, compute_proj_evoked, compute_proj_epochs from ..utils import logger, verbose from .. import pick_types from ..io import make_eeg_average_ref_proj from .ecg import find_ecg_events from .eog import find_eog_events def _safe_del_key(...
{ "repo_name": "aestrivex/mne-python", "path": "mne/preprocessing/ssp.py", "copies": "10", "size": "15371", "license": "bsd-3-clause", "hash": -1267283821230091000, "line_mean": 37.5238095238, "line_max": 79, "alpha_frac": 0.5684730987, "autogenerated": false, "ratio": 3.728110599078341, "config...
import copy as cp import numpy as np from .. import Epochs, compute_proj_evoked, compute_proj_epochs from ..utils import logger, verbose, warn from .. import pick_types from ..io import make_eeg_average_ref_proj from .ecg import find_ecg_events from .eog import find_eog_events def _safe_del_key(dict_, key): ""...
{ "repo_name": "adykstra/mne-python", "path": "mne/preprocessing/ssp.py", "copies": "2", "size": "14095", "license": "bsd-3-clause", "hash": 7401725843606110000, "line_mean": 37.8292011019, "line_max": 79, "alpha_frac": 0.580844271, "autogenerated": false, "ratio": 3.52286928267933, "config_test...
import os from ..bem import fit_sphere_to_headshape from ..io import read_raw_fif from ..utils import logger, verbose, warn def _mxwarn(msg): """Warn about a bug.""" warn('Possible MaxFilter bug: %s, more info: ' 'http://imaging.mrc-cbu.cam.ac.uk/meg/maxbugs' % msg) @verbose def apply_maxfilter(i...
{ "repo_name": "adykstra/mne-python", "path": "mne/preprocessing/maxfilter.py", "copies": "2", "size": "6496", "license": "bsd-3-clause", "hash": 8663154861752854000, "line_mean": 31.9746192893, "line_max": 79, "alpha_frac": 0.5808189655, "autogenerated": false, "ratio": 3.6129032258064515, "con...
class Bunch(dict): """ Container object for datasets: dictionnary-like object that exposes its keys as attributes. """ def __init__(self, **kwargs): dict.__init__(self, kwargs) self.__dict__ = self FIFF = Bunch() # # Blocks # FIFF.FIFFB_ROOT = 999 FIFF.FIFFB_MEAS ...
{ "repo_name": "effigies/mne-python", "path": "mne/io/constants.py", "copies": "1", "size": "31543", "license": "bsd-3-clause", "hash": 6718706133702382000, "line_mean": 39.3363171355, "line_max": 130, "alpha_frac": 0.6449608471, "autogenerated": false, "ratio": 2.7519630082010123, "config_test"...
from .constants import FIFF from .tag import find_tag, has_tag from .write import (write_int, start_block, end_block, write_float_matrix, write_name_list) from ..utils import logger, verbose def _transpose_named_matrix(mat, copy=True): """Transpose mat inplace (no copy) """ if copy is...
{ "repo_name": "jaeilepp/eggie", "path": "mne/io/matrix.py", "copies": "21", "size": "4495", "license": "bsd-2-clause", "hash": -6167395140400292000, "line_mean": 33.5769230769, "line_max": 78, "alpha_frac": 0.5644048943, "autogenerated": false, "ratio": 3.500778816199377, "config_test": false, ...
from copy import deepcopy from functools import partial from gzip import GzipFile import os import os.path as op import numpy as np from scipy import sparse, linalg from .io.constants import FIFF from .io.meas_info import create_info from .io.tree import dir_tree_find from .io.tag import find_tag, read_tag from .io....
{ "repo_name": "adykstra/mne-python", "path": "mne/source_space.py", "copies": "1", "size": "112168", "license": "bsd-3-clause", "hash": -5568063984520893000, "line_mean": 37.8393351801, "line_max": 79, "alpha_frac": 0.5580557735, "autogenerated": false, "ratio": 3.581925594762893, "config_test"...
from ..externals.six import string_types, b import time import numpy as np from scipy import linalg import os.path as op import re import uuid from .constants import FIFF from ..utils import logger from ..externals.jdcal import jcal2jd from ..fixes import gzip_open def _write(fid, data, kind, data_size, FIFFT_TYPE,...
{ "repo_name": "lorenzo-desantis/mne-python", "path": "mne/io/write.py", "copies": "7", "size": "13510", "license": "bsd-3-clause", "hash": -476515912355469250, "line_mean": 33.2025316456, "line_max": 79, "alpha_frac": 0.6151739452, "autogenerated": false, "ratio": 3.0345911949685536, "config_te...
from .externals.six import string_types import numpy as np import os import os.path as op from scipy import sparse, linalg from copy import deepcopy from .io.constants import FIFF from .io.tree import dir_tree_find from .io.tag import find_tag, read_tag from .io.open import fiff_open from .io.write import (start_bloc...
{ "repo_name": "jaeilepp/eggie", "path": "mne/source_space.py", "copies": "1", "size": "66141", "license": "bsd-2-clause", "hash": -3479399890655429600, "line_mean": 36.7301768397, "line_max": 79, "alpha_frac": 0.566486748, "autogenerated": false, "ratio": 3.3611647525154997, "config_test": fals...
from .externals.six import string_types import numpy as np import os import os.path as op from scipy import sparse, linalg from scipy.spatial.distance import cdist from copy import deepcopy from .io.constants import FIFF from .io.tree import dir_tree_find from .io.tag import find_tag, read_tag from .io.open import fi...
{ "repo_name": "effigies/mne-python", "path": "mne/source_space.py", "copies": "1", "size": "91787", "license": "bsd-3-clause", "hash": -885139108309329000, "line_mean": 38.2252136752, "line_max": 79, "alpha_frac": 0.5546319196, "autogenerated": false, "ratio": 3.515127144607843, "config_test": ...
from ..externals.six import string_types import numpy as np import os.path as op from io import BytesIO from .tag import read_tag_info, read_tag, read_big, Tag from .tree import make_dir_tree, dir_tree_find from .constants import FIFF from ..utils import logger, verbose from ..externals import six from ..fixes import...
{ "repo_name": "leggitta/mne-python", "path": "mne/io/open.py", "copies": "8", "size": "8974", "license": "bsd-3-clause", "hash": -553902032226711040, "line_mean": 34.7529880478, "line_max": 79, "alpha_frac": 0.5298640517, "autogenerated": false, "ratio": 3.9655324790101636, "config_test": false...
from ..externals.six import string_types import numpy as np import os.path as op from io import BytesIO from .tag import read_tag_info, read_tag, read_big, Tag from .tree import make_dir_tree from .constants import FIFF from ..utils import logger, verbose from ..externals import six from ..fixes import gzip_open de...
{ "repo_name": "jaeilepp/eggie", "path": "mne/io/open.py", "copies": "3", "size": "7266", "license": "bsd-2-clause", "hash": -3740282342758582300, "line_mean": 33.4360189573, "line_max": 79, "alpha_frac": 0.5470685384, "autogenerated": false, "ratio": 3.9190938511326863, "config_test": false, ...
from functools import partial import gzip import os import struct import numpy as np from scipy import sparse from .constants import FIFF from ..externals.jdcal import jd2jcal ############################################################################## # HELPERS class Tag(object): """Tag in FIF tree structu...
{ "repo_name": "adykstra/mne-python", "path": "mne/io/tag.py", "copies": "1", "size": "19685", "license": "bsd-3-clause", "hash": 1894260548267902200, "line_mean": 33.5350877193, "line_max": 79, "alpha_frac": 0.5607315215, "autogenerated": false, "ratio": 3.350068073519401, "config_test": false,...
from gzip import GzipFile import os.path as op import re import time import uuid import numpy as np from scipy import linalg from .constants import FIFF from ..utils import logger from ..externals.jdcal import jcal2jd from ..externals.six import string_types, b def _write(fid, data, kind, data_size, FIFFT_TYPE, dt...
{ "repo_name": "jmontoyam/mne-python", "path": "mne/io/write.py", "copies": "3", "size": "13710", "license": "bsd-3-clause", "hash": 6544728705681239000, "line_mean": 33.4472361809, "line_max": 79, "alpha_frac": 0.6142231947, "autogenerated": false, "ratio": 3.0514133095926996, "config_test": fa...
from gzip import GzipFile import os.path as op import re import time import uuid import numpy as np from scipy import linalg, sparse from .constants import FIFF from ..utils import logger from ..externals.jdcal import jcal2jd from ..externals.six import string_types, b # We choose a "magic" date to store (because ...
{ "repo_name": "teonlamont/mne-python", "path": "mne/io/write.py", "copies": "3", "size": "14850", "license": "bsd-3-clause", "hash": -4061799316663364600, "line_mean": 34.1895734597, "line_max": 79, "alpha_frac": 0.6136026936, "autogenerated": false, "ratio": 3.0931056029993753, "config_test": ...
from ..utils._bunch import BunchConstNamed FIFF = BunchConstNamed() # # FIFF version number in use # FIFF.FIFFC_MAJOR_VERSION = 1 FIFF.FIFFC_MINOR_VERSION = 4 FIFF.FIFFC_VERSION = FIFF.FIFFC_MAJOR_VERSION << 16 | FIFF.FIFFC_MINOR_VERSION # # Blocks # FIFF.FIFFB_ROOT = 999 FIFF.FIFFB_MEAS ...
{ "repo_name": "adykstra/mne-python", "path": "mne/io/constants.py", "copies": "1", "size": "35690", "license": "bsd-3-clause", "hash": 8014628164070028000, "line_mean": 39.4648526077, "line_max": 130, "alpha_frac": 0.6459792659, "autogenerated": false, "ratio": 2.7399048057730693, "config_test"...
from warnings import warn from copy import deepcopy import os.path as op import numpy as np from scipy import linalg from ..externals.six import BytesIO, string_types from datetime import datetime as dt from .constants import FIFF from .open import fiff_open from .tree import dir_tree_find, copy_tree from .tag import...
{ "repo_name": "jaeilepp/eggie", "path": "mne/io/meas_info.py", "copies": "2", "size": "29926", "license": "bsd-2-clause", "hash": 686380507858688100, "line_mean": 34.2485276796, "line_max": 79, "alpha_frac": 0.5576755998, "autogenerated": false, "ratio": 3.4720965309200604, "config_test": false...
import copy as cp import os from math import floor, ceil import warnings import numpy as np from scipy import linalg from .io.write import start_file, end_file from .io.proj import (make_projector, proj_equal, activate_proj, _has_eeg_average_ref_proj) from .io import fiff_open from .io.pick imp...
{ "repo_name": "jaeilepp/eggie", "path": "mne/cov.py", "copies": "2", "size": "30259", "license": "bsd-2-clause", "hash": -8515077349450687000, "line_mean": 32.4723451327, "line_max": 79, "alpha_frac": 0.5624772795, "autogenerated": false, "ratio": 3.5860393458165443, "config_test": false, "ha...
import gzip from functools import partial import os import struct import numpy as np from .constants import FIFF from ..externals.six import text_type from ..externals.jdcal import jd2jcal ############################################################################## # HELPERS class Tag(object): """Tag in FIF...
{ "repo_name": "nicproulx/mne-python", "path": "mne/io/tag.py", "copies": "2", "size": "18734", "license": "bsd-3-clause", "hash": -4378031366273620500, "line_mean": 33.4375, "line_max": 79, "alpha_frac": 0.5611722003, "autogenerated": false, "ratio": 3.408040749499727, "config_test": false, "...
import gzip import os import struct import numpy as np from .constants import FIFF from ..fixes import partial from ..externals.six import text_type from ..externals.jdcal import jd2jcal ############################################################################## # HELPERS class Tag(object): """Tag in FIF t...
{ "repo_name": "ARudiuk/mne-python", "path": "mne/io/tag.py", "copies": "5", "size": "18731", "license": "bsd-3-clause", "hash": -3158081322780873000, "line_mean": 33.3058608059, "line_max": 79, "alpha_frac": 0.5621162778, "autogenerated": false, "ratio": 3.412461286208781, "config_test": false,...
import numpy as np import os import os.path as op from scipy import sparse, linalg from copy import deepcopy from .io.constants import FIFF from .io.tree import dir_tree_find from .io.tag import find_tag, read_tag from .io.open import fiff_open from .io.write import (start_block, end_block, write_int, ...
{ "repo_name": "cmoutard/mne-python", "path": "mne/source_space.py", "copies": "1", "size": "101625", "license": "bsd-3-clause", "hash": 1008474284143660500, "line_mean": 38.4966964633, "line_max": 79, "alpha_frac": 0.5584944649, "autogenerated": false, "ratio": 3.537120183773624, "config_test":...
import numpy as np from .constants import FIFF from .tag import Tag from .tag import read_tag from .write import write_id, start_block, end_block, _write from ..utils import logger, verbose def dir_tree_find(tree, kind): """Find nodes of the given kind from a directory tree structure. Parameters ------...
{ "repo_name": "nicproulx/mne-python", "path": "mne/io/tree.py", "copies": "3", "size": "4710", "license": "bsd-3-clause", "hash": 3195927263441305600, "line_mean": 29.1923076923, "line_max": 79, "alpha_frac": 0.5165605096, "autogenerated": false, "ratio": 3.75, "config_test": false, "has_no_k...
import os import gzip import numpy as np from scipy import linalg from .constants import FIFF from ..externals.six import text_type from ..externals.jdcal import jd2jcal class Tag(object): """Tag in FIF tree structure Parameters ---------- kind : int Kind of Tag. type_ : int Ty...
{ "repo_name": "leggitta/mne-python", "path": "mne/io/tag.py", "copies": "1", "size": "21202", "license": "bsd-3-clause", "hash": -5893482165427728000, "line_mean": 40.0891472868, "line_max": 79, "alpha_frac": 0.4753796812, "autogenerated": false, "ratio": 3.9082027649769584, "config_test": fals...
import os import gzip import numpy as np from .constants import FIFF from ..externals.six import text_type from ..externals.jdcal import jd2jcal class Tag(object): """Tag in FIF tree structure Parameters ---------- kind : int Kind of Tag. type_ : int Type of Tag. size : int...
{ "repo_name": "yousrabk/mne-python", "path": "mne/io/tag.py", "copies": "2", "size": "21009", "license": "bsd-3-clause", "hash": 2554167143807372300, "line_mean": 39.5579150579, "line_max": 79, "alpha_frac": 0.4794135847, "autogenerated": false, "ratio": 3.8704863669859986, "config_test": false...
import struct import numpy as np from .constants import FIFF from .tag import Tag from .tag import read_tag from .write import write_id, start_block, end_block, _write from ..utils import logger, verbose def dir_tree_find(tree, kind): """Find nodes of the given kind from a directory tree structure Paramete...
{ "repo_name": "matthew-tucker/mne-python", "path": "mne/io/tree.py", "copies": "11", "size": "4708", "license": "bsd-3-clause", "hash": 3232144788061597700, "line_mean": 28.6100628931, "line_max": 79, "alpha_frac": 0.5176295667, "autogenerated": false, "ratio": 3.790660225442834, "config_test":...
import struct import os import gzip import numpy as np from scipy import linalg from .constants import FIFF from ..externals.six import text_type from ..externals.jdcal import jd2jcal class Tag(object): """Tag in FIF tree structure Parameters ---------- kind : int Kind of Tag. type_ : ...
{ "repo_name": "jaeilepp/eggie", "path": "mne/io/tag.py", "copies": "1", "size": "20254", "license": "bsd-2-clause", "hash": -2921942960587854300, "line_mean": 40.250509165, "line_max": 79, "alpha_frac": 0.4759059939, "autogenerated": false, "ratio": 3.905514847666795, "config_test": false, "h...
import warnings from copy import deepcopy from math import sqrt import numpy as np from scipy import linalg from ..io.constants import FIFF from ..io.open import fiff_open from ..io.tag import find_tag from ..io.matrix import (_read_named_matrix, _transpose_named_matrix, write_named_matrix) f...
{ "repo_name": "jaeilepp/eggie", "path": "mne/minimum_norm/inverse.py", "copies": "1", "size": "52251", "license": "bsd-2-clause", "hash": -8760192133908521000, "line_mean": 35.5903361345, "line_max": 100, "alpha_frac": 0.5626686571, "autogenerated": false, "ratio": 3.795104590354445, "config_te...
class Bunch(dict): """ Container object for datasets: dictionnary-like object that exposes its keys as attributes. """ def __init__(self, **kwargs): dict.__init__(self, kwargs) self.__dict__ = self class BunchConst(Bunch): """Class to prevent us from re-defining constants (D...
{ "repo_name": "aestrivex/mne-python", "path": "mne/io/constants.py", "copies": "13", "size": "32102", "license": "bsd-3-clause", "hash": -4411552533866855400, "line_mean": 39.3291457286, "line_max": 130, "alpha_frac": 0.6427013893, "autogenerated": false, "ratio": 2.775549022998444, "config_tes...
class Bunch(dict): """Dictionnary-like object thatexposes its keys as attributes.""" def __init__(self, **kwargs): # noqa: D102 dict.__init__(self, kwargs) self.__dict__ = self class BunchConst(Bunch): """Class to prevent us from re-defining constants (DRY).""" def __setattr__(sel...
{ "repo_name": "teonlamont/mne-python", "path": "mne/io/constants.py", "copies": "3", "size": "34452", "license": "bsd-3-clause", "hash": 2132105449137655000, "line_mean": 39.1538461538, "line_max": 130, "alpha_frac": 0.6439393939, "autogenerated": false, "ratio": 2.7493416327507783, "config_tes...
from collections import Counter from copy import deepcopy from datetime import datetime as dt import os.path as op import re import numpy as np from scipy import linalg from .pick import channel_type from .constants import FIFF from .open import fiff_open from .tree import dir_tree_find from .tag import read_tag, fi...
{ "repo_name": "jaeilepp/mne-python", "path": "mne/io/meas_info.py", "copies": "1", "size": "69655", "license": "bsd-3-clause", "hash": 6973021751705164000, "line_mean": 37.271978022, "line_max": 79, "alpha_frac": 0.5605771301, "autogenerated": false, "ratio": 3.61562418894368, "config_test": fa...