emod_api.demographics.PreDefinedDistributions module

class emod_api.demographics.PreDefinedDistributions.ConstantDistribution(distribution)[source]

Bases: object

Wrapping this class around a Distributions disables __setattr__ and makes the wrapped objects constant.

to_dict()[source]

Calls the to_dict() method of the wrapped distribution.

copy()[source]

Creates a deepcopy of the wrapped Distribution object.