Skip to content
Snippets Groups Projects
Commit 6e950c20 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[templates] Cleanup template to improve the code generated

parent 9a2d7679
No related branches found
No related tags found
No related merge requests found
......@@ -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 -%}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment