Skip to content

Commit

Permalink
refactor(datasets): Move NetCDFDataset to experimental (kedro-org#739)
Browse files Browse the repository at this point in the history
* Move NetCDFDataset to experimental

Signed-off-by: Ankita Katiyar <[email protected]>

* release notes and fix reqs

Signed-off-by: Ankita Katiyar <[email protected]>

* Docs test

Signed-off-by: Ankita Katiyar <[email protected]>

---------

Signed-off-by: Ankita Katiyar <[email protected]>
Signed-off-by: Merel Theisen <[email protected]>
  • Loading branch information
ankatiyar authored and merelcht committed Aug 27, 2024
1 parent 7fb97d2 commit 807fa43
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions kedro-datasets/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
| `langchain.ChatCohereDataset` | A dataset for loading a ChatCohere langchain model. | `kedro_datasets_experimental.langchain` |
| `langchain.OpenAIEmbeddingsDataset` | A dataset for loading a OpenAIEmbeddings langchain model. | `kedro_datasets_experimental.langchain` |
| `langchain.ChatOpenAIDataset` | A dataset for loading a ChatOpenAI langchain model. | `kedro_datasets_experimental.langchain` |
| `netcdf.NetCDFDataset` | A dataset for loading and saving "*.nc" files. | `kedro_datasets_experimental.netcdf` |
* `netcdf.NetCDFDataset` moved from `kedro_datasets` to `kedro_datasets_experimental`.
* Extended preview feature to `yaml.YAMLDataset`.

## Community contributions
Expand Down
1 change: 0 additions & 1 deletion kedro-datasets/docs/source/api/kedro_datasets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ kedro_datasets
kedro_datasets.json.JSONDataset
kedro_datasets.matlab.MatlabDataset
kedro_datasets.matplotlib.MatplotlibWriter
kedro_datasets.netcdf.NetCDFDataset
kedro_datasets.networkx.GMLDataset
kedro_datasets.networkx.GraphMLDataset
kedro_datasets.networkx.JSONDataset
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ kedro_datasets_experimental
kedro_datasets_experimental.langchain.ChatCohereDataset
kedro_datasets_experimental.langchain.ChatOpenAIDataset
kedro_datasets_experimental.langchain.OpenAIEmbeddingsDataset
kedro_datasets_experimental.netcdf.NetCDFDataset
File renamed without changes.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from s3fs import S3FileSystem
from xarray.testing import assert_equal

from kedro_datasets.netcdf import NetCDFDataset
from kedro_datasets_experimental.netcdf import NetCDFDataset

FILE_NAME = "test.nc"
MULTIFILE_NAME = "test*.nc"
Expand Down
12 changes: 6 additions & 6 deletions kedro-datasets/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ matlab = ["kedro-datasets[matlab-matlabdataset]"]
matplotlib-matplotlibwriter = ["matplotlib>=3.0.3, <4.0"]
matplotlib = ["kedro-datasets[matplotlib-matplotlibwriter]"]

netcdf-netcdfdataset = ["h5netcdf>=1.2.0","netcdf4>=1.6.4","xarray>=2023.1.0"]
netcdf = ["kedro-datasets[netcdf-netcdfdataset]"]

networkx-gmldataset = ["kedro-datasets[networkx-base]"]
networkx-graphmldataset = ["kedro-datasets[networkx-base]"]
networkx-jsondataset = ["kedro-datasets[networkx-base]"]
Expand Down Expand Up @@ -172,6 +169,8 @@ langchain-openaiembeddingsdataset = ["langchain-openai~=0.1.7"]
langchain-chatanthropicdataset = ["langchain-anthropic~=0.1.13", "langchain-community~=0.2.0"]
langchain-chatcoheredataset = ["langchain-cohere~=0.1.5", "langchain-community~=0.2.0"]
langchain = ["kedro-datasets[langchain-chatopenaidataset,langchain-openaiembeddingsdataset,langchain-chatanthropicdataset,langchain-chatcoheredataset ]"]
netcdf-netcdfdataset = ["h5netcdf>=1.2.0","netcdf4>=1.6.4","xarray>=2023.1.0"]
netcdf = ["kedro-datasets[netcdf-netcdfdataset]"]

# Docs requirements
docs = [
Expand Down Expand Up @@ -200,7 +199,6 @@ test = [
"geopandas>=0.6.0, <1.0",
"hdfs>=2.5.8, <3.0",
"holoviews>=1.13.0",
"h5netcdf>=1.2.0",
"ibis-framework[duckdb,examples]",
"import-linter[toml]==1.2.6",
"ipython>=7.31.1, <8.0",
Expand All @@ -214,7 +212,6 @@ test = [
"memory_profiler>=0.50.0, <1.0",
"moto==5.0.0",
"mypy~=1.0",
"netcdf4>=1.6.4",
"networkx~=2.4",
"opencv-python~=4.5.5.64",
"openpyxl>=3.0.3, <4.0",
Expand Down Expand Up @@ -273,6 +270,9 @@ experimental = [
"langchain-cohere",
"langchain-anthropic",
"langchain-community",
"h5netcdf>=1.2.0",
"netcdf4>=1.6.4",
"xarray>=2023.1.0",
]

# All requirements
Expand All @@ -294,7 +294,7 @@ version = {attr = "kedro_datasets.__version__"}
fail_under = 100
show_missing = true
# temporarily ignore kedro_datasets/__init__.py in coverage report
omit = ["tests/*", "kedro_datasets/holoviews/*", "kedro_datasets/netcdf/*", "kedro_datasets/snowflake/*", "kedro_datasets/tensorflow/*", "kedro_datasets/__init__.py", "kedro_datasets/conftest.py"]
omit = ["tests/*", "kedro_datasets/holoviews/*", "kedro_datasets/snowflake/*", "kedro_datasets/tensorflow/*", "kedro_datasets/__init__.py", "kedro_datasets/conftest.py"]
exclude_also = ["raise NotImplementedError", "if TYPE_CHECKING:"]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 807fa43

Please sign in to comment.