Git Product home page Git Product logo

measure's Introduction

Measure

Quantify and categorize city bike networks.

Administration tasks

Administration tasks are being provided as convenience in a justfile.

More information about Just can be find in their repository. The installation section of their documentation will guide you through the setup process.

Run just -l to see the list of provided tasks.

Project structure

  • data: stores the shapefiles (not to be commited) to process
  • docs: the Sphinx documentation of the project
  • measure: project source code
  • notebooks: notebooks relevant to the project
  • results: stores the results of the operations
  • tests: project unit tests

Contributing

Measure uses Poetry as its project management tool. The installation section of their documentation will guide you through the setup process.

Setup the project:

poetry install

This will create or update the environment.

Then, place the shape files to process in the data directory. For now, only the files ending with neighborhood_ways.zip will be detected. The shape files must be retrieved from the bna site.

For instance, for the city of Austin, TX:

  1. Go to https://bna.peopleforbikes.org/#/places/02fa7cef-bfb9-494e-9ae9-cdbaeb15f11f/
  2. Click the "Download" button
  3. Click "Neighborhood Ways (shp)"
  4. Save it into the data directory

Finally, run the project to process the file(s):

poetry run python measure/main.py

measure's People

Contributors

lalver1 avatar rgreinho avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lalver1

measure's Issues

Output issues

Current Behavior

  • Not all cities have data for all the values that can be processes by measure. For instance Madrid does not a value for buffered lane.
  • All the values are decimal, which does not bring additional information to the reader.
  • The headers contain a lot of nan for no reason.
track,nan,retail,nan,people,transit,lane,core_services,recreation,buffered_lane,nan,state,nan,nan,sharrow,city,nan,opportunity,country
45.951,,50.24194171,,54.61762189,71.04434298,99.229,76.33477133,67.96172124,,,MD,,24334.196,361.299,Madrid,,71.11145219,Spain

Expected Behavior

  • Add default values for the missing fields.
  • Rounding them to the closer integer would be enough.
  • Remove the nan fields.

Use Poetry to setup the project.

Current Behavior

measure currently gets setup using anaconda, which makes the setup difficult to script across platforms.

Expected Behavior

Using the poetry project manager would simplify the setup process.

Possible Solution

Since fiona 1.8.21, it is now possible to install geopandas using poetry with python 3.10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.