RoundtripNdf#

class lsst.images.tests.RoundtripNdf(original: T, storage_class: str | None = None, recipe: str | None = None, **kwargs: Any)#

Bases: RoundtripBase, Generic

Attributes Summary

filename

The name of the file the object was written to.

serialized

The serialization model for this object (serialization.ArchiveTree).

Methods Summary

get([component, storageClass])

Perform a partial read.

inspect()

Open the NDF file with h5py.

Attributes Documentation

filename#

The name of the file the object was written to.

serialized#

The serialization model for this object (serialization.ArchiveTree).

Methods Documentation

get(component: str | None = None, storageClass: str | None = None, **kwargs: Any) Any#

Perform a partial read.

Parameters#

component

Component to read instead of the main object. This requires the roundtrip to use a butler; pytest.skip is called otherwise. Place calls to this method in a dedicated test function that contains only component-read assertions, so the skip does not suppress unrelated always-run assertions in other test functions.

storageClass

Override storage class name to affect the type returned by the get. Only used if a butler is active.

**kwargs

Keyword arguments either passed directly to read_archive or used as parameters for a get.

Return#

object

Result of the partial read.

inspect() h5py.File#

Open the NDF file with h5py.