From 458f6d6b12f05a6a9e59962992abc43346572398 Mon Sep 17 00:00:00 2001 From: Michael Kuron <m.kuron@gmx.de> Date: Mon, 22 Feb 2021 16:42:26 +0100 Subject: [PATCH] correct importorskip in notebook tests --- lbmpy_tests/phasefield/test_entropic_model.ipynb | 10 ++++++++++ lbmpy_tests/phasefield/test_liquid_lens_angles.ipynb | 10 ++++++++++ .../test_neumann_evaluation_circle_fitting.ipynb | 10 ++++++++++ .../phasefield/test_phasefieldstep_direct.ipynb | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/lbmpy_tests/phasefield/test_entropic_model.ipynb b/lbmpy_tests/phasefield/test_entropic_model.ipynb index 3edab1c1..8fd021ec 100644 --- a/lbmpy_tests/phasefield/test_entropic_model.ipynb +++ b/lbmpy_tests/phasefield/test_entropic_model.ipynb @@ -1,5 +1,15 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import pytest\n", + "pytest.importorskip('scipy.ndimage')" + ] + }, { "cell_type": "code", "execution_count": 1, diff --git a/lbmpy_tests/phasefield/test_liquid_lens_angles.ipynb b/lbmpy_tests/phasefield/test_liquid_lens_angles.ipynb index e190dc0c..721d10a5 100644 --- a/lbmpy_tests/phasefield/test_liquid_lens_angles.ipynb +++ b/lbmpy_tests/phasefield/test_liquid_lens_angles.ipynb @@ -1,5 +1,15 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import pytest\n", + "pytest.importorskip('skimage')" + ] + }, { "cell_type": "code", "execution_count": 1, diff --git a/lbmpy_tests/phasefield/test_neumann_evaluation_circle_fitting.ipynb b/lbmpy_tests/phasefield/test_neumann_evaluation_circle_fitting.ipynb index 45610c8a..77c94b8a 100644 --- a/lbmpy_tests/phasefield/test_neumann_evaluation_circle_fitting.ipynb +++ b/lbmpy_tests/phasefield/test_neumann_evaluation_circle_fitting.ipynb @@ -1,5 +1,15 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import pytest\n", + "pytest.importorskip('skimage')" + ] + }, { "cell_type": "code", "execution_count": 1, diff --git a/lbmpy_tests/phasefield/test_phasefieldstep_direct.ipynb b/lbmpy_tests/phasefield/test_phasefieldstep_direct.ipynb index bd3cc549..d83c525b 100644 --- a/lbmpy_tests/phasefield/test_phasefieldstep_direct.ipynb +++ b/lbmpy_tests/phasefield/test_phasefieldstep_direct.ipynb @@ -1,5 +1,15 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import pytest\n", + "pytest.importorskip('skimage')" + ] + }, { "cell_type": "code", "execution_count": 1, -- GitLab