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
3ecfea7a
Commit
3ecfea7a
authored
2 months ago
by
Sebastian Müller
🐈
Browse files
Options
Downloads
Patches
Plain Diff
apply black
parent
671e64ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!286
Add mask to Info object
Pipeline
#266123
passed with stages
in 4 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/adapters/test_regrid_mask.py
+0
-6
0 additions, 6 deletions
tests/adapters/test_regrid_mask.py
with
0 additions
and
6 deletions
tests/adapters/test_regrid_mask.py
+
0
−
6
View file @
3ecfea7a
...
...
@@ -36,7 +36,6 @@ class TestRegridMask(unittest.TestCase):
)
def
test_regrid_nearest_out_mask
(
self
):
in_info
=
Info
(
grid
=
self
.
in_grid
,
units
=
""
,
mask
=
self
.
in_mask
)
source
=
StaticSimplexNoise
(
in_info
,
0.15
,
3
,
0.5
)
sink
=
debug
.
DebugPushConsumer
({
"
Input
"
:
Info
()})
...
...
@@ -56,7 +55,6 @@ class TestRegridMask(unittest.TestCase):
self
.
assertAlmostEqual
(
i_data
.
mean
(),
o_data
.
mean
(),
2
)
def
test_regrid_nearest_filled
(
self
):
in_info
=
Info
(
grid
=
self
.
in_grid
,
units
=
""
,
mask
=
self
.
in_mask
)
source
=
StaticSimplexNoise
(
in_info
,
0.15
,
3
,
0.5
)
sink
=
debug
.
DebugPushConsumer
({
"
Input
"
:
Info
()})
...
...
@@ -75,7 +73,6 @@ class TestRegridMask(unittest.TestCase):
self
.
assertAlmostEqual
(
i_data
.
mean
(),
data
.
mean
(),
1
)
def
test_regrid_linear_determine_mask
(
self
):
in_info
=
Info
(
grid
=
self
.
in_grid
,
units
=
""
,
mask
=
self
.
in_mask
)
source
=
StaticSimplexNoise
(
in_info
,
0.15
,
3
,
0.5
)
sink
=
debug
.
DebugPushConsumer
({
"
Input
"
:
Info
()})
...
...
@@ -97,7 +94,6 @@ class TestRegridMask(unittest.TestCase):
self
.
assertAlmostEqual
(
i_data
.
mean
(),
o_data
.
mean
(),
2
)
def
test_regrid_linear_error_domain
(
self
):
in_info
=
Info
(
grid
=
self
.
in_grid
,
units
=
""
,
mask
=
self
.
in_mask
)
source
=
StaticSimplexNoise
(
in_info
,
0.15
,
3
,
0.5
)
sink
=
debug
.
DebugPushConsumer
({
"
Input
"
:
Info
()})
...
...
@@ -113,7 +109,6 @@ class TestRegridMask(unittest.TestCase):
composition
.
connect
()
def
test_regrid_linear_filled
(
self
):
in_info
=
Info
(
grid
=
self
.
in_grid
,
units
=
""
,
mask
=
self
.
in_mask
)
source
=
StaticSimplexNoise
(
in_info
,
0.15
,
3
,
0.5
)
sink
=
debug
.
DebugPushConsumer
({
"
Input
"
:
Info
()})
...
...
@@ -134,7 +129,6 @@ class TestRegridMask(unittest.TestCase):
self
.
assertAlmostEqual
(
i_data
.
mean
(),
data
.
mean
(),
1
)
def
test_regrid_linear_filled_mask
(
self
):
in_info
=
Info
(
grid
=
self
.
in_grid
,
units
=
""
,
mask
=
self
.
in_mask
)
source
=
StaticSimplexNoise
(
in_info
,
0.15
,
3
,
0.5
)
sink
=
debug
.
DebugPushConsumer
({
"
Input
"
:
Info
()})
...
...
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