Commit bbb5d510 authored by André Anjos's avatar André Anjos 💬

Merge branch 'fix_generated_protocol_templates' into 'master'

Fix generated protocol templates

See merge request !135
parents 95358ec8 53ca0b44
Pipeline #47523 passed with stages
in 18 minutes and 34 seconds
{
"schema_version": 2,
"root_folder": "/tmp/beat_core_test",
"environment": {
"name": "Does not exist",
"version": "1.4.0"
},
"root_folder": "/tmp/beat_core_test",
"protocols": [
{
"name": "double",
"template": "double/1",
"views": {
"double": {
"view": "Double"
"view": "Double",
"parameters": {}
}
}
},
......@@ -20,7 +20,8 @@
"template": "triple/1",
"views": {
"triple": {
"view": "Triple"
"view": "Triple",
"parameters": {}
}
}
},
......@@ -29,10 +30,12 @@
"template": "two_sets/1",
"views": {
"double": {
"view": "Double"
"view": "Double",
"parameters": {}
},
"triple": {
"view": "Triple"
"view": "Triple",
"parameters": {}
}
}
},
......@@ -41,7 +44,8 @@
"template": "labelled/1",
"views": {
"labelled": {
"view": "Labelled"
"view": "Labelled",
"parameters": {}
}
}
},
......@@ -49,10 +53,13 @@
"name": "different_frequencies",
"template": "different_frequencies/1",
"views": {
"double" : {
"view": "DifferentFrequencies"
"double": {
"view": "DifferentFrequencies",
"parameters": {}
}
}
}
]
],
"schema_version": 2,
"description": ""
}
......@@ -3,7 +3,7 @@
"protocols": [
{
"name": "large",
"template": "template",
"template": "large_array",
"sets": [
{
"name": "data",
......@@ -17,7 +17,7 @@
},
{
"name": "small",
"template": "template",
"template": "small_single",
"sets": [
{
"name": "data",
......
......@@ -3,7 +3,7 @@
"protocols": [
{
"name": "large",
"template": "large/1",
"template": "large_array/1",
"views": {
"data": {
"view": "LargeView",
......@@ -13,7 +13,7 @@
},
{
"name": "small",
"template": "small/1",
"template": "small_single/1",
"views": {
"data": {
"view": "SmallView",
......
......@@ -3,28 +3,33 @@
"protocols": [
{
"name": "protocol",
"template": "protocol/1",
"template": "test_integers/1",
"views": {
"set": {
"view": "View"
"view": "View",
"parameters": {}
},
"set2": {
"view": "View2"
"view": "View2",
"parameters": {}
}
}
},
{
"name": "protocol2",
"template": "protocol2/1",
"template": "test_integers/1",
"views": {
"set": {
"view": "LargeView"
"view": "LargeView",
"parameters": {}
},
"set2": {
"view": "View2"
"view": "View2",
"parameters": {}
}
}
}
],
"schema_version": 2
"schema_version": 2,
"description": ""
}
{
"root_folder": "/tmp/beat_core_test",
"environment": {
"name": "Example databases",
"version": "1.4.0"
"name": "Example databases",
"version": "1.4.0"
},
"protocols": [
{
"name": "protocol",
"template": "protocol/1",
"template": "test_integers/1",
"views": {
"set": {
"view": "View"
"view": "View",
"parameters": {}
},
"set2": {
"view": "View2"
"view": "View2",
"parameters": {}
}
}
},
{
"name": "protocol2",
"template": "protocol2/1",
"template": "test_integers/1",
"views": {
"set": {
"view": "LargeView"
"view": "LargeView",
"parameters": {}
},
"set2": {
"view": "View2"
"view": "View2",
"parameters": {}
}
}
}
],
"schema_version": 2
"schema_version": 2,
"description": ""
}
{
"root_folder": "/tmp/beat_core_test",
"environment": {
"name": "Not existing",
"version": "1.4.0"
"name": "Not existing",
"version": "1.4.0"
},
"protocols": [
{
"name": "protocol",
"template": "protocol/1",
"template": "test_integers/1",
"views": {
"set": {
"view": "View"
"view": "View",
"parameters": {}
},
"set2": {
"view": "View2"
"view": "View2",
"parameters": {}
}
}
},
{
"name": "protocol2",
"template": "protocol2/1",
"template": "test_integers/1",
"views": {
"set": {
"view": "LargeView"
"view": "LargeView",
"parameters": {}
},
"set2": {
"view": "View2"
"view": "View2",
"parameters": {}
}
}
}
],
"schema_version": 2
"schema_version": 2,
"description": ""
}
{
"root_folder": "/tmp/beat_core_test",
"environment": {
"name": "Example databases",
"version": "1.4.0"
"name": "Example databases",
"version": "1.4.0"
},
"direct_rawdata_access": true,
"protocols": [
{
"name": "protocol",
"template": "protocol/1",
"template": "test_integers/1",
"views": {
"set": {
"view": "View"
"view": "View",
"parameters": {}
},
"set2": {
"view": "View2"
"view": "View2",
"parameters": {}
}
}
},
{
"name": "protocol2",
"template": "protocol2/1",
"template": "test_integers/1",
"views": {
"set": {
"view": "LargeView"
"view": "LargeView",
"parameters": {}
},
"set2": {
"view": "View2"
"view": "View2",
"parameters": {}
}
}
}
],
"schema_version": 2
"schema_version": 2,
"description": ""
}
{
"schema_version": 1,
"sets": [
{
"name": "double",
"outputs": {
"a": "user/single_integer/1",
"b": "user/single_integer/1"
}
}
]
}
{
"schema_version": 1,
"sets": [
{
"name": "double",
"outputs": {
"a": "user/single_integer/1",
"b": "user/single_integer/1",
"sum": "user/single_integer/1"
}
}
]
}
{
"schema_version": 1,
"sets": [
{
"name": "labelled",
"outputs": {
"value": "user/single_integer/1",
"label": "user/single_string/1"
}
}
]
}
......@@ -2,9 +2,9 @@
"schema_version": 1,
"sets": [
{
"name": "small_data",
"name": "data",
"outputs": {
"out": "user/single_integer/1"
"out": "user/empty_1d_array_of_integers/1"
}
}
]
......
......@@ -2,15 +2,12 @@
"schema_version": 1,
"sets": [
{
"name": "set",
"name": "triple",
"outputs": {
"out": "user/single_integer/1"
}
},
{
"name": "set2",
"outputs": {
"out": "user/single_integer/1"
"a": "user/single_integer/1",
"b": "user/single_integer/1",
"c": "user/single_integer/1",
"sum": "user/single_integer/1"
}
}
]
......
{
"schema_version": 1,
"sets": [
{
"name": "double",
"outputs": {
"a": "user/single_integer/1",
"b": "user/single_integer/1",
"sum": "user/single_integer/1"
}
},
{
"name": "triple",
"outputs": {
"a": "user/single_integer/1",
"b": "user/single_integer/1",
"c": "user/single_integer/1",
"sum": "user/single_integer/1"
}
}
]
}
......@@ -50,11 +50,15 @@ def test_default():
def test_export():
for protocol_name in [
"different_frequencies",
"double",
"labelled",
"large_array",
"small_single",
"template",
"test_integers",
"triple",
"two_sets",
"labelled",
"different_frequencies",
]:
yield export, f"{protocol_name}/1"
......
Markdown is supported
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