Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
finam
Manage
Activity
Members
Labels
Plan
Issues
31
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
Merge requests
!258
Grid mask support
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Grid mask support
grid_mask_support
into
main
Overview
10
Commits
30
Pipelines
18
Changes
13
All threads resolved!
Hide all comments
Merged
Sebastian Müller
requested to merge
grid_mask_support
into
main
1 year ago
Overview
10
Commits
30
Pipelines
18
Changes
2
All threads resolved!
Hide all comments
Expand
👍
0
👎
0
Merge request reports
Viewing commit
9913aa22
Prev
Next
Show latest version
2 files
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
9913aa22
masking: set correct units for nodata in masking adapter
· 9913aa22
Sebastian Müller
authored
1 year ago
src/finam/adapters/masking.py
+
1
−
1
Options
@@ -99,6 +99,6 @@ class Masking(Adapter):
def
_transform
(
self
,
data
):
if
self
.
_canonical_mask
is
not
None
:
data
=
np
.
copy
(
self
.
_sup_grid
.
to_canonical
(
data
))
data
[
self
.
_canonical_mask
]
=
self
.
nodata
data
[
self
.
_canonical_mask
]
=
tools
.
UNITS
.
Quantity
(
self
.
nodata
,
data
.
units
)
return
self
.
_sub_grid
.
from_canonical
(
data
)
return
self
.
_sub_grid
.
from_canonical
(
self
.
_sup_grid
.
to_canonical
(
data
))
Loading