lsst.obs.base
20.0.0-67-g32d6278+0d86c2e7cd
|
Public Member Functions | |
def | instrumentClassName (self) |
def | instrumentClass (self) |
def | instrumentName (self) |
def | setUpClass (cls) |
def | setUp (self) |
def | tearDownClass (cls) |
def | verifyIngest (self, files=None, cli=False, fullCheck=False) |
def | checkRepo (self, files=None) |
def | testLink (self) |
def | testSymLink (self) |
def | testCopy (self) |
def | testHardLink (self) |
def | testInPlace (self) |
def | testFailOnConflict (self) |
def | testWriteCuratedCalibrations (self) |
def | testDefineVisits (self) |
Public Attributes | |
root | |
outputRun | |
Static Public Attributes | |
string | ingestDir = "" |
list | dataIds = [] |
string | file = "" |
string | rawIngestTask = "lsst.obs.base.RawIngestTask" |
curatedCalibrationDatasetTypes = None | |
defineVisitsTask = lsst.obs.base.DefineVisitsTask | |
dictionary | visits = {} |
Base class for tests of gen3 ingest. Subclass from this, then `unittest.TestCase` to get a working test suite.
Definition at line 43 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.checkRepo | ( | self, | |
files = None |
|||
) |
Check the state of the repository after ingest. This is an optional hook provided for subclasses; by default it does nothing. Parameters ---------- files : `list` [`str`], or None List of files to be ingested, or None to use ``self.file``
Definition at line 172 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.instrumentClass | ( | self | ) |
The instrument class.
Definition at line 93 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.instrumentClassName | ( | self | ) |
The fully qualified instrument class name. Returns ------- `str` The fully qualified instrument class name.
Definition at line 82 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.instrumentName | ( | self | ) |
The name of the instrument. Returns ------- `str` The name of the instrument.
Definition at line 98 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.setUp | ( | self | ) |
Definition at line 117 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.setUpClass | ( | cls | ) |
Definition at line 109 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.tearDownClass | ( | cls | ) |
Definition at line 122 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testCopy | ( | self | ) |
Definition at line 239 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testDefineVisits | ( | self | ) |
Definition at line 328 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testFailOnConflict | ( | self | ) |
Re-ingesting the same data into the repository should fail.
Definition at line 274 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testHardLink | ( | self | ) |
Definition at line 246 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testInPlace | ( | self | ) |
Test that files already in the directory can be added to the registry in-place.
Definition at line 254 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testLink | ( | self | ) |
Definition at line 231 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testSymLink | ( | self | ) |
Definition at line 235 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testWriteCuratedCalibrations | ( | self | ) |
Test that we can ingest the curated calibrations, and read them with `loadCamera` both before and after.
Definition at line 281 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.verifyIngest | ( | self, | |
files = None , |
|||
cli = False , |
|||
fullCheck = False |
|||
) |
Test that RawIngestTask ingested the expected files. Parameters ---------- files : `list` [`str`], or None List of files to be ingested, or None to use ``self.file`` fullCheck : `bool`, optional If `True`, read the full raw dataset and check component consistency. If `False` check that a component can be read but do not read the entire raw exposure. Notes ----- Reading all the ingested test data can be expensive. The code paths for reading the second raw are the same as reading the first so we do not gain anything by doing full checks of everything. Only read full pixel data for first dataset from file. Don't even do that if we are requested not to by the caller. This only really affects files that contain multiple datasets.
Definition at line 126 of file ingest_tests.py.
|
static |
Definition at line 62 of file ingest_tests.py.
|
static |
Definition at line 53 of file ingest_tests.py.
|
static |
Definition at line 67 of file ingest_tests.py.
|
static |
Definition at line 56 of file ingest_tests.py.
|
static |
Definition at line 48 of file ingest_tests.py.
lsst.obs.base.ingest_tests.IngestTestBase.outputRun |
Definition at line 119 of file ingest_tests.py.
|
static |
Definition at line 59 of file ingest_tests.py.
lsst.obs.base.ingest_tests.IngestTestBase.root |
Definition at line 111 of file ingest_tests.py.
|
static |
Definition at line 72 of file ingest_tests.py.