Skip to content

Commit d78404a

Browse files
committed
adding documentation slowly using pdoc
1 parent e74fbc8 commit d78404a

29 files changed

Lines changed: 12556 additions & 486 deletions

bash_scripts/run_phase1.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
# =============================================================================
1515
#
1616
# PHASE 1: Find critical point via 2D sweep of prey_birth × prey_death
17-
# - 15 × 15 × 15 reps × 2 (evo/non-evo) = 6,750 simulations
18-
# - Estimated runtime: ~2 min on 32 cores
19-
# - Memory: ~8 GB peak
2017
#
2118
# SUBMIT: sbatch run_phase1.sh
2219
# MONITOR: squeue -u $USER
@@ -88,10 +85,4 @@ echo "Results in: $OUTPUT_DIR/"
8885
echo ""
8986
echo "Output files:"
9087
ls -lh $OUTPUT_DIR/
91-
echo ""
92-
echo "Next steps:"
93-
echo " 1. Download phase1_results.jsonl"
94-
echo " 2. Run analysis.py to find critical point"
95-
echo " 3. Update config.py with critical_prey_birth/death"
96-
echo " 4. Run phase 2-5"
97-
echo "========================================"
88+
echo ""

bash_scripts/run_phase2.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
# PP Hydra Effect - Phase 2: Self-Organization (SOC Test)
1414
# =============================================================================
1515
#
16-
# PHASE 2: Test if prey_death evolves toward critical point
17-
# - 6 initial prey_death values × 30 reps = 180 simulations
18-
# - Longer runs (5000 steps) for evolution to equilibrate
19-
# - Tracks evolved_prey_death_timeseries
20-
#
2116
# SUBMIT: sbatch run_phase2.sh
2217
# MONITOR: squeue -u $USER
2318
# CANCEL: scancel <job_id>
@@ -88,10 +83,4 @@ echo "Results in: $OUTPUT_DIR/"
8883
echo ""
8984
echo "Output files:"
9085
ls -lh $OUTPUT_DIR/
91-
echo ""
92-
echo "Next steps:"
93-
echo " 1. Download phase2_results.jsonl"
94-
echo " 2. Plot evolved_prey_death_final vs initial prey_death"
95-
echo " 3. Check if all runs converge to ~0.095-0.105 (critical point)"
96-
echo " 4. If SOC confirmed, proceed to Phase 3 (finite-size scaling)"
97-
echo "========================================"
86+
echo ""

bash_scripts/run_phase3.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
# PP Hydra Effect - Phase 3: Finite-Size Scaling
1414
# =============================================================================
1515
#
16-
# PHASE 3: Test finite-size scaling at critical point
17-
# - Grid sizes: 50, 100, 250, 500, 1000
18-
# - 20 replicates per size = 100 simulations
19-
# - Cluster size distributions for power-law analysis
20-
#
2116
# SUBMIT: sbatch run_phase3.sh
2217
# MONITOR: squeue -u $USER
2318
# CANCEL: scancel <job_id>
@@ -86,10 +81,4 @@ echo "Results in: $OUTPUT_DIR/"
8681
echo ""
8782
echo "Output files:"
8883
ls -lh $OUTPUT_DIR/
89-
echo ""
90-
echo "Next steps:"
91-
echo " 1. Download phase3_results.jsonl"
92-
echo " 2. Analyze cluster size distributions P(s) for each grid size"
93-
echo " 3. Fit power-law exponent tau from P(s) ~ s^(-tau)"
94-
echo " 4. Check finite-size cutoff s_max ~ L^D (fractal dimension)"
95-
echo "========================================"
84+
echo ""

bash_scripts/run_phase4.sh

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@
1313
# PP Hydra Effect - Phase 4: Global Sensitivity Analysis
1414
# =============================================================================
1515
#
16-
# PHASE 4: Full 4D Parameter Sweep (Global Sensitivity)
17-
# - Parameters: prey_birth, prey_death, pred_birth, pred_death
18-
# - Sweep: 0.0 to 1.0 (11 values each) = 14,641 combinations
19-
# - Replicates: 10 per combination
20-
# - Total Simulations: ~146,410
21-
# - Grid Size: 250x250
22-
#
2316
# SUBMIT: sbatch run_phase4.sh
2417
# MONITOR: squeue -u $USER
2518
# CANCEL: scancel <job_id>
@@ -89,10 +82,4 @@ echo "Results in: $OUTPUT_DIR/"
8982
echo ""
9083
echo "Output files:"
9184
ls -lh $OUTPUT_DIR/
92-
echo ""
93-
echo "Next steps:"
94-
echo " 1. Download phase4_results.jsonl"
95-
echo " 2. Perform Global Sensitivity Analysis (Sobol Indices)"
96-
echo " 3. Identify parameter dominance for extinction events"
97-
echo " 4. Plot parameter heatmaps for predator/prey survival"
98-
echo "========================================"
85+
echo ""

bash_scripts/run_phase5.sh

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,9 @@
1010
#SBATCH --error=pp_phase6_%j.err
1111

1212
# =============================================================================
13-
# PP Hydra Effect - Phase 6: Directed Hunting 4D Sweep
13+
# PP Hydra Effect - Phase 5: Directed Hunting 4D Sweep
1414
# =============================================================================
1515
#
16-
# PHASE 6: Full 4D parameter sweep with directed hunting enabled
17-
# - Same structure as Phase 4 but with directed_hunting=True
18-
# - 11^4 × 10 reps = 146,410 simulations
19-
# - Grid size: 250
20-
# - Collects time series for comparison with Phase 4
21-
# - Estimated runtime: ~4-6 hours on 128 cores
22-
# - Memory: mem=0 (use all available node memory)
23-
#
2416
# PURPOSE: Test if Hydra effect and SOC persist under directed hunting
2517
#
2618
# SUBMIT: sbatch run_phase6.sh
@@ -93,11 +85,4 @@ echo "Results in: $OUTPUT_DIR/"
9385
echo ""
9486
echo "Output files:"
9587
ls -lh $OUTPUT_DIR/
96-
echo ""
97-
echo "Next steps:"
98-
echo " 1. Download phase6_results.jsonl"
99-
echo " 2. Compare with Phase 4 results (random hunting baseline)"
100-
echo " 3. Analyze if Hydra effect persists under directed hunting"
101-
echo " 4. Compare critical point locations between Phase 4 and Phase 6"
102-
echo " 5. Check for differences in SOC signatures"
103-
echo "========================================"
88+
echo ""

docs/index.html

Lines changed: 221 additions & 0 deletions
Large diffs are not rendered by default.

docs/models.html

Lines changed: 291 additions & 0 deletions
Large diffs are not rendered by default.

docs/models/CA.html

Lines changed: 2613 additions & 0 deletions
Large diffs are not rendered by default.

docs/models/config.html

Lines changed: 2057 additions & 0 deletions
Large diffs are not rendered by default.

docs/models/numba_optimized.html

Lines changed: 3327 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)