Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Replace lingering generateray() calls #183

Merged
merged 3 commits into from
May 13, 2021
Merged

Replace lingering generateray() calls #183

merged 3 commits into from
May 13, 2021

Conversation

alfredclwong
Copy link
Collaborator

There were some lingering calls to generateray, which is from the old Emitters API, in the trace function. It seems that the same functionality can be achieved with the new API by doing the following replacement:

generateray(sources, k) -> sources[k]

@galran could you confirm?

On a side note, this means that none of our multithreaded trace functions are being tested (confirmed here https://codecov.io/gh/microsoft/OpticSim.jl/src/main/src/Optical/OpticalSystem.jl#L376). @BrianGun is this because it was particularly difficult to test multithreaded code, or did we just skip it?

@alfredclwong alfredclwong added the bug Something isn't working label May 12, 2021
@alfredclwong alfredclwong requested a review from galran May 12, 2021 09:21
@alfredclwong alfredclwong self-assigned this May 12, 2021
@codecov-commenter

This comment has been minimized.

@BrianGun
Copy link
Contributor

@alfredclwong this was an oversight. Don't think the multithreaded code is that hard to test, at least to make sure that the code doesn't crash when you run it.

On a side note, this means that none of our multithreaded trace functions are being tested (confirmed here https://codecov.io/gh/microsoft/OpticSim.jl/src/main/src/Optical/OpticalSystem.jl#L376). @BrianGun is this because it was particularly difficult to test multithreaded code, or did we just skip it?

@alfredclwong alfredclwong enabled auto-merge (squash) May 13, 2021 18:14
@alfredclwong alfredclwong merged commit 1353315 into main May 13, 2021
@alfredclwong alfredclwong deleted the fix/generateray branch May 13, 2021 18:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants