From cbde206f5c7d6e3903346e9fc22b24552a7b35ea Mon Sep 17 00:00:00 2001 From: Yannick DAYER <yannick.dayer@idiap.ch> Date: Sat, 11 Feb 2023 23:15:27 +0100 Subject: [PATCH] [doc] Fix doctests with new database class changes --- doc/catalog.json | 34 ++++++---------------------------- doc/datasets.rst | 2 ++ 2 files changed, 8 insertions(+), 28 deletions(-) diff --git a/doc/catalog.json b/doc/catalog.json index f04cb42..f1e5d9b 100644 --- a/doc/catalog.json +++ b/doc/catalog.json @@ -1,32 +1,10 @@ { - "bob.io.base": { - "versions": { - "latest": "https://www.idiap.ch/software/bob/docs/bob/bob.io.base/master/sphinx" - }, - "sources": {} + "bob.io.base": { + "versions": { + "5.0.3b1": "https://www.idiap.ch/software/bob/docs/bob/bob.io.base/master/sphinx/" }, - "dask-ml": { - "versions": { - "latest": "https://ml.dask.org" - }, - "sources": { - "readthedocs": "dask-ml" - } - }, - "scikit-learn": { - "versions": { - "latest": "https://scikit-learn.org/stable/" - }, - "sources": { - "readthedocs": "scikit-learn" - } - }, - "xarray": { - "versions": { - "latest": "https://docs.xarray.dev/en/stable/" - }, - "sources": { - "readthedocs": "xarray" - } + "sources": { + "environment": "bob.io.base" } + } } diff --git a/doc/datasets.rst b/doc/datasets.rst index 242086a..fbce62d 100644 --- a/doc/datasets.rst +++ b/doc/datasets.rst @@ -67,6 +67,7 @@ As you can see there is only one protocol called ``default`` and two groups >>> import bob.pipelines >>> dataset_protocols_path = "tests/data/iris_database" >>> database = bob.pipelines.FileListDatabase( + ... name="iris", ... protocol="default", ... dataset_protocols_path=dataset_protocols_path, ... ) @@ -100,6 +101,7 @@ to all samples: ... return [bob.pipelines.Sample(prepare_data(sample), parent=sample) for sample in samples] >>> database = bob.pipelines.FileListDatabase( + ... name="iris", ... protocol="default", ... dataset_protocols_path=dataset_protocols_path, ... transformer=FunctionTransformer(prepare_iris_samples), -- GitLab