Fórmula Tesla UFMG's data analysis software and repository
📂 Data-Analysis/
├── 📂 2020_data_analysis/ # Software em JS feito pela equipe em 2020 para análise de dados. Não usado.
├── 📂 data/ # Arquivos CSV com os dados coletados
│ ├── 📂 dados_telemetria/ # CSVs coletados de testes de rua do carro
├── 📂 misc/ # Arquivos python e Jupyter gerais
├── 📂 notebooks/ # Notebooks Jupyer para analise dos dados da telemtria (testes de rua do carro)
└── 📂 relatorios/ # Arquivos LaTeX para relatórios gerais da equipe
-
install python 3.12.4 https://www.python.org/downloads/release/python-3124/
- make sure the python.exe is placed in the PATH during the installation wizard
-
check that the installation was successful: open CMD and run
python -V. It must show the version installed. -
clone / pull the repository
-
go to folder containing project
-
connect FUG and PUMP to computer. Make sure they show up in the Operating System's device manager.
-
make sure the
setup.jsonfile has all the configurations used.
Now we need to do the following:
- Create Pyhton virtual environment
- Activate the virtual env
- Install the packages in this virtual environment
- Run the Jupyer Notebook inside this virtual environment
To do all those things, do the following:
-
python -m venv myEnv -
cd to myEnv/Scripts (cd myEnv/Scripts/)
-
.\activate -
cd back to project root folder (cd ../../)
-
pip install -r requirements.txt -
check that all modules were installed:
pip freeze -
choose the newly created virtual environment in the VS Code lower right corner
-
run the program:
python main.py -
to exit the virtual environment afterwards:
deactivate -
& C:/dev/tesla/Data-Analysis/myEnv/Scripts/Activate.ps1
python -m pyflowchart test.py -o test.html
OU
cd myEnv/bin/ .\activate cd ../../