# EFICAS
from Accas import OPER, BLOC, FACT, SIMP, ASSD, JDC_CATA, VerifTypeTuple, Matrice
+from Accas import Tuple as _Tuple
from Extensions.i18n import tr
# Warning: The names of these variables are defined by EFICAS
NMIN_CORE_FUEL_ELTS = 1
NMAX_CORE_FUEL_ELTS = 18
-class Tuple:
+class Tuple(_Tuple):
"""Organize the data into a fixed size tuple.
Warnings
This class respect the EFICAS conventions.
"""
- def __init__(self, ntuple):
- self.ntuple = ntuple
-
def __convert__(self, valeur):
if len(valeur) != self.ntuple:
return None
return valeur
- def info(self): # pylint: disable=missing-function-docstring
- return "Tuple de %s elements" % self.ntuple
-
class VerifPostTreatment(VerifTypeTuple):
"""Validate the data comming from ``Scenario_data.post_processing``.