mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-14 18:54:28 +00:00
clean up dead code
This commit is contained in:
parent
421b2e2b01
commit
fcd8b652ea
2 changed files with 0 additions and 22 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue