summarysplit

This summarysplit executable is designed to split the posterior samples contained within a file into N seperate files. If the input file has more than one analysis (e.g. a PESummary metafile), the posterior samples for each analysis is split into N separate files.

To see help for this executable please run:

$ summarysplit --help
usage: summarysplit [-h] -s SAMPLES
                    [--file_format {pesummary,lalinference,numpy,csv,hdf5,ini,sql,bilby,dat,pickle,json}]
                    [--outdir OUTDIR] [--multi_process MULTI_PROCESS]
                    [-N N_FILES]

This executable is used to split the posterior samples contained within a file
into N separate files. If the input file has more than one analysis, the
posterior samples for each analysis is split into N separate files. This is
useful for submitting thousands of summarypages to condor

optional arguments:
  -h, --help            show this help message and exit
  -s SAMPLES, --samples SAMPLES
                        Path to the posterior samples file you wish to split
  --file_format {pesummary,lalinference,numpy,csv,hdf5,ini,sql,bilby,dat,pickle,json}
                        Format of each output file
  --outdir OUTDIR       Directory to save each file
  --multi_process MULTI_PROCESS
                        The number of cores to use when generating plots
  -N N_FILES, --N_files N_FILES
                        Number of files to split the posterior samples into.
                        Default 0 meaning N_files=n_samples where n_samples is
                        the number of posterior samples