From 13533156db938b4bfeecbf0d472948eadaf32c4a Mon Sep 17 00:00:00 2001 From: Alfred Wong Date: Thu, 13 May 2021 19:47:12 +0100 Subject: [PATCH] Replace lingering generateray() calls (#183) * generateray(sources, k) -> sources[k] fixes #166 * v0.5.0-DEV -> v0.5.0 (release ready) Co-authored-by: BrianGun <36491850+BrianGun@users.noreply.github.com> --- Project.toml | 2 +- src/Optical/OpticalSystem.jl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 30a0eff2d..9296ef23a 100644 --- a/Project.toml +++ b/Project.toml @@ -2,7 +2,7 @@ name = "OpticSim" uuid = "24114763-4efb-45e7-af0e-cde916beb153" authors = ["Brian Guenter", "Charlie Hewitt", "Ran Gal", "Alfred Wong"] repository = "https://github.com/microsoft/OpticSim.jl" -version = "0.5.0-DEV" +version = "0.5.0" [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" diff --git a/src/Optical/OpticalSystem.jl b/src/Optical/OpticalSystem.jl index 78e4dc18c..33853fed5 100644 --- a/src/Optical/OpticalSystem.jl +++ b/src/Optical/OpticalSystem.jl @@ -597,14 +597,14 @@ function traceMT( print("\rTraced: ~ $t / $(length(sources)) Elapsed: $(dif)s Left: $(left)s ") end end - trace(system, generateray(sources, k), test = test) + trace(system, sources[k]; test) end else for k in f:l if k % update_timesteps == 0 Threads.atomic_add!(total_traced, update_timesteps) end - trace(system, generateray(sources, k), test = test) + trace(system, sources[k]; test) end end end @@ -713,7 +713,7 @@ function tracehitsMT( print("\rTraced: ~ $t / $(length(sources)) Elapsed: $(dif)s Left: $(left)s ") end end - lt = trace(system, generateray(sources, k), test = test) + lt = trace(system, sources[k]; test) if lt !== nothing push!(results[i], lt) end @@ -723,7 +723,7 @@ function tracehitsMT( if k % update_timesteps == 0 Threads.atomic_add!(total_traced, update_timesteps) end - lt = trace(system, generateray(sources, k), test = test) + lt = trace(system, sources[k]; test) if lt !== nothing push!(results[i], lt) end