Skip to content

Commit

Permalink
numpy 2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
scottshambaugh committed Mar 19, 2024
1 parent 9d789f9 commit 40448a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

## [Unreleased]
### Added
* Numpy 2.0 compatibility
### Changed
### Removed

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ classifiers = [

[tool.poetry.dependencies]
python = ">=3.9.0,<3.13"
numpy = "^1.26"
numpy = ">=1.26"
scipy = "^1.11"
matplotlib = "^3.6"
tqdm = "^4.0"
Expand Down
4 changes: 2 additions & 2 deletions src/monaco/mc_val.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self,

self.val : Any
self.valmap : dict[Any, float]
self.num : np.float_ | np.ndarray
self.num : np.float64 | np.ndarray
self.nummap : dict[float, Any]
self.isscalar : bool
self.shape : tuple[int, ...]
Expand Down Expand Up @@ -92,7 +92,7 @@ def __init__(self,
super().__init__(name=name, ncase=ncase, ismedian=ismedian)
self.dist = dist
self.pct = pct
self.num = np.float_(num)
self.num = np.float64(num)
self.nummap = nummap
self.isscalar = True
self.shape = ()
Expand Down

0 comments on commit 40448a4

Please sign in to comment.