|
lsst.obs.base
20.0.0-19-g935fffe
|
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 42 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 151 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.instrumentClass | ( | self | ) |
The instrument class.
Definition at line 96 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 85 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 101 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.setUp | ( | self | ) |
Definition at line 111 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.tearDown | ( | self | ) |
Definition at line 119 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.testCopy | ( | self | ) |
Definition at line 212 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.testDefineVisits | ( | self | ) |
Definition at line 257 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 235 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.testHardLink | ( | self | ) |
Definition at line 216 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 224 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.testLink | ( | self | ) |
Definition at line 204 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.testSymLink | ( | self | ) |
Definition at line 208 of file ingest_tests.py.
| def lsst.obs.base.ingest_tests.IngestTestBase.testWriteCuratedCalibrations | ( | self | ) |
Test that we can ingest the curated calibrations
Definition at line 242 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 123 of file ingest_tests.py.
|
static |
Definition at line 61 of file ingest_tests.py.
|
static |
Definition at line 52 of file ingest_tests.py.
|
static |
Definition at line 66 of file ingest_tests.py.
|
static |
Definition at line 55 of file ingest_tests.py.
|
static |
Definition at line 47 of file ingest_tests.py.
|
static |
Definition at line 79 of file ingest_tests.py.
|
static |
Definition at line 58 of file ingest_tests.py.
| lsst.obs.base.ingest_tests.IngestTestBase.root |
Definition at line 113 of file ingest_tests.py.
|
static |
Definition at line 71 of file ingest_tests.py.
1.8.18