Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions ocf_data_sampler/torch_datasets/pvnet_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
import logging
import os
import pickle
import warnings

import pandas as pd
import xarray as xr
from pydantic.warnings import UnsupportedFieldAttributeWarning
from torch.utils.data import Dataset
from typing_extensions import override

Expand Down Expand Up @@ -42,8 +40,6 @@
)
from ocf_data_sampler.utils import minutes, tensorstore_compute

# Ignore pydantic warning which doesn't cause an issue
warnings.filterwarnings("ignore", category=UnsupportedFieldAttributeWarning)

xr.set_options(keep_attrs=True)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
"dask",
"matplotlib",
"pvlib",
"pydantic",
"pydantic==2.5.3", # This can be unpinned once nowcasting_datamodel is removed from uk-pvnet-app
"pyproj",
"pyaml_env",
"pyresample",
Expand Down
Loading