Releases: adamhsparks/epicrop
v0.0.2
Minor changes
-
Simplify inputs in helper functions, don't create a vector, just use in function call.
-
Use {vcr} for tests involving weather data fetching.
Bug fixes
- Correct issue where {dplyr} library was not loaded in vignette, causing example to error when run.
v0.0.1
v0.0.9018
- Remove chirps functionality to simplify package structure.
v0.0.917
epicrop 0.0.0.9017
-
Update README R output.
-
Polish map output in the mapping vignette.
-
Polish names for figure in multiple locations figure.
-
Remove references and functionality called from epifitter; AUDPC is calculated internally now.
v0.0.9016
epicrop 0.0.0.9016
Minor changes
-
Change
audpc
toAUDPC
for easier graphing. -
Add new vignette to demonstrate mapping AUDPC values using lat/lon from model output.
v0.0.0.9015
Includes changes for epicrop 0.0.0.9015 and epicrop 0.0.0.9014
epicrop 0.0.0.9015
Minor changes
-
Add area under the disease progress curve (AUDPC) values to model output.
-
Adds shorthand versions of functions for:
predict_bacterial_blight()
>predict_bb()
predict_brown_spot()
>predict_bs()
predict_leaf_blast()
>predict_lb()
predict_sheath_blight()
>predict_sb()
Bug fixes
- Fixes bug when that caused a failure fetching CHIRPS weather data.
epicrop 0.0.0.9014
Minor changes
-
Check user inputs for
H0
andI0
to ensure that they are >= 0. -
100% complete test coverage.
-
The final
data.frame
created from vectors of state values inSEIR()
is simplified into one step, creating a nameddata.table
rather than create adata.table
and then naming cols.
v0.0.0.9013
epicrop 0.0.0.9013
Bug fixes
-
Fixes a bug introduced into SEIR() with the last round of bug fixes.
The calculations for latent and infectious sites were still calculating for the next, not current, day in thefor()
loop. -
Corrects values in the example for
SEIR()
to run the model for brown spot.
Minor changes
-
Updates input values for
Rc
curves in each of the EPIRICE models such that the values used to compute the curve are all supplied, none are computed before the interpolation is performed.
This leads to longer, but clearer lines of code. -
All of the help files now reference NASA POWER and CHIRPS both as sources of possible weather data for use in the model.
v0.0.0.9012
epicrop 0.0.0.9012
Bug fixes
- Fixes bug in
SEIR()
where Rc value was calculated incorrectly that was introduced with commit r-forge/cropsim@ba093b2#diff-17fd120d02f173b87db7e09b563e2057b95391bef823eee29cbff30cb3d80287. See Lines 124:126 that were changed to Lines 118:120 where
Rc[day+1] <- baseRc * AFGen(ageRc, day) * AFGen(tmpRc, wthsub$tavg[day+1]) * RHCoef[day+1]
should have been
Rc[day+1] <- baseRc * AFGen(ageRc, day+1) * AFGen(tmpRc, wthsub$tavg[day+1]) * RHCoef[day+1]
to calculate the basic infection rate, Rc
, for day + 1
. Commit: 248df5512b5897e950dd58a0a8b3fd57922add47.
- Fixes typos in
RcA
values forpredict_bacterial_blight()
andpredict_sheath_blight()
.- In
predict_bacterial_blight()
the eighth entry was improperly encoded as 0.42, it has been corrected to 0.41, commit 8b2c36b61d4f949385dcac4c03ff435b8400e335. - In
predict_sheath_blight()
the seventh entry was improperly encoded as 0.83, it has been corrected to 0.84, Commit: 69b89ce24dd41c16d4627225c028355f76a64b80.
- In
Major changes
-
Implements a new function to calculate the correction values for crop age,
RcA
, and temperature,RcT
, usingapprox()
in a custom function that is faster than theselect_mod_value()
function. -
Implements new functionality for
get_wth()
to optionally get data from the CHIRPS/CHIRTS APIs in addition to the default NASA POWER API. -
Uses one-indexed
for()
loop, in place of the zero-indexedfor()
loop found in cropsim.
v0.0.0.9010-1
epicrop 0.0.0.9010-1
Minor changes
- Fixes issue in vignettes with duplicate titles and plot theming.
v0.0.0.9010
epicrop 0.0.0.9010
Major changes
-
BREAKING CHANGE
intensity
column, inSEIR()
is now a proportion, i.e. values range between 0 - 1.
If you wish to have the same values as previously reported,df$intensity*100
will give you these values. -
BREAKING CHANGE Removes column,
severity
, inSEIR()
output. -
Adds a new vignette illustrating how to run multiple simulations and use parallel processing to reduce run time for these simulations.