Skip to content
Snippets Groups Projects
Commit 7b491789 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

please pylint

parent 175faf73
No related branches found
No related tags found
1 merge request!286Add mask to Info object
Pipeline #243682 passed with stages
in 4 minutes and 52 seconds
......@@ -132,6 +132,7 @@ multi_line_output = 3
[tool.pylint.message_control]
max-line-length = 120
disable = [
"C0302", # too many lines (data/tools.py)
"C0103", # ignore invalid-names like "x", "y"
"C0415", # ignore defered imports
"R0801", # ignore code duplications
......@@ -147,4 +148,5 @@ multi_line_output = 3
max-parents = 10
min-public-methods = 0
max-public-methods = 25
max-positional-arguments=15
max-positional-arguments = 15
max-returns = 8
......@@ -821,8 +821,7 @@ def _mask_eq(this, other):
if this is np.ma.nomask:
if other is np.ma.nomask:
return True
else:
return not np.any(other)
return not np.any(other)
if other is np.ma.nomask:
return not np.any(this)
# compare masks
......@@ -834,7 +833,7 @@ def _mask_eq(this, other):
def _format_mask(mask):
if mask not in list(Mask) + [None, np.ma.nomask]:
return "<ndarray>"
elif mask is np.ma.nomask:
if mask is np.ma.nomask:
return "nomask"
return str(mask)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment