Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,6 @@ def run_biosimulators_remote(engine,sedml_filepath,sbml_filepath):
print(f"There was an error submitting the simulation archive:{exception_message}")
results_urls = {"response":"","view": "", "download": "", "logs": "","exception": exception_message}

if os.path.exists(omex_filepath):
os.remove(omex_filepath)

return results_urls

def get_remote_results(engine, download_link, output_dir='remote_results'):
Expand Down Expand Up @@ -711,9 +708,6 @@ def run_biosimulators_docker(engine,sedml_filepath,sbml_filepath,output_dir='out
detailed_error_log_dict['status'] = 'FAIL'
detailed_error_log_dict['error_message'] = "Runtime Exception"

if os.path.exists(omex_filepath):
os.remove(omex_filepath)

return {"exception_message":exception_message,"log_yml":log_yml_dict, "detailed_error_log":detailed_error_log_dict}

def biosimulators_core(engine,omex_filepath,output_dir=None):
Expand Down Expand Up @@ -749,9 +743,6 @@ def biosimulators_core(engine,omex_filepath,output_dir=None):
mounts=[mount_in,mount_out],
command=f"-i '/root/in/{omex_file}' -o /root/out",
auto_remove=True)

if os.path.exists(omex_filepath_no_spaces):
os.remove(omex_filepath_no_spaces)

def test_engine(engine,filename,error_categories=error_categories):
'''
Expand Down