Skip to content

Commit

Permalink
Remove other redundant check from QPFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Aug 1, 2024
1 parent 08fefdf commit cb09cc1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/lsst/meas/pz/qp_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ def get_write_extension(self) -> str:
def read_from_local_file(
self, path: str, component: str | None = None, expected_size: int = -1
) -> Any:
pytype = self.file_descriptor.storageClass.pytype
if not issubclass(pytype, qp.Ensemble):
raise TypeError(f"Python type {pytype} does not seem to be a qp.Ensemble")
return qp.read(path) # type: ignore

def write_local_file(self, in_memory_dataset: Any, uri: ResourcePath) -> None:
Expand Down

0 comments on commit cb09cc1

Please sign in to comment.