Skip to content

Commit

Permalink
chore: Flatten out PKG_PATH data
Browse files Browse the repository at this point in the history
  • Loading branch information
r-leyshon committed Jul 3, 2024
1 parent d3695f5 commit 9670407
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 213 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/assess_gtfs/gtfs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def filter_gtfs(

def bbox_filter_gtfs(
in_pth: Union[pathlib.Path, str] = (
os.path.join(PKG_PATH, "data", "gtfs", "newport-20230613_gtfs.zip"),
os.path.join(PKG_PATH, "data", "newport-20230613_gtfs.zip"),
),
out_pth: Union[pathlib.Path, str] = pathlib.Path(
here("data/external/filtered_gtfs.zip")
Expand All @@ -173,7 +173,7 @@ def bbox_filter_gtfs(
----------
in_pth : Union[pathlib.Path, str], optional
Path to the unfiltered GTFS feed. Defaults to
os.path.join(PKG_PATH, "data", "gtfs", "newport-20230613_gtfs.zip").
os.path.join(PKG_PATH, "data", "newport-20230613_gtfs.zip").
out_pth : Union[pathlib.Path, str], optional
Path to write the filtered feed to. Defaults to
here("data/external/filtered_gtfs.zip").
Expand Down
2 changes: 1 addition & 1 deletion src/assess_gtfs/report/report_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _set_up_report_dir(
except FileExistsError:
pass
styles_loc = os.path.join(
PKG_PATH, "data", "gtfs", "report", "css_styles", "styles.css"
PKG_PATH, "data", "report", "css_styles", "styles.css"
)
shutil.copy(
src=styles_loc,
Expand Down
4 changes: 2 additions & 2 deletions src/assess_gtfs/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def scrape_route_type_lookup(

def get_saved_route_type_lookup(
path: Union[str, pathlib.Path] = pathlib.Path(
os.path.join(PKG_PATH, "data", "gtfs", "route_lookup.pkl")
os.path.join(PKG_PATH, "data", "route_lookup.pkl")
)
) -> pd.DataFrame:
"""Get the locally saved route type lookup as a dataframe.
Expand All @@ -165,7 +165,7 @@ def get_saved_route_type_lookup(
----------
path : Union[str, pathlib.Path], optional
The path to the route type lookup,
defaults to os.path.join(PKG_PATH, "data", "gtfs", "route_lookup.pkl")
defaults to os.path.join(PKG_PATH, "data", "route_lookup.pkl")
Returns
-------
Expand Down
3 changes: 0 additions & 3 deletions src/assess_gtfs/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,6 @@ def html_report(
os.path.join(
PKG_PATH,
"data",
"gtfs",
"report",
"html_templates",
"evaluation_template.html",
Expand Down Expand Up @@ -1555,7 +1554,6 @@ def html_report(
os.path.join(
PKG_PATH,
"data",
"gtfs",
"report",
"html_templates",
"stops_template.html",
Expand Down Expand Up @@ -1601,7 +1599,6 @@ def html_report(
os.path.join(
PKG_PATH,
"data",
"gtfs",
"report",
"html_templates",
"summary_template.html",
Expand Down

0 comments on commit 9670407

Please sign in to comment.