From e5e3a07a25ba5d07ee17287832b0f99d1481e3bd Mon Sep 17 00:00:00 2001
From: Marco Matthies <71844+marcom@users.noreply.github.com>
Date: Tue, 5 Nov 2024 02:26:49 +0100
Subject: [PATCH] Avoid using union type for height

---
 src/crop/aquacrop.jl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/crop/aquacrop.jl b/src/crop/aquacrop.jl
index 374827c..0e17655 100644
--- a/src/crop/aquacrop.jl
+++ b/src/crop/aquacrop.jl
@@ -14,10 +14,10 @@ cropname(ct::AquaCropType) = ct.name
 
 mutable struct AquaCropState
     croptype::AquaCropType
-    height::Length{Float64}  # TODO: remove height field, supply from cropstate
+    height::Tlength  # TODO: remove height field, supply from cropstate
     cropstate::AquaCrop.AquaCropField
 
-    function AquaCropState(croptype::AquaCropType, height::Length{Float64}=0.0cm)
+    function AquaCropState(croptype::AquaCropType, height::Tlength=0.0cm)
         runtype = AquaCrop.TomlFileRun()
         parentdir = AquaCrop.test_toml_dir  # TODO: hardcoded croptype
         ac_cropfield, all_ok = AquaCrop.start_cropfield(; parentdir, runtype)
-- 
GitLab