xopto.mcml.mcsource.base module

class Source[source]

Bases: xopto.mcbase.mcobject.McObject

classmethod fromdict(data: dict)xopto.mcml.mcsource.base.Source[source]

Create a new instance of a photon packet source from a dict. The dict keys must match the parameter names defined by the constructor.