cat-data-tools 1.3.0__tar.gz → 1.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/PKG-INFO +1 -1
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/__init__.py +1 -1
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/summary_posterior_results.py +2 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/LICENSE +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/README.md +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/build_trap_daily_status.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/calculate_effort_and_captures.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/cli.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/detect_status_change.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/filter_data_between_years.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/filter_data_by_month.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/transform_effort_captures.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/trap_status_list.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/update_status_traps.py +0 -0
- {cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/pyproject.toml +0 -0
|
@@ -14,10 +14,12 @@ def compute_population_size_time_series(posterior_samples, effort_captures_df):
|
|
|
14
14
|
column for column in posterior_samples.columns if column.startswith("N.")
|
|
15
15
|
]
|
|
16
16
|
population_size = posterior_samples[population_size_columns].median(axis=0)
|
|
17
|
+
population_size_percentile_95 = posterior_samples[population_size_columns].quantile(0.95)
|
|
17
18
|
birth_rate = compute_birth_rate(posterior_samples)
|
|
18
19
|
births = population_size * birth_rate
|
|
19
20
|
return {
|
|
20
21
|
"population_size": population_size.to_list(),
|
|
22
|
+
"population_size_percentile_95": population_size_percentile_95.to_list(),
|
|
21
23
|
"Date": effort_captures_df.Fecha.to_list(),
|
|
22
24
|
"Births": births.to_list(),
|
|
23
25
|
"Captures": effort_captures_df.Capturas.to_list(),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cat_data_tools-1.3.0 → cat_data_tools-1.4.0}/cat_data_tools/calculate_effort_and_captures.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|