- Mar 14, 2025
-
-
Marco Matthies authored
-
Marco Matthies authored
-
Marco Matthies authored
- each crop model must implement types `CropType <: AbstractCropType` and `CropState <: AbstractCropState` - `AgricultureModel` and `FarmPlot` are not parametrised structs anymore to allow for different crop models active in one simulation
-
Marco Matthies authored
- no majority counting of Pixels implemented yet, soil type is currently still determined by the first pixel of a FarmPlot
-
- Nov 06, 2024
-
-
Marco Matthies authored
This reverts commit b077630d.
-
- Nov 05, 2024
-
-
Marco Matthies authored
`sow!(::ALMaSS.CropState, ...)` calls `setphase!`, which needs to know which growth curve to use. Some crop types (e.g. "permanent set-aside") do not have a lownutrientgrowthcurve, which then causes an error when `setphase!` tries to access the `missing` growth curve. The highnutrientgrowthcurve would only be chosen when the cropstate had `fertilising` in its events. As the events for a cropstate are now `empty!`ied in `sow!`, it's not possible to set the `fertilising` event before calling `sow!`. This previously didn't cause a bug, as the logic for which growth curve to choose was the wrong way around, choosing the highnutrientgrowth curve when no `fertilising` event was set for the cropstate.
-
- Sep 06, 2024
-
-
xo30xoqa authored
-
- Aug 19, 2024
-
-
Marco Matthies authored
- When there are no fields `averagefieldsize` would return a unitless number. This is now fixed. - An unnecessary allocation was removed - Fix unit tests, use approximate floating point comparison
-
- Aug 09, 2024
-
-
xo30xoqa authored
-
- Aug 08, 2024
- Aug 07, 2024
-
-
xo30xoqa authored
-
- Jul 30, 2024
-
-
Marco Matthies authored
-
Marco Matthies authored
-
- Jul 29, 2024
-
-
Marco Matthies authored
- `stepagent!` for FarmPlot that delegates to crop state stepagent! function - `harvest!`, `sow!` functions work on a `FarmPlot`, and delegate to the respective methods acting on a `CropState`
-
Marco Matthies authored
-
- Jul 25, 2024
-
-
Marco Matthies authored
New `make_cropstate` helper function for switchable crop models.
-
Marco Matthies authored
-
Marco Matthies authored
This allows the removal of the abstract types AbstractFarmPlot, AbstractCropType, AbstractCropState.
-
Marco Matthies authored
-
Marco Matthies authored
-
Marco Matthies authored
-
Marco Matthies authored
-
Marco Matthies authored
-
- Jul 19, 2024
-
-
xo30xoqa authored
Closes #9. Still needs testing & validation.
-
- Jul 18, 2024
-
-
xo30xoqa authored
-
- Jul 17, 2024
-
-
xo30xoqa authored
-
- Jun 20, 2024
-
-
xo30xoqa authored
-
- Jun 13, 2024
-
-
xo30xoqa authored
closes #85
-
- May 31, 2024
-
-
xo30xoqa authored
-
- May 15, 2024
-
-
xo30xoqa authored
This is a huge commit that changes much of the underlying model architecture (which is why it all had to change at once). Agents.jl is now no longer a dependency and the species macros have been largely rewritten. Not everything has been adapted yet, but the model is in a "minimally runnable" state.
-
- Apr 16, 2024
-
-
Daniel authored
-
- Nov 13, 2023
-
-
xo30xoqa authored
-
- Oct 04, 2023
-
-
xo30xoqa authored
closes #64
-
- Aug 31, 2023
- Aug 10, 2023
-
-
xo30xoqa authored
This is a major commit, probably rather too large, but anyway. There are no tests yet, so no guarantee for correctness. But it's good progress :-)
-
- Aug 02, 2023
-
-
xo30xoqa authored
-
- May 28, 2023
-
-
xo30xoqa authored
This commit includes a `sed` pass over all files to change all occurrences of the former spelling "Persephone" to "Persefone": `sed -ie "s/Persephone/Persefone/" *`
-