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
2024-05-14  08:02:25 PESummary WARNING : Unable to install 'pycbc'. You will not be able to use some of the inbuilt functions.
usage: summarysplit [-h] -s SAMPLES
                    [--file_format {bilby,hdf5,ini,numpy,csv,pickle,lalinference,dat,sql,pesummary,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 {bilby,hdf5,ini,numpy,csv,pickle,lalinference,dat,sql,pesummary,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