def fill(self, component=None):
c = [component] if component is not None else []<EOL>gaps = self.find_gaps()<EOL>if not gaps:<EOL><INDENT>return self<EOL><DEDENT>for iv in gaps:<EOL><INDENT>iv.components = c<EOL><DEDENT>return deepcopy(self) + gaps<EOL>
Fill gaps with the component provided.

Example
    t = s.fill(Component({'lithology': 'cheese'}))