new_contents: import os
  import yaml
  import yt
  import sys
  
  data_dir = '/mnt/data/renaissance'
  
  rsl_page_root = os.environ.get(
      'RSL_PAGE_ROOT', '/home/britton/rensimlab.github.io')
  
  simyaml = os.path.join(rsl_page_root, '_data', 'simulations.yaml')
  simulation_data = yaml.load(open(simyaml, 'r'))
  
  if len(sys.argv) < 2:
      sys.exit()
  
  sim = sys.argv[1]
  
  fn = os.path.join(data_dir, sim, "rs_%s.h5" % sim.lower())
  es = yt.load(fn)
  
  def_entry = {"halo_catalogs": False, "num_halos": 'N/A',
               "on_rsl": False, "size": 'N/A'}
  
  sim_entries = [{"z": float("%.1f" % z), "snapshot": os.path.dirname(myfn)}
                 for z, myfn in zip(es.data["redshift"],
                                    es.data["filename"].astype(str))]
  for entry in sim_entries:
      entry.update(def_entry)
  simulation_data[sim] = sim_entries
  
  yaml.dump(simulation_data, open(simyaml, 'w'))
  
subject: Add script to add a simulation to the yaml file.