Skip to content

Commit

Permalink
style: apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
Midnighter committed Oct 7, 2020
1 parent 8e70e26 commit 797951e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cobra/test/data/update_pickles.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
config.solver = "glpk"



if __name__ == "__main__":
# ecoli
ecoli_model = read_sbml_model("iJO1366.xml.gz")
Expand All @@ -52,7 +51,6 @@
mini = cobra.Model("mini_textbook")
mini.compartments = textbook.compartments


for r in textbook.reactions:
if r.id in (
"GLCpts",
Expand Down Expand Up @@ -125,7 +123,9 @@
json_dump(clean_result, outfile)

# fva with pfba constraint
fva_result = cobra.flux_analysis.flux_variability_analysis(textbook, pfba_factor=1.1)
fva_result = cobra.flux_analysis.flux_variability_analysis(
textbook, pfba_factor=1.1
)
clean_result = OrderedDict()
for key in sorted(fva_result):
clean_result[key] = {k: round(v, 5) for k, v in fva_result[key].items()}
Expand Down

0 comments on commit 797951e

Please sign in to comment.