Skip to content

Commit

Permalink
Merge pull request #221 from CovertLab/zero_replisome_bug
Browse files Browse the repository at this point in the history
Create empty array when zero initial replisomes
  • Loading branch information
thalassemia authored Jan 18, 2024
2 parents e14f56a + 0bad3aa commit 6adb54b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ecoli/library/initial_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ def initialize_replication(bulk_state, unique_molecules, sim_data, cell_mass,
# Remove replisome subunits from bulk molecules
bulk_state["count"][replisome_trimer_idx] -= 3*n_replisome
bulk_state["count"][replisome_monomer_idx] -= n_replisome
else:
# For n_replisome = 0, still create an empty structured array with
# the expected fields
unique_molecules["active_replisome"] = create_new_unique_molecules(
"active_replisome", n_replisome, sim_data, unique_id_rng)

# Get coordinates of all genes, promoters and DnaA boxes
all_gene_coordinates = sim_data.process.transcription.cistron_data[
Expand Down

0 comments on commit 6adb54b

Please sign in to comment.