Skip to content
Snippets Groups Projects
Commit c42148b1 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Don't call database.annotations when annotating

parent 69f9fef2
No related branches found
No related tags found
1 merge request!41Add annotators
...@@ -80,7 +80,7 @@ def annotate(database, annotator, output_dir, force, jobs, **kwargs): ...@@ -80,7 +80,7 @@ def annotate(database, annotator, output_dir, force, jobs, **kwargs):
continue continue
data = annotator.read_original_data( data = annotator.read_original_data(
biofile, database.original_directory, database.original_extension) biofile, database.original_directory, database.original_extension)
annot = annotator(data, annotations=database.annotations(biofile)) annot = annotator(data)
create_directories_safe(dirname(outpath)) create_directories_safe(dirname(outpath))
with open(outpath, 'w') as f: with open(outpath, 'w') as f:
json.dump(annot, f, indent=1, allow_nan=False) json.dump(annot, f, indent=1, allow_nan=False)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment