DatasetTestHelper¶
- class lsst.daf.butler.tests.DatasetTestHelper¶
Bases:
object
Helper 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 | DimensionGraph | Iterable[str | Dimension], 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
DimensionGroup
orIterable
ofstr
orDimension
The dimensions to use for this dataset type.
- storageClass
StorageClass
orstr
The relevant storage class.
- dataId
DataCoordinate
orMapping
The data ID of this ref.
- id
DatasetId
orNone
, optional The Id of this ref. Will be assigned automatically.
- run
str
orNone
, 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.
- datasetTypeName
- Returns:
- ref
DatasetRef
The new ref.
- ref