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
a1060f74
Commit
a1060f74
authored
2 years ago
by
Martin Lange
Browse files
Options
Downloads
Patches
Plain Diff
fix newly added benchmarks for renamed to_xarray
parent
4e9e1eb0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!238
Data memory-mapping
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/data/test_tools.py
+6
-6
6 additions, 6 deletions
benchmarks/data/test_tools.py
with
6 additions
and
6 deletions
benchmarks/data/test_tools.py
+
6
−
6
View file @
a1060f74
...
...
@@ -70,25 +70,25 @@ class TestPrepare(unittest.TestCase):
_result
=
self
.
benchmark
(
prepare
,
data
=
xdata
,
info
=
info
)
@pytest.mark.benchmark
(
group
=
"
data-tools
"
)
def
test_
to_xarray
_np_units_01_2x1
(
self
):
def
test_
prepare
_np_units_01_2x1
(
self
):
time
=
dt
.
datetime
(
2000
,
1
,
1
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
2
,
1
)),
units
=
"
m
"
)
xdata
=
full
(
0.0
,
info
).
magnitude
_result
=
self
.
benchmark
(
to_xarray
,
data
=
xdata
,
info
=
info
)
_result
=
self
.
benchmark
(
prepare
,
data
=
xdata
,
info
=
info
)
@pytest.mark.benchmark
(
group
=
"
data-tools
"
)
def
test_
to_xarray
_np_units_02_512x256
(
self
):
def
test_
prepare
_np_units_02_512x256
(
self
):
time
=
dt
.
datetime
(
2000
,
1
,
1
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
512
,
256
)),
units
=
"
m
"
)
xdata
=
full
(
0.0
,
info
).
magnitude
_result
=
self
.
benchmark
(
to_xarray
,
data
=
xdata
,
info
=
info
)
_result
=
self
.
benchmark
(
prepare
,
data
=
xdata
,
info
=
info
)
@pytest.mark.benchmark
(
group
=
"
data-tools
"
)
def
test_
to_xarray
_np_units_03_2048x1024
(
self
):
def
test_
prepare
_np_units_03_2048x1024
(
self
):
time
=
dt
.
datetime
(
2000
,
1
,
1
)
info
=
fm
.
Info
(
time
=
time
,
grid
=
fm
.
UniformGrid
((
2048
,
1024
)),
units
=
"
m
"
)
xdata
=
full
(
0.0
,
info
).
magnitude
_result
=
self
.
benchmark
(
to_xarray
,
data
=
xdata
,
info
=
info
)
_result
=
self
.
benchmark
(
prepare
,
data
=
xdata
,
info
=
info
)
@pytest.mark.benchmark
(
group
=
"
data-tools-slow
"
)
def
test_cp_prepare_np_01_2x1
(
self
):
...
...
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