Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bogaardt committed Apr 27, 2020
1 parent db26aff commit e0f91e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chainladder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ def array_backend(array_backend='numpy'):
from chainladder.methods import * # noqa (API Import)
from chainladder.workflow import * # noqa (API Import)

__version__ = '0.6.1'
__version__ = '0.6.2'
4 changes: 1 addition & 3 deletions chainladder/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@ def _valuation_triangle(self, ddims=None):
len(self.origin)).to_period(self._lowest_grain()).to_timestamp(how='e')
if type(ddims[0]) in [np.str_, str]:
ddims = np.array([int(item[:item.find('-'):]) for item in ddims])
origin = pd.PeriodIndex(self.odims, freq=self.origin_grain) \
.to_timestamp(how='s')
origin = pd.Series(origin)
origin = pd.Series(self.odims)
if type(self.valuation_date) is not pd.Timestamp:
self.valuation_date = self.valuation_date.to_timestamp()
# Limit origin to valuation date
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
descr = "Chainladder Package - P&C Loss Reserving package "
name = 'chainladder'
url = 'https://github.com/casact/chainladder-python'
version='0.6.1' # Put this in __init__.py
version='0.6.2' # Put this in __init__.py

data_path = ''
setup(
Expand Down

0 comments on commit e0f91e8

Please sign in to comment.