A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Quetzal

A modeling library designed for transport planning and traffic forecasts.
https://github.com/systragroup/quetzal

Category: Consumption
Sub Category: Mobility and Transportation

Last synced: about 6 hours ago
JSON representation

Repository metadata

Quetzal is a modeling library designed for transport planning and traffic forecasts

README.md

quetzal

What is it?

quetzal is a Python package providing flexible models for transport planning and traffic forecasting.

Copyright

(c) SYSTRA

License

CeCILL-B

Documentation

The official documentation is hosted on https://systragroup.github.io/quetzal

Backward compatibility

In order to improve the ergonomics, the code may be re-factored and a few method calls may be re-designed. As a consequence, the backward compatibility of the library is not guaranteed. Therefore, the version of quetzal used for a project should be specified in its requirements.

Installation from sources

For Linux

One should choose between

  • Poetry (recommended)
  • Virtualenv
  • Anaconda

poetry

  1. May need to set the default (or local) python version in the project
pyenv local 3.12
  1. install dependancies (this will create a new virtualenv)
poetry install
  1. activate the env
poetry shell
  1. add the env to ipykernel (to use in jupyter)
python -m ipykernel install --user --name=quetzal_env

Virtualenv

Virtual environment: virtualenv .venv -p python3.12; source .venv/bin/activate or any equivalent command.

pip install -e .

Anaconda

In order to use python notebook, Anaconda 3 + Python 3.12 must be installed.
Then create + activate quetzal environment:

conda init
conda create -n quetzal_env -y python=3.12
conda activate quetzal_env
pip install -e . -r requirements_win.txt
python -m ipykernel install --user --name=quetzal_env

For Windows

Anaconda 3 + Python 3.12 is supposed to be installed

PIP and Anaconda (recommended)

To create quetzal_env automatically and install quetzal, open anaconda prompt and
run windows-install batch file

(base) C:users\you\path\to\quetzal> windows-install.bat

press enter to accept default environment name or enter a custom name

If you are facing SSL issues

(base) pip config set global.trusted-host "pypi.org files.pythonhosted.org"
(base) C:users\you\path\to\quetzal> windows-install.bat

security warning: the host is added to pip.ini

If you are facing DLL or dependencies issues

Anaconda and Pip do not get along well, your Anaconda install may have been corrupted at some point.

  • Remove your envs
  • Uninstall Anaconda
  • Delete your Python and Anaconda folders (users\you\Anaconda3, users\you\Appdata\Roaming\Python, ...etc)
  • Install Anaconda

migration to 3.12

  • pandas append was remove:
# before
sm.volumes = sm.volumes.append(vol)
#now
sm.volumes = pd.concat([sm.volumes, vol])
#or
sm.volumes = pd.concat([sm.volumes, pd.DataFrame(vol)])

filtering index with set was remove:

# before
sm.volumes = sm.volumes.loc[od_set]
#now
sm.volumes = sm.volumes.loc[list(od_set)]
  • shapely
# before
hull = zones.unary_union.convex_hull
# now
hull = zones.union_all().convex_hull
  • scikitlearn
# add n_init='auto'
KMeans(n_clusters=num_zones,random_state=0,n_init='auto')

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 8 days ago

Total Commits: 690
Total Committers: 22
Avg Commits per committer: 31.364
Development Distribution Score (DDS): 0.741

Commits in past year: 102
Committers in past year: 7
Avg Commits per committer in past year: 14.571
Development Distribution Score (DDS) in past year: 0.235

Name Email Commits
CHASSERIEAU Quentin q****u@s****o 179
Simon Boivin s****n@s****m 174
Robin Goix r****x@s****m 92
rgoix r****x@s****o 85
FORTIN Simon s****n@s****o 35
Quentin Chasserieau 3****u 31
BOIVIN Simon s****n@s****o 26
simon fortin s****n@s****m 25
HOLVOET Alice h****e@g****m 8
LARY Martin m****y@s****o 7
sfortin 5****4 6
LARY Martin m****1@s****o 5
dgarceries d****s@s****m 4
Marlin Arnz m****z@w****e 2
MartinLary93 m****1@s****m 2
RobinGoix r****g@g****m 2
Cyrille Pontvieux c****x@s****m 2
safth s****4@g****m 1
[email protected] s****f@M****l 1
Simon Fortin s****f@p****n 1
CHOPY Simon s****y@s****o 1
Simon Fortin s****f@D****V 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 15
Total pull requests: 116
Average time to close issues: 2 months
Average time to close pull requests: 3 months
Total issue authors: 10
Total pull request authors: 8
Average comments per issue: 2.47
Average comments per pull request: 0.21
Merged pull request: 86
Bot issues: 0
Bot pull requests: 24

Past year issues: 1
Past year pull requests: 11
Past year average time to close issues: 3 months
Past year average time to close pull requests: 2 minutes
Past year issue authors: 1
Past year pull request authors: 2
Past year average comments per issue: 1.0
Past year average comments per pull request: 0.0
Past year merged pull request: 8
Past year bot issues: 0
Past year bot pull requests: 3

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/systragroup/quetzal

Top Issue Authors

  • marlinarnz (4)
  • orlandombaa (3)
  • siforf564 (1)
  • ha-mish (1)
  • anjailg (1)
  • BarbaraFl (1)
  • sfortinsystra (1)
  • pe712 (1)
  • FrancoisPoinsignon (1)
  • qchasserieau (1)

Top Pull Request Authors

  • qchasserieau (42)
  • sboivinsystra (38)
  • dependabot[bot] (24)
  • RobinGoix (5)
  • siforf564 (4)
  • sfortinsystra (1)
  • jrd (1)
  • davent9 (1)

Top Issue Labels

  • bug (1)

Top Pull Request Labels

  • dependencies (24)
  • enhancement (1)

Dependencies

requirements_pip.txt pypi
  • branca *
  • geojson *
  • geopy *
  • gtfs_kit *
  • ipykernel *
  • ipywidgets *
  • matplotlib *
  • networkx *
  • numba *
  • openpyxl *
  • osmnx *
  • protobuf ==3.20
  • ray *
  • redis *
  • requests *
  • scipy *
  • simpledbf *
  • sklearn *
  • tqdm *
  • xlrd *
Pipfile pypi
  • flake8 * develop
  • pipenv-to-requirements * develop
  • Babel ~=2.9
  • DateTime ~=4.3
  • Shapely ~=1.7
  • Sphinx ~=3.5.2
  • alabaster ~=0.7
  • aniso8601 ~=9.0
  • argcomplete ~=1.12
  • astropy ~=4.2
  • backports_abc ~=0.5
  • beautifulsoup4 ~=4.9
  • bitarray ~=2.1
  • branca ~=0.4
  • contextily ~=1.1
  • dbf ~=0.99
  • descartes ~=1.1
  • folium ~=0.12
  • geojson ~=2.5
  • geopandas ~=0.9
  • geopy ~=2.1
  • gtfs-kit ~=5.0
  • ipykernel ~=5.5
  • ipywidgets ~=7.6
  • kml2geojson ~=4.0
  • networkx ~=2.5
  • numpy ~=1.20
  • openpyxl ~=3.0
  • osmnx ~=1.0
  • pandas ~=1.2
  • pyPdf ~=1.13
  • rasterio ~=1.2
  • requests ~=2.25
  • scikit-learn ~=0.24
  • scipy ~=1.6
  • selenium ~=3.141
  • simpledbf ~=0.2
  • sphinx-rtd-theme ~=0.5
  • tables ~=3.6
  • tqdm ~=4.59
  • xlrd ~=2.0
Pipfile.lock pypi
  • 141 dependencies
requirements.txt pypi
  • aenum ==3.1.0
  • affine ==2.3.0
  • alabaster ==0.7.12
  • aniso8601 ==9.0.1
  • argcomplete ==1.12.2
  • argon2-cffi ==20.1.0
  • astropy ==4.2
  • async-generator ==1.10
  • attrs ==21.2.0
  • babel ==2.9.0
  • backcall ==0.2.0
  • backports-abc ==0.5
  • beautifulsoup4 ==4.9.3
  • bitarray ==2.1.0
  • bleach ==3.3.0
  • branca ==0.4.2
  • certifi ==2021.5.30
  • cffi ==1.14.5
  • chardet ==4.0.0
  • click ==7.1.2
  • click-plugins ==1.1.1
  • cligj ==0.7.2
  • contextily ==1.1.0
  • cycler ==0.10.0
  • datetime ==4.3
  • dbf ==0.99.1
  • decorator ==5.0.9
  • defusedxml ==0.7.1
  • descartes ==1.1.0
  • docutils ==0.17.1
  • entrypoints ==0.3
  • et-xmlfile ==1.1.0
  • fiona ==1.8.20
  • folium ==0.12.1
  • geographiclib ==1.50
  • geojson ==2.5.0
  • geopandas ==0.9.0
  • geopy ==2.1.0
  • gtfs-kit *
  • gtfs_kit *
  • idna ==2.10
  • imagesize ==1.2.0
  • ipykernel ==5.5.5
  • ipython ==7.24.0
  • ipython-genutils ==0.2.0
  • ipywidgets ==7.6.3
  • jedi ==0.18.0
  • jinja2 ==3.0.1
  • joblib ==1.0.1
  • json2html ==1.3.0
  • jsonschema ==3.2.0
  • jupyter-client ==6.1.12
  • jupyter-core ==4.7.1
  • jupyterlab-pygments ==0.1.2
  • jupyterlab-widgets ==1.0.0
  • kiwisolver ==1.3.1
  • kml2geojson ==4.0.2
  • markupsafe ==2.0.1
  • matplotlib ==3.4.2
  • matplotlib-inline ==0.1.2
  • mercantile ==1.2.1
  • mistune ==0.8.4
  • munch ==2.5.0
  • nbclient ==0.5.3
  • nbconvert ==6.0.7
  • nbformat ==5.1.3
  • nest-asyncio ==1.5.1
  • networkx ==2.5
  • notebook ==6.4.0
  • numba *
  • numexpr ==2.7.3
  • numpy ==1.20.1
  • openpyxl ==3.0.7
  • osmnx *
  • packaging ==20.9
  • pandas ==1.2.3
  • pandocfilters ==1.4.3
  • parso ==0.8.2
  • pexpect ==4.8.0
  • pickleshare ==0.7.5
  • pillow ==8.2.0
  • prometheus-client ==0.11.0
  • prompt-toolkit ==3.0.18
  • protobuf ==3.20.1
  • ptyprocess ==0.7.0
  • pycountry ==19.8.18
  • pycparser ==2.20
  • pyerfa ==2.0.0
  • pygments ==2.9.0
  • pyparsing ==2.4.7
  • pypdf ==1.13
  • pyproj ==3.1.0
  • pyrsistent ==0.17.3
  • python-dateutil ==2.8.1
  • pytz ==2021.1
  • pyzmq ==22.1.0
  • rasterio ==1.2.10
  • ray ==1.12.1
  • redis *
  • requests ==2.25.1
  • rtree <=0.9.3
  • scikit-learn ==0.24.1
  • scipy ==1.6.1
  • selenium ==3.141.0
  • send2trash ==1.5.0
  • shapely ==1.7.1
  • simpledbf ==0.2.6
  • six ==1.16.0
  • snowballstemmer ==2.1.0
  • snuggs ==1.4.7
  • soupsieve ==2.2.1
  • sphinx ==3.5.2
  • sphinx-rtd-theme ==0.5.1
  • sphinxcontrib-applehelp ==1.0.2
  • sphinxcontrib-devhelp ==1.0.2
  • sphinxcontrib-htmlhelp ==2.0.0
  • sphinxcontrib-jsmath ==1.0.1
  • sphinxcontrib-qthelp ==1.0.3
  • sphinxcontrib-serializinghtml ==1.1.5
  • tables ==3.6.1
  • terminado ==0.10.0
  • testpath ==0.5.0
  • threadpoolctl ==2.1.0
  • tornado ==6.1
  • tqdm ==4.59.0
  • traitlets ==5.0.5
  • urllib3 ==1.26.5
  • utm ==0.7.0
  • wcwidth ==0.2.5
  • webencodings ==0.5.1
  • widgetsnbextension ==3.5.1
  • xlrd ==2.0.1
  • zope.interface ==5.4.0
requirements_win.txt pypi
  • aenum ==3.1.0
  • affine ==2.3.0
  • alabaster ==0.7.12
  • aniso8601 ==9.0.1
  • argcomplete ==1.12.2
  • argon2-cffi ==20.1.0
  • astropy ==4.2
  • async-generator ==1.10
  • attrs ==21.2.0
  • babel ==2.9.0
  • backcall ==0.2.0
  • backports-abc ==0.5
  • beautifulsoup4 ==4.9.3
  • bleach ==3.3.0
  • branca ==0.4.2
  • certifi ==2021.5.30
  • cffi ==1.14.5
  • chardet ==4.0.0
  • click ==7.1.2
  • click-plugins ==1.1.1
  • cligj ==0.7.2
  • cycler ==0.10.0
  • datetime ==4.3
  • dbf ==0.99.1
  • decorator ==5.0.9
  • defusedxml ==0.7.1
  • descartes ==1.1.0
  • docutils ==0.17.1
  • entrypoints ==0.3
  • et-xmlfile ==1.1.0
  • fiona ==1.8.20
  • folium ==0.12.1
  • geographiclib ==1.50
  • geojson ==2.5.0
  • geopy ==2.1.0
  • gtfs-kit ==5.0.2
  • idna ==2.10
  • imagesize ==1.2.0
  • ipython ==7.24.0
  • ipython-genutils ==0.2.0
  • ipywidgets ==7.6.3
  • jedi ==0.18.0
  • jinja2 ==3.0.1
  • joblib ==1.0.1
  • json2html ==1.3.0
  • jsonschema ==3.2.0
  • jupyter-client ==6.1.12
  • jupyter-core ==4.7.1
  • jupyterlab-pygments ==0.1.2
  • jupyterlab-widgets ==1.0.0
  • kiwisolver ==1.3.1
  • kml2geojson ==4.0.2
  • markupsafe ==2.0.1
  • matplotlib ==3.4.2
  • mistune ==0.8.4
  • munch ==2.5.0
  • nbclient ==0.5.3
  • nbconvert ==6.0.7
  • nbformat ==5.1.3
  • nest-asyncio ==1.5.1
  • networkx ==2.5
  • notebook ==6.4.0
  • numba ==0.55.2
  • numexpr ==2.7.3
  • numpy ==1.20.1
  • openpyxl ==3.0.7
  • osmnx ==1.0.1
  • packaging ==20.9
  • pandas ==1.2.3
  • pandocfilters ==1.4.3
  • parso ==0.8.2
  • pexpect ==4.8.0
  • pickleshare ==0.7.5
  • pillow ==8.2.0
  • prometheus-client ==0.11.0
  • prompt-toolkit ==3.0.18
  • protobuf ==3.20.1
  • ptyprocess ==0.7.0
  • pycountry ==19.8.18
  • pycparser ==2.20
  • pyerfa ==2.0.0
  • pygments ==2.9.0
  • pyparsing ==2.4.7
  • pypdf ==1.13
  • pyproj ==3.1.0
  • pyrsistent ==0.17.3
  • python-dateutil ==2.8.1
  • pytz ==2021.1
  • pyzmq ==22.1.0
  • ray ==1.12.1
  • redis *
  • requests ==2.25.1
  • scikit-learn ==0.24.1
  • scipy ==1.6.1
  • selenium ==3.141.0
  • send2trash ==1.5.0
  • simpledbf ==0.2.6
  • six ==1.16.0
  • snowballstemmer ==2.1.0
  • snuggs ==1.4.7
  • soupsieve ==2.2.1
  • sphinx ==3.5.2
  • sphinx-rtd-theme ==0.5.1
  • sphinxcontrib-applehelp ==1.0.2
  • sphinxcontrib-devhelp ==1.0.2
  • sphinxcontrib-htmlhelp ==2.0.0
  • sphinxcontrib-jsmath ==1.0.1
  • sphinxcontrib-qthelp ==1.0.3
  • sphinxcontrib-serializinghtml ==1.1.5
  • tables ==3.6.1
  • terminado ==0.10.0
  • testpath ==0.5.0
  • threadpoolctl ==2.1.0
  • tornado ==6.1
  • tqdm ==4.59.0
  • traitlets ==5.0.5
  • urllib3 ==1.26.5
  • utm ==0.7.0
  • wcwidth ==0.2.5
  • webencodings ==0.5.1
  • widgetsnbextension ==3.5.1
  • xlrd ==2.0.1
  • zope.interface ==5.4.0
api/ML_MatrixRoadCaster/Dockerfile docker
  • public.ecr.aws/lambda/python 3.8.2023.05.29.18 build
docker/auth/Dockerfile docker
  • public.ecr.aws/lambda/python 3.11 build
docker/templates/Dockerfile docker
  • public.ecr.aws/lambda/python 3.8 build
api/ML_MatrixRoadCaster/requirements.txt pypi
  • boto3 ==1.26.109
  • geopandas ==0.12.2
  • matplotlib ==3.7.1
  • networkx ==3.0
  • numba ==0.56.4
  • protobuf ==3.20.1
  • pydantic ==1.10.8
  • ray ==2.3.1
  • requests ==2.28.2
  • scikit-learn ==1.2.2
  • scipy ==1.10.1
  • shapely ==1.7.1
  • tqdm ==4.59.0
docker/auth/requirements.txt pypi
  • PyJWT *
  • boto3 *
  • cryptography *
  • requests *
setup.py pypi

Score: 7.042286171939743