def weights_from_file_weighted_samples(file_weighted_samples) ->[float]:
    """Open the file "multinest.txt" and extract the weight values of every accepted live point as a list."""
    weighted_samples = open(file_weighted_samples)
    total_samples = 0
    for line in weighted_samples:
        total_samples += 1
    weighted_samples.seek(0)
    log_likelihoods = []
    for line in range(total_samples):
        weighted_samples.read(4)
        log_likelihoods.append(float(weighted_samples.read(24)))
        weighted_samples.readline()
    weighted_samples.close()
    return log_likelihoods
