3 from site_cons.site_init import link_wtk_graph, link_pyfit
6 FIGURES = ['v-dep', 'loading-rate', 'i-dep']
8 # Get the passed in environment.
11 v_dep_data_dir = env.Dir('v-dep.d')
13 f for f in env.Glob(os.path.join(str(v_dep_data_dir), '*'))
14 if 'fit' not in str(f)]
16 pyfit = link_pyfit(env)
19 for f in v_dep_data_files:
23 "python %s -m math:log -f 'A*log(x,10)+B' -v $SOURCE > $TARGET"
24 % pyfit[0].get_abspath())
25 fit_dat = env.Command(
28 "sed -n 's/^[A-Z]: //p' $SOURCE > $TARGET")
29 v_dep_fit_files.append(fit_dat)
31 v_dep_data = v_dep_data_files + v_dep_fit_files
33 wtk_graph = link_wtk_graph(env)
36 asyfile = '%s.asy' % fig # static .asy file
37 pyfig = fig.replace('-', '_')
38 data = '%s_data' % (pyfig)
40 if data in globals(): # generated data dependencies
41 asydata = globals()[data]
42 env.Asymptote([asyfile, wtk_graph] + asydata)
44 # Pass back the modified environment.