gravelamps.generate_lens

Lens data generation.

gravelamps.generate_lens.cluster_generation(config: ConfigParser, args: Namespace) int

Generate lens configurations for a scheduler.

Parameters:
config: ConfigParser

INI configuration values.

args: Namespace

Program commandline arguments.

Returns:
int

Exit code, always zero.

Raises:
ValueError

If the scheduler selected is not a supported scheduler.

gravelamps.generate_lens.cluster_generation_condor(config: ConfigParser, args: Namespace) None

Generate and potentially submit lens generation jobs to the HTCondor scheduler.

Parameters:
config: ConfigParser

INI configuration values.

args: Namespace

Program commandline arguments.

gravelamps.generate_lens.cluster_generation_slurm(config: ConfigParser, args: Namespace)

Generate and potentially submit jobs to the slurm scheduler.

Parameters:
config: ConfigParser

INI configuration values.

args: Namespace

Program commandline arguments.

gravelamps.generate_lens.handler(signum, _)

Signal handling for Gravelamps functions. Exits with code 85 for SIGALRM and SIGINT.

gravelamps.generate_lens.local_generation(config: ConfigParser) int

Run the generation functions for a local run.

Parameters:
config: ConfigParser

INI configuration values.

Returns:
exit_code: int

Exit code

gravelamps.generate_lens.main()

Generation of lens amplification factor data.

Program will generate a grid of amplification factor values over the specified regions of lens parameter space for the given model. Dependent upon the settings, program will either do this directly or generate an HTCondor submission file. All configuration may be done in the INI configuration file that is the required argument to this program. For full information of the options available within the INI file, please see the Gravelamps documentation.