Cython: fixed history dot graph for all views, and fixed history

recording for build_ref_db and ecotag
This commit is contained in:
Celine Mercier
2018-12-10 17:09:00 +01:00
parent eb586b2f53
commit c437931a35
3 changed files with 14 additions and 3 deletions

View File

@ -75,7 +75,11 @@ def run(config):
# Save command config in View comments
command_line = " ".join(sys.argv[1:])
comments = View.print_config(config, "build_ref_db", command_line, input_dms_name=[i_dms_name], input_view_name=[i_view_name])
input_dms_name=[i_dms_name]
input_view_name= [i_view_name]
input_dms_name.append(config['obi']['taxoURI'].split("/")[-3])
input_view_name.append("taxonomy/"+config['obi']['taxoURI'].split("/")[-1])
comments = View.print_config(config, "build_ref_db", command_line, input_dms_name=input_dms_name, input_view_name=input_view_name)
if build_reference_db(tobytes(i_dms_name), tobytes(i_view_name), tobytes(taxonomy_name), tobytes(o_view_name), comments, config['build_ref_db']['threshold']) < 0:
raise Exception("Error building a reference database")
@ -96,3 +100,4 @@ def run(config):
o_dms.close()
i_dms.close()