Skip to content

Commit f09fb4a

Browse files
committed
correct project.toml and raytraced.md
1 parent 88be70c commit f09fb4a

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

Project.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VPLDocs"
22
uuid = "19246b20-85cd-4f94-a989-28bb6828320f"
33
authors = ["Alejandro Morales Sierra <alejandro.moralessierra@wur.nl> and contributors"]
4-
version = "0.0.7"
4+
version = "0.1.0"
55

66
[deps]
77
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
@@ -21,13 +21,13 @@ VirtualPlantLab = "b977ecfa-1b9a-418d-909d-4ebe565736ce"
2121
Distributions = "0.25.120"
2222
Ecophys = "0.1.0"
2323
FastGaussQuadrature = "1.0.2"
24-
PlantGeomPrimitives = "0.0.5"
25-
PlantGeomTurtle = "0.0.6"
26-
PlantGraphs = "0.0.3"
27-
PlantRayTracer = "0.0.8"
24+
PlantGeomPrimitives = "0.1.0"
25+
PlantGeomTurtle = "0.1.0"
26+
PlantGraphs = "0.1.0"
27+
PlantRayTracer = "0.1.0"
2828
PlantSimEngine = "0.9"
29-
PlantViz = "0.0.8"
29+
PlantViz = "0.1.0"
3030
Plots = "1.40.17"
31-
SkyDomes = "0.1.8"
32-
VirtualPlantLab = "0.0.7"
31+
SkyDomes = "0.1.9"
32+
VirtualPlantLab = "0.1.0"
3333
julia = "1.11"

docs/src/tutorials/from_tree_forest/raytracedforest.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function `sky()` (this last step requires the 3D scene as input in order to plac
247247
the light sources adequately).
248248

249249
```julia
250-
function create_sky(; mesh, lat = 52.0*π/180.0, DOY = 182)
250+
function create_sky(;mesh, lat = 52.0*π/180.0, DOY = 182)
251251
# Fraction of the day and day length
252252
fs = collect(0.1:0.1:0.9)
253253
dec = declination(DOY)
@@ -264,14 +264,14 @@ function create_sky(; mesh, lat = 52.0*π/180.0, DOY = 182)
264264
Idir_PAR = f_dir.*Idir
265265
Idif_PAR = f_dif.*Idif
266266
# Create the dome of diffuse light
267-
dome = sky(mesh;
268-
Idir = 0.0, ## No direct solar radiation
269-
Idif = sum(Idir_PAR)/10*DL, ## Daily Diffuse solar radiation
270-
nrays_dif = 1_000_000, ## Total number of rays for diffuse solar radiation
271-
sky_model = StandardSky, ## Angular distribution of solar radiation
272-
dome_method = equal_solid_angles, # Discretization of the sky dome
273-
ntheta = 9, ## Number of discretization steps in the zenith angle
274-
nphi = 12) ## Number of discretization steps in the azimuth angle
267+
dome = sky(mesh,
268+
Idir = 0.0, ## No direct solar radiation
269+
Idif = sum(Idir_PAR)/10*DL, ## Daily Diffuse solar radiation
270+
nrays_dif = 1_000_000, ## Total number of rays for diffuse solar radiation
271+
sky_model = StandardSky, ## Angular distribution of solar radiation
272+
dome_method = equal_solid_angles, # Discretization of the sky dome
273+
ntheta = 9, ## Number of discretization steps in the zenith angle
274+
nphi = 12) ## Number of discretization steps in the azimuth angle
275275
# Add direct sources for different times of the day
276276
for I in Idir_PAR
277277
push!(dome, sky(mesh, Idir = I/10*DL, nrays_dir = 100_000, Idif = 0.0)[1])
@@ -314,7 +314,7 @@ the `Material` objects (see `feed!()` above):
314314
function run_raytracer!(forest; DOY = 182)
315315
mesh = create_scene(forest)
316316
acc_mesh = accelerate(mesh, acceleration = BVH, rule = SAH{3}(5, 10))
317-
sources = create_sky(; mesh = acc_mesh, DOY = DOY)
317+
sources = create_sky(mesh = acc_mesh, DOY = DOY)
318318
rtobj = create_raytracer(acc_mesh, sources)
319319
trace!(rtobj)
320320
return nothing

0 commit comments

Comments
 (0)