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

Try to add a new exported state variable #15

Merged
merged 11 commits into from
Oct 11, 2024
Merged

Conversation

thomrawson
Copy link
Collaborator

Thinking ahead, I'm going to eventually want an indicator of how many outbreaks there really are, not just those declared. I tried to add this new exported state variable, infected_herds_region by following the guide of what was there for the others.

It should just tally how many herds there are with ANY infected cows for each region.

But perhaps expectedly it's failing, could do with some insight into why.

@thomrawson
Copy link
Collaborator Author

The bug was just because I hadn't merged in the new dust changes. Now I just need to update the tests to reflect this new state variable.

@thomrawson
Copy link
Collaborator Author

One (optional) improvement that could be good is to find a way to suppress the warning that infected_herds_region isn't used, I think I still need to declare it...

@richfitz
Copy link
Member

One (optional) improvement that could be good is to find a way to suppress the warning that infected_herds_region isn't used, I think I still need to declare it...

this was something we supported in odin1 and it will come back at some point (you can control how angry odin will be at you for unused things). But anything other than error forces me to think about the interface for that control, so I have paused on that for now

@thomrawson thomrawson merged commit 48d2128 into main Oct 11, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants