Commit 37cd9efd authored by William Clarke's avatar William Clarke
Browse files

Remove divide by zero warnings. Closes issue 20

parent 05d98ed1
......@@ -518,7 +518,8 @@ def quantifyInternal(reference, concentrations, names):
raise ValueError(f'Internal reference {reference} is not a recognised metabolite.')
concSum += concentrations[names.index(reference)]
return 1 / concSum
with np.errstate(divide='ignore', invalid='ignore'):
return 1 / concSum
def quantifyWater(mrs, results, quant_info, verbose=False):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment