code: def set_sim_data(inj, field, data):
      
      try:
          sim_field = sim_inspiral_map[field]
      except KeyError:
          sim_field = field
      # for tc, map to geocentric times
      if sim_field == 'tc':
          inj.geocent_end_time = int(data)
          inj.geocent_end_time_ns = int(1e9*(data % 1))
      else:
          setattr(inj, sim_field, data)
docs: Sets data of a SimInspiral instance.