-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartstudy
39 lines (38 loc) · 1.44 KB
/
startstudy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os,sys
from django.contrib.auth.models import User
from jv3.models import *
from jv3.utils import *
import jv3.study.content_analysis as ca
import jv3.study.diagnostic_analysis as da
import jv3.study.ca_datetime as cadt
import jv3.study.ca_sigscroll as cass
import jv3.study.ca_load as cal
import jv3.study.ca_plot as cap
import jv3.study.ca_search as cas
import jv3.study.wFunc as wF
import jv3.study.wClean as wC
import rpy2
import rpy2.robjects as ro
from jv3.study.study import *
from numpy import array
import jv3.study.integrity as integ
import jv3.study.thesis_figures as tfigs
import jv3.study.note_labels as nl
import jv3.study.intention as intent
import jv3.study.wUserWalk as wuw
import jv3.study.ca_user as cau
import jv3.study.revistation as rev
r = ro.r
emax = User.objects.filter(email="[email protected]")[0]
emax2 = User.objects.filter(email="[email protected]")[0]
brenn = User.objects.filter(email="[email protected]")[0]
gv = User.objects.filter(email="[email protected]")[0]
wstyke = User.objects.filter(email="[email protected]")[0]
katfang = User.objects.filter(email="[email protected]")[0]
karger = User.objects.filter(email="[email protected]")[0]
devoff = lambda : r('dev.off()')
c = lambda vv : apply(r.c,vv)
cap.set_basedir('/var/listit/www-ssl/_studyplots/')
## consenting users
consenting = [ u for u in User.objects.all() if is_consenting_study2(u)]
interesting_consenting = [ u for u in consenting if u.note_owner.count() > 60 ]