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
3
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
683fe386
Commit
683fe386
authored
1 year ago
by
Sebastian Müller
🐈
Browse files
Options
Downloads
Patches
Plain Diff
masking: pylint fix
parent
bd1dc860
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!260
Masked array support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finam/adapters/masking.py
+7
-7
7 additions, 7 deletions
src/finam/adapters/masking.py
with
7 additions
and
7 deletions
src/finam/adapters/masking.py
+
7
−
7
View file @
683fe386
...
...
@@ -65,9 +65,13 @@ class Masking(Adapter):
# info coming from output, set grid None to get the input grid
request
=
info
.
copy_with
(
grid
=
None
,
missing_value
=
None
)
in_info
=
self
.
exchange_info
(
request
)
# get missing value from cf-convention meta data (in/out can differ here)
out_nodata
=
info
.
meta
.
get
(
"
missing_value
"
,
None
)
in_nodata
=
in_info
.
meta
.
get
(
"
missing_value
"
,
None
)
# check no-data value
if
self
.
nodata
is
None
:
# get missing value from cf-convention meta data (in/out can differ here)
self
.
nodata
=
info
.
meta
.
get
(
"
missing_value
"
,
in_info
.
meta
.
get
(
"
missing_value
"
,
None
)
)
if
info
.
grid
is
None
:
with
ErrorLogger
(
self
.
logger
):
...
...
@@ -87,10 +91,6 @@ class Masking(Adapter):
self
.
_sup_grid
=
in_info
.
grid
self
.
_sub_grid
=
info
.
grid
# check no-data value
if
self
.
nodata
is
None
:
self
.
nodata
=
out_nodata
if
out_nodata
is
not
None
else
in_nodata
# create_selection
if
self
.
_sub_grid
.
mask
is
not
None
:
self
.
_canonical_mask
=
self
.
_sub_grid
.
to_canonical
(
self
.
_sub_grid
.
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