Claude pyqt perf and chromaticity#4
Open
K144U wants to merge 2 commits into
Open
Conversation
… picker, GUI preview - Switch ingestion to file picker; accept .xls/.xlsx alongside .csv and fix csv double-read. - Detect wide-format concentration-series files and process them as a single image. - Surface CIE 1931 (cx, cy) from CIElab and emit a chromaticity diagram alongside the strip with locus wavelength labels and a zoomed inset around D65. - Show generated image in the GUI preview pane after Process completes. - Add ui/theme.py. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Hoist color-matching functions, illuminants, white-points, and Bradford/sRGB matrices to module-level constants in CIE_XYZ; replace numpy.matrix with ndarray @. - Memoize the per-illuminant Bradford matrix and trimmed illuminant arrays via lru_cache (no more per-spectrum white_point.csv re-read). - Add CIElab_batch + tristimulus_batch and use them for the concentration-series path; per-spectrum cost drops to a single dot product (~47x faster on the 13-column xlsx, bit-exact RGB output). - Replace inner Python loops in colormat fill with slice assignment; switch strip to (64, W, 3) uint8. - Cache the chromaticity-diagram gamut backdrop at module level (~2x speedup on subsequent saves). - Move loadFiles work into a QThread/QObject worker so the window stays responsive during processing; pin matplotlib backend to Agg. Co-Authored-By: Claude Opus 4.7 <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.
No description provided.