generate – Dataset Generation Module

Generate simulated strong lensing images using the classes and parameters of an input configuration dictionary.

This script generates strong lensing images from paltas config dictionaries.

Example

To run this script, pass in the desired config as argument:

$ python -m generate.py path/to/config.py path/to/save_folder --n 1000

The parameters will be pulled from config.py and the images will be saved in save_folder. If save_folder doesn’t exist it will be created.

paltas.generate.main()[source]

Generates the strong lensing images by drawing parameters values from the provided configuration dictionary.

paltas.generate.parse_args()[source]

Parse the input arguments by the user

Returns:

An instance of the Namespace object with the users provided values.

Return type:

(argparse.Namespace)