Skip to content

Commit 39308ec

Browse files
committed
Fix spectrum copy.
1 parent 20e6bff commit 39308ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pymatgen/core/spectrum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def __init__(self, x: ArrayLike, y: ArrayLike, *args, **kwargs) -> None:
6262
etc. operators work properly.
6363
**kwargs: Same as that for *args.
6464
"""
65-
self.x = np.asarray(x)
66-
self.y = np.asarray(y)
65+
self.x = np.array(x)
66+
self.y = np.array(y)
6767
self.ydim = self.y.shape
6868
if self.x.shape[0] != self.ydim[0]:
6969
raise ValueError("x and y values have different first dimension!")

0 commit comments

Comments
 (0)