Skip to content

Commit

Permalink
Merge pull request #877 from cal-itp/eric-housekeeping
Browse files Browse the repository at this point in the history
Eric housekeeping
  • Loading branch information
edasmalchi authored Sep 14, 2023
2 parents e43c43c + efb949c commit 8db008b
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 10,035 deletions.
3,377 changes: 0 additions & 3,377 deletions accessibility_report/accessibility_questions.ipynb

This file was deleted.

6 changes: 3 additions & 3 deletions ca_transit_speed_maps/build_speedmaps_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import datetime as dt

from calitp_data_analysis.tables import tbls
import shared_utils
from shared_utils import rt_dates, rt_utils

ANALYSIS_DATE = dt.date.fromisoformat(shared_utils.rt_dates.DATES['apr2023b'])
ANALYSIS_DATE = dt.date.fromisoformat(rt_dates.DATES['apr2023b'])
PROGRESS_PATH = f'./_rt_progress_{ANALYSIS_DATE}.parquet'

def build_speedmaps_index(analysis_date: dt.date) -> pd.DataFrame:
Expand Down Expand Up @@ -46,5 +46,5 @@ def build_speedmaps_index(analysis_date: dt.date) -> pd.DataFrame:

print(f'analysis date from shared_utils/rt_dates: {ANALYSIS_DATE}')
speedmaps_index = build_speedmaps_index(ANALYSIS_DATE)
speedmaps_index_joined = shared_utils.rt_utils.check_intermediate_data(speedmaps_index)
speedmaps_index_joined = rt_utils.check_intermediate_data(speedmaps_index)
speedmaps_index_joined.to_parquet(PROGRESS_PATH)
4 changes: 2 additions & 2 deletions ca_transit_speed_maps/check_test_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pandas as pd
import datetime as dt

import shared_utils
from shared_utils import rt_utils
from rt_analysis import rt_filter_map_plot
import tqdm
import warnings
Expand Down Expand Up @@ -41,7 +41,7 @@ def check_map_gen(row, pbar):

if __name__ == "__main__":

speedmaps_index_joined = shared_utils.rt_utils.check_intermediate_data(
speedmaps_index_joined = rt_utils.check_intermediate_data(
analysis_date = ANALYSIS_DATE)
# check if this stage needed
if speedmaps_index_joined.status.isin(['map_confirmed', 'map_failed', 'parser_failed']).all():
Expand Down
1 change: 0 additions & 1 deletion ca_transit_speed_maps/dev_signals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"\n",
"import os\n",
"os.environ[\"CALITP_BQ_MAX_BYTES\"] = str(800_000_000_000)\n",
"import shared_utils\n",
"\n",
"from calitp_data_analysis.tables import tbls\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions ca_transit_speed_maps/stage_run_portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
from siuba import *

import datetime as dt
import shared_utils
from rt_analysis import rt_parser
from shared_utils import rt_utils

import os

Expand Down Expand Up @@ -74,7 +74,7 @@ def deploy_portfolio():

if __name__ == "__main__":

speedmaps_index_joined = shared_utils.rt_utils.check_intermediate_data(
speedmaps_index_joined = rt_utils.check_intermediate_data(
analysis_date = ANALYSIS_DATE)
make_rt_site_yml(speedmaps_index_joined)
stage_portfolio()
Expand Down
Loading

0 comments on commit 8db008b

Please sign in to comment.