immerse-project / nemo-simsar

Tools and guides how to share NEMO user configurations & experiments with others using a git repository.
6 stars 1 forks source link

NEW: restructure using a python module/library instead of one big file #16

Open mscheinert opened 3 years ago

mscheinert commented 3 years ago

Description

Currently, the mkReadme script is a monolith. This makes it less re-usable for other developments (or our own). A better approach would be a module/library, that can be easily imported.

Proposed Solution

Split the mkReadme script into two parts: one module and one 'executable' which imports the module. Ultimate goal: nemo-simsar can be installed via pip & co.

Relations

mscheinert commented 3 years ago

Simultaneously, we could also remove all the global variables and replace them with arguments and return values in the functions.

lmicallef commented 3 years ago

Scripts are uploaded in lucienneMicallef Branch | src

Major update:

Other updates to scriptMK.py

Functions removed: main() chooseConfigFile() check_EXPref()