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

SCM Repository

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

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

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

revision 4307, Fri Jul 29 19:29:48 2016 UTC revision 4308, Fri Jul 29 20:53:07 2016 UTC
# Line 18  Line 18 
18  output="data/output5_"+p_Observ         # name of output file with observed data  output="data/output5_"+p_Observ         # name of output file with observed data
19  inputfile="data/inputfile"              # name of synthetic field created  inputfile="data/inputfile"              # name of synthetic field created
20    
21    args_types = 1 # FT args, T args
22    
23  #--------------------samples, positions --------------------  #--------------------samples, positions --------------------
24  #outSize  #outSize
25  def get_size(dim):  def get_size(dim):
# Line 32  Line 34 
34              x=random.uniform(lpos, upos)              x=random.uniform(lpos, upos)
35              posL.append(round(x ,2))              posL.append(round(x ,2))
36          return posL          return posL
37      else:      elif(dim==2 or dim==3):
38          posL=[]          posL=[]
39          for s in range(num_pos):          for s in range(num_pos):
40              pos=[]              pos=[]
# Line 42  Line 44 
44                  pos.append(round(x ,2))                  pos.append(round(x ,2))
45              posL.append(pos)              posL.append(pos)
46          return posL          return posL
47        else:
48           return [0]

Legend:
Removed from v.4307  
changed lines
  Added in v.4308

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