esm-tools / esm_master

GNU General Public License v2.0
2 stars 2 forks source link

bugfix for --check and refactoring the global variables #51

Closed denizural closed 3 years ago

denizural commented 3 years ago

This bugfix solves the issue opened by @seb-wahl : https://github.com/esm-tools/esm_master/issues/50

I had fixed a similar issue before but for some reason --check options fails to work again. When I debugged the code, I realized that the global variables don't go into the other sections of the code with the correct values. I wrote in the code previously that refactoring of esm_master to avoid the use of global variables would be idea for the future. This bugfix not only solves the issue but also refactors esm_master.

The bugfix passes the following tests: