Example #1
0
class AutoFigureTest(unittest.TestCase):
    def setUp(self):
        man = isotope_manager_factory()
        self.processor = Processor(bind=False, db=man.db)

    def testGetBlanks(self):
        ans = self.processor.load_series('blank_unknown',
                                         'jan',
                                         'Fusions Diode',
                                         weeks=8,
                                         hours=0)

        self.assertEqual(len(ans), 1)

    def testGetBlanks2(self):
        ans = self.processor.load_series('blank_unknown',
                                         'jan',
                                         'Fusions CO2',
                                         weeks=10,
                                         hours=0)
        ai = ans[0]
        self.assertEqual(ai.extract_device, 'Fusions CO2')
Example #2
0
def get_test_an():
    class Record(object):
        analysis_type = 'unknown'

        def __init__(self, uuid):
            self.uuid = uuid

    from pychron.processing.processor import Processor

    man = Processor(bind=False, connect=False)
    man.db.trait_set(name='pychrondata_dev',
                     kind='mysql',
                     username='******',
                     password='******')
    man.connect()

    #pychrondata_dev
    uuids = ['e1a893fd-8c1a-427f-8b2f-8135c2471902',
             'f51a8ed2-5ab3-4df7-a7a9-84b3ea8a1555',
             'b86f523f-ac9c-4e77-b347-c404784b407a',
             'c6846df2-b808-4aab-8018-2c747c83aa9b']

    return man.make_analysis(Record(uuid=uuids[0]))
Example #3
0
class AutoFigureTest(unittest.TestCase):
    def setUp(self):
        man = isotope_manager_factory()
        self.processor = Processor(bind=False,
                                   db=man.db
        )

    def testGetBlanks(self):
        ans = self.processor.load_series('blank_unknown',
                                         'jan',
                                         'Fusions Diode',
                                         weeks=8,
                                         hours=0)

        self.assertEqual(len(ans), 1)

    def testGetBlanks2(self):
        ans = self.processor.load_series('blank_unknown',
                                         'jan',
                                         'Fusions CO2',
                                         weeks=10,
                                         hours=0)
        ai = ans[0]
        self.assertEqual(ai.extract_device, 'Fusions CO2')
Example #4
0
 def _processor_factory(self):
     processor = self._processor
     if not processor:
         processor = Processor(application=self.application)
         self._processor = processor
     return processor
Example #5
0
 def setUp(self):
     man = isotope_manager_factory()
     self.processor = Processor(bind=False, db=man.db)
Example #6
0
 def _processor_factory(self):
     return Processor(application=self.application)
Example #7
0
 def setUp(self):
     man = isotope_manager_factory()
     self.processor = Processor(bind=False,
                                db=man.db
     )