Skip to content

Commit

Permalink
geoportal export for oct2024
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanychu90 committed Oct 18, 2024
1 parent 95fc854 commit 329dae7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions open_data/update_data_dict.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
Go through each dataset we publish from catalog.yml.
Compare it to data_dictionary.yml to double
check that all the columns have an entry.
This script is useful when we make adjustments
to datasets we want to publish, and we
need to add a corresponding entry to data_dictionary.yml,
which is used to update column definitions in ESRI.
"""
import geopandas as gpd
import intake
import sys
Expand All @@ -22,6 +32,7 @@ def unpack_list_of_tables_as_dict(list_of_dict: list) -> dict:

return dict_of_tables


def new_columns_for_data_dict(
open_data_catalog: Union[str, Path] = Path("catalog.yml"),
data_dict_file: Union[str, Path] = Path("data_dictionary.yml")
Expand Down
4 changes: 2 additions & 2 deletions open_data/update_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
DATA_DICT_YML = Path("data_dictionary.yml")

RUN_ME = [
"ca_hq_transit_areas",
"ca_hq_transit_stops",
#"ca_hq_transit_areas",
#"ca_hq_transit_stops",
"ca_transit_routes",
"ca_transit_stops",
"speeds_by_stop_segments",
Expand Down

0 comments on commit 329dae7

Please sign in to comment.