Skip to content

Commit

Permalink
Fix SBML master file-finding algorithm.
Browse files Browse the repository at this point in the history
(And clean up comments)
  • Loading branch information
luciansmith committed Jun 3, 2024
1 parent 39ce9e7 commit 310a1ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions make_algorithms_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def make_algorithms_generic(doc):
alg_term = Kisao.get_term(kid)
alts = kisao.utils.get_substitutable_algorithms(alg_term)
if generic_ode in alts:
alg.setKisaoID(694) #'ODE solver'
alg.setKisaoID(694)
alg.setName("ODE solver")
changed = True
elif generic_ss in alts:
alg.setKisaoID(407) #'ODE solver'
alg.setKisaoID(407)
alg.setName("Steady state root-finding method")
changed = True
return changed
Expand Down
2 changes: 1 addition & 1 deletion rename_sbml_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ def run(id, sbml_filenames, sbml_master):
if ":" in sbml_master:
sbml_master = sbml_master.replace(":", "_")

return sbml_master
return os.path.basename(sbml_master)

0 comments on commit 310a1ee

Please sign in to comment.