Skip to content

Commit

Permalink
fix calls to np.int
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaze committed Feb 15, 2024
1 parent bcaa696 commit 18d1f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyxpcm/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __init__(self,

#todo check validity of the dict of features

self._props = {'K': np.int_(K),
self._props = {'K': int(K),
'F': len(features),
'llh': None,
'COVARTYPE': covariance_type,
Expand Down
2 changes: 1 addition & 1 deletion pyxpcm/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def subplots(m, maxcols=3, K=np.Inf, subplot_kw=None, **kwargs):
ncols = K

if K > maxcols:
nrows = 1 + np.int(K / maxcols)
nrows = 1 + int(K / maxcols)

Check warning on line 233 in pyxpcm/plot.py

View check run for this annotation

Codecov / codecov/patch

pyxpcm/plot.py#L233

Added line #L233 was not covered by tests
ncols = maxcols
if ncols == 1:
nrows = K
Expand Down

0 comments on commit 18d1f09

Please sign in to comment.