/EMAModule

EMA Module for UNITE project, to analyze data and decide when to trigger EMA responses inside the server

Primary LanguagePython

Introduction

EMA Module is a module for context-aware EMA triggering.

Usage:

from pathlib import Path
import EMAModule

mod = EMAModule.MainModule()
datapath = '/Path/To/data_uniterctXXX-2020-11-09-08-41-01.csv'
user_id = 'uniterctXXX'

# Here is where Sample_{username}.csv, density_{username}.npy, bndrs_{username}.csv and userinfo_{username}.json files are stored.
filepath = Path('/Path/To/User/Metadata/Files/')

mod.main(datapath, filepath, user_id)

Local Installation

python3 setup.py install

Deploying to UNITE server:

Remember to change env.hosts in fabfile.py for deployment to server before running commands.

Use Python fabricator:

fab deploy