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
b0dcbf19
Commit
b0dcbf19
authored
6 years ago
by
Mads M. Pedersen
Committed by
Mads M. Pedersen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added error message and xfail if fugalib not present
parent
6d441165
No related branches found
No related tags found
1 merge request
!94
Handle disabled mpi
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_fuga/test_pyfuga.py
+7
-1
7 additions, 1 deletion
tests/test_fuga/test_pyfuga.py
with
7 additions
and
1 deletion
tests/test_fuga/test_pyfuga.py
+
7
−
1
View file @
b0dcbf19
...
...
@@ -9,10 +9,12 @@ import time
import
unittest
import
numpy
as
np
import
pytest
from
topfarm.cost_models.fuga.pascal_dll
import
PascalDLL
from
topfarm.cost_models.fuga.py_fuga
import
PyFuga
import
os
from
topfarm.cost_models.fuga
import
py_fuga
import
sys
fuga_path
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
py_fuga
.
__file__
))
+
'
/Colonel/
'
...
...
@@ -36,7 +38,11 @@ class Test(unittest.TestCase):
def
lib_missing
(
self
):
lib_path
=
os
.
path
.
dirname
(
py_fuga
.
__file__
)
+
"
/Colonel/FugaLib/FugaLib.%s
"
%
(
'
so
'
,
'
dll
'
)[
os
.
name
==
'
nt
'
]
return
os
.
path
.
isfile
(
lib_path
)
is
False
if
os
.
path
.
isfile
(
lib_path
)
is
False
:
pytest
.
xfail
(
"
Fugalib missing
"
)
raise
Warning
(
"
Fugalib
'
%s
'
not found
\n
"
%
lib_path
)
return
False
def
get_fuga
(
self
,
tb_x
=
[
423974
,
424033
],
tb_y
=
[
6151447
,
6150889
]):
pyFuga
=
PyFuga
()
...
...
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