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

SCM Repository

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

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

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

revision 4252, Mon Jul 25 03:26:21 2016 UTC revision 4257, Mon Jul 25 15:23:32 2016 UTC
# Line 3  Line 3 
3  import os  import os
4    
5    
6  fld="sun_ein"  #directory to save programs  fld="mon_ein"  #directory to save programs
7  branch = "ein16"  branch = "ein16"
8  ##################################################################################################  ##################################################################################################
9  def Title_inner(opr_inner):  def Title_inner(opr_inner):
# Line 62  Line 62 
62    
63  # copy programs and corresponding file to new directory  # copy programs and corresponding file to new directory
64  def writeToRst(names, observed_data, correct_data):  def writeToRst(names, observed_data, correct_data):
65    
66      path = fld+"/"+names      path = fld+"/"+names
67      os.system("mkdir "+path)      os.system("mkdir "+path)
68      os.system("cp data/output5_p_observ.diderot "+path+"/"+names+".diderot")      os.system("cp data/output5_p_observ.diderot "+path+"/"+names+".diderot")
# Line 70  Line 71 
71      os.system("cp data/inputfile_1.nrrd "+path+"/inputfile_1.nrrd")      os.system("cp data/inputfile_1.nrrd "+path+"/inputfile_1.nrrd")
72      os.system("cp data/inputfilecat_2.nrrd "+path+"/inputfilecat_2.nrrd")      os.system("cp data/inputfilecat_2.nrrd "+path+"/inputfilecat_2.nrrd")
73      os.system("cp data/inputfile_2.nrrd "+path+"/inputfile_2.nrrd")      os.system("cp data/inputfile_2.nrrd "+path+"/inputfile_2.nrrd")
74      a= "\n\nterrible-data"      a= names
75      b= "\n\nobserved data from "+branch+" "+str(observed_data)      b= "\n\nobserved data from "+branch+" "+str(observed_data)
76      # correct values from python      # correct values from python
77      c= "\n\ncorrect data from python"+str(correct_data)      c= "\n\ncorrect data from python"+str(correct_data)

Legend:
Removed from v.4252  
changed lines
  Added in v.4257

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