|
|
# Starting the simulation
|
|
|
|
|
|
Using the pipenv you can just initiate the enviroment and use the `start_simulation.py` file to run the project. To do so you must have:
|
|
|
1. Downloaded or cloned the project
|
|
|
2. Completely set up pipenv on your machine. View [Setting enviroment](http://www.tools.ages.pucrs.br/desastres/Desastres/wikis/setting-enviroment)
|
|
|
|
|
|
## Terminal
|
|
|
|
|
|
Inside the project folder you must type
|
|
|
> pipenv shell
|
|
|
|
|
|
* The command will prompt you inside the shell of pipenv allowing you to use the modules installed in it
|
|
|
<br><br>
|
|
|
|
|
|
The shell name appeared on the left side of the path to the project. Use the following command
|
|
|
> python start_simulation.py
|
|
|
|
|
|
* The commando will run the simulation
|
|
|
|
|
|
<br><br>
|
|
|
Now the simulation is up and running on your machine
|
|
|
|
|
|
***
|
|
|
|
|
|
## PyCharm
|
|
|
|
|
|
1. Opening the project folder you should see the `start_simulation.py` file
|
|
|
2. Open the file
|
|
|
3. Right click any place inside the file
|
|
|
4. Select `Run 'start_simulation` option
|
|
|
|
|
|
Or
|
|
|
|
|
|
3. Use the shortcut `ctrl+shif+f10`
|
|
|
|
|
|
<br><br>
|
|
|
Now the simulation is up and running on your machine
|
|
|
|