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.cmdline
Commits
2a7c257f
Commit
2a7c257f
authored
Mar 01, 2018
by
Samuel GAIST
Browse files
[databases] Removed checksum command for index
It's not used anymore as the underlying paradigm as changed.
parent
47bcde4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/databases.py
View file @
2a7c257f
...
...
@@ -502,39 +502,6 @@ def delete_index_files(configuration, names):
# ----------------------------------------------------------
def
checksum_index_files
(
configuration
,
names
):
names
=
common
.
make_up_local_list
(
configuration
.
path
,
'database'
,
names
)
retcode
=
0
for
database_name
in
names
:
logger
.
info
(
"Checksumming database %s indexes..."
,
database_name
)
(
db_name
,
database
,
sets
)
=
load_database_sets
(
configuration
,
database_name
)
if
database
is
None
:
retcode
+=
1
continue
for
protocol_name
,
set_name
,
db_set
in
sets
:
for
output_name
in
db_set
[
'outputs'
].
keys
():
index_hash
=
database
.
hash_output
(
protocol_name
,
set_name
,
output_name
)
index_filename
=
os
.
path
.
join
(
configuration
.
cache
,
toPath
(
index_hash
,
'.index'
))
assert
load_data_index
(
configuration
.
cache
,
toPath
(
index_hash
,
'.index'
))
logger
.
info
(
"index for `%s' can be loaded and checksumed"
,
index_filename
)
return
retcode
# ----------------------------------------------------------
def
view_outputs
(
configuration
,
dataset_name
,
excluded_outputs
=
None
,
uid
=
None
,
db_root
=
None
,
docker
=
False
):
...
...
@@ -714,8 +681,6 @@ def process(args):
return
list_index_files
(
configuration
,
db_names
)
elif
args
[
'--delete'
]:
return
delete_index_files
(
configuration
,
db_names
)
elif
args
[
'--checksum'
]:
return
checksum_index_files
(
configuration
,
db_names
)
else
:
return
index_outputs
(
configuration
,
db_names
,
uid
=
uid
,
...
...
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