Skip to content

Commit

Permalink
Metar rewriting with new aviationweather.gov api
Browse files Browse the repository at this point in the history
  • Loading branch information
ysavary committed Nov 20, 2023
1 parent bef2bad commit 553e415
Show file tree
Hide file tree
Showing 12 changed files with 318 additions and 65,797 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ jobs:
uses: winds-mobi/winds-mobi-cicd/.github/workflows/test-python.yaml@main
with:
python_version: 3.10.11
poetry_version: 1.5.1
poetry_version: 1.7.1
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ FROM base AS python-dependencies

RUN apt-get update; \
apt-get --yes --no-install-recommends install build-essential libpq-dev libmariadb-dev curl
RUN curl -sSL https://install.python-poetry.org | python - --version 1.5.1
RUN curl -sSL https://install.python-poetry.org | python - --version 1.7.1

COPY pyproject.toml poetry.lock ./
RUN POETRY_VIRTUALENVS_IN_PROJECT=true /root/.local/bin/poetry install --only=main
Expand Down
1 change: 0 additions & 1 deletion admin_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def save_clusters(nb_clusters):
try:
bulk_operations = [UpdateMany({}, {"$set": {"clusters": []}})]
for n_clusters in reversed(range_clusters):

model = AgglomerativeClustering(linkage="ward", connectivity=None, n_clusters=n_clusters)
labels = model.fit_predict(X)

Expand Down
350 changes: 164 additions & 186 deletions poetry.lock

Large diffs are not rendered by default.

372 changes: 113 additions & 259 deletions providers/metar.py

Large diffs are not rendered by default.

Loading

0 comments on commit 553e415

Please sign in to comment.