Пример #1
0
    def setUpClass(cls):
        cls.sample_id = 'AF-72'
        cls.analysis_id = 0

        p1 = '../data/autoupdate_AF_72_7.875.txt'
        p1 = '../data/autoupdate_AF_72_7.875.25.txt'
        p2 = '../data/autoupdate_AF_72_8.03b.txt'
        cls.parsers = {}
        for k, p in (('7.875', p1), ('8.03b', p2)):
            pa = AutoupdateParser()
            pa.parse(p)
            cls.parsers[k] = pa
Пример #2
0
    def setUpClass(cls):
        # cls.isotope_man = isotope_manager_factory(name='pychrondata_minnabluff')
        #cls.isotope_man.db.connect()
        man = ISOTOPE_MANAGER
        db = man.db

        # cls.sample_id = 'AF-146'
        # sid = 'MB06-826a'
        #
        # with db.session_ctx():
        #     ans, tc = db.get_sample_analyses([sid, ], ['Minna Bluff'])
        #
        #     ai = next((a for a in ans if a.aliquot==2), None)
        #     an = man.make_analysis(ai, unpack=False, calculate_age=True)
        #     cls.analysis = an

        cls.sample_id = 'AF-72'
        sid = 'MB06-674'
        with db.session_ctx():
            ans, tc = db.get_sample_analyses([sid, ], ['Minna Bluff'])

            an = man.make_analysis(ans[cls.analysis_id], unpack=True, calculate_age=True)
            # ai = next((a for a in ans if a.aliquot==2), None)
            # an = man.make_analysis(ai, unpack=False, calculate_age=True)

            cls.analysis = an

        p = '../data/autoupdate_AF_72_1.txt'
        p = '../data/autoupdate_AF_72_7.875.25.txt'
        # p = '../data/autoupdate_AF_72_7.875.txt'
        # p = '../data/autoupdate_AF_72_8.03b.txt'
        # p = '../data/autoupdate_AF_146_7.875.txt'
        cls.parser = AutoupdateParser()
        cls.parser.parse(p)
Пример #3
0
    def setUpClass(cls):
        cls.isotope_man = isotope_manager_factory(
            name='pychrondata_minnabluff')
        cls.isotope_man.db.connect()
        man = cls.isotope_man
        db = man.db

        cls.sample_id = sid = 'AF-72'
        cls.analysis_id = aid = string.ascii_uppercase.index('A')

        with db.session_ctx():
            ans, tc = db.get_sample_analyses([
                sid,
            ], ['Minna Bluff'])
            an = man.make_analysis(ans[aid])

            cls.analysis = an

        p = '../data/autoupdate_AF_72_1'
        cls.parser = AutoupdateParser()
        cls.parser.parse(p)
Пример #4
0
import math
import os

from pychron.core.ui import set_toolkit

set_toolkit('qt4')

from pychron.processing.autoupdate_parser import AutoupdateParser
from test.database import isotope_manager_factory

isotope_man=isotope_manager_factory(name='pychron_dataset')
isotope_man.db.connect(test=True)

pp = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'massspec_dataset_nofilter')
# pp = '../data/massspec_dataset_nofilter'
parser = AutoupdateParser()
parser.parse(pp)

msid='Unknown'
sid='MB06-507'
pid='Minna Bluff'

class IntensityMixin(object):
    @classmethod
    def setUpClass(cls):
        aid=cls.analysis_id
        cls.sample_id = msid
        cls.analysis_id = aid
        db=isotope_man.db
        with db.session_ctx():
            ans, tc = db.get_sample_analyses([sid, ], [pid])
Пример #5
0
import os

from pychron.core.ui import set_toolkit

set_toolkit('qt4')

from pychron.processing.autoupdate_parser import AutoupdateParser
from test.database import isotope_manager_factory

isotope_man = isotope_manager_factory(name='pychron_dataset')
isotope_man.db.connect(test=True)

pp = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data',
                  'massspec_dataset_nofilter')
# pp = '../data/massspec_dataset_nofilter'
parser = AutoupdateParser()
parser.parse(pp)

msid = 'Unknown'
sid = 'MB06-507'
pid = 'Minna Bluff'


class IntensityMixin(object):
    @classmethod
    def setUpClass(cls):
        aid = cls.analysis_id
        cls.sample_id = msid
        cls.analysis_id = aid
        db = isotope_man.db
        with db.session_ctx():
Пример #6
0
 def setUpClass(cls):
     p = '../data/autoupdate_AF_72'
     cls._path = p
     cls.parser = AutoupdateParser()