Skip to content

Commit f49770f

Browse files
authored
Merge pull request #1493 from cal-itp/more-speedmaps-sso
rerun speeds pipeline with sso auth, rebuild speedmaps
2 parents 174f74c + 90102a0 commit f49770f

File tree

160 files changed

+313
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+313
-273
lines changed

_shared_utils/shared_utils/dask_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@
77
import dask_geopandas as dg
88
import gcsfs
99
import geopandas as gpd
10+
import google.auth
1011
import pandas as pd
1112
from calitp_data_analysis import utils
1213
from dask import compute, delayed
1314
from dask.delayed import Delayed # type hint
1415
from shared_utils import time_helpers
1516

17+
credentials, project = google.auth.default()
18+
1619
fs = gcsfs.GCSFileSystem()
1720

1821

@@ -127,8 +130,7 @@ def import_df_func(
127130
"""
128131
if data_type == "gdf":
129132
df = gpd.read_parquet(
130-
f"{path}_{one_date}.parquet",
131-
**kwargs,
133+
f"{path}_{one_date}.parquet", **kwargs, storage_options={"token": credentials.token}
132134
).drop_duplicates()
133135

134136
else:

ca_transit_speed_maps/stage_run_portfolio.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,11 @@ def stage_portfolio():
6464
def deploy_portfolio():
6565

6666
os.chdir('/home/jovyan/data-analyses')
67-
# os.system('cp -r portfolio/rt/_build/html/* portfolio/index/rt/')
6867
os.system('python3 portfolio/portfolio.py build rt --no-execute-papermill --deploy')
69-
# print('check draft URL for RT site, then run python portfolio/portfolio.py index --deploy')
70-
# print('after that, check draft URL for index, rerun last with --prod')
71-
# os.system('netlify deploy --site=cal-itp-data-analyses --dir=portfolio/rt/_build/html/ --alias=rt')
7268

7369
if __name__ == "__main__":
7470

7571
speedmaps_index_joined = pd.read_parquet(PROGRESS_PATH)
7672
make_rt_site_yml(speedmaps_index_joined)
7773
stage_portfolio()
78-
# deploy_portfolio()
74+
deploy_portfolio()

gtfs_funnel/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ monthly_scheduled_data:
3939
python concatenate_monthly_scheduled_service.py
4040

4141
funnel_gtfs_single_day:
42-
# make download_gtfs_data
43-
# make preprocess_schedule_vp_dependency
44-
# make preprocess_vp
42+
make download_gtfs_data
43+
make preprocess_schedule_vp_dependency
44+
make preprocess_vp
4545
make preprocess_schedule_only
4646
make timeseries_preprocessing
4747
#make monthly_scheduled_data
4848

4949
all:
50-
# make funnel_gtfs_single_day
50+
make funnel_gtfs_single_day
5151
# update open_data/update_vars.py
52-
# cd ../open_data/ && make create_gtfs_schedule_geospatial_open_data -f Makefile
52+
cd ../open_data/ && make create_gtfs_schedule_geospatial_open_data -f Makefile
5353
# update high_quality_transit_areas/update_vars.py
5454
cd ../high_quality_transit_areas/ && make hqta_data -f Makefile
5555
# update rt_segment_speeds/segment_speed_utils/project_vars.py
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:36e4e70ea0cbd86e3bd14f012bfb54d9c514c4292ebda30125e79b0662015ba1
3-
size 66406
2+
oid sha256:dc057840975607a8c8f7fba7147c6f67079ac78ab3fe6d3be4e6e0755cab7526
3+
size 66281
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:8a717c6446637eeea3915cfaeec9ac8fa7092d8870ea511473059cd591f1be21
3-
size 66404
2+
oid sha256:38b0c766f0c5f13cedf335699343329f84bcbff1fdfd7a59ce0126fb0123901f
3+
size 66285
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:c52d6413be2e4beb9e9e6e7db7af60e169c9a7a93999e016f5a3dacce1530f00
3-
size 66979
2+
oid sha256:7f549c61e7f69e8ba9acac1f0448a72e0aec628cc2eed29e0cd492904f9cc48c
3+
size 66859
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:f8e2000726e8c91c7f2a64aacc5399817850c359e0470748622bb5a94e0f8559
3-
size 63106
2+
oid sha256:b25c37efd45b50db96aaddd7e8a6c00a699ce459a57bb0794490e4bdc7186c64
3+
size 63005
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:cf5db526f5ed6cf60f83ef5b82ab24028847945fb68fbd797279d65a9f092d7e
3-
size 66950
2+
oid sha256:80e286fafad878f68e11133a4625e291d3dfe37c6e02eec90897df6f57b2a2fd
3+
size 66853
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:900b477c8f73c7889ce920c92047211958d8421cff8bfd3bc3576ba0407b8771
3-
size 63430
2+
oid sha256:c9d143fe4cb0091dbab5e540beeeb8ceb7f7819354e30a87a7f32b079c9999f0
3+
size 63384
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:a604a5bafd1f62ddddadec8a32456de95bdcf7758d2573fbf8bf715db093386a
3-
size 63306
2+
oid sha256:4ddd95be419875ba25ceeb057ad7a8b60f2ce3e879d830ad5e3583288d1e3d0a
3+
size 63189

0 commit comments

Comments
 (0)