cosmology fitting attempt to add to sncosmo