From 1d16c9c085ff7d3efe42bbbb07f8cd2993ee6299 Mon Sep 17 00:00:00 2001 From: Alejandra Gonzalez <alejandra.gonzalez@uni-jena.de> Date: Fri, 8 Oct 2021 23:07:01 +0200 Subject: [PATCH] Added same fix to the mass as previous commit --- watpy/wave/wave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watpy/wave/wave.py b/watpy/wave/wave.py index b009c87..5a702cc 100644 --- a/watpy/wave/wave.py +++ b/watpy/wave/wave.py @@ -127,7 +127,7 @@ def wfile_get_mass(fname): fname : Name of the file to parse for information """ s = extract_comments(fname, '#') - return float(re.findall("\d+\.\d+",s[1])[0]) + return float(s[1].split("=")[1]) # BAM specials -- GitLab