Skip to content

Commit

Permalink
Rename moved from yml file.
Browse files Browse the repository at this point in the history
Don't need the try/except around the original rename; it's the first pass.
  • Loading branch information
luciansmith committed Jun 4, 2024
1 parent 52658df commit dca64ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions fix_manual_corrections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,6 @@ BIOMD0000000683:
- filename: 'MODEL1006230062.sedml'
type: 'rename_file'
new: 'BIOMD0000000683.sedml'
- filename: 'MODEL1006230062.xml'
type: 'rename_file'
new: 'BIOMD0000000683.xml'
- filename: 'BIOMD0000000683.sedml'
type: replace_text
old: source="MODEL1006230062.xml"
Expand Down
7 changes: 2 additions & 5 deletions rename_sbml_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,8 @@ def run(id, sbml_filenames, sbml_master):
os.rename(filename, newfilename)
remove_list.append((filename, newfilename))
for (old, new) in remove_list:
try:
sbml_filenames.remove(old)
sbml_filenames.append(new)
except:
pass
sbml_filenames.remove(old)
sbml_filenames.append(new)
if id in REMOVE:
old = REMOVE[id]
if sbml_master == old:
Expand Down

0 comments on commit dca64ad

Please sign in to comment.