From 8ad36e0af0b610a765d70e3531f76e7591bbb26a Mon Sep 17 00:00:00 2001 From: BaptisteVandecrux Date: Fri, 13 Jan 2023 12:50:05 +0100 Subject: [PATCH 1/2] Update nead.py --- nead/nead.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nead/nead.py b/nead/nead.py index 816e04a..4a8638f 100644 --- a/nead/nead.py +++ b/nead/nead.py @@ -62,9 +62,9 @@ def read(neadfile, MKS=None, multi_index=True, index_col=None): # Convert from string to number if it is a number if val.strip('-').strip('+').replace('.','').isdigit(): - val = np.float(val) - if val == np.int(val): - val = np.int(val) + val = float(val) + if val == int(val): + val = int(val) if section == 'meta': meta[key] = val if section == 'fields': fields[key] = val From 0f7e9102aa604abb319e08dc020311358cb012bb Mon Sep 17 00:00:00 2001 From: BaptisteVandecrux Date: Fri, 13 Jan 2023 12:57:29 +0100 Subject: [PATCH 2/2] Update nead.py --- nead/nead.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nead/nead.py b/nead/nead.py index 4a8638f..e124697 100644 --- a/nead/nead.py +++ b/nead/nead.py @@ -96,9 +96,9 @@ def read(neadfile, MKS=None, multi_index=True, index_col=None): if all([str(s).strip('-').strip('+').replace('.','').isdigit() or str(s) == "" for s in arr]): arr = np.array(arr).astype("