population-trend 2.0.1__tar.gz → 2.0.2__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.1
2
2
  Name: population_trend
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: A template Python module
5
5
  Home-page: https://github.com/IslasGECI/population_trend
6
6
  Author: Ciencia de Datos • GECI
@@ -8,7 +8,7 @@ Author-email: ciencia.datos@islas.org.mx
8
8
  Requires-Python: >=3.9
9
9
  Description-Content-Type: text/markdown
10
10
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
11
- Requires-Dist: bootstrapping-tools==0.5.7
11
+ Requires-Dist: bootstrapping-tools==1.1.1
12
12
  Requires-Dist: geci-plots
13
13
  Requires-Dist: typer
14
14
 
@@ -1,6 +1,6 @@
1
1
  """A template Python module"""
2
2
 
3
- __version__ = "2.0.1"
3
+ __version__ = "2.0.2"
4
4
  from .cli import * # noqa
5
5
  from .filter_data import * # noqa
6
6
  from .population_growth_model import * # noqa
@@ -1,6 +1,6 @@
1
1
  import numpy as np
2
2
  from geci_plots import geci_plot, roundup, ticks_positions_array, order_magnitude
3
- from bootstrapping_tools import power_law
3
+ from bootstrapping_tools import power_law, lambda_calculator
4
4
  import matplotlib.pyplot as plt
5
5
 
6
6
 
@@ -27,7 +27,9 @@ class Population_Trend_Model:
27
27
  self.time_to_model = np.linspace(
28
28
  self.ticks_positions.min(), self.ticks_positions.max(), 100
29
29
  )
30
- self.initial_population = fit_data[interest_variable].iloc[0]
30
+ self.initial_population = lambda_calculator(
31
+ fit_data["Temporada"], fit_data[interest_variable]
32
+ )[1]
31
33
 
32
34
  @property
33
35
  def model_min(self):
@@ -10,7 +10,7 @@ description-file = "README.md"
10
10
  home-page = "https://github.com/IslasGECI/population_trend"
11
11
  module = "population_trend"
12
12
  requires = [
13
- "bootstrapping-tools==0.5.7",
13
+ "bootstrapping-tools==1.1.1",
14
14
  "geci-plots",
15
15
  "typer"
16
16
  ]