Pipenv is basically pip + venv. It lets you set up an isolated environment per project. Read more here
pipenv install
pipenv run python app.py
Navigate to the project root
pip install -r requirements.txt
python app.py
After installing, make sure you select the right python interpreter.
If you're using VSCode, install the Python extension, hit 'ctrl + shift + p' and search 'select interpreter'
Note that if the dependencies change, requirements.txt must be manually generated using
pipenv lock -r > requirements.txt
Tests must go into the tests folder
Test files must be of form:
test_X.py
Style checking is done with flake8 (one of the packages installed above). In VSCode, hit 'ctrl + shift + p' and search 'select linter'
Data - data/cimis_wind.csv
Code - preprocessing/platform/cimis_wind.py
Code - preprocessing/cimis_wind.ipynb
- wind_mph - average wind speed
- year - [2010, 2020] inclusive
Based on 2010-2014 census data only
Data - data/wind_by_zip.csv
Code - preprocessing/platform/wind_by_zip.py
Data - data/noaa_precip.csv
Code - preprocessing/platform/noaa_precipitation.py
- elevation_ft
- precip_in - observed monthly precipitation (inches)