class serpentTools.objects.UnivTuple

Convenient identifier for universes

Properties can be accessed by position or by attribute name. The latter is preferable as it will be consistent across potential API changes

  • universe (str) – Universe from Serpent input

  • burnup (float or None) – Burnup for this universe [MWd/kgU]

  • step (int) – Burnup step

  • days (float or None) – Burnup day


>>> x = UnivTuple("0", 0.1, 1, 10.0)
>>> x.universe
>>> x[0] == x.universe

Return key in self.


Return self[key].


Implement iter(self).


Return len(self).

property burnup

Alias for field number 1

count(value) → integer -- return number of occurrences of value
property days

Alias for field number 3

index(value[, start[, stop]]) → integer -- return first index of value.

Raises ValueError if the value is not present.

property step

Alias for field number 2

property universe

Alias for field number 0