-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (31 loc) · 1.08 KB
/
Makefile
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
.PHONY: dijkstra all vis treeinfo
DATAPATH=$(shell cat config.xml|grep datapath|perl -npe '($$_)=/>(.*)</')
BASE ?= L2_17aug
FILE = $(DATAPATH)/$(BASE)
WHAT ?= mass
all: sato grid treeinfo
grid: $(FILE)/d_map.dat
sato: $(FILE)/sato.dat
# calculate tubularness measure
$(FILE)/upsampled.dat $(FILE)/sato.dat: $(FILE).dat
mkdir -p $(FILE)
python main.py $(BASE)
# calculate distance map, predecessor map, serialized graph
$(FILE)/d_map.dat $(FILE)/p_map.dat $(FILE)/wgraph.ser: $(FILE)/sato.dat $(FILE)/upsampled.dat
cd dijkstra && ./grid $(BASE) --cfg=../config.xml -s 2 -f 1 --no-gauss-fit # Maize
# print some info about the graph
treeinfo: $(FILE)/wgraph.ser
make -C dijkstra treeinfo
cd dijkstra && ./treeinfo -b $(BASE) -c ../config.xml -a print
vis:
ipython -wthread vis.py $(BASE)
imgs:
ipython -wthread -- vis.py -t $(WHAT) $(BASE) -o
demo:
#ipython -wthread -- vis.py -t $(WHAT) $(BASE)
ipython -- vis.py -t $(WHAT) $(BASE)
clean:
make -C presentation clean
make -C dijkstra clean
find -maxdepth 3 -name '*.pyc' | xargs -i rm {}
find -maxdepth 3 -name '*.pyo' | xargs -i rm {}