Skip to content
Snippets Groups Projects
config.py 927 B
Newer Older
Raymond Chia's avatar
Raymond Chia committed
DEBUG = False
BR_FS = 18
ACC_FS = 100
IMU_FS = 120
Raymond Chia's avatar
Raymond Chia committed
PPG_FS = 64
Raymond Chia's avatar
Raymond Chia committed

ACC_THOLD = 10
WIN_THOLD = 0.03
MQA_THOLD = 0.7
FS_RESAMPLE = 256

WINDOW_SIZE = 20 # seconds
WINDOW_SHIFT = 1 # seconds
MIN_RESP_RATE = 3 # BPM
MAX_RESP_RATE = 45 # BPM

TIME_COLS = ['Timestamps', 'Event', 'Text', 'Color']

TRAIN_VAL_TEST_SPLIT = [0.6, 0.2, 0.2]
TRAIN_TEST_SPLIT = [0.8, 0.2]

import matplotlib as mpl
Raymond Chia's avatar
Raymond Chia committed
mpl.rcParams['figure.titlesize'] = 6
Raymond Chia's avatar
Raymond Chia committed
mpl.rcParams['axes.titlesize']   = 6
mpl.rcParams['axes.titleweight'] = 'bold'
mpl.rcParams['axes.labelsize']   = 6
mpl.rcParams['xtick.labelsize']  = 6
mpl.rcParams['ytick.labelsize']  = 6

DPI = 300
Raymond Chia's avatar
Raymond Chia committed
FIG_FMT = 'png'
Raymond Chia's avatar
Raymond Chia committed

from sys import platform
if 'linux' in platform:
Raymond Chia's avatar
Raymond Chia committed
    DATA_DIR = "/projects/CIBCIGroup/00DataUploading/rqchia/"\
            "aria-respiration-cal/"
Raymond Chia's avatar
Raymond Chia committed
elif 'win' in platform:
Raymond Chia's avatar
Raymond Chia committed
    DATA_DIR = 'D:/Raymond Chia/UTS/Howe Zhu - ' \
            'Data/1stExperiment_sitting/respiration-calibration'