def _get_atoms_from_blocks(blocks, master_blocks):
    """Get list of atoms in a set of blocks"""

    atoms_nested = [master_blocks[blk] for blk in blocks]
    atoms = [at for sublist in atoms_nested for at in sublist]
    return atoms