def __init__(self, stream, parent=None): ExcelMoleculeDesignPoolLayoutParser.__init__(self, stream, parent=parent) #: The names of the sheets to be parsed (set by the handler). self.sheet_names = None #: A list of all tag predicates (factors) found in the file (to #: detect duplicates). self.tag_predicates = set()
def __init__(self, stream, parent=None): ExcelMoleculeDesignPoolLayoutParser.__init__(self, stream, parent=parent) self.layouts_have_specifiers = False # I. Tag-related values. #: The tag predicate for molecule design tags (set by the handler). self.molecule_design_parameter = None #: The parameters that might be specified by layouts (with their #: predicates and aliases mapped onto the parameter name). self.layout_parameters = None #: List of optional parameters that do not have to be specified #: (set by the handler). self.optional_parameters = None # II. Metadata-related values (set by the handler). #: List of valid meta data specifiers (list of :class:`string`). self.allowed_metadata = None #: List of required meta data specifiers self.required_metadata = None # III. Storage of the parsed data #: Stores the values for the ISO metadata. self.metadata_value_map = dict() #: Stores the :class:`_ParameterContainer` for each allowed parameter. self.parameter_map = dict()