Skip to content

zernike enable table is saved for each wft. Display diff - #369

Open
atsju wants to merge 2 commits into
masterfrom
JST/152-2
Open

zernike enable table is saved for each wft. Display diff#369
atsju wants to merge 2 commits into
masterfrom
JST/152-2

Conversation

@atsju

@atsju atsju commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

This one also improves #152 . We can probably do it differently and with better visuals but it's enough to validate the intent.
Just let me know.

you will notice small + and - before the zernike names.
It makes it much clearer witch zernike have been used to display a given waveform and what would change if hitting compute button.

@atsju
atsju requested review from githubdoe and gr5 August 11, 2026 06:00

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v20.1.2

Have any feedback or feature suggestions? Share it here.

Comment thread surfacemanager.cpp Outdated


std::vector<bool> &en = zernEnables;
std::vector<bool> &en = (getCurrent()->zernEnablesApplied.empty()) ? zernEnables : getCurrent()->zernEnablesApplied;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

surfacemanager.cpp:487:5: warning: [clang-analyzer-core.NullDereference]

Dereference of null pointer

  487 |     std::vector<bool> &en = (getCurrent()->zernEnablesApplied.empty()) ? zernEnables : getCurrent()->zernEnablesApplied;
      |     ^~~~~~~~~~~~~~~~~~~~~
surfacemanager.cpp:487:30: note: Assuming the condition is false
  487 |     std::vector<bool> &en = (getCurrent()->zernEnablesApplied.empty()) ? zernEnables : getCurrent()->zernEnablesApplied;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
surfacemanager.cpp:487:29: note: '?' condition is false
  487 |     std::vector<bool> &en = (getCurrent()->zernEnablesApplied.empty()) ? zernEnables : getCurrent()->zernEnablesApplied;
      |                             ^
surfacemanager.cpp:487:5: note: Dereference of null pointer
  487 |     std::vector<bool> &en = (getCurrent()->zernEnablesApplied.empty()) ? zernEnables : getCurrent()->zernEnablesApplied;
      |     ^~~~~~~~~~~~~~~~~~~~~

@github-actions

Copy link
Copy Markdown

🚀 New build available for commit 96c8467
Download installer here

@github-actions

Copy link
Copy Markdown

🚀 New build available for commit b86941b
Download installer here

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.

1 participant