Exemplo n.º 1
0
from matviz.matviz import etl

import chart as chart
import utils_db as udb
import utils_df as udf
import utils_git as ugit
import utils_controls as ucon
import jinja2
import json
import requests
import pickle

import traceback

from utils_logger import get_logger
logger = get_logger(__name__, None, streaming=True, to_file=False, debug=False)

CONTROL_SUBJECT_QTY = 50
# CONTROL_SUBJECT_QTY = 3
STAGING_POST_URL = "https://reactneuro-portal-staging.herokuapp.com/api/v1/"
PRODUCTION_POST_URL = 'https://reactneuro-portal.herokuapp.com/api/v1/'

EXAM_TO_VIZ_FUNC = {
    'prosaccade': chart.plot_prosaccade,
    'convergence': chart.plot_convergence,
    'pupillaryreflex': chart.plot_pupillaryreflex,
    'gaze': chart.plot_gaze,
    'smoothpursuit': chart.plot_smoothpursuit,
    'smoothpursuit2d': chart.plot_smoothpursuit2d,
    'trailmaking': chart.plot_trailmaking,
    'trailmaking2': chart.plot_trailmaking,
Exemplo n.º 2
0
 def __init__(self):
     self.logger = utils_logger.get_logger(self.__class__.__name__)
     current_dir = os.path.dirname(os.path.abspath(__file__))
     self._file_record = os.path.join(current_dir, 'record.txt')