Skip to content

Commit

Permalink
Changed np.Inf to np.inf, because the former got deprecated in Numpy …
Browse files Browse the repository at this point in the history
…2.0.
  • Loading branch information
NikoOinonen committed Jul 2, 2024
1 parent 8ebe873 commit 5810480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ppafm/ml/AuxMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(
if diskMode == "sphere":
self.offset = 0.0
elif diskMode == "center":
self.projector.dzmax_s = np.Inf
self.projector.dzmax_s = np.inf
self.offset = -1.0
else:
raise ValueError(f"Unknown diskMode {diskMode}. Should be either sphere or center")
Expand Down
2 changes: 1 addition & 1 deletion ppafm/ocl/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ class AtomProcjetion:
Rpp = 2.0 # probe-particle radius
zmin = -3.0 # minim position of pixels sampled in SphereMaps
dzmax = 2.0 # maximum distance of atoms from sampling screen for Atomic Disk maps ( similar )
dzmax_s = np.Inf # maximum depth of vdW shell in Atomic Disks
dzmax_s = np.inf # maximum depth of vdW shell in Atomic Disks

Rmax = 10.0 # Radial function of bonds&atoms potential ; used in Bonds
drStep = 0.1 # step dx (dr) for sampling of radial function; used in Bonds
Expand Down

0 comments on commit 5810480

Please sign in to comment.