Repository navigation
enh: add the fluorescence baseline offset to the Quick View traces - #247
Merged
paulmueller merged 1 commit intoNov 20, 2026
Merged
Conversation
…C-analysis#81) The baseline offset ([fluorescence]: "baseline N offset") is added to the trace data to obtain the actual signal (e.g. used for computing fl1_max), see dclab.definitions.meta_const. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
paulmueller
approved these changes
Nov 20, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #247 +/- ##
==========================================
- Coverage 76.79% 76.79% -0.01%
==========================================
Files 76 76
Lines 8507 8514 +7
==========================================
+ Hits 6533 6538 +5
- Misses 1974 1976 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Closes #81
dclab defines the configuration keys
[fluorescence]: baseline 1 offset(also 2 and 3). According todclab.definitions.meta_const, the offset "is added to the trace data to obtain the actual signal used for data processing (e.g. obtaining the fl1_max feature)". The traces in RT-DC files are stored without the offset (DCKit can set it without modifying the trace data, see DCKit#11, dclab#101).Changes
QuickView.get_trace_baseline_offset(channel)returns the offset of a channel (0 if the key is not set).QuickView.show_tracesadds the offset to the raw and median traces of each channel before plotting (as float, to avoid integer overflows with the int16 trace data). The y range is computed from the corrected traces.Test:
test_trace_baseline_offset_issue_81setsfluorescence:baseline 1 offset = 17in a copy ofcalibration_beads_47.rtdc. It checks that the plotted FL-1 trace equals the stored trace + 17 and that FL-2 (no offset) is unchanged. The test fails without the change; the Quick View tests pass.🤖 Generated with Claude Code