Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
321f2c76
Commit
321f2c76
authored
Sep 25, 2019
by
Samuel GAIST
Browse files
[test][prefix] Print cleanup in test algorithms
parent
f23350ec
Pipeline
#33605
passed with stage
in 23 minutes and 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/test/prefix/algorithms/user/block_input_loop_evaluator/1.py
View file @
321f2c76
...
...
@@ -42,12 +42,9 @@ class Algorithm:
self
.
output
=
None
def
validate
(
self
,
result
):
print
(
"We are validating"
)
value
=
result
.
value
[
0
]
self
.
output
=
value
return
(
True
,
{
"value"
:
np
.
float32
(
value
)})
def
write
(
self
,
outputs
,
end_data_index
):
print
(
"block input loop writing"
,
outputs
,
end_data_index
)
outputs
[
"out_loop"
].
write
({
"value"
:
np
.
int32
(
self
.
output
)},
end_data_index
)
print
(
"block input loop writing done"
)
beat/core/test/prefix/algorithms/user/block_input_loop_processor/1.py
View file @
321f2c76
...
...
@@ -47,8 +47,5 @@ class Algorithm:
value
=
data
[
"in"
].
value
_
,
validated
=
loop_channel
.
validate
({
"value"
:
np
.
full
(
10
,
12
)})
new_value
=
value
+
validated
.
value
print
(
"BLOCK INPUT LOOP USER VALUE IS"
,
value
)
print
(
"BLOCK INPUT LOOP USER WRITING NEW VALUE"
,
new_value
)
outputs
[
"out"
].
write
({
"value"
:
np
.
int32
(
new_value
)},
end
)
print
(
"BLOCK INPUT LOOP USER WRITING DONE"
)
return
True
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment