fix: Aggregation of fluorphores in ground truth with multiple samples#131
Merged
tlambert03 merged 1 commit intotlambert03:mainfrom Dec 16, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #131 +/- ##
==========================================
- Coverage 83.93% 83.57% -0.37%
==========================================
Files 47 47
Lines 3094 3026 -68
==========================================
- Hits 2597 2529 -68
Misses 497 497 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Owner
|
after is better! 😂 thank you as always @melisande-c for the clear issue and effective fix 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I found a bug where if you have multiple
FlurophoreDistributioninstances in theSample, the number of fluorophores will be multiplied by the number of samples. This was happening because the same space was being given to each distribution to render into, which would result in n copies of the space for n samples, which would then be summed together. I fixed this by creating a new space for each distribution during the ground truth generation.Below shows a demo of the behaviour before the fix and after:
Renderable Ball class used in demo
Before
After
(simulation parameters kept the same)
As you can see the min and max values before the fix are roughly double the image values after the fix because I had two distributions being simulated.