Example #1
0
    def import_irradiation_load_xls(self, p):
        self.debug('import irradiation file: {}'.format(p))

        from pychron.entry.dvc_import import do_import_irradiation
        from pychron.entry.xls_irradiation_source import XLSIrradiationSource

        xlssource = XLSIrradiationSource(p)
        name = os.path.basename(p)
        do_import_irradiation(dvc=self.dvc, sources={xlssource: name}, default_source=name)
        self.updated = True
Example #2
0
    def import_irradiation(self):
        self.debug('import irradiation')
        from pychron.entry.dvc_import import do_import_irradiation

        mdb = 'pychron.mass_spec.database.massspec_database_adapter.MassSpecDatabaseAdapter'
        mssource = self.application.get_service(mdb)
        mssource.bind_preferences()

        do_import_irradiation(dvc=self.dvc, sources={mssource: 'Mass Spec'}, default_source='Mass Spec')
        self.updated = True
Example #3
0
    def import_irradiation_load_xls(self, p):
        self.debug('import irradiation file: {}'.format(p))

        from pychron.entry.dvc_import import do_import_irradiation
        from pychron.entry.xls_irradiation_source import XLSIrradiationSource

        xlssource = XLSIrradiationSource(p)
        name = os.path.basename(p)
        do_import_irradiation(dvc=self.dvc,
                              sources={xlssource: name},
                              default_source=name)
        self.updated = True
Example #4
0
    def import_irradiation(self):
        self.debug('import irradiation')
        from pychron.entry.dvc_import import do_import_irradiation

        mdb = 'pychron.mass_spec.database.massspec_database_adapter.MassSpecDatabaseAdapter'
        mssource = self.application.get_service(mdb)
        mssource.bind_preferences()

        do_import_irradiation(dvc=self.dvc,
                              sources={mssource: 'Mass Spec'},
                              default_source='Mass Spec')
        self.updated = True