code: def sim_timetrace(emission, max_rate, t_step):
      
      emission_rates = emission * max_rate * t_step
      return np.random.poisson(lam=emission_rates).astype(np.uint8)
docs: Draw random emitted photons from Poisson(emission_rates).