-
Notifications
You must be signed in to change notification settings - Fork 9
Enhance SF labnotebook reporting #2432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
e938639 to
a234be5
Compare
This comment was marked as outdated.
This comment was marked as outdated.
2b38d00 to
c9a4c53
Compare
c9a4c53 to
e15a7a9
Compare
This comment was marked as outdated.
This comment was marked as outdated.
e15a7a9 to
11b3f8c
Compare
|
Fixed conflicts. |
11b3f8c to
a5ec44d
Compare
|
Will merge onced CI finished. |
This is a constant counting the number of different modes. So it does not make sense to accept it for the labnotebook sweepFormula operation.
a5ec44d to
802cba3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the SF labnotebook reporting by improving error handling and user feedback when labnotebook keys cannot be found. It implements fallback behavior and warning messages to guide users when incorrect modes are used.
Key changes:
- Adds warning messages when labnotebook keys cannot be found with the specified mode but are available with a fallback mode
- Implements proper error reporting for missing labnotebook keys and invalid wildcards
- Removes deprecated mode option and adds mode stringification utility
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Packages/MIES/MIES_SweepFormula_Operations.ipf | Core logic for enhanced labnotebook error handling and fallback behavior |
| Packages/MIES/MIES_MiesUtilities_Logbook.ipf | Utility function for mode stringification and removes deprecated mode option |
| Packages/tests/Basic/UTF_SweepFormula_Operations.ipf | Comprehensive test coverage for new warning messages and fallback scenarios |
| Packages/tests/UTF_HelperFunctions.ipf | Test data setup with independent labnotebook entries |
| Packages/doc/SweepFormula.rst | Documentation update explaining fallback behavior |
| Packages/tests/Basic/UTF_Macros.ipf | Removes debugging code |
A common error is to not pass UNKNOWN_MODE when asking for user labnotebook entries or entries like "User comment". In these cases we now warn and fallback automatically to UNKNOWN_MODE.
The SweepFormula labnotebook operation uses GetLastSettingChannel internally. And this falls back to independent entries automatically. Let's document that and add a test so that this stays working.
…vocation This was left from developing, in addition the controls does not exist anymore since fd05d85 (DB: Replace SF error SetVar/status LED with Notebook, separate internal error state, 2025-07-22).
0371c13 to
4d15b22
Compare
We know warn the user when the wrong mode is used.
Close #2392
Close #2394