Skip to content
Snippets Groups Projects
Verified Commit 49cc8f6a authored by Simon Schwitanski's avatar Simon Schwitanski :slight_smile:
Browse files

Rename main.py to generate.py

parent 2e72bc44
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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
......
Command to run the script:
python main.py
python generate.py
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment