Пример #1
0
from processing import *
from core import *
from kwiklib.dataio import *


# -----------------------------------------------------------------------------
# Module constants
# -----------------------------------------------------------------------------
__version__ = "0.3.0"

APPNAME = "spikedetekt"

ABOUT = """Automated spike detection for multichannel electrophysiological data.

This software was developed by Cyrille Rossant, Shabnam Kadir, Max Hunter, Dan Goodman and Kenneth Harris in the Cortical Processing Laboratory at UCL (http://www.ucl.ac.uk/cortexlab)."""


# -----------------------------------------------------------------------------
# Loggers
# -----------------------------------------------------------------------------
LOGGERS = {}
log.LOGGERS = LOGGERS
# Console logger.
LOGGER = log.ConsoleLogger(name="{0:s}.console".format(APPNAME), print_caller=False)
log.register(LOGGER)

sys.excepthook = log.handle_exception

# Set the logging level.
log.set_level(logging.INFO)
Пример #2
0
from kwiklib.dataio import *


# -----------------------------------------------------------------------------
# Module constants
# -----------------------------------------------------------------------------
__version__ = '0.3.0dev'

APPNAME = 'spikedetekt'

ABOUT = """Spikedetekt detekt spikes.

This software was developed by Cyrille Rossant, Shabnam Kadir, Dan Goodman, Kenneth Harris in the Cortical Processing Laboratory at UCL (http://www.ucl.ac.uk/cortexlab)."""


# -----------------------------------------------------------------------------
# Loggers
# -----------------------------------------------------------------------------
LOGGERS = {}
log.LOGGERS = LOGGERS
# Console logger.
LOGGER = log.ConsoleLogger(name='{0:s}.console'.format(APPNAME),
                           print_caller=False)
log.register(LOGGER)

sys.excepthook = log.handle_exception

# Set the logging level.
log.set_level(logging.INFO)

Пример #3
0
PREFERENCES_FILENAME = 'preferences.py'
PREFERENCES_FILEPATH = get_global_path(PREFERENCES_FILENAME)
USERPREF = pref.UserPreferences(appname=APPNAME,
                                folder=USERAPP_FOLDER,
                                filepath=PREFERENCES_FILEPATH)

# -----------------------------------------------------------------------------
# Settings
# -----------------------------------------------------------------------------
PREFERENCES_FILENAME = 'settings'
PREFERENCES_FILEPATH = get_global_path(PREFERENCES_FILENAME)
SETTINGS = settings.Settings(appname=APPNAME,
                             folder=USERAPP_FOLDER,
                             filepath=PREFERENCES_FILEPATH)

# -----------------------------------------------------------------------------
# Loggers
# -----------------------------------------------------------------------------
LOGGERS = {}
log.LOGGERS = LOGGERS
# Console logger.
LOGGER = log.ConsoleLogger(name='{0:s}.console'.format(APPNAME))
log.register(LOGGER)

sys.excepthook = log.handle_exception

# Set the logging level specified in the user preferences.
loglevel = USERPREF['loglevel']
if loglevel:
    log.set_level(loglevel)
Пример #4
0
PREFERENCES_FILENAME = 'preferences.py'
PREFERENCES_FILEPATH = get_global_path(PREFERENCES_FILENAME)
USERPREF = pref.UserPreferences(appname=APPNAME, folder=USERAPP_FOLDER,
    filepath=PREFERENCES_FILEPATH)


# -----------------------------------------------------------------------------
# Settings
# -----------------------------------------------------------------------------
PREFERENCES_FILENAME = 'settings'
PREFERENCES_FILEPATH = get_global_path(PREFERENCES_FILENAME)
SETTINGS = settings.Settings(appname=APPNAME, folder=USERAPP_FOLDER,
    filepath=PREFERENCES_FILEPATH)


# -----------------------------------------------------------------------------
# Loggers
# -----------------------------------------------------------------------------
LOGGERS = {}
log.LOGGERS = LOGGERS
# Console logger.
LOGGER = log.ConsoleLogger(name='{0:s}.console'.format(APPNAME))
log.register(LOGGER)

sys.excepthook = log.handle_exception

# Set the logging level specified in the user preferences.
loglevel = USERPREF['loglevel']
if loglevel:
    log.set_level(loglevel)