Fix and add more to docs
@@ -15,7 +15,7 @@ def unpack_single_run_meta(storage, meta, molecules):
Parameters
----------
- db : DBSocket
+ storage : DBSocket
A live connection to the current database.
meta : dict
A JSON description of the metadata involved with the computation
@@ -26,6 +26,7 @@ def unpack_single_run_meta(storage, meta, molecules):
-------
ret : tuple(dict, list)
A dictionary of JSON representations with keys built in.
+ The list is an array of any errors occurred
Examples
--------
@@ -73,7 +74,6 @@ def unpack_single_run_meta(storage, meta, molecules):
}
})
-
tasks = {}
indexer = copy.deepcopy(meta)
for idx, mol in raw_molecules_query["data"].items():
@@ -128,6 +128,7 @@ def parse_single_runs(storage, results):
return results
+
def single_run_hash(data, program=None):
single_keys = interface.schema.format_result_indices(data, program=program)
@@ -141,8 +142,10 @@ def hash_procedure_keys(keys):
m.update(json.dumps(keys, sort_keys=True).encode("UTF-8"))
return m.hexdigest()
+
def parse_hooks(rdata, rhooks):
"""Parses the hook data in a list of hooks
+ TODO: this methos an has error, results is undefined
Parameters
----------
