Skip to content

Commit

Permalink
samll fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PratipRana committed Jun 27, 2019
1 parent 8e102c7 commit e2d37af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/Simulation/sim_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import time
import sys

def brownian(d,v,sigma,t_bin=0.001):
def brownian(d,v,sigma,t_bin=0.01):

# simulate brownian motion

Expand Down Expand Up @@ -126,7 +126,8 @@ def main(N):
print("Done :", count, " Time : ",time.time() - start)

col_name= ['d', 'v', 'sigma', 'T', 'tau'] + ['S'+ str(i) for i in range(2,N+1)]
pd.DataFrame(Data).to_csv('dataSimulation'+str(N)+'.csv', column_name=col_name)
Data = pd.DataFrame(Data, columns=col_name)
Data.to_csv('dataSimulation'+str(N)+'.csv', index =False)

def test():

Expand All @@ -141,9 +142,8 @@ def test():
res = sim(N,d,v,sigma,T,tau)
print("result : ", res, " Time: ", time.time()-start)

main(int(sys.argv[1]))
main(int(sys.argv[1]))

test()



0 comments on commit e2d37af

Please sign in to comment.