DebasishDhal99 commited on
Commit
b934a0e
1 Parent(s): c878be0

converting float inputs to int

Browse files
Files changed (1) hide show
  1. multi_agent_2D.py +3 -1
multi_agent_2D.py CHANGED
@@ -56,7 +56,9 @@ def single_random_walk(iters, agent_number, ax, step_size = 1, random_seed = Non
56
 
57
  def multi_agent_walk(agent_count, iters, step_size = 1, random_seed = None):
58
  assert agent_count >= 1, "Number of agents must be >= than 1"
59
-
 
 
60
  def displacement_calc(df):
61
  x1,y1 = df.iloc[0]
62
  x2,y2 = df.iloc[-1]
 
56
 
57
  def multi_agent_walk(agent_count, iters, step_size = 1, random_seed = None):
58
  assert agent_count >= 1, "Number of agents must be >= than 1"
59
+ agent_count = int(agent_count)
60
+ iters = int(iters)
61
+
62
  def displacement_calc(df):
63
  x1,y1 = df.iloc[0]
64
  x2,y2 = df.iloc[-1]