from __future__ import division
import numpy as np
import abundance


def setup(options):
    number_count = abundance.NumberCount(options)
    return number_count


def execute(block, number_count):
    lnlike = float(number_count.lnlike(block))
    if np.isneginf(lnlike):
        return 1
    block.put_double('likelihoods', 'ABUNDANCE_LIKE', lnlike)
    return 0


def cleanup(config):
    pass

ea77302c822f5072860a471380895eb3359ac182
<mask token>


def setup(options):
    number_count = abundance.NumberCount(options)
    return number_count


<mask token>

<mask token>


def setup(options):
    number_count = abundance.NumberCount(options)
    return number_count


<mask token>


def cleanup(config):
    pass

<mask token>


def setup(options):
    number_count = abundance.NumberCount(options)
    return number_count


def execute(block, number_count):
    lnlike = float(number_count.lnlike(block))
    if np.isneginf(lnlike):
        return 1
    block.put_double('likelihoods', 'ABUNDANCE_LIKE', lnlike)
    return 0


def cleanup(config):
    pass

from __future__ import division
import numpy as np
import abundance


def setup(options):
    number_count = abundance.NumberCount(options)
    return number_count


def execute(block, number_count):
    lnlike = float(number_count.lnlike(block))
    if np.isneginf(lnlike):
        return 1
    block.put_double('likelihoods', 'ABUNDANCE_LIKE', lnlike)
    return 0


def cleanup(config):
    pass
