Skip to content

Commit

Permalink
update dartmouth skiway identifier
Browse files Browse the repository at this point in the history
dhimmel committed Jan 14, 2025
1 parent 4e1d4a0 commit 68a1d2d
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions openskistats/openskimap_utils.py
Original file line number Diff line number Diff line change
@@ -401,6 +401,7 @@ def _clean_coordinates(
return clean_coords


# FIXME: ids are fragile, using the name as the identifier would be more robust
test_ski_area_ids = [
"8896cde00150e73de1f1237320c88767c91ce099", # Whaleback Mountain
"dc24f332f3117625dc09479b5d10cbb31a592be4", # Storrs Hill Ski Area
2 changes: 1 addition & 1 deletion openskistats/sunlight.py
Original file line number Diff line number Diff line change
@@ -177,7 +177,7 @@ def write_dartmouth_skiway_solar_irradiance() -> pl.DataFrame:
load_run_segments_pl(
run_filters=[
pl.col("ski_area_ids").list.contains(
"74e0060a96e0399ace1b1e5ef5af1e5197a19752" # Dartmouth Skiway
"61f381343fb56ded4e7f3742e56090e4453b66bf" # Dartmouth Skiway
)
]
)
2 changes: 1 addition & 1 deletion r/01.data.R
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ img_data_dir <- "../data/images/data"
runs <- arrow::read_parquet(file.path(data_dir, "runs.parquet"))
dartmouth <- runs |>
tidyr::unnest(ski_area_ids) |>
dplyr::filter(ski_area_ids == "74e0060a96e0399ace1b1e5ef5af1e5197a19752") |>
dplyr::filter(ski_area_ids == "61f381343fb56ded4e7f3742e56090e4453b66bf") |>
dplyr::select(run_id, run_name, run_difficulty, run_coordinates_clean)
dart <- dartmouth |>
dplyr::mutate(run_coordinates_clean = purrr::map(run_coordinates_clean, ~ dplyr::select(.x, -segment_hash))) |>

0 comments on commit 68a1d2d

Please sign in to comment.