f4enix.input.d1suned.Irradiation#

class f4enix.input.d1suned.Irradiation(daughter: Nuclide, lambd: str, times: list[str], comment: str | None = None)#

Bases: object

Irradiation object

Parameters:
  • daughter (Nuclide) – daughter nuclide for which coefficients are provided.

  • lambd (str) – disintegration constant [1/s].

  • times (list of strings) – time correction factors.

  • comment (str, optional) – comment to the irradiation. The default is None.

Variables:
  • daughter (str) – daughter nuclide (e.g. 24051). If metastable, it will have an additional ‘900’ appended to the zaid number.

  • lambd (str) – disintegration constant [1/s].

  • times (list of strings) – time correction factors.

  • comment (str, optional) – comment to the irradiation. The default is None.

Return type:

None.

Methods

__init__(daughter, lambd, times[, comment])

Irradiation object

from_text(text, nsc)

Parse a single irradiation

modify_time_val(index, new_value)

Modify a value in the times list at the specified index.

Attributes

times

Get the time correction factors as an immutable tuple.

classmethod from_text(text: str, nsc: int) Irradiation#

Parse a single irradiation

Parameters:
  • cls (TYPE) – DESCRIPTION.

  • text (str) – text to be parsed.

  • nsc (int) – number of irradiation schedule.

Returns:

Instance of irradiation object.

Return type:

Irradiation

modify_time_val(index: int, new_value: float) None#

Modify a value in the times list at the specified index.

Parameters:
  • index (int) – The index of the value to be modified.

  • new_value (float) – The new value to be assigned, which will be converted to a string.

Raises:

IndexError – If the provided index is out of range for the times list.

property times: tuple[str, ...]#

Get the time correction factors as an immutable tuple.