Skip to content

Conversation

@stijnh
Copy link
Member

@stijnh stijnh commented Jun 23, 2025

Currently, Firefly computes particle intensity as 1 / score, so a lower score gives a higher intensity. While this works for positive scores, it fails when scores can be negative.

This commit changes the calculation to -score, which keeps the "higher intensity is better" behavior, but handles negative scores correctly.

@benvanwerkhoven

Currently, Firefly computes particle intensity as `1 / score`, so a lower score gives a higher intensity.
While this works for positive scores, it fails when scores can be negative.

This commit switches the calculation to `-score`, which keeps the "higher intensity is better" behavior, but handles negative scores correctly.
@benvanwerkhoven benvanwerkhoven merged commit cfafa7d into master Jun 25, 2025
2 checks passed
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.

3 participants