File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -414,7 +414,6 @@ def run_single_simulation(
414414 prey_percolates .append (prey_perc )
415415 pred_percolates .append (pred_perc )
416416
417- # <-- FIX 2: Add PCF collection code back
418417 # Compute PCFs if enabled for this run
419418 if compute_pcf :
420419 max_dist = min (grid_size / 2 , cfg .pcf_max_distance )
@@ -549,14 +548,16 @@ def run_single_simulation_fss(
549548 cluster_interval = max (1 , int (cfg .cluster_interval * grid_size / cfg .default_grid ))
550549 sample_counter = 0
551550
551+ min_count = int (cfg .min_analysis_density * (grid_size ** 2 )) # Scaled threshold
552+
552553 for step in range (measurement_steps ):
553554 model .update ()
554555 _ , prey , pred = count_populations (model .grid )
555556 prey_pops .append (prey )
556557 pred_pops .append (pred )
557558
558559 if step % cluster_interval == 0 and sample_counter < cfg .cluster_samples :
559- if prey > 10 :
560+ if prey >= min_count :
560561 # Full cluster stats for FSS
561562 prey_stats = get_cluster_stats_fast (model .grid , 1 )
562563 prey_clusters .extend (prey_stats ['sizes' ])
You can’t perform that action at this time.
0 commit comments