From 5e4cdaa99b9edffc30a3af912d6e3af529ca9257 Mon Sep 17 00:00:00 2001
From: Marco Matthies <71844+marcom@users.noreply.github.com>
Date: Mon, 2 Dec 2024 14:24:49 +0100
Subject: [PATCH] ALMaSS: use crop group as defined in crop data csv file

---
 src/crop/almass.jl | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/crop/almass.jl b/src/crop/almass.jl
index 6a49497..38e424d 100644
--- a/src/crop/almass.jl
+++ b/src/crop/almass.jl
@@ -379,10 +379,7 @@ function readcropparameters(cropdirectory::String)
                                     filter(x -> x.nutrient_status=="high"))
         lownuts = buildgrowthcurve(cropgrowthdata |>
                                    filter(x -> x.nutrient_status=="low"))
-        # TODO: set crop group temporarily until there is a column in
-        # the csv file
-        crop_group = "CROP_GROUP_NOT_SET"
-        croptypes[crop.name] = CropType(crop.name, crop_group, crop.is_c4_plant, crop.minsowdate,
+        croptypes[crop.name] = CropType(crop.name, crop.group, crop.is_c4_plant, crop.minsowdate,
                                         crop.maxsowdate, crop.minharvestdate, crop.maxharvestdate,
                                         crop.mingrowthtemp, highnuts, lownuts, crop.biomass_scale)
     end
-- 
GitLab