From 78c6cacd487914e98a14868eaf453b82752e9831 Mon Sep 17 00:00:00 2001 From: Oege Dijk Date: Fri, 28 May 2021 12:48:22 +0200 Subject: [PATCH] noqa --- rule_estimator/nodes.py | 8 ++++---- rule_estimator/rules.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rule_estimator/nodes.py b/rule_estimator/nodes.py index 7dcb120..d06b0b3 100644 --- a/rule_estimator/nodes.py +++ b/rule_estimator/nodes.py @@ -282,12 +282,12 @@ def __rule__(self, X): def AND_masks(masks): for i, mask in enumerate(masks): - combined_mask = mask if i == 0 else combined_mask & mask + combined_mask = mask if i == 0 else combined_mask & mask # noqa: F82 return combined_mask def OR_masks(masks): for i, mask in enumerate(masks): - combined_mask = mask if i == 0 else combined_mask | mask + combined_mask = mask if i == 0 else combined_mask | mask # noqa: F82 return combined_mask def generate_range_mask(X, col, col_range): @@ -323,12 +323,12 @@ def __rule__(self, X): def AND_masks(masks): for i, mask in enumerate(masks): - combined_mask = mask if i == 0 else combined_mask & mask + combined_mask = mask if i == 0 else combined_mask & mask # noqa: F82 return combined_mask def OR_masks(masks): for i, mask in enumerate(masks): - combined_mask = mask if i == 0 else combined_mask | mask + combined_mask = mask if i == 0 else combined_mask | mask # noqa: F82 return combined_mask def generate_range_mask(X, col, col_range): diff --git a/rule_estimator/rules.py b/rule_estimator/rules.py index 28493ab..b69120c 100644 --- a/rule_estimator/rules.py +++ b/rule_estimator/rules.py @@ -285,12 +285,12 @@ def __rule__(self, X): def AND_masks(masks): for i, mask in enumerate(masks): - combined_mask = mask if i == 0 else combined_mask & mask + combined_mask = mask if i == 0 else combined_mask & mask # noqa: F82 return combined_mask def OR_masks(masks): for i, mask in enumerate(masks): - combined_mask = mask if i == 0 else combined_mask | mask + combined_mask = mask if i == 0 else combined_mask | mask # noqa: F82 return combined_mask def generate_range_mask(X, col, col_range): @@ -327,12 +327,12 @@ def __rule__(self, X): def AND_masks(masks): for i, mask in enumerate(masks): - combined_mask = mask if i == 0 else combined_mask & mask + combined_mask = mask if i == 0 else combined_mask & mask # noqa: F82 return combined_mask def OR_masks(masks): for i, mask in enumerate(masks): - combined_mask = mask if i == 0 else combined_mask | mask + combined_mask = mask if i == 0 else combined_mask | mask # noqa: F82 return combined_mask def generate_range_mask(X, col, col_range):