diff --git a/watpy/wave/wave.py b/watpy/wave/wave.py index d52ee70f8862b726cadd87f2fc008303c2f875f0..b009c87700bfef5f1a601c0184681e753d076e79 100644 --- a/watpy/wave/wave.py +++ b/watpy/wave/wave.py @@ -115,13 +115,7 @@ def wfile_get_detrad(fname): fname : Name of the file to parse for information """ s = extract_comments(fname, '#') - #return float(re.findall("\d+\.\d+",s[0])[0]) - try: - #FIXME: Doesn't identify the exponential, returns only the 1st digit - rad_str = re.findall("\d+\.\d+",s[0])[1] - except: - rad_str = re.findall("\w+",s[0])[1] - return rinf_str_to_float(rad_str) + return rinf_str_to_float(s[0].split("=")[1]) def wfile_get_mass(fname):