Skip to content

Commit

Permalink
bug fix (copy from temp files if files don't exist)
Browse files Browse the repository at this point in the history
  • Loading branch information
stellaprins committed Nov 20, 2024
1 parent 1d60543 commit 58fb84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BioModels/test_biomodels_compatibility_biosimulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def main():
new_sbml_file_path = os.path.join(new_directory, os.path.basename(sbml_file))
new_sedml_file_path = os.path.join(new_directory, os.path.basename(sedml_file))

if use_original_files:
paths_exist = os.path.exists(new_sbml_file_path) and os.path.exists(new_sedml_file_path)
if use_original_files or not paths_exist:
print (f"Copying {sbml_file} and {sedml_file} to {starting_dir}/{new_subfolder}")
shutil.copy(sbml_file_path, new_sbml_file_path)
shutil.copy(sedml_file_path, new_sedml_file_path)
Expand All @@ -163,6 +164,5 @@ def main():

if __name__ == "__main__":
use_original_files = False
biomodel_id_list = list(biomodel_dict.keys())
biomodel_id_list = ["BIOMD0000000001","BIOMD0000000138"]
main()

0 comments on commit 58fb84e

Please sign in to comment.