tasks/lalinference.py: Fits name inherits only the first prefix from a posterior samples file.
To ensure that the lengths of fits filenames do not exceed the GCN limitation, we only use the first prefix of the posterior sample file as a prefix of the fits file. It also makes it clear from which posterior sample the fits file is created from the log messages. Here is the example of log messages.
log 8:Flat-resolution fits file created from LALInference.online.posterior_samples.hdf5 LALInference.fits.gz
log 7:Flat-resolution fits file created from LALInference.offline.posterior_samples.hdf5 LALInference.fits.gz
log 6:Flat-resolution fits file created from bilby.online.posterior_samples.hdf5 bilby.fits.gz
log 5:Flat-resolution fits file created from bilby.offline.posterior_samples.hdf5 bilby.fits.gz
log 4:lalinference online results LALInference.online.posterior_samples.hdf5
log 3:lalinference offline results LALInference.offline.posterior_samples.hdf5
log 2:bilby online results bilby.online.posterior_samples.hdf5
log 1:bilby offline results bilby.offline.posterior_samples.hdf5
cc: @vivien @leo-singer
Edited by Soichiro Morisaki