Skip to content

Choosing which model file to run

KyrusMama edited this page Sep 26, 2020 · 4 revisions

Choosing which file to run:

To run the simulator, the user must run main.py (Which can be found in the CPSim folder).

When you run the code for the first time, the code will prompt you to enter the model file name that you want to use in the console.

After you have run the code at least once, the code will remember which file was last run, and suggest that file. The previously used file name will be stored in metadata.txt.

Extra Info:

Skipping file selection:

If the user intends to run the same model file repeatedly, there is a means of skipping the model file selection inputs. The user can edit metadata.txt to have the word force on the first line. This will automatically use the file on the second line.
This way the model will run immediately on running the code.

force
your_file_name.txt

If the user wants to return to using file selection, the user can delete the metadata.txt file.

Clone this wiki locally