clean up dead code

This commit is contained in:
sneakers-the-rat 2024-10-17 22:06:46 -07:00
parent 421b2e2b01
commit fcd8b652ea
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
2 changed files with 0 additions and 22 deletions

View file

@ -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):
"""

View file

@ -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)