Skip to content

Commit ea08074

Browse files
committed
data looks good this time I think
1 parent 69e1426 commit ea08074

7 files changed

Lines changed: 267 additions & 741 deletions
92.5 KB
Loading
111 KB
Loading
115 KB
Loading
107 KB
Loading

notebooks/fig5_hydra_effect.png

74 KB
Loading

notebooks/phase1.ipynb

Lines changed: 266 additions & 719 deletions
Large diffs are not rendered by default.

scripts/experiments.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -217,28 +217,7 @@ def run_single_simulation(
217217
evolved_means.append(stats["mean"])
218218
evolved_stds.append(stats["std"])
219219

220-
# Cluster analysis (at end of measurement)
221-
if step == measurement_steps - 1:
222-
prey_survived = prey_pops[-1] > min_count
223-
pred_survived = pred_pops[-1] > (min_count // 4)
224-
225-
if prey_survived:
226-
prey_stats = get_cluster_stats_fast(model.grid, 1)
227-
cluster_sizes_prey = prey_stats['sizes'].tolist()
228-
largest_fractions_prey.append(prey_stats['largest_fraction'])
229-
230-
if pred_survived:
231-
pred_stats = get_cluster_stats_fast(model.grid, 2)
232-
cluster_sizes_pred = pred_stats['sizes'].tolist()
233-
largest_fractions_pred.append(pred_stats['largest_fraction'])
234-
235-
# PCF requires both
236-
if compute_pcf and prey_survived and pred_survived:
237-
max_dist = min(grid_size / 2, cfg.pcf_max_distance)
238-
pcf_data = compute_all_pcfs_fast(model.grid, max_dist, cfg.pcf_n_bins)
239-
pcf_samples['prey_prey'].append(pcf_data['prey_prey'])
240-
pcf_samples['pred_pred'].append(pcf_data['pred_pred'])
241-
pcf_samples['prey_pred'].append(pcf_data['prey_pred'])
220+
242221

243222

244223
# Compile results

0 commit comments

Comments
 (0)