Skip to content

Commit bfe065b

Browse files
authored
Merge branch 'validate-multiple-instances' into 1000-jstore-cleanup
2 parents ace8e1f + 1d4c0db commit bfe065b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

bindings/python/dlite-jstore-python.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def format_dict(
3131
3232
Notes:
3333
This method works with the dict-representation and does not
34-
access instances. The only exception is when `d` correspond to
34+
access instances. The only exception is when `d` corresponds to
3535
a data instance who's dimensions is a list of dimension lengths.
3636
In this case is the metadata needed to get dimension names.
3737

bindings/python/tests/test_jstore.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515

1616
# Test format_dict(), arg: soft7
17-
D1 = {
17+
D1 = { # soft7 representation
1818
"uri": "http://onto-ns.com/meta/ex/0.2/Test",
1919
"dimensions": {"n": "number of something"},
2020
"properties": {
2121
"a": {"type": "string"},
2222
"b": {"type": "float64", "shape": ["n"]},
2323
},
2424
}
25-
D2 = {
25+
D2 = { # old (array) representation
2626
"uri": "http://onto-ns.com/meta/ex/0.2/Test",
2727
"dimensions": [{"name": "n", "description": "number of something"}],
2828
"properties": [
@@ -35,6 +35,8 @@
3535
assert dlite.format_dict(D2, soft7=True) == D1
3636
assert dlite.format_dict(D2, soft7=False) == D2
3737

38+
# soft7 representation. This is identical to the old representation for
39+
# data instances
3840
d1 = {
3941
"uuid": "d6a1c1db-44b6-5b87-b815-83f1127395b6",
4042
"meta": "http://onto-ns.com/meta/ex/0.2/Test",
@@ -44,7 +46,7 @@
4446
"b": [1.1, 2.2, 3.3],
4547
},
4648
}
47-
d2 = {
49+
d2 = { # old representation
4850
"uuid": "d6a1c1db-44b6-5b87-b815-83f1127395b6",
4951
"meta": "http://onto-ns.com/meta/ex/0.2/Test",
5052
"dimensions": {"n": 3},

requirements_doc.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
importlib-metadata==6.8.0; python_version<'3.8'
2-
32
beautifulsoup4==4.12.3
43
breathe==4.35.0
54
docutils==0.21.2

0 commit comments

Comments
 (0)