diff --git a/.gitignore b/.gitignore index b6e4761..b7b65a7 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,6 @@ dmypy.json # Pyre type checker .pyre/ + +# sensitive data +data/ diff --git a/README.md b/README.md index 61077fd..b765902 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # eosc-recommender-metrics A framework for counting the recommender metrics -# Preprocessor v.1.0 +# Preprocessor v.0.2
-# RS metrics v.1.0 +# RS metrics v.0.2 @@ -20,13 +20,88 @@ A framework for counting the recommender metrics # Dependencies 1. Install Conda from here: https://docs.conda.io/projects/conda/en/latest/user-guide/install/linux.html. Tested on conda v 4.10.3. -2. Run from terminal: `conda env create -f rsmetrics_env.yml` +2. Run from terminal: `conda env create -f environment.yml` 3. Run from terminal: `conda activate rsmetrics` 4. Run from terminal: `chmod +x ./preprocessor.py ./rsmetrics.py` # Usage 7. Run from terminal: `./preprocessor.py` in order to prepare the data for the RSmetrics -8. Run from terminal: `./rsmetrics.py` to run RSmetrics +```bash + + _____ + | __ \ + | |__) | __ ___ _ __ _ __ ___ ___ ___ ___ ___ ___ _ __ + | ___/ '__/ _ \ '_ \| '__/ _ \ / __/ _ \/ __/ __|/ _ \| '__| + | | | | | __/ |_) | | | (_) | (_| __/\__ \__ \ (_) | | + |_| |_| \___| .__/|_| \___/ \___\___||___/___/\___/|_| + | | + |_| + +Version: 0.2 +© 2022, National Infrastructures for Research and Technology (GRNET) + +usage: preprocessor [-c [FILEPATH]] [-o [DIRPATH]] [-s [DATETIME]] [-e [DATETIME]] [-h] + [-v] + +Prepare data for the EOSC Marketplace RS metrics calculation + +optional arguments: + -c [FILEPATH], --config [FILEPATH] + override default configuration file (./config.yaml) + -o [DIRPATH], --output [DIRPATH] + override default output dir path (./data) + -s [DATETIME], --starttime [DATETIME] + process data starting from given datetime in ISO format (UTC) + e.g. YYYY-MM-DD + -e [DATETIME], --endtime [DATETIME] + process data ending to given datetime in ISO format (UTC) e.g. + YYYY-MM-DD + -h, --help show this help message and exit + -v, --version show program's version number and exit +``` + +8. Configure `./preprocessor.py` by editting the `config.yaml` or providing another with `-c`: +
+
+
+
+