Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FINAM
finam
Commits
7b491789
Commit
7b491789
authored
5 months ago
by
Sebastian Müller
🐈
Browse files
Options
Downloads
Patches
Plain Diff
please pylint
parent
175faf73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!286
Add mask to Info object
Pipeline
#243682
passed with stages
in 4 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+3
-1
3 additions, 1 deletion
pyproject.toml
src/finam/data/tools.py
+2
-3
2 additions, 3 deletions
src/finam/data/tools.py
with
5 additions
and
4 deletions
pyproject.toml
+
3
−
1
View file @
7b491789
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/finam/data/tools.py
+
2
−
3
View file @
7b491789
...
...
@@ -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>
"
el
if
mask
is
np
.
ma
.
nomask
:
if
mask
is
np
.
ma
.
nomask
:
return
"
nomask
"
return
str
(
mask
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment