Skip to content

Commit

Permalink
patch to grain method
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaardt committed Dec 4, 2019
1 parent 13b3b78 commit 24e3665
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chainladder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from chainladder.methods import * # noqa (API Import)
from chainladder.workflow import * # noqa (API Import)

__version__ = '0.4.3'
__version__ = '0.4.4'
4 changes: 2 additions & 2 deletions chainladder/core/triangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ def grain(self, grain='', inplace=False):
obj.values = new_tri
obj.odims = np.unique(o)
obj.valuation = obj._valuation_triangle()
if type(self.ddims) == np.ndarray:
obj = obj.val_to_dev(inplace=True)
del obj._nan_triangle_
obj = obj.val_to_dev(inplace=True)
# Now do development
dev_grain_dict = {'M': {'Y': 12, 'Q': 3, 'M': 1},
'Q': {'Y': 4, 'Q': 1},
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
descr = "Chainladder Package - P&C Loss Reserving package "
name = 'chainladder'
url = 'https://github.com/jbogaardt/chainladder-python'
version='0.4.3' # Put this in __init__.py
version='0.4.4' # Put this in __init__.py

data_path = ''
setup(
Expand Down

0 comments on commit 24e3665

Please sign in to comment.