{% extends 'base.html' %} {% block title %}IvoryOS | New devices{% endblock %} {% block body %}
Available Python API
{% for instrument in api_variables %} {% endfor %}
{% if device %} {{ device }}
Connecting
Name your instrument, avoid names that are defined on the right
{% for arg in device.__init__.__annotations__ %} {% if not arg == "return" %}
{% if device.__init__.__annotations__[arg].__module__ is not in ["builtins", "typing"] %} Initialize {{device.__init__.__annotations__[arg].__name__}} first {% endif %}
{% endif %} {% endfor %}
{% endif %}
Defined Instruments
{% if defined_variables %}
    {% for instrument in defined_variables %}
  • {{ instrument }}
  • {% endfor %}
{% else %} No instruments defined. {% endif %}
{% endblock %}