Skip to content

Commit

Permalink
Spectrum x and y axis should be float, not int
Browse files Browse the repository at this point in the history
  • Loading branch information
georgievgeorgi committed Oct 17, 2024
1 parent 5637c00 commit 34c3941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ramanchada2/spectrum/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def __init__(self,
super(Plottable, self).__init__()
if x is not None:
if isinstance(x, int):
self.x = np.arange(x)
self.x = np.arange(x) * 1.
else:
self.x = x
self.x = x * 1.
if y is not None:
self.y = y
self.y = y * 1.

self._x_err: Union[npt.NDArray, None] = None
self._y_err: Union[npt.NDArray, None] = None
Expand Down

0 comments on commit 34c3941

Please sign in to comment.