GenXProject / GenX.jl

GenX: a configurable power system capacity expansion model for studying low-carbon energy futures. More details at : https://genx.mit.edu
https://genxproject.github.io/GenX.jl/
GNU General Public License v2.0
256 stars 105 forks source link

Print version at startup and export it to disk #712

Closed lbonaldo closed 1 week ago

lbonaldo commented 2 weeks ago

Description

This PR adds two new functions to the codebase:

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

lbonaldo commented 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?
  1. The __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.
  2. Sure, I fixed it.
sambuddhac commented 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?
  1. The __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.
  2. Sure, I fixed it.

Perfect !!!! Thanks a lot !!!