Commit 4aca9adc authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[templates] Cleanup template to improve the code generated

parent ba367bf3
......@@ -3,6 +3,7 @@
# experiment's settings
{% for ref, lib in contents.uses.items() %}# Library "{{ lib }}" is available under "{{ ref }}"
{% endfor %}
class Algorithm:
# initialise fields to store cross-input data (e.g. machines,
# aggregations, etc.)
......
......@@ -2,6 +2,7 @@
# you will run this database in Environments can change based on the
# experiment's settings
from beat.backend.python.database import View
{% for view in views %}
class {{ view }}(View):
# build the data for your view
......@@ -24,4 +25,4 @@ class {{ view }}(View):
# note that this object is a named tuple, with fields equivalent to
# your keys from the objects returned from the index function
pass
{% endfor %}
{% endfor -%}
......@@ -2,4 +2,4 @@
# you will run this library in Environments can change based on the
# experiment's settings
{% for ref, lib in uses.items() %}# Library "{{ lib }}" is available under "{{ ref }}"
{% endfor %}
{% endfor -%}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment