From 49cc8f6a10302aefe6819ae969b68d53343c551b Mon Sep 17 00:00:00 2001
From: Simon Schwitanski <schwitanski@itc.rwth-aachen.de>
Date: Tue, 6 Aug 2024 11:14:28 +0200
Subject: [PATCH] Rename main.py to generate.py

---
 MBB.py                           | 2 +-
 README.md                        | 2 +-
 scripts/README.md                | 2 +-
 scripts/{main.py => generate.py} | 0
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename scripts/{main.py => generate.py} (100%)

diff --git a/MBB.py b/MBB.py
index 3aba487c..b873c191 100755
--- a/MBB.py
+++ b/MBB.py
@@ -145,7 +145,7 @@ def cmd_gencodes(level):
         #level = 2 
         print(f"Generate level {level}")
         subprocess.run(f'tar -xf real_world_data.csv.tar.gz', shell=True, check=True)
-        subprocess.run(f'python3 scripts/main.py --generator_dir errors --level {level} --real_world_data output.csv --remove_previous_generation_results', shell=True, check=True)
+        subprocess.run(f'cd scripts && python3 generate.py --generator_dir errors --level {level} --real_world_data ../output.csv --remove_previous_generation_results', shell=True, check=True)
     else:
         raise Exception("Cannot find the generators. Please report that bug.")
     os.chdir(here)
diff --git a/README.md b/README.md
index be8ad5dc..7badd005 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ or
 cd /MBB
 tar -xf real_world_data.csv.tar.gz
 cd /MBB/scripts
-python3 main.py --generator_dir errors --level 2 --real_world_data ../output.csv
+python3 generate.py --generator_dir errors --level 2 --real_world_data ../output.csv
 ```
 
 ## Run a tool on the codes
diff --git a/scripts/README.md b/scripts/README.md
index b13b8150..f4e2f754 100644
--- a/scripts/README.md
+++ b/scripts/README.md
@@ -1,2 +1,2 @@
 Command to run the script:
-python main.py
+python generate.py
diff --git a/scripts/main.py b/scripts/generate.py
similarity index 100%
rename from scripts/main.py
rename to scripts/generate.py
-- 
GitLab