generate_proto_set#

radiosim.ppdisks.generate_proto_set(img_size: int, size: int, alpha_range: tuple = (0, 180), ratio_range: tuple = (3, 15), size_ratio_range: tuple = (0.1, 1), device: str = 'cpu', seed: int = 1337, verbose: bool = False)[source]#

Generates a Set of simulated protoplanetary disk images

Parameters:
img_size: int

The size of the image (height and width)

size: int

The amount of images to simulate

alpha_range: tuple of float, optional

The range of values of the inclination of the disk in degrees. Default: (0, 180)

ratio_range: tuple of float, optional

The range of values of the ratio the minor axis should be of the major axis \(a / b\). Default: (3, 15)

size_ratio_range: tuple of float, optional

The range of values of the ratio of the image size the disk should take up. Default: (0.1, 1)

device: str, optional

The name of the device to run the simulations on (with torch). Default: ‘cpu’

seed: int, optional

The seed for the random generator. Default: 1337

verbose: bool, optional

Whether to show a progress bar or not. Default: False

Returns:
protos: list of torch.tensor

List of the simulated images

params: dict

The used simulation parameters