{% extends "base_framework.html" %} {% load staticfiles %}

{% block main_body_content %} {% if control_file_list %}

Browse your computer and upload the control (.py) files. To edit a control file, remove it and add a new one with the "Add control" button below. Read the instructions below for more information.

{% for control_item in control_file_list %}
{{ forloop.counter }}.
File name: {{ control_item.0.control_file_name }}
File description: {{ control_item.0.control_file_descrip }}
{% for control_error_item in control_item.1 %} {% if control_error_item %} {% for all_control_errors in control_error_item.errors %}

{{ all_control_errors }}

{% endfor %} {% endif %} {% endfor %}
{% endfor %} {% endif %}

{% for control_field in form %}
{{ control_field }}
{% if control_field.errors %}
{% for all_control_errors in control_field.errors %}

{{ all_control_errors }}

{% endfor %}
{% endif %}
{% endfor %}
{% csrf_token %}


Use this button to add control files.



Instructions

  1. All control files must be in the same working directory as that specified in the "Edit simulation parameters" page.
  2. All control files must be Python 2 .py files.
  3. After using the "Browse" button to add a control file, do not forget to click "Save control file" button to save the control file to the data base.
  4. Once a control file is saved, it appears in a list of control files along with a "Configure control" button next to it.
  5. Click on the "Configure control" button to design the interface for the control file - the inputs, outputs and other special variables.
  6. There is no provision to edit a control file. If you want to make changes, delete the existing file and add a new one.
  7. For a new control file, you must configure the control file because it will have no input/output ports which makes it useless. For existing control files, it is recommended to browse through a control file's configuration before running the simulation.
  8. Once done with all editing, click on the "Back to main page" button to continue.


{% endblock %}