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

SCM Repository

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

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

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

revision 4458, Sat Aug 27 19:52:38 2016 UTC revision 4459, Mon Aug 29 15:57:31 2016 UTC
# Line 2  Line 2 
2  from constants import *  from constants import *
3  from obj_frame import *  from obj_frame import *
4    
   
5  cpath =  "/Users/chariseechiw/diderot/"  cpath =  "/Users/chariseechiw/diderot/"
6    
7  # want to make your own testing frame?  # want to make your own testing frame?
# Line 17  Line 16 
16  s_path = cpath # "--whatever the path to diderot is"  s_path = cpath # "--whatever the path to diderot is"
17  # order of coefficients  # order of coefficients
18  s_coeff_style = coeff_cubic # coeff_quadratic  s_coeff_style = coeff_cubic # coeff_quadratic
19    # kernel
20    s_krn = h_hex #h_bs3
21    #s_krn = h_bs3
22    #s_krn = h_tent
23    #s_krn = h_tent
24  # types  # types
25  #ty_F ="all fields"  #ty_F ="all fields"
26  #ty_T ="all tensors"  #ty_T ="all tensors"
27  #ty_All ="mix of tensors and fields"  #ty_All ="mix of tensors and fields"
28  # what type of arguments do we want to test?  # what type of arguments do we want to test?
29  s_in_tys  = ty_All #ty_F #ty_T  s_in_tys  = ty_All
30    #s_in_tys  = ty_F
31    #s_in_tys  = ty_T
32    
33  # op1(t1) -> t2, what is the type of t2?  # op1(t1) -> t2, what is the type of t2?
34  s_rst_ty  = ty_All  #ty_F #ty_T  s_rst_ty  = ty_All  #ty_F #ty_T
35  #-------------- constants ----------------------  #-------------- constants ----------------------
# Line 34  Line 41 
41  # number of positions  # number of positions
42  s_num_pos = 7 #10  s_num_pos = 7 #10
43  # number of samples  # number of samples
44  s_samples = 30 #70  #s_samples = 30 #70
45    s_samples = 70
 krn_bs3 = "bspln3"#"ctmr"  
 krn_hex = "c4hexic"  
 s_krn = krn_hex  
46  #--------------------------------------------------------------------------------  #--------------------------------------------------------------------------------
47    
48  def mk_default(name, s_branch, s_coeff_style, s_path, s_samples, krn):  def mk_default(name, s_branch, s_coeff_style, s_path, s_samples, krn):
# Line 56  Line 60 
60  ########## frames ######  ########## frames ######
61  t_new = frame(name, s_branch, s_revision, s_precision, s_path, s_coeff_style, s_in_tys, s_rst_ty, s_ucoeff_range, s_lpos, s_upos, s_num_pos, s_samples, s_krn)  t_new = frame(name, s_branch, s_revision, s_precision, s_path, s_coeff_style, s_in_tys, s_rst_ty, s_ucoeff_range, s_lpos, s_upos, s_num_pos, s_samples, s_krn)
62    
63  t_vdefault = mk_default("default-vis", branch_vis15, coeff_quadratic, cpath, 70, s_krn)  t_vdefault = mk_default("default-vis", branch_vis15, coeff_quadratic, cpath, 70, h_hex)
64  t_vsmall_sample = mk_default("small sample", branch_vis15, coeff_quadratic, cpath, 30, s_krn)  t_vsmall_sample = mk_default("small sample", branch_vis15, coeff_quadratic, cpath, 30, h_hex)
65  t_vcubic = mk_default("cubic", branch_vis15 , coeff_cubic, cpath, 70, s_krn)  t_vcubic = mk_default("cubic", branch_vis15 , coeff_cubic, cpath, 70, h_hex)
66  t_vkrn = mk_default("bspln3", branch_vis15, coeff_quadratic, cpath, 70, krn_bs3)  t_vkrn = mk_default("bspln3", branch_vis15, coeff_quadratic, cpath, 70, h_bs3)
67    
68  t_edefault = mk_default("default-ein branch", branch_ein16 , coeff_quadratic, cpath, 70, s_krn)  t_edefault = mk_default("default-ein branch", branch_ein16 , coeff_quadratic, cpath, 70, h_hex)
69  t_esmall_sample = mk_default("small sample", branch_ein16, coeff_quadratic, cpath, 30, s_krn)  t_esmall_sample = mk_default("small sample", branch_ein16, coeff_quadratic, cpath, 30, h_hex)
70  t_ecubic = mk_default("cubic", branch_ein16 , coeff_cubic, cpath, 70, s_krn)  t_ecubic = mk_default("cubic", branch_ein16 , coeff_cubic, cpath, 70, h_hex)
71  t_ekrn = mk_default("default-ein branch", branch_ein16 , coeff_quadratic, cpath, 70, krn_bs3)  t_ekrn = mk_default("default-ein branch", branch_ein16 , coeff_quadratic, cpath, 70, h_bs3)
72  frames = [t_new, t_vdefault,t_edefault, t_vsmall_sample, t_esmall_sample,t_vcubic, t_ecubic,t_vkrn, t_ekrn]  frames = [t_new, t_vdefault,t_edefault, t_vsmall_sample, t_esmall_sample,t_vcubic, t_ecubic,t_vkrn, t_ekrn]
73  def get_testing_frame(n_frame):  def get_testing_frame(n_frame):
74      if(len(frames)< n_frame):      if(len(frames)< n_frame):

Legend:
Removed from v.4458  
changed lines
  Added in v.4459

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