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
88205af7
Commit
88205af7
authored
Mar 01, 2018
by
Samuel GAIST
Browse files
[algorithms] Update hash and path creation in execute to use new paradigm
parent
2ca445e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/algorithms.py
View file @
88205af7
...
...
@@ -269,13 +269,12 @@ def execute(prefix, cache, instructions_file):
for
name
,
cfg
in
configuration
[
'inputs'
].
items
():
cfg
[
'endpoint'
]
=
name
suffix
=
''
if
cfg
.
has_key
(
'database'
):
# Connected to a database output
db
=
DatabaseStorage
(
prefix
,
cfg
[
'database'
])
cfg
[
'hash'
]
=
hash
.
hashDataset
(
db
.
hash
(),
cfg
[
'protocol'
],
cfg
[
'set'
])
cfg
[
'path'
]
=
hash
.
toPath
(
cfg
[
'hash'
],
''
)
else
:
cfg
[
'path'
]
=
hash
.
toPath
(
cfg
[
'hash'
],
''
)
cfg
[
'hash'
]
=
hash
.
hashDataset
(
cfg
[
'database'
],
cfg
[
'protocol'
],
cfg
[
'set'
])
suffix
=
'.db'
cfg
[
'path'
]
=
hash
.
toPath
(
cfg
[
'hash'
],
suffix
=
suffix
)
algo
=
AlgorithmStorage
(
prefix
,
configuration
[
'algorithm'
])
...
...
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