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

Pesticide application thresholds #53

Open
bradduthie opened this issue Aug 26, 2024 · 1 comment
Open

Pesticide application thresholds #53

bradduthie opened this issue Aug 26, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@bradduthie
Copy link
Owner

Include the following features into an R package update:

  • An argument (e.g., pesticide_threshold) that sets a pest per cell density threshold for farmers to apply pesticide. I'll allow this argument to be either a scalar applied to all farmers or a vector of the same length as farms (so you could, in theory, give different farmers different thresholds -- probably worth it to write it this way in the long run).
  • An argument (e.g., pesticide_threshold_delay) that sets the delay before pesticide application is started (and stopped?)

These will allow users to give farmers the flexibility to not apply pesticide until pest population density is sufficiently high, then stop applying it once pest density decreases.

@bradduthie bradduthie self-assigned this Aug 26, 2024
@bradduthie bradduthie added the enhancement New feature or request label Aug 26, 2024
@bradduthie
Copy link
Owner Author

This is implemented, but I'm not entirely satisfied with how pest_dense works in the sim_farming function. If the delay is set to zero, then the delay is set to zero and the count does not go anywhere -- meaning that pesticide continues to be applied even if the pest population drops below the threshold density (see densities.c line 56). If it drops below the threshold, this delay really should be at least 1, so maybe just changing to delay_count[i] = delay[i] +1; is sufficient?

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

No branches or pull requests

1 participant