lsst.obs.base
20.0.0-54-gba713e9+a7d430d1e1
|
Public Member Functions | |
def | instrumentClassName (self) |
def | instrumentClass (self) |
def | instrumentName (self) |
def | setUp (self) |
def | tearDown (self) |
def | verifyIngest (self, files=None, cli=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 | |
Static Public Attributes | |
string | ingestDir = "" |
list | dataIds = [] |
string | file = "" |
string | rawIngestTask = "lsst.obs.base.RawIngestTask" |
curatedCalibrationDatasetTypes = None | |
defineVisitsTask = lsst.obs.base.DefineVisitsTask | |
dictionary | visits = {} |
string | outputRun = "raw" |
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 152 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.instrumentClass | ( | self | ) |
The instrument class.
Definition at line 97 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 86 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 102 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.setUp | ( | self | ) |
Definition at line 112 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.tearDown | ( | self | ) |
Definition at line 120 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testCopy | ( | self | ) |
Definition at line 210 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testDefineVisits | ( | self | ) |
Definition at line 287 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 233 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testHardLink | ( | self | ) |
Definition at line 214 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 222 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testLink | ( | self | ) |
Definition at line 202 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.testSymLink | ( | self | ) |
Definition at line 206 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 240 of file ingest_tests.py.
def lsst.obs.base.ingest_tests.IngestTestBase.verifyIngest | ( | self, | |
files = None , |
|||
cli = 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``
Definition at line 124 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.
|
static |
Definition at line 80 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 114 of file ingest_tests.py.
|
static |
Definition at line 72 of file ingest_tests.py.