Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
aaffb55e
Commit
aaffb55e
authored
Mar 12, 2020
by
Samuel GAIST
Committed by
Flavio TARSETTI
Mar 12, 2020
Browse files
Improve dependency check
parent
3cc73e6c
Changes
4
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/algorithms.py
View file @
aaffb55e
...
...
@@ -331,6 +331,8 @@ def execute_impl(prefix, cache, instructions_file):
def
get_dependencies
(
ctx
,
asset_name
):
prefix
=
ctx
.
meta
[
"config"
].
path
alg
=
Algorithm
(
prefix
,
asset_name
)
if
not
alg
.
valid
:
raise
RuntimeError
(
"Invalid algortihm: {}"
.
format
(
alg
.
errors
))
dependencies
=
{}
...
...
beat/cmdline/dataformats.py
View file @
aaffb55e
...
...
@@ -136,6 +136,8 @@ def pull_impl(webapi, prefix, names, force, indentation, cache):
def
get_dependencies
(
ctx
,
asset_name
):
prefix
=
ctx
.
meta
[
"config"
].
path
df
=
DataFormat
(
prefix
,
asset_name
)
if
not
df
.
valid
:
raise
RuntimeError
(
"Invalid dataformat: {}"
.
format
(
df
.
errors
))
dependencies
=
{}
...
...
beat/cmdline/experiments.py
View file @
aaffb55e
...
...
@@ -714,6 +714,8 @@ def plot_impl(
def
get_dependencies
(
ctx
,
asset_name
):
prefix
=
ctx
.
meta
[
"config"
].
path
exp
=
Experiment
(
prefix
,
asset_name
)
if
not
exp
.
valid
:
raise
RuntimeError
(
"Invalid experiment {}"
.
format
(
exp
.
errors
))
dependencies
=
{
"toolchains"
:
[
exp
.
toolchain
.
name
]}
...
...
beat/cmdline/libraries.py
View file @
aaffb55e
...
...
@@ -171,6 +171,8 @@ def pull_impl(webapi, prefix, names, force, indentation, cache):
def
get_dependencies
(
ctx
,
asset_name
):
prefix
=
ctx
.
meta
[
"config"
].
path
lib
=
Library
(
prefix
,
asset_name
)
if
not
lib
.
valid
:
raise
RuntimeError
(
"Invalid library: {}"
.
format
(
lib
.
errors
))
dependencies
=
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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