Commit 88205af7 authored by Samuel GAIST's avatar Samuel GAIST

[algorithms] Update hash and path creation in execute to use new paradigm

parent 2ca445e1
......@@ -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'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment