Skip to content

Commit

Permalink
Update io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaardt committed Feb 14, 2020
1 parent c1184a1 commit 171d33a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chainladder/core/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def to_json(self):
def sparse_out(tri):
k, v, o, d = tri.shape
xp = cp.get_array_module(tri)
if xp == cp:
if xp == cp != np:
out = cp.asnumpy(tri)
else:
out = tri
Expand All @@ -44,7 +44,7 @@ def sparse_out(tri):
'dtype': str(getattr(self, attribute).dtype),
'array': getattr(self, attribute).tolist()}
xp = cp.get_array_module(self.values)
if xp == cp:
if xp == cp != np:
out = cp.asnumpy(self.cum_to_incr().values)
else:
out = self.cum_to_incr().values
Expand Down

0 comments on commit 171d33a

Please sign in to comment.