diff --git a/src/numpydantic/interface/hdf5.py b/src/numpydantic/interface/hdf5.py index 25757c3..d243233 100644 --- a/src/numpydantic/interface/hdf5.py +++ b/src/numpydantic/interface/hdf5.py @@ -304,7 +304,6 @@ class H5Proxy: return self._h5arraypath == other._h5arraypath else: return False - # raise ValueError("Can only compare equality of two H5Proxies") def open(self, mode: str = "r") -> "h5py.Dataset": """ @@ -335,25 +334,6 @@ class H5Proxy: v = np.array(v).astype("S32") return v - # @classmethod - # def __get_pydantic_core_schema__( - # cls, source_type: Any, handler: GetCoreSchemaHandler - # ) -> CoreSchema: - # return cls._make_pydantic_schema() - - # file: Union[Path, str] - # """Location of HDF5 file""" - # path: str - # """Path within the HDF5 file""" - # field: Optional[Union[str, List[str]]] = None - # """Refer to a specific field within a compound dtype""" - # } - # ) - # - - # - # @model_serializer(when_used="json") - class H5Interface(Interface): """ diff --git a/src/numpydantic/ndarray.py b/src/numpydantic/ndarray.py index 297c442..fa0fdc9 100644 --- a/src/numpydantic/ndarray.py +++ b/src/numpydantic/ndarray.py @@ -13,7 +13,6 @@ Extension of nptyping NDArray for pydantic that allows for JSON-Schema serializa """ -import pdb from typing import TYPE_CHECKING, Any, Literal, Tuple, get_origin import numpy as np @@ -202,7 +201,6 @@ class NDArray(NPTypingType, metaclass=NDArrayMeta): cls, schema: core_schema.CoreSchema, handler: GetJsonSchemaHandler ) -> core_schema.JsonSchema: shape, dtype = cls.__args__ - pdb.set_trace() json_schema = handler(schema["metadata"]) json_schema = handler.resolve_ref_schema(json_schema)