feat: apply process_pixel conversion in segmenter and capture threshold value#3
Open
feat: apply process_pixel conversion in segmenter and capture threshold value#3
Conversation
- Acq_ID supports leading zeros (text input + smart increment) (#903) - Sample_ID as string + save confirmation snackbar (#889-893) - Show project/sample/operator/gear in acquisition page (#894) - Add flowcell size (µm) to magnification button labels (#901)
- Compose fully-qualified project_sample_acq IDs in update_config (#882) - Space-to-underscore sanitization in IDs - Gallery + Explorer URL path sanitization for legacy TSVs
- Replace direct deleteItem with confirmDelete + dialog - Show acquisition and sample ID in confirmation prompt - Warning that deletion cannot be undone
- set object_datetime also persists lat/lon if present - set object_latlon also persists date/time if present
The start acquisition function read acq_nb_frame and acq_interframe_volume from Node-RED globals, but the globals were written by a parallel message path. When the user changed form values and clicked Start, the read happened before the write, causing the acquisition to use stale values. Fix: start acquisition now reads from msg.payload first (carried with the command), falling back to globals for backwards compatibility. handleAcqStatusChange explicitly passes acq values in the start message.
Replace full-file TSV loading with streaming columnar reader that extracts only the 24 columns used by charts. Memory usage drops from ~500MB to ~9MB for 56K-row datasets. Chart node improvements: - Scatter plots (heatmap, colorspace, aspect, greenness, complexity, texture) use reservoir sampling capped at 10K points - Histograms (ESD, solidity) pass all values for accurate binning - Gallery and explorer pre-sort by area descending and cap at 5K rows - Timeline preserves full temporal resolution
…orer The columnar streaming reader only extracts listed columns. The blur metric was missing, causing Sort by Sharpest to have no effect in the gallery and explorer views.
Streaming reader detects legacy TSVs (no process_pixel_applied flag) and converts linear measurements by px and area measurements by px² before passing to chart nodes. Companion to PlanktoScope segmenter PR. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
process_pixelconversion (viaprocess_pixel_appliedflag)equivalent_diameter,width,height,major,minor,perim.) ×process_pixelarea) ×process_pixel²process_pixel_applied = 'dashboard'to mark conversion sourceDependencies
feature/visualizer-streaming)feature/process-pixel-conversion) — segmenter sets theprocess_pixel_appliedflag for new dataHow it works