Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/ein16/synth/d2/run.py
ViewVC logotype

Diff of /branches/ein16/synth/d2/run.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3939, Tue Jun 7 18:06:23 2016 UTC revision 3940, Tue Jun 7 21:38:49 2016 UTC
# Line 16  Line 16 
16    
17  opr_max = 11  opr_max = 11
18  todo = sys.argv[1]  todo = sys.argv[1]
19    vispath = "/Users/chariseechiw/diderot/vis15/bin/diderotc --exec "
20    einpath =  "/Users/chariseechiw/diderot/ein16/bin/diderotc "
21    runtimepath  =  ""
22    isVis15 = true
23    if isVis15:
24        runtimepath  = vispath
25    else:
26        runtimepath  =  einpath
27    
28    
29  def clean():  def clean():
30      # Clean up      # Clean up
# Line 35  Line 44 
44      #create synthetic field data with diderot      #create synthetic field data with diderot
45      createField(app, outSize, coeffs)      createField(app, outSize, coeffs)
46      #create diderot program with operator      #create diderot program with operator
47      writeDiderot(p_Observ, app, positions, output)      writeDiderot(p_Observ, app, positions, output, runtimepath, isVis15)
48        if(isVis15):
49            return "compiled"
50        else:
51      #read observed data      #read observed data
52      observed_data = observed(app, output)      observed_data = observed(app, output)
53      print "observed data from python",observed_data      print "observed data from python",observed_data
# Line 48  Line 60 
60      clean()      clean()
61      return rtn      return rtn
62    
63    
64  # get example from list of examples  # get example from list of examples
65  def single1_specific_ex(ex_opr, ex_num):  def single1_specific_ex(ex_opr, ex_num):
66      print "single specific ex"      print "single specific ex"
     # current example/Users/chariseechiw/diderot/ein16/synth/d2  
67      (name,opr,ishape)= get_single_example(int(ex_opr), int(ex_num))      (name,opr,ishape)= get_single_example(int(ex_opr), int(ex_num))
68      print name      print name
69      #create app object      #create app object

Legend:
Removed from v.3939  
changed lines
  Added in v.3940

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0