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

Run-time error checking of caching #95

Open
artgoldberg opened this issue May 22, 2020 · 0 comments
Open

Run-time error checking of caching #95

artgoldberg opened this issue May 22, 2020 · 0 comments
Assignees

Comments

@artgoldberg
Copy link
Contributor

When caching, species populations must not be modified in between eval() calls. Detect caching errors with a dynamic_model.cache_violation FSM with transitions:

initial: INIT
update species pop:
	INIT -> POP_UPDATED
	POP_UPDATED -> POP_UPDATED
	EVALED -> EVAL_N_UPDATED
	EVAL_N_UPDATED -> EVAL_N_UPDATED
	UPDATED_N_EVALED -> EVAL_N_UPDATED
eval:
	INIT -> EVALED
	POP_UPDATED -> UPDATED_N_EVALED
	UPDATED_N_EVALED -> UPDATED_N_EVALED
	EVAL_N_UPDATED -> ERROR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant