Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pymor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
pyMOR
pymor
Commits
c1b44cbe
Commit
c1b44cbe
authored
Apr 28, 2020
by
René Fritze
Committed by
René Fritze
Jun 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] reducde ipython demo test variations
parent
18133649
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/pymortests/demos.py
src/pymortests/demos.py
+6
-4
No files found.
src/pymortests/demos.py
View file @
c1b44cbe
...
...
@@ -55,6 +55,8 @@ THERMALBLOCK_ARGS = (
(
'thermalblock'
,
[
'--list-vector-array'
,
2
,
2
,
2
,
2
]),
)
TB_IPYTHON_ARGS
=
THERMALBLOCK_ARGS
[
0
:
2
]
THERMALBLOCK_ADAPTIVE_ARGS
=
(
(
'thermalblock_adaptive'
,
[
10
]),
(
'thermalblock_adaptive'
,
[
'--no-visualize-refinement'
,
10
]),
...
...
@@ -246,14 +248,14 @@ def test_analyze_pickle4():
@
pytest
.
mark
.
skipif
(
is_windows_platform
(),
reason
=
'hangs indefinitely'
)
@
pytest
.
mark
.
skipif
(
is_macos_platform
(),
reason
=
'spurious JSON Decode errors in Ipython launch'
)
def
test_thermalblock_ipython
(
demo_args
):
if
demo_args
[
0
]
!=
'pymordemos.thermalblock'
:
return
@
pytest
.
mark
.
parametrize
(
'ipy_args'
,
TB_IPYTHON_ARGS
)
def
test_thermalblock_ipython
(
ipy_args
)
:
_skip_if_no_solver
(
ipy_args
)
from
pymor.tools
import
mpi
if
mpi
.
parallel
:
# simply running 'ipcluster start' (without any profile) does not seem to work
return
# when running under mpirun, so we do not test this combination for now
try
:
test_demos
((
demo_args
[
0
],
[
'--ipython-engines=2'
]
+
demo
_args
[
1
]))
test_demos
((
f'pymordemos.
{
ipy_args
[
0
]
}
'
,
[
'--ipython-engines=2'
]
+
ipy
_args
[
1
]))
finally
:
import
time
# there seems to be no way to shutdown the IPyhton cluster s.t. a new
time
.
sleep
(
10
)
# cluster can be started directly afterwards, so we have to wait ...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment