Skip to content

Commit

Permalink
Using asarray to avoid copying
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Rudiger <prudiger@anaconda.com>
  • Loading branch information
jlstevens and philippjfr committed Jul 13, 2020
1 parent 191d431 commit 8c1adb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions param/__init__.py
Expand Up @@ -1436,8 +1436,8 @@ def serialize(cls, value):

@classmethod
def deserialize(cls, value):
from numpy import array
return array(value)
from numpy import asarray
return asarray(value)


class DataFrame(ClassSelector):
Expand Down

0 comments on commit 8c1adb9

Please sign in to comment.