Skip to content

Commit

Permalink
chore: change some module name
Browse files Browse the repository at this point in the history
Signed-off-by: develop-cs <[email protected]>
  • Loading branch information
develop-cs committed Dec 17, 2024
1 parent ff73ea0 commit 1531b68
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

jobs:
verify:
name: Apply pre-commit hooks and launch tests
name: Pre-commit hooks and Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
3 changes: 1 addition & 2 deletions src/meteole/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

from meteole._arome import AromeForecast
from meteole._arpege import ArpegeForecast
from meteole._client import MeteoFranceClient
from meteole._vigilance import Vigilance

__all__ = ["AromeForecast", "ArpegeForecast", "MeteoFranceClient", "Vigilance"]
__all__ = ["AromeForecast", "ArpegeForecast", "Vigilance"]

__version__ = version("meteole")

Expand Down
5 changes: 3 additions & 2 deletions src/meteole/_vigilance.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
import matplotlib.pyplot as plt
import pandas as pd

from meteole import _client, const
from meteole import const
from meteole.client import MeteoFranceClient
from meteole.errors import MissingDataError

logger = logging.getLogger(__name__)


class Vigilance(_client.MeteoFranceClient):
class Vigilance(MeteoFranceClient):
"""Wrapper around the meteo-France API for the vigilance data.
Ressources are:
- textesvigilance
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/meteole/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
import os
import shutil
import tempfile
from abc import abstractmethod
from abc import ABC, abstractmethod
from pathlib import Path

import pandas as pd
import xarray as xr
import xmltodict

from meteole import const
from meteole._client import MeteoFranceClient
from meteole.client import MeteoFranceClient
from meteole.errors import MissingDataError

logger = logging.getLogger(__name__)


class Forecast(MeteoFranceClient):
class Forecast(ABC, MeteoFranceClient):
"""
Provides a unified interface to query AROME and ARPEGE endpoints
Expand Down
4 changes: 2 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from meteole._client import MeteoFranceClient
from meteole.client import MeteoFranceClient


def test_init_with_api_key():
Expand All @@ -19,7 +19,7 @@ def test_init_with_token():
assert api.application_id is None


@patch("meteole._client.MeteoFranceClient.connect")
@patch("meteole.client.MeteoFranceClient.connect")
def test_init_with_application_id(mock_connect):
api = MeteoFranceClient(application_id="dummy_app_id")
assert api.application_id == "dummy_app_id"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def test_validate_parameters(self, mock_get_capabilities):
arpege_forecast._validate_parameters()

@patch("meteole._arpege.ArpegeForecast.get_capabilities")
@patch("meteole._client.MeteoFranceClient.connect")
@patch("meteole.client.MeteoFranceClient.connect")
def test_entry_point(self, mock_MeteoFranceClient_connect, mock_get_capabilities):
territory = "EUROPE"
arpege_forecast = ArpegeForecast(territory=territory)
Expand Down

0 comments on commit 1531b68

Please sign in to comment.