Ejemplo n.º 1
0
 def test_get_home_dir(self):
     home_dir = get_ema_project_home_dir()
import threading
import zmq

import IPython
from IPython.config import Application

from util import ema_exceptions, util, ema_logging
from . import experiment_runner

# Created on Jul 16, 2015
# 
# .. codeauthor::  jhkwakkel

SUBTOPIC = "EMA"
engine = None
EMA_PROJECT_HOME_DIR = util.get_ema_project_home_dir()

class EngingeLoggerAdapter(logging.LoggerAdapter):
    '''LoggerAdapter that inserts EMA as a topic into log messages
    
    Parameters
    ----------
    logger : logger instance 
    topic : str
    
    '''

    def __init__(self, logger, topic):
        self.logger = logger
        self.topic = topic
        
Ejemplo n.º 3
0
 def test_get_home_dir(self):
     home_dir = get_ema_project_home_dir()