Commit 8fca4646 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Fixed small bug in logical comparison

parent d5b86bb4
......@@ -778,7 +778,7 @@ def transform_dict_into_dataframe(dict_of_subclasses, bdg_classes):
sum_per_row = collect_values.sum(axis=1)
for row in range(0,collect_values.shape[0]):
# The row does not add up to 1 but it also does not add up to zero (measured as < 1E-5):
if np.logical_or(sum_per_row[row] > 1.0001, sum_per_row[row] < 0.9999) and (sum_per_row[row] < 1E-5):
if np.logical_or(sum_per_row[row] > 1.0001, sum_per_row[row] < 0.9999) and (sum_per_row[row] > 1E-5):
print('WARNING IN transform_dict_into_dataframe: THE SUM PER ROW IS NOT 1.0 IN AT LEAST ONE ROW!!!')
errors_found= True
elif sum_per_row[row] < 1E-5:
......
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