InjEmittersDistribution#

class jetset.jet_emitters.InjEmittersDistribution(name, spectral_type, gamma_grid_size=200, log_values=False, skip_build=False, normalize=True, emitters_type='electrons')[source]#

Bases: BaseEmittersDistribution

Injection emitter distribution used in time/equilibrium calculations.

Notes

Manages Q(gamma)-style injection parameterizations, normalization, and optional synchronization of injected particles with equilibrium-enabled backend buffers.

Methods Summary

add_par(name, par_type, val, vmax, vmin[, ...])

Add par.

eval_U_q()

Evaluate u q.

set_parameters_dict()

Build default parameter dictionary for injection distributions.

set_temp_ev()

Bind temporary-evolution buffers used by legacy workflows.

Methods Documentation

add_par(name, par_type, val, vmax, vmin, unit='', log=False, frozen=False)[source]#

Add par.

Parameters:
  • name (object) – Name identifier.

  • par_type (object) – Parameter type/category label.

  • val (object) – Value to assign.

  • vmax (object) – Maximum allowed value.

  • vmin (object) – Minimum allowed value.

  • unit (str, optional) – Physical unit string.

  • log (bool, optional) – If True, treat the value in log10 units.

  • frozen (bool, optional) – If True, keep parameter fixed during fitting.

eval_U_q()[source]#

Evaluate u q.

Returns:

Computed value.

Return type:

object

set_parameters_dict()[source]#

Build default parameter dictionary for injection distributions.

Notes

Populates both _parameters_dict and parameters container.

set_temp_ev()[source]#

Bind temporary-evolution buffers used by legacy workflows.

Notes

Marked as legacy in code comments and kept for compatibility.