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

auto_calibration.py fails with newer versions of Covasim #1

Open
krosenfeld-IDM opened this issue Jun 11, 2020 · 0 comments
Open

auto_calibration.py fails with newer versions of Covasim #1

krosenfeld-IDM opened this issue Jun 11, 2020 · 0 comments

Comments

@krosenfeld-IDM
Copy link

auto_calibration.py uses compute_likelihood. Should be updated to use covasim.Fit instead.

Error produced:

Covasim 1.4.7 (2020-06-02) — © 2020 by IDM
Done.
Note: Covasim is newer than expected (1.4.7 vs. 1.4.0)
Running initial...
Traceback (most recent call last):
  File "auto_calibration.py", line 178, in <module>
    objective(pars.best)
  File "auto_calibration.py", line 80, in objective
    mismatch1 = -sim.compute_likelihood(weights=weights) # Built in mismatch
AttributeError: 'Sim' object has no attribute 'compute_likelihood'
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