Exemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        """
        Keyword arguments:

            - `label`: name of this subset
            - `character_indices`: list of 0-based (integer) indices
               of column positions that constitute this subset.

        """
        IdTagged.__init__(self, *args, **kwargs)
        self.character_indices = set(kwargs.get("character_indices", []))
Exemplo n.º 2
0
 def __init__(self,
              oid=None,
              label=None,
              symbol=None,
              token=None,
              multistate=SINGLE_STATE,
              member_states=None):
     IdTagged.__init__(self, oid=oid, label=label)
     self.symbol = symbol
     self.token = token
     self.multistate = multistate
     self.member_states = member_states
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     IdTagged.__init__(self, *args, **kwargs)
     self._state_alphabet = None
     self.id_state_map = None
     self.state_alphabet = kwargs.get("state_alphabet", None)
Exemplo n.º 4
0
 def __init__(self, value, column_def, **kwargs):
     IdTagged.__init__(self, **kwargs)
     self.value = value
     self.column_def = column_def
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     IdTagged.__init__(self, *args, **kwargs)
     list.__init__(self, *args)
     self.missing = None
     self.symbol_synonyms = {}
     self.case_sensitive = kwargs.get("case_sensitive", False)