{"id":20155,"name":"Growing Urban Bicycle Networks","description":"Source code for the paper Growing Urban Bicycle Networks, exploring algorithmically the limitations of urban bicycle network growth.","url":"https://github.com/mszell/bikenwgrowth","last_synced_at":"2026-05-01T06:30:18.338Z","repository":{"id":70090323,"uuid":"292565353","full_name":"mszell/bikenwgrowth","owner":"mszell","description":"Source code for the paper \"Growing urban bicycle networks\", exploring algorithmically the limitations of urban bicycle network growth","archived":false,"fork":false,"pushed_at":"2026-04-10T13:26:21.000Z","size":11785191,"stargazers_count":80,"open_issues_count":12,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-22T02:03:14.051Z","etag":null,"topics":["bicycle-network","cycling","gis","network-analysis","openstreetmap","osmnx","transportation-network","urban-data-science","urban-planning"],"latest_commit_sha":null,"homepage":"https://GrowBike.Net","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mszell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-03T12:35:05.000Z","updated_at":"2026-04-10T13:26:25.000Z","dependencies_parsed_at":"2024-11-06T00:35:30.140Z","dependency_job_id":"9b261612-2085-4969-91c9-ec7477862ef9","html_url":"https://github.com/mszell/bikenwgrowth","commit_stats":{"total_commits":189,"total_committers":5,"mean_commits":37.8,"dds":"0.11111111111111116","last_synced_commit":"3ad32f9d535b11b1665fc2bef744e43b0c30d702"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mszell/bikenwgrowth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mszell%2Fbikenwgrowth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mszell%2Fbikenwgrowth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mszell%2Fbikenwgrowth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mszell%2Fbikenwgrowth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mszell","download_url":"https://codeload.github.com/mszell/bikenwgrowth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mszell%2Fbikenwgrowth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32285282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"online","status_checked_at":"2026-04-26T02:00:05.962Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"owner":{"login":"mszell","name":"Michael Szell","uuid":"9054982","kind":"user","description":"Urban data science 🕸️ Sustainable mobility networks 🚲 Data viz 🌌 \r\nCreated: GrowBike.Net · @nerdsitu · whatthestreet.com · Pardus.at","email":"","website":"http://michael.szell.net/","location":"Copenhagen","twitter":null,"company":"IT University of Copenhagen","icon_url":"https://avatars.githubusercontent.com/u/9054982?u=0b0c835e8833b9d0defdeebc7554b3311ccfca2d\u0026v=4","repositories_count":42,"last_synced_at":"2024-06-11T15:45:17.076Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/mszell","funding_links":[],"total_stars":637,"followers":192,"following":62,"created_at":"2022-11-10T03:59:19.428Z","updated_at":"2024-06-11T15:45:18.114Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mszell","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mszell/repositories"},"packages":[],"commits":{"id":1254146,"full_name":"mszell/bikenwgrowth","default_branch":"main","total_commits":192,"total_committers":5,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":38.4,"dds":0.109375,"past_year_total_commits":3,"past_year_total_committers":1,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":3.0,"past_year_dds":0.0,"last_synced_at":"2026-04-28T05:01:13.760Z","last_synced_commit":"62c1300aa9bde17ad107b58c3a54d26eae83ca3a","created_at":"2023-03-27T10:58:52.772Z","updated_at":"2026-04-28T05:01:07.529Z","committers":[{"name":"Michael Szell","email":"michael.szell@gmail.com","login":"mszell","count":171},{"name":"TylerPerlman","email":"66510084+TylerPerlman","login":"TylerPerlman","count":14},{"name":"anvy","email":"anvy@itu.dk","login":"anastassiavybornova","count":5},{"name":"tocunha","email":"tiagocunha87@gmail.com","login":"tocunha","count":1},{"name":"Flo Edelmann","email":"git@flo-edelmann.de","login":"FloEdelmann","count":1}],"past_year_committers":[{"name":"Michael Szell","email":"michael.szell@gmail.com","login":"mszell","count":3}],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/mszell%2Fbikenwgrowth/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-30T00:00:07.427Z","repositories_count":6223480,"commits_count":899530146,"contributors_count":34894004,"owners_count":1147614,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"mszell/bikenwgrowth","html_url":"https://github.com/mszell/bikenwgrowth","last_synced_at":"2026-02-21T21:00:49.235Z","status":"error","issues_count":16,"pull_requests_count":6,"avg_time_to_close_issue":20503585.0,"avg_time_to_close_pull_request":163.8,"issues_closed_count":5,"pull_requests_closed_count":5,"pull_request_authors_count":2,"issue_authors_count":7,"avg_comments_per_issue":2.0,"avg_comments_per_pull_request":0.3333333333333333,"merged_pull_requests_count":3,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":12,"past_year_pull_requests_count":4,"past_year_avg_time_to_close_issue":384674.0,"past_year_avg_time_to_close_pull_request":250.33333333333334,"past_year_issues_closed_count":4,"past_year_pull_requests_closed_count":3,"past_year_pull_request_authors_count":2,"past_year_issue_authors_count":3,"past_year_avg_comments_per_issue":1.6666666666666667,"past_year_avg_comments_per_pull_request":0.5,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":1,"created_at":"2023-05-09T10:59:27.342Z","updated_at":"2026-02-21T21:00:49.235Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/mszell%2Fbikenwgrowth","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/mszell%2Fbikenwgrowth/issues","issue_labels_count":{"future-request":5,"bug":1},"pull_request_labels_count":{},"issue_author_associations_count":{"COLLABORATOR":8,"OWNER":5,"NONE":5},"pull_request_author_associations_count":{"OWNER":4,"NONE":4,"COLLABORATOR":1},"issue_authors":{"anastassiavybornova":8,"mszell":5,"ManuelBanza":1,"JoaoCarabetta":1,"Froguin99":1,"cbueth":1,"FloEdelmann":1},"pull_request_authors":{"mszell":4,"RogerGMarch":3,"anastassiavybornova":1,"FloEdelmann":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-30T00:00:06.639Z","repositories_count":14449563,"issues_count":34190151,"pull_requests_count":112214140,"authors_count":11249392,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{},"past_year_pull_request_author_associations_count":{},"past_year_issue_authors":{},"past_year_pull_request_authors":{},"maintainers":[{"login":"mszell","count":9,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/mszell"},{"login":"anastassiavybornova","count":9,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/anastassiavybornova"}],"active_maintainers":[]},"events":{"total":{"PullRequestEvent":3,"ForkEvent":5,"WatchEvent":4,"IssueCommentEvent":1,"PushEvent":1},"last_year":{"ForkEvent":2,"WatchEvent":4,"PushEvent":1}},"keywords":["bicycle-network","cycling","gis","network-analysis","openstreetmap","osmnx","transportation-network","urban-data-science","urban-planning"],"dependencies":[{"ecosystem":"pypi","filepath":"requirements.txt","sha":null,"kind":"manifest","created_at":"2023-04-17T06:04:37.669Z","updated_at":"2023-04-17T06:04:37.669Z","repository_link":"https://github.com/mszell/bikenwgrowth/blob/main/requirements.txt","dependencies":[{"id":9049255984,"package_name":"affine","ecosystem":"pypi","requirements":"==2.3.0","direct":true,"kind":"runtime","optional":false},{"id":9049255986,"package_name":"appnope","ecosystem":"pypi","requirements":"==0.1.0","direct":true,"kind":"runtime","optional":false},{"id":9049255987,"package_name":"async-generator","ecosystem":"pypi","requirements":"==1.10","direct":true,"kind":"runtime","optional":false},{"id":9049255988,"package_name":"backcall","ecosystem":"pypi","requirements":"==0.1.0","direct":true,"kind":"runtime","optional":false},{"id":9049255989,"package_name":"backports.functools-lru-cache","ecosystem":"pypi","requirements":"==1.6.1","direct":true,"kind":"runtime","optional":false},{"id":9049255990,"package_name":"brotlipy","ecosystem":"pypi","requirements":"==0.7.0","direct":true,"kind":"runtime","optional":false},{"id":9049255991,"package_name":"certifi","ecosystem":"pypi","requirements":"==2020.12.5","direct":true,"kind":"runtime","optional":false},{"id":9049255992,"package_name":"click","ecosystem":"pypi","requirements":"==7.1.2","direct":true,"kind":"runtime","optional":false},{"id":9049255993,"package_name":"click-plugins","ecosystem":"pypi","requirements":"==1.1.1","direct":true,"kind":"runtime","optional":false},{"id":9049255994,"package_name":"cycler","ecosystem":"pypi","requirements":"==0.10.0","direct":true,"kind":"runtime","optional":false},{"id":9049255995,"package_name":"decorator","ecosystem":"pypi","requirements":"==4.4.2","direct":true,"kind":"runtime","optional":false},{"id":9049255996,"package_name":"defusedxml","ecosystem":"pypi","requirements":"==0.6.0","direct":true,"kind":"runtime","optional":false},{"id":9049255997,"package_name":"descartes","ecosystem":"pypi","requirements":"==1.1.0","direct":true,"kind":"runtime","optional":false},{"id":9049255998,"package_name":"Fiona","ecosystem":"pypi","requirements":"==1.8.18","direct":true,"kind":"runtime","optional":false},{"id":9049255999,"package_name":"GDAL","ecosystem":"pypi","requirements":"==3.1.4","direct":true,"kind":"runtime","optional":false},{"id":9049256000,"package_name":"geojson","ecosystem":"pypi","requirements":"==2.5.0","direct":true,"kind":"runtime","optional":false},{"id":9049256001,"package_name":"haversine","ecosystem":"pypi","requirements":"==2.2.0","direct":true,"kind":"runtime","optional":false},{"id":9049256011,"package_name":"ipykernel","ecosystem":"pypi","requirements":"==5.3.0","direct":true,"kind":"runtime","optional":false},{"id":9049256012,"package_name":"ipython","ecosystem":"pypi","requirements":"==7.14.0","direct":true,"kind":"runtime","optional":false},{"id":9049256013,"package_name":"ipython-genutils","ecosystem":"pypi","requirements":"==0.2.0","direct":true,"kind":"runtime","optional":false},{"id":9049256014,"package_name":"jedi","ecosystem":"pypi","requirements":"==0.17.0","direct":true,"kind":"runtime","optional":false},{"id":9049256015,"package_name":"Jinja2","ecosystem":"pypi","requirements":"==2.11.2","direct":true,"kind":"runtime","optional":false},{"id":9049256016,"package_name":"jupyter-client","ecosystem":"pypi","requirements":"==6.1.3","direct":true,"kind":"runtime","optional":false},{"id":9049256017,"package_name":"jupyter-core","ecosystem":"pypi","requirements":"==4.6.3","direct":true,"kind":"runtime","optional":false},{"id":9049256018,"package_name":"munch","ecosystem":"pypi","requirements":"==2.5.0","direct":true,"kind":"runtime","optional":false},{"id":9049256019,"package_name":"opencv-python","ecosystem":"pypi","requirements":"==4.4.0.42","direct":true,"kind":"runtime","optional":false},{"id":9049256020,"package_name":"pandas","ecosystem":"pypi","requirements":"==1.0.3","direct":true,"kind":"runtime","optional":false},{"id":9049256021,"package_name":"pandocfilters","ecosystem":"pypi","requirements":"==1.4.2","direct":true,"kind":"runtime","optional":false},{"id":9049256022,"package_name":"parso","ecosystem":"pypi","requirements":"==0.7.0","direct":true,"kind":"runtime","optional":false},{"id":9049256023,"package_name":"pexpect","ecosystem":"pypi","requirements":"==4.8.0","direct":true,"kind":"runtime","optional":false},{"id":9049256024,"package_name":"pickleshare","ecosystem":"pypi","requirements":"==0.7.5","direct":true,"kind":"runtime","optional":false},{"id":9049256025,"package_name":"prompt-toolkit","ecosystem":"pypi","requirements":"==3.0.5","direct":true,"kind":"runtime","optional":false},{"id":9049256026,"package_name":"ptyprocess","ecosystem":"pypi","requirements":"==0.6.0","direct":true,"kind":"runtime","optional":false},{"id":9049256027,"package_name":"pycairo","ecosystem":"pypi","requirements":"==1.20.0","direct":true,"kind":"runtime","optional":false},{"id":9049256028,"package_name":"Pygments","ecosystem":"pypi","requirements":"==2.6.1","direct":true,"kind":"runtime","optional":false},{"id":9049256029,"package_name":"pyparsing","ecosystem":"pypi","requirements":"==2.4.7","direct":true,"kind":"runtime","optional":false},{"id":9049256030,"package_name":"python-dateutil","ecosystem":"pypi","requirements":"==2.8.1","direct":true,"kind":"runtime","optional":false},{"id":9049256031,"package_name":"pyzmq","ecosystem":"pypi","requirements":"==19.0.1","direct":true,"kind":"runtime","optional":false},{"id":9049256032,"package_name":"scipy","ecosystem":"pypi","requirements":"==1.4.1","direct":true,"kind":"runtime","optional":false},{"id":9049256033,"package_name":"Send2Trash","ecosystem":"pypi","requirements":"==1.5.0","direct":true,"kind":"runtime","optional":false},{"id":9049256034,"package_name":"Shapely","ecosystem":"pypi","requirements":"==1.7.0","direct":true,"kind":"runtime","optional":false},{"id":9049256035,"package_name":"snuggs","ecosystem":"pypi","requirements":"==1.4.7","direct":true,"kind":"runtime","optional":false},{"id":9049256036,"package_name":"testpath","ecosystem":"pypi","requirements":"==0.4.4","direct":true,"kind":"runtime","optional":false},{"id":9049256037,"package_name":"traitlets","ecosystem":"pypi","requirements":"==4.3.3","direct":true,"kind":"runtime","optional":false},{"id":9049256038,"package_name":"watermark","ecosystem":"pypi","requirements":"==2.0.2","direct":true,"kind":"runtime","optional":false},{"id":9049256039,"package_name":"wcwidth","ecosystem":"pypi","requirements":"==0.1.9","direct":true,"kind":"runtime","optional":false},{"id":9049256040,"package_name":"webencodings","ecosystem":"pypi","requirements":"==0.5.1","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"requirements_nonbuiltins.txt","sha":null,"kind":"manifest","created_at":"2023-04-17T06:04:37.820Z","updated_at":"2023-04-17T06:04:37.820Z","repository_link":"https://github.com/mszell/bikenwgrowth/blob/main/requirements_nonbuiltins.txt","dependencies":[{"id":9049256048,"package_name":"matplotlib","ecosystem":"pypi","requirements":"\u003e=3.3.3","direct":true,"kind":"runtime","optional":false},{"id":9049256049,"package_name":"numpy","ecosystem":"pypi","requirements":"\u003e=1.19.4","direct":true,"kind":"runtime","optional":false},{"id":9049256050,"package_name":"pandas","ecosystem":"pypi","requirements":"\u003e=1.0.3","direct":true,"kind":"runtime","optional":false},{"id":9049256051,"package_name":"pyproj","ecosystem":"pypi","requirements":"\u003e=2.6.1.post1","direct":true,"kind":"runtime","optional":false},{"id":9049256052,"package_name":"geojson","ecosystem":"pypi","requirements":"\u003e=2.5.0","direct":true,"kind":"runtime","optional":false},{"id":9049256053,"package_name":"watermark","ecosystem":"pypi","requirements":"\u003e=2.0.2","direct":true,"kind":"runtime","optional":false},{"id":9049256054,"package_name":"shapely","ecosystem":"pypi","requirements":"\u003e=1.7.0","direct":true,"kind":"runtime","optional":false},{"id":9049256055,"package_name":"csv","ecosystem":"pypi","requirements":"\u003e=1.0","direct":true,"kind":"runtime","optional":false},{"id":9049256056,"package_name":"networkx","ecosystem":"pypi","requirements":"\u003e=2.5","direct":true,"kind":"runtime","optional":false},{"id":9049256057,"package_name":"igraph","ecosystem":"pypi","requirements":"\u003e=0.8.3","direct":true,"kind":"runtime","optional":false},{"id":9049256058,"package_name":"fiona","ecosystem":"pypi","requirements":"\u003e=1.8.18","direct":true,"kind":"runtime","optional":false},{"id":9049256059,"package_name":"osmnx","ecosystem":"pypi","requirements":"==0.16.2","direct":true,"kind":"runtime","optional":false},{"id":9049256060,"package_name":"geopandas","ecosystem":"pypi","requirements":"\u003e=0.8.1","direct":true,"kind":"runtime","optional":false},{"id":9049256062,"package_name":"tqdm","ecosystem":"pypi","requirements":"\u003e=4.55.0","direct":true,"kind":"runtime","optional":false},{"id":9049256063,"package_name":"haversine","ecosystem":"pypi","requirements":"\u003e=2.3.0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"pypi","filepath":"code/setup.py","sha":null,"kind":"manifest","created_at":"2024-11-06T00:35:29.924Z","updated_at":"2024-11-06T00:35:29.924Z","repository_link":"https://github.com/mszell/bikenwgrowth/blob/main/code/setup.py","dependencies":[]},{"ecosystem":"pypi","filepath":"environment.yml","sha":null,"kind":"manifest","created_at":"2024-11-06T00:35:29.975Z","updated_at":"2024-11-06T00:35:29.975Z","repository_link":"https://github.com/mszell/bikenwgrowth/blob/main/environment.yml","dependencies":[{"id":20582566552,"package_name":"opencv-python","ecosystem":"pypi","requirements":"*","direct":true,"kind":"runtime","optional":false}]}],"score":6.131226489483141,"created_at":"2023-09-11T14:52:10.219Z","updated_at":"2026-05-01T06:30:18.340Z","avatar_url":"https://github.com/mszell.png","language":"Jupyter Notebook","category":"Consumption","sub_category":"Mobility and Transportation","monthly_downloads":0,"total_dependent_repos":0,"total_dependent_packages":0,"readme":"# Growing Urban Bicycle Networks\n\nThis is the source code for the scientific paper [*Growing urban bicycle networks*](https://www.nature.com/articles/s41598-022-10783-y) by [M. Szell](http://michael.szell.net/), S. Mimar, T. Perlman, [G. Ghoshal](http://gghoshal.pas.rochester.edu/), and [R. Sinatra](http://www.robertasinatra.com/). The code downloads and pre-processes data from OpenStreetMap, prepares points of interest, runs simulations, measures and saves the results, creates videos and plots. \n\n\u003e [!TIP]\n\u003e This repository contains not user-friendly research code. We are currently developing a user-friendly, packaged, efficient version of the code in our [BikeNetKit](https://github.com/BikeNetKit) project: [GrowBikeNet](https://github.com/BikeNetKit/GrowBikeNet)\n\n**Paper**: [https://www.nature.com/articles/s41598-022-10783-y](https://www.nature.com/articles/s41598-022-10783-y)  \n**Data repository**: [zenodo.5083049](https://zenodo.org/record/5083049)  \n**Visualization**: [GrowBike.Net](https://growbike.net)  \n**Videos \u0026 Plots**: [https://growbike.net/download](https://growbike.net/download)\n\n[![Video output from running the code on Paris, showing the growth of a bicycle network on a grid of seed points](readmevideo.gif)](https://growbike.net/city/paris)\n*Video output from running the code on Paris, showing the growth of a bicycle network on a grid of seed points*\n\n## Instructions\n\n### 1. Git clone the project _without_ the full history \n\nRun from your terminal:\n\n```\ngit clone -b main --single-branch https://github.com/mszell/bikenwgrowth --depth 1\n```\n\n### 2. Install the conda environment `growbikenet`\n\nIn your terminal, navigate to the project folder `bikenwgrowth` and use [`conda`](https://docs.conda.io/projects/conda/en/latest/index.html)\nor [`mamba`](https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html)\nor [`micromamba`](https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html) to run:\n\n```\nmamba env create -f environment.yml\nmamba activate growbikenet\n```\n\n#### Environment creation from command line\n\nIf the above doesn't work, you can manually create the environment from your command line (not recommended):\n\n```\nmamba create --override-channels -c conda-forge -n growbikenet python=3.12 osmnx=1.9.4 python-igraph watermark haversine rasterio tqdm geojson ipywidgets ipykernel\nmamba activate growbikenet\npip install opencv-python\nmamba deactivate\n```\n\n#### Set up Jupyter kernel\n\nIf you want to use the environment `growbikenet` in Jupyter, run:\n\n```\nipython kernel install --user --name=growbikenet\n```\n\nYou can now run Jupyter `jupyter lab` with the kernel `growbikenet ` (Kernel \u003e Change Kernel \u003e growbikenet).\n\n\n### 3a. Run the code locally\n\nSingle (or few/small) cities can be run locally by a manual, step-by-step execution of Jupyter notebooks:\n\n1. Populate [`parameters/cities.csv`](parameters/cities.csv), see below. Leave default values to run the code on two small cities.\n2. Navigate to the [`code`](code/) folder.\n3. Run notebooks 01 and 02 once to download and prepare all networks and POIs.  \n4. Run notebooks 03, 04, 05 for each parameter set (see below), set in [`parameters/parameters.py`](parameters/parameters.py)\n5. Optional: Run 06 to create videos.\n6. Optional: Further notebooks named with `X_` can be run if needed to generate extra results or data.\n\n### 3b. Run the code on an HPC cluster with SLURM\n\nFor multiple, esp. large, cities, running the code on a high performance computing cluster is strongly suggested as the tasks are easy to paralellize. The shell scripts are written for [SLURM](https://slurm.schedmd.com/overview.html).  \n\n1. Populate [`parameters/cities.csv`](parameters/cities.csv), see below.\n2. Run 01 and 02 once locally to download and prepare all networks and POIs (The alternative is server-side `sbatch scripts/download.job`, but OSMNX throws too many connection issues, so manual supervision is needed)\n3. Upload `code/*.py`, `parameters/*`, `scripts/*`\n4. Run: `./mastersbatch_analysis.sh`\n5. Run, if needed: `./mastersbatch_export.sh`\n6. After all is finished, run: `./cleanup.sh`\n7. Recommended, run: `./fixresults.sh` (to clean up results in case of amended data from repeated runs)\n\n## Folder structure and output\nThe main folder/repo is `bikenwgrowth`, containing Jupyter notebooks (`code/`), preprocessed data (`data/`), parameters (`parameters/`), result plots (`plots/`), HPC server scripts and jobs (`scripts/`).\n\nMost of the generated data output (network plots, videos, results, exports, logs) makes up many GBs and is stored in the separate external folder `bikenwgrowth_external`. To set up different paths, edit [`code/path.py`](code/path.py)\n\n## Parameter sets \n1. `prune_measure = \"betweenness\"`, `poi_source =  \"railwaystation\"`  \n2. `prune_measure = \"betweenness\"`, `poi_source =  \"grid\"`  \n3. `prune_measure = \"closeness\"`, `poi_source =  \"railwaystation\"`  \n4. `prune_measure = \"closeness\"`, `poi_source =  \"grid\"`  \n5. `prune_measure = \"random\"`, `poi_source =  \"railwaystation\"`  \n6. `prune_measure = \"random\"`, `poi_source =  \"grid\"` \n\n## Populating cities.csv\n\n### Checking nominatimstring  \n* Go to e.g. [https://nominatim.openstreetmap.org/ui/search.html?q=paris%2C+france](https://nominatim.openstreetmap.org/ui/search.html?q=paris%2C+france) and enter the search string. If a correct polygon (or multipolygon) pops up it should be fine. If not leave the field empty and acquire a shape file, see below.\n\n### Acquiring shape file  \n* Go to [Overpass](https://overpass-turbo.eu/), to the city, and run:\n    `relation[\"boundary\"=\"administrative\"][\"name:en\"=\"Copenhagen Municipality\"]({{bbox}});(._;\u003e;);out skel;`\n* Export: Download as GPX\n* Use QGIS to create a polygon, with Vector \u003e Join Multiple Lines, and Processing Toolbox \u003e Polygonize (see [Stackexchange answer 1](https://gis.stackexchange.com/questions/98320/connecting-two-line-ends-in-qgis-without-resorting-to-other-software) and [Stackexchange answer 2](https://gis.stackexchange.com/questions/207463/convert-a-line-to-polygon))\n","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":[],"project_url":"https://ost.ecosyste.ms/api/v1/projects/20155","html_url":"https://ost.ecosyste.ms/projects/20155"}