Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with NumPy 2.0 #287

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading