-
Notifications
You must be signed in to change notification settings - Fork 1
/
MEAPapp.py
70 lines (60 loc) · 2.2 KB
/
MEAPapp.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python
import multiprocessing
from meap.gui_tools import (MEAPView, VGroup, Item, ImageResource,
SplashScreen, meap_splash)
from time import time, sleep
import sys,os
from traits.api import HasTraits, Button, Instance
from meap import __version__
# Force import of compiled pyd
from srvf_register import dynamic_programming_q2
class MEAPGreeter(HasTraits):
preproc = Button("Preprocess")
analyze = Button("Analyze")
configure = Button("Configure MEAP")
batch_spreadsheet = Button("Create Batch Spreadsheet")
register_dZdt = Button("Batch Register dZ/dt")
def _preproc_fired(self):
from meap.preprocessing import PreprocessingPipeline
preproc=PreprocessingPipeline()
preproc.configure_traits()
def _analyze_fired(self):
from meap.physio_analysis import PhysioExperiment
pe = PhysioExperiment()
pe.configure_traits()
def _register_dZdt_fired(self):
from meap.batch_warp_dzdt import BatchGroupRegisterDZDT
batch = BatchGroupRegisterDZDT()
batch.configure_traits()
def _batch_spreadsheet_fired(self):
from meap.make_batch_spreadsheet import BatchFileTool
bft = BatchFileTool()
bft.configure_traits()
def _configure_fired(self):
print "Not implemented yet!"
traits_view=MEAPView(
VGroup(
Item("preproc"),
Item("analyze"),
Item("batch_spreadsheet"),
Item("register_dZdt"),
Item("configure"),
show_labels=False
)
)
if __name__ == "__main__":
multiprocessing.freeze_support()
print "Welcome to MEAP!"
print "================"
print ""
print "Version:", __version__
print "Please keep this window open. In case MEAP crashes, email"
print "Matt the error message printed here and explain what you"
print "were doing when it crashed. Please consider joining the"
print "MEAP google group to post questions and receive updates"
splash = SplashScreen(image=meap_splash)
splash.open()
greeter = MEAPGreeter()
sleep(3)
splash.close()
greeter.configure_traits()