Closed lbonaldo closed 1 week ago
Minor comment and question:
1. Does the init function work similar way as in Python? Since there isn't any data to initialize in this case, is this always the first function that is executed by design? 2. Is there a way the top couple horizontal lines in the GenX logo in the opening page (as part of the newly defined function) be realigned a bit?
__init__
function is a method that runs automatically when the module is loaded. I moved the print_genx_version()
function call there to ensure the version is printed after a user imports GenX.Minor comment and question:
1. Does the init function work similar way as in Python? Since there isn't any data to initialize in this case, is this always the first function that is executed by design? 2. Is there a way the top couple horizontal lines in the GenX logo in the opening page (as part of the newly defined function) be realigned a bit?
- The
__init__
function is a method that runs automatically when the module is loaded. I moved theprint_genx_version()
function call there to ensure the version is printed after a user imports GenX.- Sure, I fixed it.
Perfect !!!! Thanks a lot !!!
Description
This PR adds two new functions to the codebase:
print_genx_version()
that prints the version of GenX to the console when loading GenX.write_system_env_summary()
that writes a summary of the current testing environment to a YAML file.This information can be helpful for reproducing and analyzing test results.
What type of PR is this? (check all applicable)
Related Tickets & Documents
It addresses issue #708.
Checklist
How this can be tested
By running the example cases.
Post-approval checklist for GenX core developers
After the PR is approved