From 67ce44b63c786e2de2ed73aadace5e8c5783242c Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sat, 17 Aug 2019 22:01:28 -0400 Subject: [PATCH 1/3] DOC: add cell dataset to docs --- skimage/data/__init__.py | 3 ++- skimage/data/tests/test_data.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/skimage/data/__init__.py b/skimage/data/__init__.py index 291286df9e2..d590bda86f4 100644 --- a/skimage/data/__init__.py +++ b/skimage/data/__init__.py @@ -24,6 +24,7 @@ 'binary_blobs', 'brick', 'camera', + 'cell', 'checkerboard', 'chelsea', 'clock', @@ -372,7 +373,7 @@ def cell(): References ---------- - ..[1]: Paul Müller, Mirjam Schürmann, Salvatore Girardo, Gheorghe Cojoc, + .. [1] Paul Müller, Mirjam Schürmann, Salvatore Girardo, Gheorghe Cojoc, and Jochen Guck. "Accurate evaluation of size and refractive index for spherical objects in quantitative phase imaging." Optics Express 26(8): 10729-10743 (2018). :DOI:`10.1364/OE.26.010729` diff --git a/skimage/data/tests/test_data.py b/skimage/data/tests/test_data.py index e8e79b15101..b78e39f988a 100644 --- a/skimage/data/tests/test_data.py +++ b/skimage/data/tests/test_data.py @@ -99,3 +99,9 @@ def test_binary_blobs(): def test_lfw_subset(): """ Test that "lfw_subset" can be loaded.""" data.lfw_subset() + + +def test_cell(): + """ Test that "page" image can be loaded. """ + data.page() + From 33ead8d7af926680e164e4def4467b976cdc29cd Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sun, 18 Aug 2019 02:25:52 -0400 Subject: [PATCH 2/3] Update skimage/data/tests/test_data.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: François Boulogne --- skimage/data/tests/test_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/data/tests/test_data.py b/skimage/data/tests/test_data.py index b78e39f988a..aeab757035e 100644 --- a/skimage/data/tests/test_data.py +++ b/skimage/data/tests/test_data.py @@ -102,6 +102,6 @@ def test_lfw_subset(): def test_cell(): - """ Test that "page" image can be loaded. """ + """ Test that "cell" image can be loaded. """ data.page() From de812d033a19e1e4946d4effc0f473eaa91c6dbf Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sun, 18 Aug 2019 02:26:12 -0400 Subject: [PATCH 3/3] Update skimage/data/tests/test_data.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: François Boulogne --- skimage/data/tests/test_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/data/tests/test_data.py b/skimage/data/tests/test_data.py index aeab757035e..c603439441f 100644 --- a/skimage/data/tests/test_data.py +++ b/skimage/data/tests/test_data.py @@ -103,5 +103,5 @@ def test_lfw_subset(): def test_cell(): """ Test that "cell" image can be loaded. """ - data.page() + data.cell()