Commit 77d2404a authored by Martina Locatelli's avatar Martina Locatelli 🍁
Browse files
parents 28f6c832 9ed804a1
......@@ -144,9 +144,9 @@ class Aggregate(object):
Returns a (V, keys, keys_raw) tuple.
if np.isnan(V).any():
if np.isnan(np.sum(V)):
raise Exception("V matrix cannot have NaN values")
if np.isinf(V).any():
if np.isinf(np.sum(V)):
raise Exception("V matrix cannot have inf values")
if len(keys) == len(set(keys)):
self.__log.debug("Matrix does not need aggregation")
Markdown is supported
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