-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In theory, we could figure out what to use for them, but we haven't and need to publish, so don't do this.
- Loading branch information
1 parent
00b8fd9
commit 1d0d89d
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import os | ||
|
||
# Don't use this list; figure it out on the fly (so we're future-proofed) | ||
#qual_and_fbc_models = ["BIOMD0000000562", "BIOMD0000000592", "BIOMD0000000593", "BIOMD0000001046", "BIOMD0000001061", "BIOMD0000001062", "BIOMD0000001063", "BIOMD0000001064"] | ||
|
||
def hasQualOrFBC(sbml_filenames): | ||
for filename in sbml_filenames: | ||
f = open(filename, "r") | ||
for line in f: | ||
if "qual:" in line: | ||
return True | ||
if "fbc:" in line: | ||
return True | ||
return False | ||
|
||
|
||
def run(id, sedml_filenames, sbml_filenames): | ||
if hasQualOrFBC(sbml_filenames): | ||
for filename in sedml_filenames: | ||
os.remove(filename) |