1. 09 Apr, 2020 1 commit
  2. 04 Apr, 2020 1 commit
    • Leon Mauritz Möller's avatar
      adapter.xml: add support for IEC61360 Concept Descriptions · 90b8e11e
      Leon Mauritz Möller authored
      add _get_text_mapped_or_none()
      rename _get_child_multiple() -> _get_all_children_expect_tag()
      allow passing the namespace to _construct_key_tuple(),
        _construct_reference() and _construct_lang_string_set()
      minor fixes in _construct_entity() and _construct_file()
      update copyright year to 2020
  3. 01 Apr, 2020 1 commit
    • Leon Mauritz Möller's avatar
      adapter.xml: add _str_to_bool() function · 8c95bfb0
      Leon Mauritz Möller authored
      _str_to_bool() converts the strings "false" and "true" to their
      respective boolean value. Any string other than "false" and "true"
      will result in a ValueError.
      change error message in _failsafe_construct()
  4. 31 Mar, 2020 1 commit
    • Leon Mauritz Möller's avatar
      adapter.xml: make error messages prettier · 5e68f17d
      Leon Mauritz Möller authored
      - if possible, replace namespace in front of element tag with the prefix used in
        the xml document
      - include source line of element in error messages
      catch XMLSyntaxErrors that can be thrown while parsing and just log them
      in failsafe mode
      add _child_construct_multiple()
      - iterate over all child elements of a given parent
      - compare each tag to a given tag
      - raise an error or log a warning if tags don't match, else construct
        the element
  5. 29 Mar, 2020 2 commits
  6. 28 Mar, 2020 3 commits
  7. 27 Mar, 2020 1 commit
    • Leon Mauritz Möller's avatar
      adapter.xml: add docstrings to all non-constructor functions · f0a50e3f
      Leon Mauritz Möller authored
      I think adding docstrings to every constructor function would be
      unnecessary, since they all do nearly the same task, just for other
      xml elements.
      extend the module docstring
      move _amend_abstract_attributes() to the top of the module (where the
      other helper functions are)
      do not raise a TypeError in read_xml_aas_file() when an unexpected
      top-level list is encountered in failsafe mode
  8. 26 Mar, 2020 2 commits
    • Leon Mauritz Möller's avatar
      adapter.xml: refactor helper functions and improve error handling · 8076caf2
      Leon Mauritz Möller authored
      remove _unwrap() as it produced error messages that weren't helpful
      add _get_text_mandatory_mapped() and _get_attrib_mandatory_mapped()
      These are helper functions for retrieving an attribute or the text of
      an xml element and then using the value as the key in a specified dict.
      These are useful since they will raise a helpful error if
      the attribute or text does not exist in the dict as a key.
      add _get_child_mandatory() + _get_attribute_mandatory()
      Functions for retrieving a mandatory child element or a mandatory attribute
      and raising an error with a helpful message if the child/attribute doesn't exist.
      _get_text_mandatory()'s signature is now similar to _get_child_mandatory()
      and _get_attribute_mandatory(). It won't accept None anymore, and it now
      also raises a KeyError instead of a TypeError.
      change _failsafe_construct()
      This function will now handle Key and Value errors.
      It will now print the whole error cause chain.
      change constructor functions depending on these helper functions respectively
      add a check if type of last key matches reference type when constructing
      AAS References
    • Leon Mauritz Möller's avatar
  9. 25 Mar, 2020 2 commits
  10. 05 Mar, 2020 1 commit
  11. 02 Mar, 2020 1 commit
  12. 01 Mar, 2020 1 commit
  13. 28 Feb, 2020 1 commit
  14. 27 Feb, 2020 1 commit
    • Leon Mauritz Möller's avatar
      adapter.xml: add main parsing function · f5050a60
      Leon Mauritz Möller authored
      prefix some function parameters with _ to suppress an unused variable warning
      remove unused typing.{Type,Tuple} imports
      fix reference before assignment warning in construct_lang_string_set
  15. 26 Feb, 2020 1 commit
  16. 18 Feb, 2020 1 commit
  17. 16 Dec, 2019 1 commit
  18. 12 Dec, 2019 2 commits
  19. 11 Dec, 2019 1 commit
  20. 03 Dec, 2019 1 commit
  21. 01 Dec, 2019 1 commit
  22. 28 Nov, 2019 2 commits
  23. 27 Nov, 2019 7 commits
  24. 22 Nov, 2019 1 commit
  25. 21 Nov, 2019 3 commits