DatasetTestHelper#
- class lsst.daf.butler.tests.DatasetTestHelper#
Bases:
objectHelper methods for Datasets.
Methods Summary
makeDatasetRef(datasetTypeName, dimensions, ...)Make a DatasetType and wrap it in a DatasetRef for a test.
Methods Documentation
- makeDatasetRef(datasetTypeName: str, dimensions: DimensionGroup | Iterable[str], storageClass: StorageClass | str, dataId: DataCoordinate | Mapping[str, Any], *, id: DatasetId | None = None, run: str | None = None, conform: bool = True) DatasetRef#
Make a DatasetType and wrap it in a DatasetRef for a test.
Parameters#
- datasetTypeName
str The name of the dataset type.
- dimensions
DimensionGrouporIterableofstr The dimensions to use for this dataset type.
- storageClass
StorageClassorstr The relevant storage class.
- dataId
DataCoordinateorMapping The data ID of this ref.
- id
DatasetIdorNone, optional The Id of this ref. Will be assigned automatically.
- run
strorNone, optional The run for this ref. Will be assigned a default value if
None.- conform
bool, optional Whther to force the dataID to be checked for conformity with the provided dimensions.
Returns#
- ref
DatasetRef The new ref.
- datasetTypeName