makeflats import: do something if agpy fails
split out TSYS generation