Skip to content

Commit 05ef744

Browse files
committed
Update test-xpalm.jl
change :A by :biomass, as :A does not exist in XPalm
1 parent 17afdc7 commit 05ef744

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/downstream/test-xpalm.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ using XPalm
1414
using BenchmarkTools
1515

1616
function xpalm_default_param_create()
17-
meteo = CSV.read(joinpath(dirname(dirname(pathof(XPalm))),"0-data","meteo.csv"), DataFrame)
17+
meteo = CSV.read(joinpath(dirname(dirname(pathof(XPalm))), "0-data", "meteo.csv"), DataFrame)
1818
#meteo.duration = [Dates.Day(i[1:1]) for i in meteo.duration]
1919
m = Weather(meteo)
2020

2121
out_vars = Dict{String,Any}(
2222
"Scene" => (:lai,),
2323
# "Scene" => (:LAI, :scene_leaf_area, :aPPFD, :TEff),
2424
# "Plant" => (:plant_age, :ftsw, :newPhytomerEmergence, :aPPFD, :plant_leaf_area, :carbon_assimilation, :carbon_offer_after_rm, :Rm, :TT_since_init, :TEff, :phytomer_count, :newPhytomerEmergence),
25-
"Leaf" => (:Rm, :potential_area, :TT_since_init, :TEff, :A, :carbon_demand, :carbon_allocation,),
25+
"Leaf" => (:Rm, :potential_area, :TT_since_init, :TEff, :biomass, :carbon_demand, :carbon_allocation,),
2626
# "Leaf" => (:Rm, :potential_area),
2727
# "Internode" => (:Rm, :carbon_allocation, :carbon_demand),
2828
"Male" => (:Rm,),
@@ -50,7 +50,7 @@ end
5050
#=@testset "XPalm simple test" begin
5151
# default number of seconds is 5
5252
b_XP = @benchmark xpalm_default_param_run() seconds = 120
53-
53+
5454
#N = length(b_XP.times)
5555
5656
@test mean(b_XP.times*1e-9) > 10

0 commit comments

Comments
 (0)