diff --git a/notebooks/Managed Lane Example.ipynb b/notebooks/Managed Lane Example.ipynb index 8b4e313..0af2814 100644 --- a/notebooks/Managed Lane Example.ipynb +++ b/notebooks/Managed Lane Example.ipynb @@ -38,12 +38,11 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "stpaul_dir = os.path.join(os.getcwd(), '../', 'examples','stpaul')\n", - "lasso_dir = os.path.join('../../', 'lasso')\n", "\n", "# Roadway Network files\n", "stpaul_shape_file = os.path.join(stpaul_dir, 'shape.geojson')\n", @@ -52,7 +51,7 @@ "\n", "# Project Card\n", "roadway_project_card_file = os.path.join(\n", - " stpaul_dir, \"project_cards\", '4_simple_managed_lane.yml'\n", + " '../', '../', 'network_wrangler', 'examples', 'stpaul', 'project_cards', '4_simple_managed_lane.yml'\n", " )\n", "\n", "# Test Outputs\n", @@ -69,28 +68,27 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "2020-08-19 09:00:53, INFO: Reading from following files:\n", - "-/Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/link.json\n", - "-/Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/node.geojson\n", - "-/Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/shape.geojson.\n", - "2020-08-19 09:00:59, INFO: Read 66253 links from /Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/link.json\n", - "2020-08-19 09:00:59, INFO: Read 17159 nodes from /Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/node.geojson\n", - "2020-08-19 09:00:59, INFO: Read 66253 shapes from /Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/shape.geojson\n", - "2020-08-19 09:01:09, INFO: Read in transit feed from: /Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul\n", - "2020-08-19 09:01:10, INFO: Removing calendar.txt from transit network config because file not found\n", - "2020-08-19 09:01:10, INFO: Removing calendar_dates.txt from transit network config because file not found\n", - "2020-08-19 09:01:10, INFO: Removing fare_attributes.txt from transit network config because file not found\n", - "2020-08-19 09:01:10, INFO: Removing fare_rules.txt from transit network config because file not found\n", - "2020-08-19 09:01:10, INFO: Removing transfers.txt from transit network config because file not found\n", - "2020-08-19 09:01:10, INFO: Removing feed_info.txt from transit network config because file not found\n", - "2020-08-19 09:01:10, INFO: Lasso base directory set as: ../../lasso\n" + "2020-08-19 15:18:49, INFO: Reading from following files:\n", + "-/Users/wsp/Documents/GitHub/Lasso/notebooks/../examples/stpaul/link.json\n", + "-/Users/wsp/Documents/GitHub/Lasso/notebooks/../examples/stpaul/node.geojson\n", + "-/Users/wsp/Documents/GitHub/Lasso/notebooks/../examples/stpaul/shape.geojson.\n", + "2020-08-19 15:18:54, INFO: Read 66253 links from /Users/wsp/Documents/GitHub/Lasso/notebooks/../examples/stpaul/link.json\n", + "2020-08-19 15:18:54, INFO: Read 17159 nodes from /Users/wsp/Documents/GitHub/Lasso/notebooks/../examples/stpaul/node.geojson\n", + "2020-08-19 15:18:54, INFO: Read 66253 shapes from /Users/wsp/Documents/GitHub/Lasso/notebooks/../examples/stpaul/shape.geojson\n", + "2020-08-19 15:19:05, INFO: Read in transit feed from: /Users/wsp/Documents/GitHub/Lasso/notebooks/../examples/stpaul\n", + "2020-08-19 15:19:05, INFO: Removing calendar.txt from transit network config because file not found\n", + "2020-08-19 15:19:05, INFO: Removing calendar_dates.txt from transit network config because file not found\n", + "2020-08-19 15:19:05, INFO: Removing fare_attributes.txt from transit network config because file not found\n", + "2020-08-19 15:19:05, INFO: Removing fare_rules.txt from transit network config because file not found\n", + "2020-08-19 15:19:05, INFO: Removing transfers.txt from transit network config because file not found\n", + "2020-08-19 15:19:05, INFO: Removing feed_info.txt from transit network config because file not found\n" ] } ], @@ -102,9 +100,7 @@ " fast = True \n", ")\n", "\n", - "transit_net = TransitNetwork.read(feed_path = stpaul_dir)\n", - "\n", - "parameters = Parameters(lasso_base_dir = lasso_dir)" + "transit_net = TransitNetwork.read(feed_path = stpaul_dir)" ] }, { @@ -116,14 +112,14 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "2020-08-19 09:01:26, INFO: Creating Scenario\n" + "2020-08-19 15:19:05, INFO: Creating Scenario\n" ] } ], @@ -134,15 +130,15 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "2020-08-19 09:01:29, INFO: Applying test managed lane project\n", - "2020-08-19 09:01:29, INFO: Applying Project to Roadway Network: test managed lane project\n" + "2020-08-19 15:19:05, INFO: Applying test managed lane project\n", + "2020-08-19 15:19:05, INFO: Applying Project to Roadway Network: test managed lane project\n" ] }, { @@ -165,7 +161,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -174,7 +170,7 @@ "['test managed lane project']" ] }, - "execution_count": 8, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -192,131 +188,36 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "2020-08-19 09:01:51, INFO: Lasso base directory set as: ../../lasso\n", - "2020-08-19 09:02:02, INFO: Lasso base directory set as: ../../lasso\n" + "2020-08-19 15:19:15, INFO: Lasso base directory set as: /Users/wsp/Documents/GitHub/Lasso\n", + "2020-08-19 15:19:25, INFO: Lasso base directory set as: /Users/wsp/Documents/GitHub/Lasso\n" ] } ], "source": [ - "base_m_net = ModelRoadwayNetwork.from_RoadwayNetwork(roadway_network_object = roadway_net, parameters = parameters)\n", - "build_m_net = ModelRoadwayNetwork.from_RoadwayNetwork(roadway_network_object = working_scenario.road_net, parameters = parameters)" + "base_m_net = ModelRoadwayNetwork.from_RoadwayNetwork(roadway_network_object = roadway_net)\n", + "build_m_net = ModelRoadwayNetwork.from_RoadwayNetwork(roadway_network_object = working_scenario.road_net)" ] }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "2020-08-19 09:02:05, INFO: Renaming roadway attributes to be consistent with what metcouncil's model is expecting\n", - "2020-08-19 09:02:05, INFO: Didn't detect managed lanes in network.\n", - "2020-08-19 09:02:05, INFO: Creating calculated roadway variables.\n", - "2020-08-19 09:02:05, INFO: Calculating Area Type from Spatial Data and adding as roadway network variable: area_type\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/Users/wsp/Documents/GitHub/Lasso/lasso/roadway.py:401: UserWarning: Geometry is in a geographic CRS. Results from 'centroid' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.\n", - "\n", - " centroids_gdf[\"geometry\"] = centroids_gdf[\"geometry\"].centroid\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "2020-08-19 09:02:12, INFO: Finished Calculating Area Type from Spatial Data into variable: area_type\n", - "2020-08-19 09:02:12, INFO: Adding roadway network variable for county using a spatial join with: ../../lasso/metcouncil_data/county/cb_2017_us_county_5m.shp\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/Users/wsp/Documents/GitHub/Lasso/lasso/roadway.py:293: UserWarning: Geometry is in a geographic CRS. Results from 'centroid' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.\n", - "\n", - " centroids_gdf[\"geometry\"] = centroids_gdf[\"geometry\"].centroid\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "2020-08-19 09:02:18, INFO: Finished Calculating county variable: county\n", - "2020-08-19 09:02:18, INFO: Calculating Centroid Connector and adding as roadway network variable: centroidconnect\n", - "2020-08-19 09:02:18, INFO: Finished calculating centroid connector variable: centroidconnect\n", - "2020-08-19 09:02:18, INFO: Calculating MPO as roadway network variable: mpo\n", - "2020-08-19 09:02:18, INFO: Finished calculating MPO variable: mpo\n", - "2020-08-19 09:02:18, INFO: Calculating Assignment Group as network variable: assign_group\n", - "2020-08-19 09:02:18, INFO: Centroid Connector Variable 'centroidconnect' already in network. Returning without overwriting.\n", - "2020-08-19 09:02:45, INFO: Finished calculating assignment group variable: assign_group\n", - "2020-08-19 09:02:46, INFO: Calculating Roadway Class\n", - "2020-08-19 09:02:46, INFO: Finished calculating roadway class variable: roadway_class\n", - "2020-08-19 09:02:46, INFO: Adding Counts\n", - "2020-08-19 09:02:46, INFO: Adding Variable AADT using Shared Streets Reference from ../../lasso/metcouncil_data/count_mn/mn_count_ShSt_API_match.csv\n", - "2020-08-19 09:02:46, INFO: Added variable: AADT using Shared Streets Reference\n", - "2020-08-19 09:02:46, INFO: Adding Variable AADT using Shared Streets Reference from ../../lasso/metcouncil_data/Wisconsin_Lanes_Counts_Median/wi_count_ShSt_API_match.csv\n", - "2020-08-19 09:02:46, INFO: Added variable: AADT using Shared Streets Reference\n", - "2020-08-19 09:02:46, INFO: Finished adding counts variable: AADT\n", - "2020-08-19 09:02:46, INFO: Finished creating ML lanes variable: ML_lanes\n", - "2020-08-19 09:02:46, INFO: Finished creating hov corridor variable: segment_id\n", - "2020-08-19 09:02:46, INFO: Finished creating managed variable: managed\n", - "2020-08-19 09:02:46, INFO: Overwriting existing distance Variable 'distance' already in network\n", - "2020-08-19 09:02:48, INFO: Calculating distance for centroid connectors\n", - "2020-08-19 09:02:48, INFO: Filling nan for network from network wrangler\n", - "2020-08-19 09:02:49, INFO: Splitting variables by time period and category\n", - "2020-08-19 09:02:49, WARNING: Specified variable to split: ML_lanes not in network variables: Index(['model_link_id', 'osm_link_id', 'shstReferenceId', 'shstGeometryId',\n", - " 'shape_id', 'u', 'v', 'A', 'B', 'locationReferences', 'distance',\n", - " 'roadway', 'name', 'ref', 'bridge', 'tunnel', 'width', 'max_speed',\n", - " 'bike_facility', 'drive_access', 'walk_access', 'bike_access',\n", - " 'truck_access', 'bus_only', 'rail_only', 'lanes', 'access', 'price',\n", - " 'trn_priority', 'ttime_assert', 'geometry', 'area_type', 'county',\n", - " 'centroidconnect', 'mpo', 'mrcc_id', 'ROUTE_SYS', 'assign_group',\n", - " 'roadway_class', 'AADT', 'count_AM', 'count_MD', 'count_PM', 'count_NT',\n", - " 'count_daily', 'count_year', 'segment_id', 'managed', 'trn_priority_AM',\n", - " 'trn_priority_MD', 'trn_priority_PM', 'trn_priority_NT',\n", - " 'ttime_assert_AM', 'ttime_assert_MD', 'ttime_assert_PM',\n", - " 'ttime_assert_NT', 'lanes_AM', 'lanes_MD', 'lanes_PM', 'lanes_NT'],\n", - " dtype='object'). Returning 0.\n", - "2020-08-19 09:02:50, INFO: Converting variable type to MetCouncil standard\n", - "2020-08-19 09:02:50, INFO: Setting Coordinate Reference System to EPSG 26915\n", - "2020-08-19 09:02:55, INFO: Renaming roadway attributes to be consistent with what metcouncil's model is expecting\n", - "2020-08-19 09:02:55, INFO: Creating managed lane network.\n", - "2020-08-19 09:02:55, INFO: Creating network with duplicated managed lanes\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/Users/wsp/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/geopandas/geodataframe.py:853: SettingWithCopyWarning: \n", - "A value is trying to be set on a copy of a slice from a DataFrame.\n", - "Try using .loc[row_indexer,col_indexer] = value instead\n", - "\n", - "See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n", - " super(GeoDataFrame, self).__setitem__(key, value)\n", - "/Users/wsp/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/geopandas/geodataframe.py:852: UserWarning: Geometry column does not contain geometry.\n", - " warnings.warn(\"Geometry column does not contain geometry.\")\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "2020-08-19 09:02:55, INFO: Creating calculated roadway variables.\n", - "2020-08-19 09:02:55, INFO: Calculating Area Type from Spatial Data and adding as roadway network variable: area_type\n" + "2020-08-19 15:19:25, INFO: Renaming roadway attributes to be consistent with what metcouncil's model is expecting\n", + "2020-08-19 15:19:25, INFO: Didn't detect managed lanes in network.\n", + "2020-08-19 15:19:25, INFO: Creating calculated roadway variables.\n", + "2020-08-19 15:19:25, INFO: Calculating Area Type from Spatial Data and adding as roadway network variable: area_type\n" ] }, { @@ -332,8 +233,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "2020-08-19 09:03:02, INFO: Finished Calculating Area Type from Spatial Data into variable: area_type\n", - "2020-08-19 09:03:02, INFO: Adding roadway network variable for county using a spatial join with: ../../lasso/metcouncil_data/county/cb_2017_us_county_5m.shp\n" + "2020-08-19 15:19:32, INFO: Finished Calculating Area Type from Spatial Data into variable: area_type\n", + "2020-08-19 15:19:32, INFO: Adding roadway network variable for county using a spatial join with: /Users/wsp/Documents/GitHub/Lasso/metcouncil_data/county/cb_2017_us_county_5m.shp\n" ] }, { @@ -346,48 +247,29 @@ ] }, { - "name": "stdout", - "output_type": "stream", - "text": [ - "2020-08-19 09:03:08, INFO: Finished Calculating county variable: county\n", - "2020-08-19 09:03:08, INFO: Calculating Centroid Connector and adding as roadway network variable: centroidconnect\n", - "2020-08-19 09:03:08, INFO: Finished calculating centroid connector variable: centroidconnect\n", - "2020-08-19 09:03:08, INFO: Calculating MPO as roadway network variable: mpo\n", - "2020-08-19 09:03:08, INFO: Finished calculating MPO variable: mpo\n", - "2020-08-19 09:03:08, INFO: Calculating Assignment Group as network variable: assign_group\n", - "2020-08-19 09:03:08, INFO: Centroid Connector Variable 'centroidconnect' already in network. Returning without overwriting.\n", - "2020-08-19 09:03:36, INFO: Finished calculating assignment group variable: assign_group\n", - "2020-08-19 09:03:36, INFO: Calculating Roadway Class\n", - "2020-08-19 09:03:36, INFO: Finished calculating roadway class variable: roadway_class\n", - "2020-08-19 09:03:36, INFO: Adding Counts\n", - "2020-08-19 09:03:36, INFO: Adding Variable AADT using Shared Streets Reference from ../../lasso/metcouncil_data/count_mn/mn_count_ShSt_API_match.csv\n", - "2020-08-19 09:03:36, INFO: Added variable: AADT using Shared Streets Reference\n", - "2020-08-19 09:03:36, INFO: Adding Variable AADT using Shared Streets Reference from ../../lasso/metcouncil_data/Wisconsin_Lanes_Counts_Median/wi_count_ShSt_API_match.csv\n", - "2020-08-19 09:03:37, INFO: Added variable: AADT using Shared Streets Reference\n", - "2020-08-19 09:03:37, INFO: Finished adding counts variable: AADT\n", - "2020-08-19 09:03:37, INFO: Finished creating ML lanes variable: ML_lanes\n", - "2020-08-19 09:03:37, INFO: Hov corridor Variable 'segment_id' already in network. Returning without overwriting.\n", - "2020-08-19 09:03:37, INFO: Managed Variable 'managed' already in network. Returning without overwriting.\n", - "2020-08-19 09:03:37, INFO: Overwriting existing distance Variable 'distance' already in network\n", - "2020-08-19 09:03:39, INFO: Calculating distance for centroid connectors\n", - "2020-08-19 09:03:39, INFO: Filling nan for network from network wrangler\n", - "2020-08-19 09:03:40, INFO: Splitting variables by time period and category\n", - "2020-08-19 09:03:40, WARNING: Specified variable to split: ML_lanes not in network variables: Index(['index', 'model_link_id', 'osm_link_id', 'shstReferenceId',\n", - " 'shstGeometryId', 'shape_id', 'u', 'v', 'A', 'B', 'locationReferences',\n", - " 'distance', 'roadway', 'name', 'ref', 'bridge', 'tunnel', 'width',\n", - " 'max_speed', 'bike_facility', 'drive_access', 'walk_access',\n", - " 'bike_access', 'truck_access', 'bus_only', 'rail_only', 'lanes',\n", - " 'access', 'price', 'trn_priority', 'ttime_assert', 'geometry',\n", - " 'managed', 'segment_id', 'HOV', 'egress', 'area_type', 'county',\n", - " 'centroidconnect', 'mpo', 'mrcc_id', 'ROUTE_SYS', 'assign_group',\n", - " 'roadway_class', 'AADT', 'count_AM', 'count_MD', 'count_PM', 'count_NT',\n", - " 'count_daily', 'count_year', 'trn_priority_AM', 'trn_priority_MD',\n", - " 'trn_priority_PM', 'trn_priority_NT', 'ttime_assert_AM',\n", - " 'ttime_assert_MD', 'ttime_assert_PM', 'ttime_assert_NT', 'lanes_AM',\n", - " 'lanes_MD', 'lanes_PM', 'lanes_NT'],\n", - " dtype='object'). Returning 0.\n", - "2020-08-19 09:03:41, INFO: Converting variable type to MetCouncil standard\n", - "2020-08-19 09:03:41, INFO: Setting Coordinate Reference System to EPSG 26915\n" + "ename": "ValueError", + "evalue": "cannot reindex from a duplicate axis", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", + "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mbase_m_net\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mroadway_standard_to_met_council_network\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0mbuild_m_net\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mroadway_standard_to_met_council_network\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/Documents/GitHub/Lasso/lasso/roadway.py\u001b[0m in \u001b[0;36mroadway_standard_to_met_council_network\u001b[0;34m(self, output_epsg)\u001b[0m\n\u001b[1;32m 1591\u001b[0m \u001b[0mWranglerLogger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minfo\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Didn't detect managed lanes in network.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1592\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1593\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcreate_calculated_variables\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1594\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcalculate_distance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moverwrite\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1595\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/Documents/GitHub/Lasso/lasso/roadway.py\u001b[0m in \u001b[0;36mcreate_calculated_variables\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 212\u001b[0m \u001b[0mWranglerLogger\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minfo\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Creating calculated roadway variables.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 213\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcalculate_area_type\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 214\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcalculate_county\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 215\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcalculate_centroidconnect\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 216\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcalculate_mpo\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/Documents/GitHub/Lasso/lasso/roadway.py\u001b[0m in \u001b[0;36mcalculate_county\u001b[0;34m(self, county_shape, county_shape_variable, network_variable, county_codes_dict, overwrite)\u001b[0m\n\u001b[1;32m 304\u001b[0m )\n\u001b[1;32m 305\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 306\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlinks_df\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mnetwork_variable\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mjoined_gdf\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mcounty_shape_variable\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 307\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 308\u001b[0m WranglerLogger.info(\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/geopandas/geodataframe.py\u001b[0m in \u001b[0;36m__setitem__\u001b[0;34m(self, key, value)\u001b[0m\n\u001b[1;32m 851\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mTypeError\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 852\u001b[0m \u001b[0mwarnings\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwarn\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"Geometry column does not contain geometry.\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 853\u001b[0;31m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mGeoDataFrame\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__setitem__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 854\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 855\u001b[0m \u001b[0;31m#\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/frame.py\u001b[0m in \u001b[0;36m__setitem__\u001b[0;34m(self, key, value)\u001b[0m\n\u001b[1;32m 3035\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3036\u001b[0m \u001b[0;31m# set column\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3037\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_set_item\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3038\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3039\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_setitem_slice\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mslice\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/frame.py\u001b[0m in \u001b[0;36m_set_item\u001b[0;34m(self, key, value)\u001b[0m\n\u001b[1;32m 3111\u001b[0m \"\"\"\n\u001b[1;32m 3112\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_ensure_valid_index\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3113\u001b[0;31m \u001b[0mvalue\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_sanitize_column\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3114\u001b[0m \u001b[0mNDFrame\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_set_item\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3115\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/frame.py\u001b[0m in \u001b[0;36m_sanitize_column\u001b[0;34m(self, key, value, broadcast)\u001b[0m\n\u001b[1;32m 3733\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3734\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvalue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mSeries\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3735\u001b[0;31m \u001b[0mvalue\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mreindexer\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3736\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3737\u001b[0m \u001b[0;32melif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvalue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mDataFrame\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/frame.py\u001b[0m in \u001b[0;36mreindexer\u001b[0;34m(value)\u001b[0m\n\u001b[1;32m 3724\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mindex\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mis_unique\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3725\u001b[0m \u001b[0;31m# duplicate axis\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3726\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0merr\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3727\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3728\u001b[0m \u001b[0;31m# other\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/frame.py\u001b[0m in \u001b[0;36mreindexer\u001b[0;34m(value)\u001b[0m\n\u001b[1;32m 3719\u001b[0m \u001b[0;31m# GH 4107\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3720\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3721\u001b[0;31m \u001b[0mvalue\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreindex\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mindex\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_values\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3722\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mValueError\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0merr\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3723\u001b[0m \u001b[0;31m# raised in MultiIndex.from_tuples, see test_insert_error_msmgs\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/series.py\u001b[0m in \u001b[0;36mreindex\u001b[0;34m(self, index, **kwargs)\u001b[0m\n\u001b[1;32m 4397\u001b[0m )\n\u001b[1;32m 4398\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mreindex\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mindex\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 4399\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreindex\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mindex\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mindex\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 4400\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4401\u001b[0m def drop(\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/generic.py\u001b[0m in \u001b[0;36mreindex\u001b[0;34m(self, *args, **kwargs)\u001b[0m\n\u001b[1;32m 4451\u001b[0m \u001b[0;31m# perform the reindex on the axes\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4452\u001b[0m return self._reindex_axes(\n\u001b[0;32m-> 4453\u001b[0;31m \u001b[0maxes\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlevel\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlimit\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtolerance\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmethod\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfill_value\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcopy\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 4454\u001b[0m ).__finalize__(self, method=\"reindex\")\n\u001b[1;32m 4455\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/generic.py\u001b[0m in \u001b[0;36m_reindex_axes\u001b[0;34m(self, axes, level, limit, tolerance, method, fill_value, copy)\u001b[0m\n\u001b[1;32m 4474\u001b[0m \u001b[0mfill_value\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfill_value\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4475\u001b[0m \u001b[0mcopy\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcopy\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 4476\u001b[0;31m \u001b[0mallow_dups\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 4477\u001b[0m )\n\u001b[1;32m 4478\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/generic.py\u001b[0m in \u001b[0;36m_reindex_with_indexers\u001b[0;34m(self, reindexers, fill_value, copy, allow_dups)\u001b[0m\n\u001b[1;32m 4519\u001b[0m \u001b[0mfill_value\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mfill_value\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4520\u001b[0m \u001b[0mallow_dups\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mallow_dups\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 4521\u001b[0;31m \u001b[0mcopy\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcopy\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 4522\u001b[0m )\n\u001b[1;32m 4523\u001b[0m \u001b[0;31m# If we've made a copy once, no need to make another one\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/internals/managers.py\u001b[0m in \u001b[0;36mreindex_indexer\u001b[0;34m(self, new_axis, indexer, axis, fill_value, allow_dups, copy)\u001b[0m\n\u001b[1;32m 1241\u001b[0m \u001b[0;31m# some axes don't allow reindexing with dups\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1242\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mallow_dups\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1243\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0maxes\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0maxis\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_can_reindex\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mindexer\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1244\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1245\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0maxis\u001b[0m \u001b[0;34m>=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mndim\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;32m~/opt/anaconda3/envs/lasso_x/lib/python3.7/site-packages/pandas/core/indexes/base.py\u001b[0m in \u001b[0;36m_can_reindex\u001b[0;34m(self, indexer)\u001b[0m\n\u001b[1;32m 3281\u001b[0m \u001b[0;31m# trying to reindex on an axis with duplicates\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3282\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mis_unique\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mindexer\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3283\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"cannot reindex from a duplicate axis\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3284\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3285\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mreindex\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtarget\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmethod\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlevel\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mlimit\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtolerance\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;31mValueError\u001b[0m: cannot reindex from a duplicate axis" ] } ], @@ -405,7 +287,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -420,34 +302,9 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "2020-08-19 09:05:15, INFO: Writing Network as Shapefile\n", - "2020-08-19 09:05:15, INFO: Renaming DBF Node Variables\n", - "2020-08-19 09:05:15, INFO: Renaming variables so that they are DBF-safe\n", - "2020-08-19 09:05:16, INFO: Renaming DBF Link Variables\n", - "2020-08-19 09:05:16, INFO: Renaming variables so that they are DBF-safe\n", - "2020-08-19 09:05:16, INFO: Writing Node Shapes:\n", - " - /Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/test_output_base_nodes.shp\n", - "2020-08-19 09:05:17, INFO: Writing Link Shapes:\n", - " - /Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/test_output_base_links.shp\n", - "2020-08-19 09:05:23, INFO: Writing Network as Shapefile\n", - "2020-08-19 09:05:23, INFO: Renaming DBF Node Variables\n", - "2020-08-19 09:05:23, INFO: Renaming variables so that they are DBF-safe\n", - "2020-08-19 09:05:24, INFO: Renaming DBF Link Variables\n", - "2020-08-19 09:05:24, INFO: Renaming variables so that they are DBF-safe\n", - "2020-08-19 09:05:24, INFO: Writing Node Shapes:\n", - " - /Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/test_output_build_nodes.shp\n", - "2020-08-19 09:05:25, INFO: Writing Link Shapes:\n", - " - /Users/wsp/Documents/GitHub/network_wrangler/notebook/../examples/stpaul/test_output_build_links.shp\n" - ] - } - ], + "outputs": [], "source": [ "base_m_net.write_roadway_as_shp(\n", " output_link_shp = (test_output_base_file + '_links.shp'),\n",