1. 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
      8076caf2
    • Leon Mauritz Möller's avatar
  2. 25 Mar, 2020 2 commits
  3. 05 Mar, 2020 1 commit
  4. 02 Mar, 2020 1 commit
  5. 01 Mar, 2020 1 commit
  6. 28 Feb, 2020 1 commit
  7. 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
      f5050a60
  8. 26 Feb, 2020 1 commit
  9. 18 Feb, 2020 1 commit
  10. 16 Dec, 2019 1 commit
  11. 12 Dec, 2019 2 commits
  12. 11 Dec, 2019 1 commit
  13. 03 Dec, 2019 1 commit
  14. 01 Dec, 2019 1 commit
  15. 28 Nov, 2019 2 commits
  16. 27 Nov, 2019 7 commits
  17. 22 Nov, 2019 1 commit
  18. 21 Nov, 2019 5 commits
  19. 20 Nov, 2019 6 commits
  20. 19 Nov, 2019 1 commit