Example #1
0
 def __init__(self):
     """
     Just add some properties.
     """
     self.project = None
     self.objectPath = None
     self.projectList = None
     self.rogScore = ROGscore()
Example #2
0
 def __init__(self, name, status='keep'):
     NTlist.__init__(self)
     ProjectListMember.__init__(self)  # Initialized objectPath
     self.__CLASS__ = 'ResonanceList'
     self.name = name  # Name of the list
     self.status = status  # Status of the list; 'keep' indicates storage required
     self.currentId = 0  # Id for each element of list
     self._idDict = {
     }  # dictionary to look up id in case the list is sorted differently
     self._byItem = None  # if not None: list was sorted _byItem.
     self.vascoResults = NTdict(
     )  # See applyVascoChemicalShiftCorrections # NB match with VASCO_RESULTS_STR
     self.vascoApplied = False  # VASCO_APPLIED_STR
     self.bmrb_id = None  # Will be derived from name when calling rename.
     self.rogScore = ROGscore()
     self.SMLhandler.SML_SAVE_ATTRIBUTE_LIST = self.SML_SAVE_ATTRIBUTE_LIST
     self.rename(name)  # Triggers setting self.bmrb_id