Skip to content

Commit

Permalink
migrated from countries
Browse files Browse the repository at this point in the history
  • Loading branch information
leliel12 committed May 10, 2020
1 parent e17cb12 commit fc5293b
Show file tree
Hide file tree
Showing 8 changed files with 824 additions and 3 deletions.
3 changes: 2 additions & 1 deletion arcovid19/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"""

__version__ = "0.4.1"
__version__ = "0.5"


# =============================================================================
Expand All @@ -27,3 +27,4 @@

from .cache import CACHE, from_cache # noqa
from .cases import load_cases # noqa
from .models import load_infection_curve # noqa
5 changes: 4 additions & 1 deletion arcovid19/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@

import unicodedata

from deprecated import deprecated

from . import cache, core


Expand Down Expand Up @@ -159,10 +161,11 @@ def _plot_df(
pdf = pd.DataFrame(columns)
return pdf

# functions for backwards compatibility
@deprecated(version="0.5", reason="use curve_epi_country instead")
def grate_full_period_all(self, *args, **kwargs):
return self.curva_epi_pais(*args, **kwargs)

@deprecated(version="0.5", reason="use curve_epi_province instead")
def grate_full_period(self, *args, **kwargs):
return self.curva_epi_provincia(*args, **kwargs)

Expand Down

0 comments on commit fc5293b

Please sign in to comment.