+import os.path
+
from site_cons.site_init import link_wtk_graph
# Get the passed in environment.
Import('env')
+data = File('data')
+
+king_vs_best_data = []
+
+fit_valley = env.Command(
+ 'fit-valley.data',
+ ['extract_fit_valley.py', data],
+ 'python $SOURCES > $TARGET')
+king_vs_best_data.append(fit_valley)
+
+best_dir = Dir('Best_2002_detailed_unfolding_pathway')
+best_valley = env.Command(
+ os.path.join(str(best_dir), 'fig3a-kx.data'),
+ [os.path.join(str(best_dir), 'fig3a.data')],
+ "grep -v '^#' $SOURCE | awk 'BEGIN{OFS=\"\t\"}{print $2, $1}' > $TARGET")
+king_vs_best_data.append(best_valley)
+
wtk_graph = link_wtk_graph(env)
for fig in FIGURES:
asyfile = '%s.asy' % fig
- env.Asymptote([asyfile, wtk_graph])
+ pyfig = fig.replace('-', '_')
+ data = '%s_data' % (pyfig)
+ asydata = []
+ if data in globals(): # generated data dependencies
+ asydata = globals()[data]
+ env.Asymptote([asyfile, wtk_graph] + asydata)
# Pass back the modified environment.
Return('env')
graphFile("Best_2002_detailed_unfolding_pathway/fig3a-kx.data", xscale, yscale, psoft, m30,
t="Best valley", dots=true);
-graphFile("fit_valley.data", xscale, yscale, phard, m30,
+graphFile("fit-valley.data", xscale, yscale, phard, m30,
t="King valley", dots=true);
label(sLabel(""), point(N), N);