Skip to content

Commit

Permalink
noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
oegedijk committed May 28, 2021
1 parent 4a3b0d9 commit 78c6cac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions rule_estimator/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down
8 changes: 4 additions & 4 deletions rule_estimator/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 78c6cac

Please sign in to comment.