Skip to content

Commit

Permalink
added rtree import
Browse files Browse the repository at this point in the history
  • Loading branch information
zscore committed Dec 6, 2015
1 parent eaec773 commit aa4d517
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ Code to do data analysis and visualization for PBR/Project Pavement.
Currently, the URLs for the project are

https://github.com/strangerloops/pavement_android

https://github.com/strangerloops/pavement_ios

https://github.com/strangerloops/pavement_rails

http://project-pavement.herokuapp.com/

https://github.com/ifed3/PBR

Slack is at https://chihacknight.slack.com/messages/pbr/

You can use conda to install most of the dependencies, but this project
also uses rtree which is not installable from conda.

1 change: 1 addition & 0 deletions src/analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"import pandas as pd\n",
"import pyproj\n",
"import requests\n",
"import rtree\n",
"import seaborn as sb\n",
"from scipy import signal\n",
"%pylab inline\n",
Expand Down
5 changes: 4 additions & 1 deletion src/data_munging.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pandas as pd
import pyproj
import requests
import rtree
import subprocess

src_dir = os.path.dirname(os.path.abspath(__file__)) + '/'
Expand Down Expand Up @@ -32,7 +33,9 @@ def _proj_apply(row, proj):
'left_lon': -74.713,
'right_lon': -71.570}

# def calc_dist(lons1, lats1, lons2, lats2):
def add_routes_to_shapely():
"nothing"

def calc_dist(*args):
"""I have no idea if Clark ='s ellipsoid is good for our purposes or not."""
if len(args[0]) > 0:
Expand Down

0 comments on commit aa4d517

Please sign in to comment.