Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.backend.python
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.backend.python
Commits
a2c7f31b
Commit
a2c7f31b
authored
Jul 01, 2020
by
Samuel GAIST
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test][prefix] Pre-commit cleanup
parent
90e86c7f
Changes
62
Show whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
229 additions
and
324 deletions
+229
-324
beat/backend/python/test/prefix/algorithms/autonomous/add/1.json
...ckend/python/test/prefix/algorithms/autonomous/add/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/autonomous/add/1.py
...backend/python/test/prefix/algorithms/autonomous/add/1.py
+3
-9
beat/backend/python/test/prefix/algorithms/autonomous/add2/1.json
...kend/python/test/prefix/algorithms/autonomous/add2/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/autonomous/add2/1.py
...ackend/python/test/prefix/algorithms/autonomous/add2/1.py
+4
-10
beat/backend/python/test/prefix/algorithms/autonomous/add3/1.json
...kend/python/test/prefix/algorithms/autonomous/add3/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/autonomous/add3/1.py
...ackend/python/test/prefix/algorithms/autonomous/add3/1.py
+5
-8
beat/backend/python/test/prefix/algorithms/autonomous/echo/1.py
...ackend/python/test/prefix/algorithms/autonomous/echo/1.py
+2
-7
beat/backend/python/test/prefix/algorithms/autonomous/no_prepare/1.py
.../python/test/prefix/algorithms/autonomous/no_prepare/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/autonomous/no_setup/1.py
...nd/python/test/prefix/algorithms/autonomous/no_setup/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/autonomous/parametrized/1.py
...ython/test/prefix/algorithms/autonomous/parametrized/1.py
+32
-33
beat/backend/python/test/prefix/algorithms/autonomous/prepare_crash/1.py
...thon/test/prefix/algorithms/autonomous/prepare_crash/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/autonomous/prepare_fail/1.py
...ython/test/prefix/algorithms/autonomous/prepare_fail/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/autonomous/process_crash/1.py
...thon/test/prefix/algorithms/autonomous/process_crash/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/autonomous/setup_crash/1.py
...python/test/prefix/algorithms/autonomous/setup_crash/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/autonomous/setup_fail/1.py
.../python/test/prefix/algorithms/autonomous/setup_fail/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/autonomous/valid_algorithm/1.py
...on/test/prefix/algorithms/autonomous/valid_algorithm/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/autonomous/valid_analysis/1.py
...hon/test/prefix/algorithms/autonomous/valid_analysis/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/legacy/add/1.json
beat/backend/python/test/prefix/algorithms/legacy/add/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/legacy/add/1.py
beat/backend/python/test/prefix/algorithms/legacy/add/1.py
+4
-6
beat/backend/python/test/prefix/algorithms/legacy/add2/1.json
.../backend/python/test/prefix/algorithms/legacy/add2/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/legacy/add2/1.py
beat/backend/python/test/prefix/algorithms/legacy/add2/1.py
+3
-6
beat/backend/python/test/prefix/algorithms/legacy/echo/1.py
beat/backend/python/test/prefix/algorithms/legacy/echo/1.py
+1
-2
beat/backend/python/test/prefix/algorithms/legacy/no_class/1.py
...ackend/python/test/prefix/algorithms/legacy/no_class/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/legacy/no_setup/1.py
...ackend/python/test/prefix/algorithms/legacy/no_setup/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/legacy/parametrized/1.py
...nd/python/test/prefix/algorithms/legacy/parametrized/1.py
+32
-33
beat/backend/python/test/prefix/algorithms/legacy/prepare/1.json
...ckend/python/test/prefix/algorithms/legacy/prepare/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/legacy/prepare/1.py
...backend/python/test/prefix/algorithms/legacy/prepare/1.py
+5
-6
beat/backend/python/test/prefix/algorithms/legacy/process_crash/1.py
...d/python/test/prefix/algorithms/legacy/process_crash/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/legacy/setup_crash/1.py
...end/python/test/prefix/algorithms/legacy/setup_crash/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/legacy/setup_fail/1.py
...kend/python/test/prefix/algorithms/legacy/setup_fail/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/legacy/valid_algorithm/1.py
...python/test/prefix/algorithms/legacy/valid_algorithm/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/legacy/valid_analysis/1.py
.../python/test/prefix/algorithms/legacy/valid_analysis/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/add/1.json
...ckend/python/test/prefix/algorithms/sequential/add/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/sequential/add/1.py
...backend/python/test/prefix/algorithms/sequential/add/1.py
+4
-6
beat/backend/python/test/prefix/algorithms/sequential/add2/1.json
...kend/python/test/prefix/algorithms/sequential/add2/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/sequential/add2/1.py
...ackend/python/test/prefix/algorithms/sequential/add2/1.py
+3
-7
beat/backend/python/test/prefix/algorithms/sequential/add3/1.json
...kend/python/test/prefix/algorithms/sequential/add3/1.json
+1
-1
beat/backend/python/test/prefix/algorithms/sequential/add3/1.py
...ackend/python/test/prefix/algorithms/sequential/add3/1.py
+5
-6
beat/backend/python/test/prefix/algorithms/sequential/echo/1.py
...ackend/python/test/prefix/algorithms/sequential/echo/1.py
+1
-2
beat/backend/python/test/prefix/algorithms/sequential/no_prepare/1.py
.../python/test/prefix/algorithms/sequential/no_prepare/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/no_setup/1.py
...nd/python/test/prefix/algorithms/sequential/no_setup/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/parametrized/1.py
...ython/test/prefix/algorithms/sequential/parametrized/1.py
+32
-33
beat/backend/python/test/prefix/algorithms/sequential/prepare_crash/1.py
...thon/test/prefix/algorithms/sequential/prepare_crash/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/prepare_fail/1.py
...ython/test/prefix/algorithms/sequential/prepare_fail/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/process_crash/1.py
...thon/test/prefix/algorithms/sequential/process_crash/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/setup_crash/1.py
...python/test/prefix/algorithms/sequential/setup_crash/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/setup_fail/1.py
.../python/test/prefix/algorithms/sequential/setup_fail/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/valid_algorithm/1.py
...on/test/prefix/algorithms/sequential/valid_algorithm/1.py
+0
-1
beat/backend/python/test/prefix/algorithms/sequential/valid_analysis/1.py
...hon/test/prefix/algorithms/sequential/valid_analysis/1.py
+0
-1
beat/backend/python/test/prefix/databases/crash/1.py
beat/backend/python/test/prefix/databases/crash/1.py
+5
-6
beat/backend/python/test/prefix/databases/duplicate_key_error/1.py
...end/python/test/prefix/databases/duplicate_key_error/1.py
+2
-1
beat/backend/python/test/prefix/databases/integers_db/1.py
beat/backend/python/test/prefix/databases/integers_db/1.py
+49
-80
beat/backend/python/test/prefix/databases/integers_db/2.py
beat/backend/python/test/prefix/databases/integers_db/2.py
+3
-1
beat/backend/python/test/prefix/databases/integers_db_env/1.py
...backend/python/test/prefix/databases/integers_db_env/1.py
+3
-1
beat/backend/python/test/prefix/databases/integers_db_env/2.py
...backend/python/test/prefix/databases/integers_db_env/2.py
+3
-1
beat/backend/python/test/prefix/databases/python_keyword/1.py
.../backend/python/test/prefix/databases/python_keyword/1.py
+11
-22
beat/backend/python/test/prefix/databases/with_parameters/1.py
...backend/python/test/prefix/databases/with_parameters/1.py
+2
-1
beat/backend/python/test/prefix/databases/with_parameters/2.py
...backend/python/test/prefix/databases/with_parameters/2.py
+2
-1
beat/backend/python/test/prefix/dataformats/user/3d_array_of_complexes/1.json
...test/prefix/dataformats/user/3d_array_of_complexes/1.json
+0
-1
beat/backend/python/test/prefix/dataformats/user/3d_array_of_floats/1.json
...on/test/prefix/dataformats/user/3d_array_of_floats/1.json
+0
-1
beat/backend/python/test/prefix/dataformats/user/single_bytes/1.json
...d/python/test/prefix/dataformats/user/single_bytes/1.json
+3
-0
beat/backend/python/test/prefix/dataformats/user/single_bytes/1.rst
...nd/python/test/prefix/dataformats/user/single_bytes/1.rst
+1
-0
No files found.
beat/backend/python/test/prefix/algorithms/autonomous/add/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/autonomous/add/1.py
View file @
a2c7f31b
...
...
@@ -35,24 +35,18 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
self
.
sync
=
parameters
[
'sync'
]
self
.
sync
=
parameters
[
"sync"
]
return
True
def
process
(
self
,
data_loaders
,
outputs
):
data_loader
=
data_loaders
.
loaderOf
(
'in1'
)
data_loader
=
data_loaders
.
loaderOf
(
"in1"
)
for
i
in
range
(
data_loader
.
count
(
self
.
sync
)):
view
=
data_loader
.
view
(
self
.
sync
,
i
)
(
data
,
start
,
end
)
=
view
[
view
.
count
()
-
1
]
outputs
[
'out'
].
write
({
'value'
:
data
[
'in1'
].
value
+
data
[
'in2'
].
value
,
},
end
)
outputs
[
"out"
].
write
({
"value"
:
data
[
"in1"
].
value
+
data
[
"in2"
].
value
},
end
)
return
True
beat/backend/python/test/prefix/algorithms/autonomous/add2/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/autonomous/add2/1.py
View file @
a2c7f31b
...
...
@@ -35,26 +35,20 @@
class
Algorithm
:
def
prepare
(
self
,
data_loaders
):
data_loader
=
data_loaders
.
loaderOf
(
'in2'
)
data_loader
=
data_loaders
.
loaderOf
(
"in2"
)
(
data
,
start
,
end
)
=
data_loader
[
0
]
self
.
offset
=
data
[
'in2'
].
value
self
.
offset
=
data
[
"in2"
].
value
return
True
def
process
(
self
,
data_loaders
,
outputs
):
data_loader
=
data_loaders
.
loaderOf
(
'in1'
)
data_loader
=
data_loaders
.
loaderOf
(
"in1"
)
for
i
in
range
(
data_loader
.
count
()):
(
data
,
start
,
end
)
=
data_loader
[
i
]
outputs
[
'out'
].
write
({
'value'
:
data
[
'in1'
].
value
+
self
.
offset
,
},
end
)
outputs
[
"out"
].
write
({
"value"
:
data
[
"in1"
].
value
+
self
.
offset
},
end
)
return
True
beat/backend/python/test/prefix/algorithms/autonomous/add3/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/autonomous/add3/1.py
View file @
a2c7f31b
...
...
@@ -35,21 +35,18 @@
class
Algorithm
:
def
process
(
self
,
data_loaders
,
outputs
):
values
=
data_loaders
.
loaderOf
(
'value'
)
offsets
=
data_loaders
.
loaderOf
(
'offset'
)
values
=
data_loaders
.
loaderOf
(
"value"
)
offsets
=
data_loaders
.
loaderOf
(
"offset"
)
for
i
in
range
(
values
.
count
()):
(
data
,
start
,
end
)
=
values
[
i
]
offset_index
=
data
[
'offset_index'
].
value
offset_index
=
data
[
"offset_index"
].
value
(
data2
,
start2
,
end2
)
=
offsets
[
offset_index
]
outputs
[
'out'
].
write
({
'value'
:
data
[
'value'
].
value
+
data2
[
'offset'
].
value
,
},
end
outputs
[
"out"
].
write
(
{
"value"
:
data
[
"value"
].
value
+
data2
[
"offset"
].
value
},
end
)
return
True
beat/backend/python/test/prefix/algorithms/autonomous/echo/1.py
View file @
a2c7f31b
...
...
@@ -35,17 +35,12 @@
class
Algorithm
:
def
process
(
self
,
data_loaders
,
outputs
):
data_loader
=
data_loaders
.
loaderOf
(
'in'
)
data_loader
=
data_loaders
.
loaderOf
(
"in"
)
for
i
in
range
(
data_loader
.
count
()):
(
data
,
start
,
end
)
=
data_loader
[
i
]
outputs
[
'out'
].
write
({
'value'
:
data
[
'in'
].
value
,
},
end
)
outputs
[
"out"
].
write
({
"value"
:
data
[
"in"
].
value
},
end
)
return
True
beat/backend/python/test/prefix/algorithms/autonomous/no_prepare/1.py
View file @
a2c7f31b
...
...
@@ -35,6 +35,5 @@
class
Algorithm
:
def
process
(
self
,
data_loaders
,
outputs
):
return
True
beat/backend/python/test/prefix/algorithms/autonomous/no_setup/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
prepare
(
self
,
data_loaders
):
return
True
...
...
beat/backend/python/test/prefix/algorithms/autonomous/parametrized/1.py
View file @
a2c7f31b
...
...
@@ -35,40 +35,39 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
self
.
int8_value
=
parameters
[
'int8_value'
]
self
.
int8_range
=
parameters
[
'int8_range'
]
self
.
int8_choices
=
parameters
[
'int8_choices'
]
self
.
int16_value
=
parameters
[
'int16_value'
]
self
.
int16_range
=
parameters
[
'int16_range'
]
self
.
int16_choices
=
parameters
[
'int16_choices'
]
self
.
int32_value
=
parameters
[
'int32_value'
]
self
.
int32_range
=
parameters
[
'int32_range'
]
self
.
int32_choices
=
parameters
[
'int32_choices'
]
self
.
int64_value
=
parameters
[
'int64_value'
]
self
.
int64_range
=
parameters
[
'int64_range'
]
self
.
int64_choices
=
parameters
[
'int64_choices'
]
self
.
uint8_value
=
parameters
[
'uint8_value'
]
self
.
uint8_range
=
parameters
[
'uint8_range'
]
self
.
uint8_choices
=
parameters
[
'uint8_choices'
]
self
.
uint16_value
=
parameters
[
'uint16_value'
]
self
.
uint16_range
=
parameters
[
'uint16_range'
]
self
.
uint16_choices
=
parameters
[
'uint16_choices'
]
self
.
uint32_value
=
parameters
[
'uint32_value'
]
self
.
uint32_range
=
parameters
[
'uint32_range'
]
self
.
uint32_choices
=
parameters
[
'uint32_choices'
]
self
.
uint64_value
=
parameters
[
'uint64_value'
]
self
.
uint64_range
=
parameters
[
'uint64_range'
]
self
.
uint64_choices
=
parameters
[
'uint64_choices'
]
self
.
float32_value
=
parameters
[
'float32_value'
]
self
.
float32_range
=
parameters
[
'float32_range'
]
self
.
float32_choices
=
parameters
[
'float32_choices'
]
self
.
float64_value
=
parameters
[
'float64_value'
]
self
.
float64_range
=
parameters
[
'float64_range'
]
self
.
float64_choices
=
parameters
[
'float64_choices'
]
self
.
bool_value
=
parameters
[
'bool_value'
]
self
.
string_value
=
parameters
[
'string_value'
]
self
.
int8_value
=
parameters
[
"int8_value"
]
self
.
int8_range
=
parameters
[
"int8_range"
]
self
.
int8_choices
=
parameters
[
"int8_choices"
]
self
.
int16_value
=
parameters
[
"int16_value"
]
self
.
int16_range
=
parameters
[
"int16_range"
]
self
.
int16_choices
=
parameters
[
"int16_choices"
]
self
.
int32_value
=
parameters
[
"int32_value"
]
self
.
int32_range
=
parameters
[
"int32_range"
]
self
.
int32_choices
=
parameters
[
"int32_choices"
]
self
.
int64_value
=
parameters
[
"int64_value"
]
self
.
int64_range
=
parameters
[
"int64_range"
]
self
.
int64_choices
=
parameters
[
"int64_choices"
]
self
.
uint8_value
=
parameters
[
"uint8_value"
]
self
.
uint8_range
=
parameters
[
"uint8_range"
]
self
.
uint8_choices
=
parameters
[
"uint8_choices"
]
self
.
uint16_value
=
parameters
[
"uint16_value"
]
self
.
uint16_range
=
parameters
[
"uint16_range"
]
self
.
uint16_choices
=
parameters
[
"uint16_choices"
]
self
.
uint32_value
=
parameters
[
"uint32_value"
]
self
.
uint32_range
=
parameters
[
"uint32_range"
]
self
.
uint32_choices
=
parameters
[
"uint32_choices"
]
self
.
uint64_value
=
parameters
[
"uint64_value"
]
self
.
uint64_range
=
parameters
[
"uint64_range"
]
self
.
uint64_choices
=
parameters
[
"uint64_choices"
]
self
.
float32_value
=
parameters
[
"float32_value"
]
self
.
float32_range
=
parameters
[
"float32_range"
]
self
.
float32_choices
=
parameters
[
"float32_choices"
]
self
.
float64_value
=
parameters
[
"float64_value"
]
self
.
float64_range
=
parameters
[
"float64_range"
]
self
.
float64_choices
=
parameters
[
"float64_choices"
]
self
.
bool_value
=
parameters
[
"bool_value"
]
self
.
string_value
=
parameters
[
"string_value"
]
return
True
def
process
(
self
,
data_loaders
,
outputs
):
...
...
beat/backend/python/test/prefix/algorithms/autonomous/prepare_crash/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
prepare
(
self
,
data_loaders
):
a
=
b
return
True
...
...
beat/backend/python/test/prefix/algorithms/autonomous/prepare_fail/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
prepare
(
self
,
data_loaders
):
return
False
...
...
beat/backend/python/test/prefix/algorithms/autonomous/process_crash/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
process
(
self
,
data_loaders
,
outputs
):
a
=
b
return
True
beat/backend/python/test/prefix/algorithms/autonomous/setup_crash/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
a
=
b
return
True
...
...
beat/backend/python/test/prefix/algorithms/autonomous/setup_fail/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
return
False
...
...
beat/backend/python/test/prefix/algorithms/autonomous/valid_algorithm/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
return
True
...
...
beat/backend/python/test/prefix/algorithms/autonomous/valid_analysis/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
return
True
...
...
beat/backend/python/test/prefix/algorithms/legacy/add/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/legacy/add/1.py
View file @
a2c7f31b
...
...
@@ -35,16 +35,14 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
self
.
sync
=
parameters
[
'sync'
]
self
.
sync
=
parameters
[
"sync"
]
return
True
def
process
(
self
,
inputs
,
outputs
):
if
inputs
[
self
.
sync
].
isDataUnitDone
():
outputs
[
'out'
].
write
({
'value'
:
inputs
[
'in1'
].
data
.
value
+
inputs
[
'in2'
].
data
.
value
,
}
)
outputs
[
"out"
].
write
(
{
"value"
:
inputs
[
"in1"
].
data
.
value
+
inputs
[
"in2"
].
data
.
value
}
)
return
True
beat/backend/python/test/prefix/algorithms/legacy/add2/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/legacy/add2/1.py
View file @
a2c7f31b
...
...
@@ -35,18 +35,15 @@
class
Algorithm
:
def
__init__
(
self
):
self
.
offset
=
None
def
process
(
self
,
inputs
,
outputs
):
if
self
.
offset
is
None
:
group
=
inputs
.
groupOf
(
'in2'
)
group
=
inputs
.
groupOf
(
"in2"
)
group
.
next
()
self
.
offset
=
group
[
'in2'
].
data
.
value
self
.
offset
=
group
[
"in2"
].
data
.
value
outputs
[
'out'
].
write
({
'value'
:
inputs
[
'in1'
].
data
.
value
+
self
.
offset
,
})
outputs
[
"out"
].
write
({
"value"
:
inputs
[
"in1"
].
data
.
value
+
self
.
offset
})
return
True
beat/backend/python/test/prefix/algorithms/legacy/echo/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
process
(
self
,
inputs
,
outputs
):
outputs
[
'out'
].
write
(
inputs
[
'in'
].
data
)
outputs
[
"out"
].
write
(
inputs
[
"in"
].
data
)
return
True
beat/backend/python/test/prefix/algorithms/legacy/no_class/1.py
View file @
a2c7f31b
...
...
@@ -35,6 +35,5 @@
class
InvalidAlgorithmClassName
:
def
process
(
self
,
inputs
,
outputs
):
return
True
beat/backend/python/test/prefix/algorithms/legacy/no_setup/1.py
View file @
a2c7f31b
...
...
@@ -35,6 +35,5 @@
class
Algorithm
:
def
process
(
self
,
inputs
,
outputs
):
return
True
beat/backend/python/test/prefix/algorithms/legacy/parametrized/1.py
View file @
a2c7f31b
...
...
@@ -35,40 +35,39 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
self
.
int8_value
=
parameters
[
'int8_value'
]
self
.
int8_range
=
parameters
[
'int8_range'
]
self
.
int8_choices
=
parameters
[
'int8_choices'
]
self
.
int16_value
=
parameters
[
'int16_value'
]
self
.
int16_range
=
parameters
[
'int16_range'
]
self
.
int16_choices
=
parameters
[
'int16_choices'
]
self
.
int32_value
=
parameters
[
'int32_value'
]
self
.
int32_range
=
parameters
[
'int32_range'
]
self
.
int32_choices
=
parameters
[
'int32_choices'
]
self
.
int64_value
=
parameters
[
'int64_value'
]
self
.
int64_range
=
parameters
[
'int64_range'
]
self
.
int64_choices
=
parameters
[
'int64_choices'
]
self
.
uint8_value
=
parameters
[
'uint8_value'
]
self
.
uint8_range
=
parameters
[
'uint8_range'
]
self
.
uint8_choices
=
parameters
[
'uint8_choices'
]
self
.
uint16_value
=
parameters
[
'uint16_value'
]
self
.
uint16_range
=
parameters
[
'uint16_range'
]
self
.
uint16_choices
=
parameters
[
'uint16_choices'
]
self
.
uint32_value
=
parameters
[
'uint32_value'
]
self
.
uint32_range
=
parameters
[
'uint32_range'
]
self
.
uint32_choices
=
parameters
[
'uint32_choices'
]
self
.
uint64_value
=
parameters
[
'uint64_value'
]
self
.
uint64_range
=
parameters
[
'uint64_range'
]
self
.
uint64_choices
=
parameters
[
'uint64_choices'
]
self
.
float32_value
=
parameters
[
'float32_value'
]
self
.
float32_range
=
parameters
[
'float32_range'
]
self
.
float32_choices
=
parameters
[
'float32_choices'
]
self
.
float64_value
=
parameters
[
'float64_value'
]
self
.
float64_range
=
parameters
[
'float64_range'
]
self
.
float64_choices
=
parameters
[
'float64_choices'
]
self
.
bool_value
=
parameters
[
'bool_value'
]
self
.
string_value
=
parameters
[
'string_value'
]
self
.
int8_value
=
parameters
[
"int8_value"
]
self
.
int8_range
=
parameters
[
"int8_range"
]
self
.
int8_choices
=
parameters
[
"int8_choices"
]
self
.
int16_value
=
parameters
[
"int16_value"
]
self
.
int16_range
=
parameters
[
"int16_range"
]
self
.
int16_choices
=
parameters
[
"int16_choices"
]
self
.
int32_value
=
parameters
[
"int32_value"
]
self
.
int32_range
=
parameters
[
"int32_range"
]
self
.
int32_choices
=
parameters
[
"int32_choices"
]
self
.
int64_value
=
parameters
[
"int64_value"
]
self
.
int64_range
=
parameters
[
"int64_range"
]
self
.
int64_choices
=
parameters
[
"int64_choices"
]
self
.
uint8_value
=
parameters
[
"uint8_value"
]
self
.
uint8_range
=
parameters
[
"uint8_range"
]
self
.
uint8_choices
=
parameters
[
"uint8_choices"
]
self
.
uint16_value
=
parameters
[
"uint16_value"
]
self
.
uint16_range
=
parameters
[
"uint16_range"
]
self
.
uint16_choices
=
parameters
[
"uint16_choices"
]
self
.
uint32_value
=
parameters
[
"uint32_value"
]
self
.
uint32_range
=
parameters
[
"uint32_range"
]
self
.
uint32_choices
=
parameters
[
"uint32_choices"
]
self
.
uint64_value
=
parameters
[
"uint64_value"
]
self
.
uint64_range
=
parameters
[
"uint64_range"
]
self
.
uint64_choices
=
parameters
[
"uint64_choices"
]
self
.
float32_value
=
parameters
[
"float32_value"
]
self
.
float32_range
=
parameters
[
"float32_range"
]
self
.
float32_choices
=
parameters
[
"float32_choices"
]
self
.
float64_value
=
parameters
[
"float64_value"
]
self
.
float64_range
=
parameters
[
"float64_range"
]
self
.
float64_choices
=
parameters
[
"float64_choices"
]
self
.
bool_value
=
parameters
[
"bool_value"
]
self
.
string_value
=
parameters
[
"string_value"
]
return
True
def
process
(
self
,
inputs
,
outputs
):
...
...
beat/backend/python/test/prefix/algorithms/legacy/prepare/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/legacy/prepare/1.py
View file @
a2c7f31b
...
...
@@ -35,9 +35,8 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
self
.
sync
=
parameters
[
'sync'
]
self
.
sync
=
parameters
[
"sync"
]
return
True
def
prepare
(
self
):
...
...
@@ -45,8 +44,8 @@ class Algorithm:
def
process
(
self
,
inputs
,
outputs
):
if
inputs
[
self
.
sync
].
isDataUnitDone
():
outputs
[
'out'
].
write
({
'value'
:
inputs
[
'in1'
].
data
.
value
+
inputs
[
'in2'
].
data
.
value
,
}
)
outputs
[
"out"
].
write
(
{
"value"
:
inputs
[
"in1"
].
data
.
value
+
inputs
[
"in2"
].
data
.
value
}
)
return
True
beat/backend/python/test/prefix/algorithms/legacy/process_crash/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
process
(
self
,
inputs
,
outputs
):
a
=
b
return
True
beat/backend/python/test/prefix/algorithms/legacy/setup_crash/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
a
=
b
return
True
...
...
beat/backend/python/test/prefix/algorithms/legacy/setup_fail/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
return
False
...
...
beat/backend/python/test/prefix/algorithms/legacy/valid_algorithm/1.py
View file @
a2c7f31b
...
...
@@ -35,6 +35,5 @@
class
Algorithm
:
def
process
(
self
,
inputs
,
outputs
):
return
True
beat/backend/python/test/prefix/algorithms/legacy/valid_analysis/1.py
View file @
a2c7f31b
...
...
@@ -35,6 +35,5 @@
class
Algorithm
:
def
process
(
self
,
inputs
,
output
):
return
True
beat/backend/python/test/prefix/algorithms/sequential/add/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/sequential/add/1.py
View file @
a2c7f31b
...
...
@@ -35,16 +35,14 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
self
.
sync
=
parameters
[
'sync'
]
self
.
sync
=
parameters
[
"sync"
]
return
True
def
process
(
self
,
inputs
,
data_loaders
,
outputs
):
if
inputs
[
self
.
sync
].
isDataUnitDone
():
outputs
[
'out'
].
write
({
'value'
:
inputs
[
'in1'
].
data
.
value
+
inputs
[
'in2'
].
data
.
value
,
}
)
outputs
[
"out"
].
write
(
{
"value"
:
inputs
[
"in1"
].
data
.
value
+
inputs
[
"in2"
].
data
.
value
}
)
return
True
beat/backend/python/test/prefix/algorithms/sequential/add2/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/sequential/add2/1.py
View file @
a2c7f31b
...
...
@@ -35,19 +35,15 @@
class
Algorithm
:
def
prepare
(
self
,
data_loaders
):
data_loader
=
data_loaders
.
loaderOf
(
'in2'
)
data_loader
=
data_loaders
.
loaderOf
(
"in2"
)
(
data
,
start
,
end
)
=
data_loader
[
0
]
self
.
offset
=
data
[
'in2'
].
value
self
.
offset
=
data
[
"in2"
].
value
return
True
def
process
(
self
,
inputs
,
data_loaders
,
outputs
):
outputs
[
'out'
].
write
({
'value'
:
inputs
[
'in1'
].
data
.
value
+
self
.
offset
,
})
outputs
[
"out"
].
write
({
"value"
:
inputs
[
"in1"
].
data
.
value
+
self
.
offset
})
return
True
beat/backend/python/test/prefix/algorithms/sequential/add3/1.json
View file @
a2c7f31b
beat/backend/python/test/prefix/algorithms/sequential/add3/1.py
View file @
a2c7f31b
...
...
@@ -35,15 +35,14 @@
class
Algorithm
:
def
process
(
self
,
inputs
,
data_loaders
,
outputs
):
offset_index
=
inputs
[
'offset_index'
].
data
.
value
offset_index
=
inputs
[
"offset_index"
].
data
.
value
data_loader
=
data_loaders
.
loaderOf
(
'offset'
)
data_loader
=
data_loaders
.
loaderOf
(
"offset"
)
(
data
,
start
,
end
)
=
data_loader
[
offset_index
]
outputs
[
'out'
].
write
({
'value'
:
inputs
[
'value'
].
data
.
value
+
data
[
'offset'
].
value
,
}
)
outputs
[
"out"
].
write
(
{
"value"
:
inputs
[
"value"
].
data
.
value
+
data
[
"offset"
].
value
}
)
return
True
beat/backend/python/test/prefix/algorithms/sequential/echo/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
process
(
self
,
inputs
,
data_loaders
,
outputs
):
outputs
[
'out'
].
write
(
inputs
[
'in'
].
data
)
outputs
[
"out"
].
write
(
inputs
[
"in"
].
data
)
return
True
beat/backend/python/test/prefix/algorithms/sequential/no_prepare/1.py
View file @
a2c7f31b
...
...
@@ -35,6 +35,5 @@
class
Algorithm
:
def
process
(
self
,
inputs
,
data_loaders
,
outputs
):
return
True
beat/backend/python/test/prefix/algorithms/sequential/no_setup/1.py
View file @
a2c7f31b
...
...
@@ -35,7 +35,6 @@
class
Algorithm
:
def
prepare
(
self
,
data_loaders
):
return
True
...
...
beat/backend/python/test/prefix/algorithms/sequential/parametrized/1.py
View file @
a2c7f31b
...
...
@@ -35,40 +35,39 @@
class
Algorithm
:
def
setup
(
self
,
parameters
):
self
.
int8_value
=
parameters
[
'int8_value'
]
self
.
int8_range
=
parameters
[
'int8_range'
]
self
.
int8_choices
=
parameters
[
'int8_choices'
]
self
.
int16_value
=
parameters
[
'int16_value'
]
self
.
int16_range
=
parameters
[
'int16_range'
]
self
.
int16_choices
=
parameters
[
'int16_choices'
]
self
.
int32_value
=
parameters
[
'int32_value'
]
self
.
int32_range
=
parameters
[
'int32_range'
]
self
.
int32_choices
=
parameters
[
'int32_choices'
]
self
.
int64_value
=
parameters
[
'int64_value'
]
self
.
int64_range
=
parameters
[
'int64_range'
]
self
.
int64_choices
=
parameters
[
'int64_choices'
]
self
.
uint8_value
=
parameters
[
'uint8_value'
]
self
.
uint8_range
=
parameters
[
'uint8_range'
]
self
.
uint8_choices
=
parameters
[
'uint8_choices'
]
self
.
uint16_value
=
parameters
[
'uint16_value'
]
self
.
uint16_range
=
parameters
[
'uint16_range'
]
self
.
uint16_choices
=
parameters
[
'uint16_choices'
]
self
.
uint32_value
=
parameters
[
'uint32_value'
]
self
.
uint32_range
=
parameters
[
'uint32_range'
]
self
.
uint32_choices
=
parameters
[
'uint32_choices'
]
self
.
uint64_value
=
parameters
[
'uint64_value'
]
self
.
uint64_range
=
parameters
[
'uint64_range'
]
self
.
uint64_choices
=
parameters
[
'uint64_choices'
]
self
.
float32_value
=
parameters
[
'float32_value'
]
self
.
float32_range
=
parameters
[
'float32_range'
]
self
.
float32_choices
=
parameters
[
'float32_choices'
]
self
.
float64_value
=
parameters
[
'float64_value'
]
self
.
float64_range
=
parameters
[
'float64_range'
]
self
.
float64_choices
=
parameters
[
'float64_choices'
]
self
.
bool_value
=
parameters
[
'bool_value'
]
self
.
string_value
=
parameters
[
'string_value'
]
self
.
int8_value
=
parameters
[
"int8_value"
]
self
.
int8_range
=
parameters
[
"int8_range"
]
self
.
int8_choices
=
parameters
[
"int8_choices"
]
self
.
int16_value
=
parameters
[
"int16_value"
]
self
.
int16_range
=
parameters
[
"int16_range"
]
self
.
int16_choices
=
parameters
[
"int16_choices"
]
self
.
int32_value
=
parameters
[
"int32_value"
]
self
.
int32_range
=
parameters
[
"int32_range"
]
self
.
int32_choices
=
parameters
[
"int32_choices"
]
self
.
int64_value
=
parameters
[
"int64_value"
]
self
.
int64_range
=
parameters
[
"int64_range"
]
self
.
int64_choices
=
parameters
[
"int64_choices"
]