From 12ac8ab7229382320ca1785f669887da5bdc9040 Mon Sep 17 00:00:00 2001 From: 404-James-404 <100977871+404-James-404@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:10:16 +1100 Subject: [PATCH] Update read.py to use float() instead of np.float() --- nanonispy/read.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanonispy/read.py b/nanonispy/read.py index a6c49f8..1b7a707 100644 --- a/nanonispy/read.py +++ b/nanonispy/read.py @@ -635,7 +635,7 @@ def _parse_sxm_header(header_raw): if isinstance(header_dict[key], list): header_dict[key] = np.asarray(header_dict[key], dtype=np.float) else: - header_dict[key] = np.float(header_dict[key]) + header_dict[key] = float(header_dict[key]) for key in entries_to_be_inted: header_dict[key] = np.asarray(header_dict[key], dtype=np.int)