Skip to content

Commit

Permalink
updated compiler.py to not generate xml file when errors are encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
tayasherstyukova committed Jan 30, 2025
1 parent 968c62b commit 788ca9d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified excel2sbol/.DS_Store
Binary file not shown.
Binary file modified excel2sbol/excel2sbol/.DS_Store
Binary file not shown.
6 changes: 5 additions & 1 deletion excel2sbol/excel2sbol/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import sbol3
import math
import re
import os

# the homespace only works if the change is made to pysbol2 shown in https://github.com/SynBioDex/pySBOL2/pull/411/files

Expand Down Expand Up @@ -436,7 +437,10 @@ def column_parse(to_convert, compiled_sheets, sht_convert_dict, dict_of_objs,
if len(data_source_id_to_update) > 0:
doc = hf.update_uri_refs(doc, data_source_id_to_update, use_derived=True, derived_ls = ['_sequence'])

if file_format is None:

if os.getenv("COUNTER") == "Error found":
return
elif file_format is None:
doc.write(file_path_out)
else:
doc.write(file_path_out, file_format = file_format)
Expand Down

0 comments on commit 788ca9d

Please sign in to comment.