photonpacket.helpers module

photonpacket.helpers.opcolor(rgba)[source]

Generate opposite color in rgba format

photonpacket.helpers.siprefix(prefix)[source]

Obtain SI prefix factor from string prefix

Parameters
prefixstring
Returns
factordouble

Examples

>>> pp.file.siprefix('n')
1e-9