Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests are not fully deterministic #220

Open
JelleAalbers opened this issue May 8, 2022 · 0 comments
Open

Tests are not fully deterministic #220

JelleAalbers opened this issue May 8, 2022 · 0 comments

Comments

@JelleAalbers
Copy link
Member

One of the builds in a metadata-only PR (#219) just failed with:

>       ll = lf.limit('er_rate_multiplier', bestfit,
                      confidence_level=0.9, kind='lower')

tests/test_inference.py:88: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
flamedisx/likelihood.py:707: in limit
    res = opt(
flamedisx/inference.py:374: in minimize
    result, llval = self.parse_result(result)
flamedisx/inference.py:461: in parse_result
    self.fail(f"Scipy optimizer failed: "
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <flamedisx.inference.ScipyIntervalObjective object at 0x7f83a450feb0>
message = 'Scipy optimizer failed: status = 0: The maximum number of function evaluations is exceeded.'

    def fail(self, message):
        if self.allow_failure:
            warnings.warn(message, OptimizerWarning)
        else:
>           raise OptimizerFailure(message)
E           flamedisx.inference.OptimizerFailure: Scipy optimizer failed: status = 0: The maximum number of function evaluations is exceeded.

flamedisx/inference.py:396: OptimizerFailure

but succeeded on a rerun. Apparently our tests are not fully deterministic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant