Skip to content
Snippets Groups Projects
Commit 92f1b03a authored by Alejandra Gonzalez's avatar Alejandra Gonzalez
Browse files

Fixed radius reading from file

parent 8127c47f
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment