In sample_sequences_g.php, add line in the lowest foreach...if...:
$sample[0]['pop_size'] = $i[$key];
In get_sample_pd_g.php, modify the lowest yield statement to:
yield [true, '', ['location' => $loc, 'pd' => $pd, 'pop_size' => $loc['pop_size']]];
In get_pd.php, modify the output-making line in within the array_map(.... ,$results) statement to:
fn($res) => make_geojson($res, ['iteration', 'pd', 'pd_ci', 'pop_size']),
In sample_sequences_g.php, add line in the lowest foreach...if...:
$sample[0]['pop_size'] = $i[$key];
In get_sample_pd_g.php, modify the lowest yield statement to:yield [true, '', ['location' => $loc, 'pd' => $pd, 'pop_size' => $loc['pop_size']]];
In get_pd.php, modify the output-making line in within the array_map(.... ,$results) statement to:fn($res) => make_geojson($res, ['iteration', 'pd', 'pd_ci', 'pop_size']),