diff --git a/MBB.py b/MBB.py index 3aba487cce994af7ffccc36d93d0132b4ad8f41e..b873c1919c9d656267bcffe098f2361112c5ff68 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 be8ad5dc635338b6998e4a2a73ba8e8155aa333d..7badd0057af2d7fa5d475f990c906dbfa34a1f63 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 b13b8150b84f864f4b84357cfd830e118d608c9b..f4e2f7542ba5adf8280c4ff1af7043114515b42c 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