Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/110 fix the bug in EllipsoidTissueRegion #111

Merged

Conversation

lmalenfant
Copy link
Member

Removed the unreachable code by changing case 0: (no intersections) to default:

@lmalenfant lmalenfant linked an issue Oct 5, 2023 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Oct 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change "visually" looks good and all unit tests pass. I started up a simulation with infile_ellip_FluenceOfRhoAndZ.txt and 100,000 photons to stress test code and make sure somehow flow doesn't flow out bottom of case.

Copy link
Member

@hayakawa16 hayakawa16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I performed my test run with N=100,000 photons and a specified a true ellipse (not a sphere) to make sure code gets exercised. All looks good. It took 20 hours on my new laptop though! I think the laptop goes to sleep and pauses during the simulation? This does not happen on linux.

@lmalenfant lmalenfant merged commit 2db3a4c into master Oct 7, 2023
2 checks passed
@lmalenfant lmalenfant deleted the feature/110-fix-the-bug-in-ellipsoidtissueregion branch October 7, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the bug in EllipsoidTissueRegion
2 participants