scripts.generate_fits
Module Contents
Classes
Generates posterior samples using multi-core parallelization. |
Functions
Extracts the script command-line arguments. |
Attributes
- class PosteriorsGenerator(sampler_name, lightcurves_dir, survey, num_workers, output_dir)[source]
Generates posterior samples using multi-core parallelization.
- generate_data(seed)[source]
Distributes data generation between available workers.
- Parameters:
seed (int) – Random seed value for deterministic data generation.
- get_posteriors_to_generate()[source]
Determines which fit files to generate.
- Returns:
The file names of the missing posterior samples.
- Return type:
list of str
- setup_sampler(sampler_name, seed)[source]
Creates a sampler and its kwargs from its name.
Parameter
- sampler_namestr
The name of the sampler to use. One of “dynesty”, “svi”, “NUTS”, “iminuit”, “licu-ceres” or “licu-mcmc-ceres”.
- seedint
Random seed value used for deterministic data generation.
- returns:
sampler (Sampler) – The sampler object.
kwargs (dict) – The sampler specific arguments.