-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix issue 372 - Sorting help text #384
Merged
Merged
Conversation
This file contains 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
Closed
teddychao
changed the title
Fix issue 372 -- Sorting help text
Fix issue 372 - Sorting help text
May 15, 2022
make pspm_con2 use pspm_overwrite
Closed
…rt-out-help-text
teddychao
added
the
Completed & Waiting for Review
Completed and waiting for review
label
Aug 8, 2022
jbrochar
approved these changes
Aug 23, 2022
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.
It is a lot of work congratulation!
It seems to me that it was mostly about reformatting and simplifying some warning messages right? (for instance in pspm_con2).
If it was not the case then I may have missed it, even though I checked everything.
teddychao
added
Solved
and removed
Completed & Waiting for Review
Completed and waiting for review
labels
Aug 20, 2023
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.
Fixes #372.
1 Abstract
Background Help text, which are shown as the top several lines of comments, are used to improve readability for users and our following software improvement.
Motivations (a) Currently the help text lacks maintenance and some of that is incomplete. (b) The help text in the source code of functions and the text in the GUI are also saved separately, which leads to confusion when there are differences between them. (c) Another pull request 385 aims at provide an excel file showing the subfields of options for each function, but some functions have incomplete help text. Therefore, this pull request is required for completing pull request 385.
Objective The pull request aims to sort out help text into several modules for further development.
Results Now the help text has been sorted out into some modules (listed below). A helper function has been added to link the help text and the GUI text. An excel file has been added to demonstrate the progress of help text sorting.
Future Work Future sorting for the functions which are marked as incomplete in the excel file is required.
2 Code Sorting Rule
Currently, the help text includes several modules as shown below
3 Linking GUI and Help Text
A helper, which can load help text from scripts and show them at somewhere users want to see, has been added in this pull request, which is pspm_help. However, pspm_help has not been implemented to many functions, currently only to pspm_cfg_import. Further work is required for implementing pspm_help to other functions.
As shown in Figure 1, pspm_help can now recognise the help text that can be delivered to the GUI or the developer's guide.
An example of reading the help text from source code to the GUI is shown here. The action of reading help text is an automatic process.
4 Progress of Help Text Sorting
The progress of sorting help text is summarised in the excel file: PsPM-help_text_progress.xlsx under the folder doc, as is shown in Figure 3.
Legend
✅ The module has been written completely according to the maintainer.
❌ The module has not been added.
🚫 The module is not required for the function.
❓ The module has been partly written but helps are need to complete it.
5 Case studies
The following screen shots
5.1 pspm_bf_FIR
5.2 pspm_dcm_inv