f4enix.core.irradiation.Pulse#

class f4enix.core.irradiation.Pulse(time: float, intensity: float, unit=TIME_UNITS.SECOND)#

Bases: object

An object representing a single pulse

Parameters:
  • time (float) – time duration of the pulse

  • intensity (float) – intensity (flux) of the pulse

  • unit (TIME_UNITS, optional) – preferred time unit for the pulse, by default TIME_UNITS.SECOND. time will always be stored in seconds internally.

Methods

__init__(time, intensity[, unit])

An object representing a single pulse

get_time(unit)

Get the irradiation time in a specific time unit

get_time(unit: TIME_UNITS) float#

Get the irradiation time in a specific time unit

Parameters:

unit (TIME_UNITS) – desired time unit

Returns:

irradiation time in the desired unit

Return type:

float