Commit 1a195a85 authored by Quentin LOUIS's avatar Quentin LOUIS

test machine

parent 3db719e7
......@@ -38,24 +38,24 @@ def launch_two_groups(output_file: str, L: float, n_birds_1: int, n_birds_2: int
Life.simulate(physics, dt, total_time, verbose_prop=.1, output_file=output_file)
launch_simulation_random("simulation_data/test.json", L=70, n_birds=1000, eta=.3, total_time=5) # , evolve=evolve)
launch_simulation_random("simulation_data/test-machine.json", L=1000, n_birds=100000, eta=.2, total_time=10) # , evolve=evolve)
#
# # launch_two_groups("simulation_data/test.json", L=100, n_birds_1=100, n_birds_2=0, radius_1=5, radius_2=5,
# # total_time=60, center_1=[50, 50], center_2=[80, 50], angle_1=0, angle_2=np.pi, eta=.4)
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("simulation_data/test.json", "processing_data/test", verbose_prop=.1, to_process=to_process,
Processor().process("simulation_data/test-machine.json", "processing_data/test-machine", verbose_prop=.1, to_process=to_process,
options={"correlations_stochastic_points": 5000})
to_draw = ["avg_speed", "avg_angle", "avg_polar", "angle_pdf", "correlations", "correlations_fit", "correlation_length",
"group_size", "group_size_avg", "group_size_avg_fit", "group_dimension", "group_dimension_avg", "quiver", "evolution_group_size"]
Visualiser("processing_data/test", "visualisations/test.mp4", simulation_data_file="simulation_data/test.json",
Visualiser("processing_data/test-machine", "visualisations/test-machine.mp4", simulation_data_file="simulation_data/test-machine.json",
verbose_prop=.1,
to_draw=to_draw,
options={"quiver_color_by_group": True, "quiver_draw_by_group": True, "quiver_color_single": True, "max_group_size": 50,
"max_num_groups": 500}).vizualize()
options={"quiver_color_by_group": True, "quiver_draw_by_group": True, "quiver_color_single": True, "max_group_size": 5000,
"max_num_groups": 50000}).vizualize()
# N = [10000]
#
......
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