Skip to content

Commit

Permalink
openskistats github repo rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel committed Nov 18, 2024
1 parent 86de344 commit 1eb426e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions ski_bearings/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion ski_bearings/openskimap_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
Expand Down
2 changes: 1 addition & 1 deletion ski_bearings/tests/test_bearing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1eb426e

Please sign in to comment.