Beispiel #1
0
 def __init__(self, flt_schema, sol_broker, hard_check):
     self.mHardCheck = hard_check
     self.mConvertors = []
     self.mTotalItemCount = 0
     self.mTransPathBaseF = AttrFuncPool.makeFunc(
         AnfisaConfig.configOption("transcript.path.base"))
     self.mUnitStatSeq = []
     panels_convertors = []
     for unit_descr in flt_schema:
         kind, sub_kind = unit_descr["kind"], unit_descr["sub-kind"]
         if kind == "numeric":
             if sub_kind.startswith("transcript-"):
                 self.mConvertors.append(TrNumConvertor(unit_descr))
             else:
                 self.mUnitStatSeq.append(NumUnitStatH(unit_descr))
         elif kind == "enum":
             if sub_kind == "transcript-status":
                 self.mConvertors.append(
                     TrStatusConvertor(unit_descr))
             elif sub_kind == "transcript-multiset":
                 self.mConvertors.append(
                     TrMultisetConvertor(unit_descr))
             elif sub_kind == "transcript-panels":
                 panels_convertors.append(
                     TrPanelsConvertor(sol_broker, unit_descr))
             else:
                 self.mUnitStatSeq.append(EnumUnitStatH(unit_descr))
         else:
             assert False, "Bad kind:" + unit_descr["kind"]
     self.mConvertors += panels_convertors
Beispiel #2
0
 def __init__(self, master, name, title, unit_no, vgroup, path_info_seq,
              render_mode, tooltip):
     ValueConvertor.__init__(self, master, name, title, unit_no, vgroup,
                             render_mode, tooltip)
     self.mPathInfoSeq = path_info_seq
     self.mPathFunctions = [(it_name, AttrFuncPool.makeFunc(it_path))
                            for it_name, it_path in self.mPathInfoSeq]
     self.mVarCount = Counter()
Beispiel #3
0
 def __init__(self, var_name, vpath, family_info):
     self.mVarName = var_name
     self.mPath = vpath
     self.mPathF = AttrFuncPool.makeFunc(self.mPath)
     assert family_info is not None, "No dataset metadata with samples info"
     self.mMemberIds = [id for id in family_info.getIds()]
     self.mMemberNames = [
         f"{var_name}_{idx}" for idx in range(len(self.mMemberIds))
     ]
Beispiel #4
0
 def __init__(self, master, name, vpath, unit_no, vgroup):
     ValueConvertor.__init__(self, master, name, unit_no, vgroup)
     self.mPath = vpath
     self.mPathF = AttrFuncPool.makeFunc(self.mPath)
Beispiel #5
0
 def __init__(self, master, name, vpath, title, unit_no, vgroup,
              render_mode, tooltip):
     ValueConvertor.__init__(self, master, name, title, unit_no, vgroup,
                             render_mode, tooltip)
     self.mPath = vpath
     self.mPathF = AttrFuncPool.makeFunc(self.mPath)