Commit 80c1bdac authored by Quentin LOUIS's avatar Quentin LOUIS

Update experiments.py

parent 59a6b92f
......@@ -45,24 +45,24 @@ def launch_two_groups(output_file: str, L: float, n_birds_1: int, n_birds_2: int
def start_experiment(output_dir: str, L: float, n_birds: int, eta: float = .5, total_time:
float = 100, nb_experiments: int = 1, vel: float = 0.1) -> None:
subdir = ""
if nb_experiments > 1:
subdir = "N_" + str(n_birds) + "_L_" + str(L) + "_Eta_" + str(eta)
for i in range(nb_experiments):
name = subdir + "N_" + str(n_birds) + "_L_" + str(L) + "_Eta_" + str(eta) + "_angle_vel_" + "pi" + "_T_" + str(total_time) \
+ "_vel_" + str(vel) + "_nb_exp_" + str(i+1)
launch_simulation_random("phy571/simulation_data/" + output_dir + "/" + name + ".json", L=L, n_birds=n_birds, eta=eta,
total_time=total_time, ang_vel= 2*np.pi)
to_process = ["avg_speed", "avg_angle", "group_size", "group_size_avg", "group_size_avg_fit", "groups",
"correlations",
"correlations_fit", "group_to_size", "group_hulls"]
Processor().process("phy571/simulation_data/" + output_dir + "/" + name + ".json", "phy571/processing_data/" +
output_dir + "/" + name, verbose_prop=.1,
to_process=to_process,
options={"correlations_stochastic_points": 5000})
float = 100, num_exp: int = 1, vel: float = 0.1) -> None:
"""subdir = ""
if nb_experiments > 1:"""
subdir = "N_" + str(n_birds) + "_L_" + str(L) + "_Eta_" + str(eta)
"""for i in range(nb_experiments):"""
name = subdir + "N_" + str(n_birds) + "_L_" + str(L) + "_Eta_" + str(eta) + "_angle_vel_" + "pi" + "_T_" + str(total_time) \
+ "_vel_" + str(vel) + "_nb_exp_" + str(num_exp)
launch_simulation_random("phy571/simulation_data/" + output_dir + "/" + name + ".json", L=L, n_birds=n_birds, eta=eta,
total_time=total_time, ang_vel= 2*np.pi)
to_process = ["avg_speed", "avg_angle", "group_size", "group_size_avg", "group_size_avg_fit", "groups",
"correlations",
"correlations_fit", "group_to_size", "group_hulls"]
Processor().process("phy571/simulation_data/" + output_dir + "/" + name + ".json", "phy571/processing_data/" +
output_dir + "/" + name, verbose_prop=.1,
to_process=to_process,
options={"correlations_stochastic_points": 5000})
def ssh_experiments():
......@@ -103,7 +103,7 @@ def ssh_experiments():
'129.104.252.75', '129.104.252.76', '129.104.252.77', '129.104.252.78', '129.104.252.79',
'129.104.252.80', '129.104.252.81', '129.104.252.82', '129.104.252.83', '129.104.252.84',
'129.104.252.85','129.104.252.86', '129.104.252.87', '129.104.252.88']
login, passw =
login, passw = "quentin.louis", "Ri6elM1/1"
Ns = [400]#, 1600, 3600, 10000, 40000]
Ls = [20]#, 40, 60, 100, 200]
t = 10
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment