Commit 0443a0d2 authored by AITE Meziane's avatar AITE Meziane

python3 fix

parent c55acf86
......@@ -74,7 +74,7 @@ def main():
out = subprocess.check_output(["/bin/bash", "-i", "-c", cmd])
#prod_targets = (i for i in out.splitlines() if i.endswith(" producible targets:")).next()[:-1]
print("Number of targets: %s" %(len(targets)))
print(out)
print(out.decode("UTF-8"))
print("#Flux Balance Analysis")
fba_on_targets(targets, model)
if all_species:
......@@ -152,4 +152,4 @@ def fba_on_targets(allspecies, model):
print("%s // %s %s NULL" %(species, convert_from_coded_id(species.id)[0]+"_"+convert_from_coded_id(species.id)[2], solution.objective_value))
if __name__ == "__main__":
main()
\ No newline at end of file
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment