Skip to content

Commit

Permalink
Made the if statement more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Csaba committed Sep 12, 2023
1 parent dfc369f commit 6c2bf01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def _check_variables_consistency(
for desc_id in id_set:
if np.isnan(x_result.loc[desc_id, cell_type]):
if ((deltas.loc[region_name, cell_type] in [0.0, np.inf]) and
(x_result.loc[id_, cell_type] == 0.0) or (np.isnan(x_result.loc[id_, cell_type]))
((x_result.loc[id_, cell_type] == 0.0) or (np.isnan(x_result.loc[id_, cell_type])))
):
# If the region's cell count value was set to 0 because the region does
# not exist we don't have to raise an error. Instead of x_result
Expand Down

0 comments on commit 6c2bf01

Please sign in to comment.