def process_blocks()

in src/lic/ppl/inference/abstract_mh_infer.py [0:0]


    def process_blocks(self) -> List[Block]:
        """
        Process all blocks.

        :returns: list of blocks in Block class which includes all variables in
        the world as well as blocks passed in the by the user
        """
        blocks = []
        for node in self.world_.get_all_world_vars():
            if node in self.observations_:
                continue
            blocks.append(Block(first_node=node, type=BlockType.SINGLENODE, block=[]))
        for block in self.blocks_:
            first_node_str = block[0]
            first_nodes = self.world_.get_all_nodes_from_func(first_node_str)
            for node in first_nodes:
                blocks.append(
                    Block(first_node=node, type=BlockType.SEQUENTIAL, block=block)
                )

        return blocks