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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cat_data_tools
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: A Python module to process cats data
5
5
  Home-page: https://github.com/IslasGECI/cat_data_tools
6
6
  Author: Ciencia de Datos • GECI
@@ -1,6 +1,6 @@
1
1
  """A Python module to process cats data"""
2
2
 
3
- __version__ = "1.3.0"
3
+ __version__ = "1.4.0"
4
4
  from .cli import * # noqa
5
5
  from .filter_data_between_years import * # noqa
6
6
  from .filter_data_by_month import * # noqa
@@ -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