@@ -345,26 +345,22 @@ def run_phase1(cfg: Config, output_dir: Path, logger: logging.Logger) -> List[Di
345345
346346 warmup_numba_kernels (cfg .grid_size , directed_hunting = cfg .directed_hunting )
347347
348- prey_births = cfg .get_prey_births ()
349348 prey_deaths = cfg .get_prey_deaths ()
350349
351350 # Build job list
352351 jobs = []
353- # Sweep through prey_birth and prey_death
354- for pb in prey_births :
355- for pd in prey_deaths :
356- for rep in range (cfg .n_replicates ):
357- params = {"pb" : pb , "pd" : pd }
358-
359- # Non-evolution run #FIXME: Check if both evo and non-evo are needed for phase 1
360- seed = generate_unique_seed (params , rep )
361- jobs .append ((pb , pd , cfg .predator_birth , cfg .predator_death ,
362- cfg .grid_size , seed , cfg , False ))
352+ # Sweep through prey_death only (prey_birth is fixed)
353+ for pd in prey_deaths :
354+ for rep in range (cfg .n_replicates ):
355+ params = {"pd" : pd }
356+
357+ seed = generate_unique_seed (params , rep )
358+ jobs .append ((cfg .prey_birth , pd , cfg .predator_birth , cfg .predator_death ,
359+ cfg .grid_size , seed , cfg , False ))
363360
364361
365362 logger .info (f"Phase 1: { len (jobs ):,} simulations" )
366- logger .info (f" Grid: { cfg .n_prey_birth } × { cfg .n_prey_death } × { cfg .n_replicates } reps × 2 (evo/no-evo)" )
367-
363+ logger .info (f" Grid: { cfg .n_prey_death } prey_death values × { cfg .n_replicates } reps (prey_birth={ cfg .prey_birth } )" )
368364 # Run with incremental saving
369365 output_jsonl = output_dir / "phase1_results.jsonl"
370366 all_results = []
0 commit comments