// Generate the Kappa model code from the PySB model and write it to
// the Kappa file:
with open(kappa_filename, "w") as kappa_file:
kappa_file.write(gen.get_content())
// If desired, add instructions to the kappa file to generate the
// flux map:
if flux_map:
After Change
// Generate the Kappa model code from the PySB model and write it to
// the Kappa file:
with open(kappa_filename, "w") as kappa_file:
file_data = gen.get_content()
// If desired, add instructions to the kappa file to generate the
// flux map:
if flux_map:
file_data += "%%mod: [true] do $DIN "%s" [true];\n" % fm_filename