Skip to content

Commit

Permalink
Rename _types module to cat (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 authored Oct 15, 2021
1 parent 226e59c commit dce1b90
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion intake_esm/_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pandas as pd

if typing.TYPE_CHECKING:
from ._types import QueryModel
from .cat import QueryModel

import warnings

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion intake_esm/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from fastprogress.fastprogress import progress_bar
from intake.catalog import Catalog

from ._types import ESMCatalogModel
from .cat import ESMCatalogModel
from .derived import DerivedVariableRegistry, default_registry
from .source import ESMDataSource

Expand Down
2 changes: 1 addition & 1 deletion intake_esm/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import xarray as xr
from intake.source.base import DataSource, Schema

from ._types import Aggregation, DataFormat
from .cat import Aggregation, DataFormat
from .utils import INTAKE_ESM_ATTRS_PREFIX, INTAKE_ESM_DATASET_KEY, INTAKE_ESM_VARS_KEY


Expand Down
2 changes: 1 addition & 1 deletion tests/test_types.py → tests/test_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pydantic
import pytest

from intake_esm._types import Assets, ESMCatalogModel, QueryModel
from intake_esm.cat import Assets, ESMCatalogModel, QueryModel

from .utils import (
catalog_dict_records,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def funcs(ds):
def test_catalog_init(capsys, obj, sep, read_csv_kwargs):
"""Test that the catalog can be initialized."""
cat = intake.open_esm_datastore(obj, sep=sep, read_csv_kwargs=read_csv_kwargs)
assert isinstance(cat.esmcat, intake_esm._types.ESMCatalogModel)
assert isinstance(cat.esmcat, intake_esm.cat.ESMCatalogModel)
assert isinstance(cat.df, pd.DataFrame)
assert len(cat) > 0

Expand Down
2 changes: 1 addition & 1 deletion tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

from intake_esm._search import is_pattern, search, search_apply_require_all_on
from intake_esm._types import QueryModel
from intake_esm.cat import QueryModel


@pytest.mark.parametrize(
Expand Down

0 comments on commit dce1b90

Please # to comment.