-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge main
in feature/http_api
#12
Commits on Feb 18, 2024
-
adapter.aasx: improve
AASXWriter
docstringReplace a block of text by an `attention` admonition to highlight it properly. Furthermore, add a missing comma.
Configuration menu - View commit details
-
Copy full SHA for a902a63 - Browse repository at this point
Copy the full SHA a902a63View commit details
Commits on Feb 22, 2024
-
model.base: move
id_short
validation to separate function...so that it can be used by the HTTP API.
Configuration menu - View commit details
-
Copy full SHA for d7a2283 - Browse repository at this point
Copy the full SHA d7a2283View commit details
Commits on Mar 14, 2024
-
adapter.xml: change type of an exception to
AssertionError
The respective exception marks an error in the program, which should correctly be an `AssertionError`.
Configuration menu - View commit details
-
Copy full SHA for 2e7ed24 - Browse repository at this point
Copy the full SHA 2e7ed24View commit details -
Configuration menu - View commit details
-
Copy full SHA for aba79b1 - Browse repository at this point
Copy the full SHA aba79b1View commit details -
adapter.xml: rename
XMLConstructables.GLOBAL_REFERENCE
`GlobalReference` has been renamed to `ExternalReference` in V3, but this enum member has been missed in the rename.
Configuration menu - View commit details
-
Copy full SHA for 7f9a7a9 - Browse repository at this point
Copy the full SHA 7f9a7a9View commit details -
adapter.{json,xml}: make (de-)serialization interfaces coherent
lxml supports paths already, no modification is necessary there. However, the `lxml.etree.ElementTree.write()` function requires `BinaryIO`, i.e. files opened with the 'b' mode. While it would be possible to access the underlying binary buffer of files opened in text mode via `open()`, this isn't possible for `io.StringIO()`, as it doesn't have the `buffer` property. Thus, even if we could support files opened via `open()` in text mode, we couldn't annotate the XML serialization functions with `TextIO`, as `io.StringIO()` remains unsupported. Because of that, I decided to not support `TextIO` for the XML serialization. The builtin JSON module only supports file handles, with the `json.dump()` method only supporting `TextIO` and `json.load()` supporting `TextIO` and `BinaryIO`. Thus, the JSON adapter is modified to `open()` given paths, while the JSON serialization is additionally modified to wrap `BinaryIO` with `io.TextIOWrapper`. Fix #42
Configuration menu - View commit details
-
Copy full SHA for 4ff3db8 - Browse repository at this point
Copy the full SHA 4ff3db8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c25a32c - Browse repository at this point
Copy the full SHA c25a32cView commit details -
test.adater.xml.test_xml_deserialization: simplify
... by using `StringIO` instead of `BytesIO`.
Configuration menu - View commit details
-
Copy full SHA for 670de59 - Browse repository at this point
Copy the full SHA 670de59View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4cdcc24 - Browse repository at this point
Copy the full SHA 4cdcc24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 51e8c3e - Browse repository at this point
Copy the full SHA 51e8c3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d32349c - Browse repository at this point
Copy the full SHA d32349cView commit details -
model.base: add id_short path resolution
Resolution of id_short paths is added via `UniqueIdShortNamespace.get_referable()`, such that it can be used on every object, that spans such a namespace. `ModelReference.resolve()` is simplified to make use of this new functionality. Furthermore, tests for this are added.
Configuration menu - View commit details
-
Copy full SHA for d77ceab - Browse repository at this point
Copy the full SHA d77ceabView commit details -
model.base: improve id_short resolution error messages
Show the object, where the resolution failed, in the error messages.
Configuration menu - View commit details
-
Copy full SHA for b008187 - Browse repository at this point
Copy the full SHA b008187View commit details -
test_base: add test for non-numeric
SubmodelElementList
Key valuesA duplicate test is replaced by this test.
Configuration menu - View commit details
-
Copy full SHA for 71a389b - Browse repository at this point
Copy the full SHA 71a389bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d24e612 - Browse repository at this point
Copy the full SHA d24e612View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04e06d6 - Browse repository at this point
Copy the full SHA 04e06d6View commit details