Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
TopFarm2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TOPFARM
TopFarm2
Commits
360ff489
Commit
360ff489
authored
6 years ago
by
Mads M. Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
updated pyfuga-tests to match new no_hours_pr_year
parent
8677fd97
No related branches found
No related tags found
1 merge request
!94
Handle disabled mpi
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_fuga/test_pyfuga.py
+6
-6
6 additions, 6 deletions
tests/test_fuga/test_pyfuga.py
topfarm/cost_models/fuga/Colonel
+1
-1
1 addition, 1 deletion
topfarm/cost_models/fuga/Colonel
with
7 additions
and
7 deletions
tests/test_fuga/test_pyfuga.py
+
6
−
6
View file @
360ff489
...
@@ -65,20 +65,20 @@ class Test(unittest.TestCase):
...
@@ -65,20 +65,20 @@ class Test(unittest.TestCase):
def
testAEP_one_tb
(
self
):
def
testAEP_one_tb
(
self
):
if
self
.
lib_missing
():
return
if
self
.
lib_missing
():
return
pyFuga
=
self
.
get_fuga
([
0
],
[
0
])
pyFuga
=
self
.
get_fuga
([
0
],
[
0
])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep
(
np
.
array
([[
0
],
[
0
]]).
T
),
[
7.4
4121
,
7.44121
,
0.424962
,
1.
])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep
(
np
.
array
([[
0
],
[
0
]]).
T
),
[
7.4
50272
,
7.450272
,
0.424962
,
1.
])
pyFuga
.
cleanup
()
pyFuga
.
cleanup
()
def
testAEP
(
self
):
def
testAEP
(
self
):
if
self
.
lib_missing
():
return
if
self
.
lib_missing
():
return
pyFuga
=
self
.
get_fuga
()
pyFuga
=
self
.
get_fuga
()
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep
(
np
.
array
([[
0
,
200
],
[
0
,
0
]]).
T
),
[
14.8
48055
,
14.882419
,
0.423981
,
0.997691
])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep
(
np
.
array
([[
0
,
200
],
[
0
,
0
]]).
T
),
[
14.8
66138
,
14.900544
,
0.423981
,
0.997691
])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep_gradients
(
np
.
array
([[
0
,
200
],
[
0
,
0
]]).
T
),
0
)
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep_gradients
(
np
.
array
([[
0
,
200
],
[
0
,
0
]]).
T
),
0
)
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep
(
np
.
array
([[
0
,
0
],
[
0
,
200
]]).
T
),
[
12.1
10134
,
14.882419
,
0.3458
,
0.813721
])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep
(
np
.
array
([[
0
,
0
],
[
0
,
200
]]).
T
),
[
12.1
24883
,
14.900544
,
0.3458
,
0.813721
])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep_gradients
(
np
.
array
([[
0
,
0
],
[
0
,
200
]]).
T
),
[[
-
0.00179
2
,
0.00179
2
],
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep_gradients
(
np
.
array
([[
0
,
0
],
[
0
,
200
]]).
T
),
[[
-
0.00179
4
,
0.00179
4
],
[
-
0.0081
1
6
,
0.0081
1
6
],
[
-
0.0081
2
6
,
0.0081
2
6
],
[
0.
,
0.
]])
[
0.
,
0.
]])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep
(
np
.
array
([[
0
,
200
],
[
0
,
200
]]).
T
),
[
14.8
46827
,
14.882419
,
0.423946
,
0.997608
])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep
(
np
.
array
([[
0
,
200
],
[
0
,
200
]]).
T
),
[
14.8
64909
,
14.900544
,
0.423946
,
0.997608
])
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep_gradients
(
np
.
array
([[
0
,
200
],
[
0
,
200
]]).
T
),
[[
-
5.165553e-06
,
5.165553e-06
],
np
.
testing
.
assert_array_almost_equal
(
pyFuga
.
get_aep_gradients
(
np
.
array
([[
0
,
200
],
[
0
,
200
]]).
T
),
[[
-
5.165553e-06
,
5.165553e-06
],
[
1.599768e-06
,
-
1.599768e-06
],
[
1.599768e-06
,
-
1.599768e-06
],
[
0.000000e+00
,
0.000000e+00
]])
[
0.000000e+00
,
0.000000e+00
]])
...
...
This diff is collapsed.
Click to expand it.
Colonel
@
41cdbf94
Compare
63d550ac
...
41cdbf94
Subproject commit
63d550ac397e2058fc278ecf1488323440a786fc
Subproject commit
41cdbf9403170ce0f132f226fa7dab0d4d12b894
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