Skip to content

Commit 888c473

Browse files
author
tiffanychu90
committed
shared_utils to calitp_data_analysis for py_crow_flies/
1 parent c9b9427 commit 888c473

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

py_crow_flies/decay.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from dask import delayed, compute
1717
from loguru import logger
18-
from shared_utils import utils
18+
from calitp_data_analysis import utils
1919
from prep import GCS_FILE_PATH
2020

2121
fs = gcsfs.GCSFileSystem()

py_crow_flies/five_days_of_the_crow.ipynb

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"from siuba import *\n",
3232
"\n",
3333
"from tqdm.notebook import tqdm\n",
34-
"\n",
35-
"import shared_utils"
34+
"from calitp_data_analysis import geography_utils"
3635
]
3736
},
3837
{
@@ -268,7 +267,7 @@
268267
"outputs": [],
269268
"source": [
270269
"# Transform the grid points to your preferred CRS\n",
271-
"central = central.to_crs(shared_utils.geography_utils.CA_NAD83Albers).set_index('pointid')\n",
270+
"central = central.to_crs(geography_utils.CA_NAD83Albers).set_index('pointid')\n",
272271
"central = central >> select(-_.Point_ID)"
273272
]
274273
},

py_crow_flies/prep.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import sys
1313

1414
from loguru import logger
15-
from shared_utils import utils
15+
from calitp_data_analysis import utils
1616

1717
GCS_FILE_PATH = "gs://calitp-publish-data-analysis/py_crow_flies/"
1818
CRS = "EPSG:3857"

py_crow_flies/py_crow_flies.ipynb

+5-6
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"from siuba import *\n",
2222
"\n",
2323
"from tqdm.notebook import tqdm\n",
24-
"\n",
25-
"import shared_utils"
24+
"from calitp_data_analysis import utils"
2625
]
2726
},
2827
{
@@ -78,7 +77,7 @@
7877
"metadata": {},
7978
"outputs": [],
8079
"source": [
81-
"shared_utils.utils.geoparquet_gcs_export(central, crow_folder, 'CentralCal_POIs')"
80+
"utils.geoparquet_gcs_export(central, crow_folder, 'CentralCal_POIs')"
8281
]
8382
},
8483
{
@@ -98,7 +97,7 @@
9897
"metadata": {},
9998
"outputs": [],
10099
"source": [
101-
"shared_utils.utils.geoparquet_gcs_export(nor, crow_folder, 'NorCal_POIs')"
100+
"utils.geoparquet_gcs_export(nor, crow_folder, 'NorCal_POIs')"
102101
]
103102
},
104103
{
@@ -118,7 +117,7 @@
118117
"metadata": {},
119118
"outputs": [],
120119
"source": [
121-
"shared_utils.utils.geoparquet_gcs_export(so, crow_folder, 'SoCal_POIs')"
120+
"utils.geoparquet_gcs_export(so, crow_folder, 'SoCal_POIs')"
122121
]
123122
},
124123
{
@@ -138,7 +137,7 @@
138137
"metadata": {},
139138
"outputs": [],
140139
"source": [
141-
"shared_utils.utils.geoparquet_gcs_export(mo, crow_folder, 'Mojave_POIs')"
140+
"utils.geoparquet_gcs_export(mo, crow_folder, 'Mojave_POIs')"
142141
]
143142
},
144143
{

0 commit comments

Comments
 (0)