diff --git a/bindings/python/dlite-jstore-python.i b/bindings/python/dlite-jstore-python.i index d9ef0c80b..8a12b9526 100644 --- a/bindings/python/dlite-jstore-python.i +++ b/bindings/python/dlite-jstore-python.i @@ -31,7 +31,7 @@ def format_dict( Notes: This method works with the dict-representation and does not - access instances. The only exception is when `d` correspond to + access instances. The only exception is when `d` corresponds to a data instance who's dimensions is a list of dimension lengths. In this case is the metadata needed to get dimension names. diff --git a/bindings/python/tests/test_jstore.py b/bindings/python/tests/test_jstore.py index ace0476f6..2f543f4bf 100644 --- a/bindings/python/tests/test_jstore.py +++ b/bindings/python/tests/test_jstore.py @@ -14,7 +14,7 @@ # Test format_dict(), arg: soft7 -D1 = { +D1 = { # soft7 representation "uri": "http://onto-ns.com/meta/ex/0.2/Test", "dimensions": {"n": "number of something"}, "properties": { @@ -22,7 +22,7 @@ "b": {"type": "float64", "shape": ["n"]}, }, } -D2 = { +D2 = { # old (array) representation "uri": "http://onto-ns.com/meta/ex/0.2/Test", "dimensions": [{"name": "n", "description": "number of something"}], "properties": [ @@ -35,6 +35,8 @@ assert dlite.format_dict(D2, soft7=True) == D1 assert dlite.format_dict(D2, soft7=False) == D2 +# soft7 representation. This is identical to the old representation for +# data instances d1 = { "uuid": "d6a1c1db-44b6-5b87-b815-83f1127395b6", "meta": "http://onto-ns.com/meta/ex/0.2/Test", @@ -44,7 +46,7 @@ "b": [1.1, 2.2, 3.3], }, } -d2 = { +d2 = { # old representation "uuid": "d6a1c1db-44b6-5b87-b815-83f1127395b6", "meta": "http://onto-ns.com/meta/ex/0.2/Test", "dimensions": {"n": 3}, diff --git a/requirements_doc.txt b/requirements_doc.txt index 1c047492d..74b0f6ae5 100644 --- a/requirements_doc.txt +++ b/requirements_doc.txt @@ -1,5 +1,4 @@ importlib-metadata==6.8.0; python_version<'3.8' - beautifulsoup4==4.12.3 breathe==4.35.0 docutils==0.21.2