Skip to content

Commit

Permalink
Replace use of deprecated numpy.NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdawson committed Nov 15, 2024
1 parent 7aa00cb commit 2247268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eofs/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def __init__(self, dataset, weights=None, center=True, ddof=1):
# astype method to ensure the eigenvectors are the same type as the
# input dataset since multiplication by np.NaN will promote to 64-bit.
self._flatE = np.ones([self.neofs, channels],
dtype=self._data.dtype) * np.NaN
dtype=self._data.dtype) * np.nan
self._flatE = self._flatE.astype(self._data.dtype)
self._flatE[:, nonMissingIndex] = E
# Remove the scaling on the principal component time-series that is
Expand Down

0 comments on commit 2247268

Please sign in to comment.