Пример #1
0
## My functions
import neuroprime.src.utils.myfunctions as my
#from functions.nftalgorithm import nftalgorithm
# My classes
from neuroprime.src.initbciclass import initbciclass, get_amp_subprocess
from neuroprime.src.brain_interfaces.e2_bci.restclass import restclass
from neuroprime.src.brain_interfaces.e2_bci.nftclass import nftclass
from neuroprime.src.brain_interfaces.e2_bci.primeclass import primeclass
from neuroprime.src.brain_interfaces.e2_bci.reportclass import reportclass
#LOGGING -
import logging
#Config this script lo show sobmodules loggers
#logging.basicConfig(level=logging.INFO)
#Module logger
logger = my.setlogfile(modulename=__name__,
                       setlevel=logging.INFO,
                       disabled=True)

#debugging
#import pdb

#GLOBAL VARS
SAVE_FOLDER = 'e2_data'  #DESKTOP
SAVE_BY_TASK = True  #EEG True:save task by task; False:save full session
#add amps
ADD_AMPS_ON = True  # GSR AND HR
ADD_AMPS_SAVE_BY_TASK = False  #Saving at the end - taking too mutch time saving by task
#stimulus time
MASTER_STIMULUS_TIME = 90  #s
#update threshold at NFT end
MASTER_UPDATE_THRESHOLD_AFTERTASK = True  #(see nftclass.threshold_update_aftertask =>needs to be true to update)
Пример #2
0
import cPickle as pickle
# My functions
import neuroprime.src.utils.myfunctions as my
from neuroprime.src.signal_processing.nftalgorithm import nftalgorithm
import neuroprime.src.signal_processing.eegfunctions as eeg

# My classes
from neuroprime.src.initbciclass import initbciclass

#LOGGING - logger from initbciclass
import logging

setlevel = logging.WARNING
logging.basicConfig(stream=sys.stdout, level=setlevel)
#Module logger
logger = my.setlogfile(modulename=__name__, setlevel=setlevel, disabled=True)
logger.info('Logger started')
#debugging
#import pdb


class nftclass(initbciclass):
    def init(self):
        """
        Global Constants
        """
        #1.INIT Parent Class
        initbciclass.init(self)
        #2.Alter or add other functions

        #INIT SAVING