From 1eb426e463bb915bb55683cefe8c6f565353c84f Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Sun, 17 Nov 2024 22:08:47 -0500 Subject: [PATCH] openskistats github repo rename --- README.md | 8 +++++--- pyproject.toml | 4 ++-- ski_bearings/analyze.py | 4 ++-- ski_bearings/openskimap_utils.py | 2 +- ski_bearings/tests/test_bearing.py | 2 +- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4f4e2caece..2faa47f2aa 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ -# Ski Run Bearings / Trail Orientation / Aspect +# OpenSkiStats: Shredding Data Like Powder -[![Test Suite CI Status](https://github.com/dhimmel/ski-bearing-stats/actions/workflows/tests.yaml/badge.svg?branch=main&event=push)](https://github.com/dhimmel/ski-bearing-stats/actions/workflows/tests.yaml) +[![Test Suite CI Status](https://github.com/dhimmel/openskistats/actions/workflows/tests.yaml/badge.svg?branch=main&event=push)](https://github.com/dhimmel/openskistats/actions/workflows/tests.yaml) > [!IMPORTANT] > This project is currently under heavy development and is not yet ready for public consumption. > If you happen to locate the results of the analyses in the meantime, > please do not disseminate them before contacting the authors. -WIP Ski Roses +This project generates statistics on downhill ski slopes and areas from around the globe powered by the underlying OpenSkiMap/OpenStreetMap data. +The first application is the creation of roses showing the compass orientations of ski areas. ## Development @@ -80,6 +81,7 @@ List of related webpages: - https://geoffboeing.com/2018/07/comparing-city-street-orientations/ - https://verticalfeet.com/ - https://en.wikipedia.org/wiki/Comparison_of_North_American_ski_resorts +- https://www.nsaa.org/NSAA/Media/Industry_Stats.aspx ## Wild Ideas diff --git a/pyproject.toml b/pyproject.toml index 7f8315d2d7..2b3f23e3cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [tool.poetry] name = "ski_bearings" version = "0.1.0" -description = "ski area aspects" +description = "OpenSkiStats: Shredding Data Like Powder" authors = ["Daniel Himmelstein"] readme = "README.md" -repository = "https://github.com/dhimmel/ski-bearing-stats" +repository = "https://github.com/dhimmel/openskistats" [tool.poetry.scripts] ski_bearings = "ski_bearings.commands:Commands.command" diff --git a/ski_bearings/analyze.py b/ski_bearings/analyze.py index 0edcd4b421..ba7c22f8c0 100644 --- a/ski_bearings/analyze.py +++ b/ski_bearings/analyze.py @@ -314,7 +314,7 @@ def ski_rose_the_world(min_combined_vertical: int = 10_000) -> pl.DataFrame: filename=path, metadata={ "Title": "Ski Roses of the World: Downhill Ski Trail Orientations", - "Author": "https://github.com/dhimmel/ski-bearing-stats", + "Author": "https://github.com/dhimmel/openskistats", }, ) grouping_col_to_stats = { @@ -397,7 +397,7 @@ def create_ski_area_roses(overwrite: bool = False) -> None: transparent=True, metadata={ "Title": "Ski Roses of the World: Downhill Ski Trail Orientations", - "Creator": "https://github.com/dhimmel/ski-bearing-stats", + "Creator": "https://github.com/dhimmel/openskistats", }, ) matplotlib.pyplot.close(fig) diff --git a/ski_bearings/openskimap_utils.py b/ski_bearings/openskimap_utils.py index b5a881fe65..435c627fc5 100644 --- a/ski_bearings/openskimap_utils.py +++ b/ski_bearings/openskimap_utils.py @@ -44,7 +44,7 @@ def download_openskimap_geojson(name: Literal["runs", "ski_areas", "lifts"]) -> path.parent.mkdir(exist_ok=True) logging.info(f"Downloading {url} to {path}") headers = { - "From": "https://github.com/dhimmel/ski-bearing-stats", + "From": "https://github.com/dhimmel/openskistats", "Referer": "https://openskimap.org/", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36", "sec-ch-ua": '"Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"', diff --git a/ski_bearings/tests/test_bearing.py b/ski_bearings/tests/test_bearing.py index 12472f1ce4..74d95d3082 100644 --- a/ski_bearings/tests/test_bearing.py +++ b/ski_bearings/tests/test_bearing.py @@ -143,7 +143,7 @@ def test_get_bearing_summary_stats(param: BearingSummaryStatsPytestParam) -> Non def test_get_bearing_summary_stats_repeated_aggregation() -> None: """ - https://github.com/dhimmel/ski-bearing-stats/issues/1 + https://github.com/dhimmel/openskistats/issues/1 """ analyze_all_ski_areas_polars() # aggregate all runs at once