The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

25 lines
513 B

4 weeks ago
  1. from . import gmp_converter
  2. from pycarl._config import CARL_WITH_CLN as has_cln
  3. def convert_to_gmp(data):
  4. """
  5. Convert data type to gmp.
  6. :param data: data structure.
  7. :return: gmp data structure.
  8. """
  9. return gmp_converter.convert(data)
  10. if has_cln:
  11. from . import cln_converter
  12. def convert_to_cln(data):
  13. """
  14. Convert data type to cln.
  15. :param data: data structure.
  16. :return: cln data structure.
  17. """
  18. return cln_converter.convert(data)