scilus / scilpy

The Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox
Other
54 stars 59 forks source link

Precompute scripts #996

Closed jinan02 closed 1 month ago

jinan02 commented 1 month ago

Quick description

Summary: This pull request introduces a new script that iterates over all Python scripts in the scripts directory, runs each script with the -h flag to generate help text, and saves the output to corresponding hidden files in the .hidden directory. This precomputes the help outputs for each script, facilitating faster searches or documentation purposes.

Motivation and Context: The motivation behind this change is to improve the efficiency of generating help outputs for scripts, avoiding the need to dynamically generate help text each time it's needed. This also helps in keeping the main scripts directory uncluttered by storing these outputs in a hidden directory.

Dependencies: No additional dependencies are required for this change.

Type of change

Check the relevant options.

Provide data, screenshots, command line to test (if relevant)

Data: Not applicable.

Command line to test: Run the new script in the scripts directory:

python generate_help_files.py

Checklist

jinan02 commented 1 month ago

cancel PR