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
a377d58a
Commit
a377d58a
authored
Mar 04, 2020
by
Samuel GAIST
Browse files
[experiments] Only create the view if the index must be done
There's no reason to create the view early if it might not be used.
parent
39e9ddf1
Pipeline
#37867
passed with stage
in 3 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/experiments.py
View file @
a377d58a
...
...
@@ -152,7 +152,6 @@ def run_experiment(
def
index_experiment_databases
(
cache_path
,
experiment
):
for
block_name
,
infos
in
experiment
.
datasets
.
items
():
view
=
infos
[
"database"
].
view
(
infos
[
"protocol"
],
infos
[
"set"
])
filename
=
toPath
(
hashDataset
(
infos
[
"database"
].
name
,
infos
[
"protocol"
],
infos
[
"set"
]),
suffix
=
".db"
,
...
...
@@ -163,6 +162,7 @@ def run_experiment(
"Index for database %s not found, building it"
,
infos
[
"database"
].
name
,
)
view
=
infos
[
"database"
].
view
(
infos
[
"protocol"
],
infos
[
"set"
])
view
.
index
(
database_index_path
)
dataformat_cache
=
{}
...
...
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