コード例 #1
0
 def setUp(self):
     super(ReprocessorTest, self).setUp()
     self.pipeline.conn.close()
     self.pipeline = Reprocessor(custom_cm=self.cm, database='test')
コード例 #2
0
ファイル: reprocessor.py プロジェクト: jjdmol/LOFAR
 def setUp(self):
     super(ReprocessorTest, self).setUp()
     self.pipeline.conn.close()
     self.pipeline = Reprocessor(custom_cm=self.cm, database='test')
コード例 #3
0
class ReprocessorTest(PipelineGeneralTest):
    """
    """
    def setUp(self):
        super(ReprocessorTest, self).setUp()
        self.pipeline.conn.close()
        self.pipeline = Reprocessor(custom_cm=self.cm, database='test')

    def test_simple(self):
        parset = GSMParset('tests/pipeline1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image2.parset')
        self.pipeline.run_parset(parset)
        self.check_datapoints()
        self.pipeline.reprocess_image(2)
        self.pipeline.reprocess_image(2)

    def test_full(self):
        parset = GSMParset('tests/pipeline1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image2.parset')
        self.pipeline.run_parset(parset)
        self.check_datapoints()
        self.pipeline.full_reprocess_image(2, GSMParset('tests/image2.parset'))
コード例 #4
0
ファイル: reprocessor.py プロジェクト: jjdmol/LOFAR
class ReprocessorTest(PipelineGeneralTest):
    """
    """
    def setUp(self):
        super(ReprocessorTest, self).setUp()
        self.pipeline.conn.close()
        self.pipeline = Reprocessor(custom_cm=self.cm, database='test')

    def test_simple(self):
        parset = GSMParset('tests/pipeline1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image2.parset')
        self.pipeline.run_parset(parset)
        self.check_datapoints()
        self.pipeline.reprocess_image(2)
        self.pipeline.reprocess_image(2)

    def test_full(self):
        parset = GSMParset('tests/pipeline1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image1.parset')
        self.pipeline.run_parset(parset)
        parset = GSMParset('tests/image2.parset')
        self.pipeline.run_parset(parset)
        self.check_datapoints()
        self.pipeline.full_reprocess_image(2, GSMParset('tests/image2.parset'))