def add_irradiation_geometry_file(self, path):
    try:
        holder = IrradiationGeometry(path)
        if (not holder.holes):
            raise BaseException
    except BaseException:
        self.warning_dialog('Invalid Irradiation Geometry file. Failed to import')
        return
    self.smart_pull()
    root = os.path.join(paths.meta_root, 'irradiation_holders')
    if (not os.path.isdir(root)):
        os.mkdir(root)
    name = os.path.basename(path)
    dest = os.path.join(root, name)
    shutil.copyfile(path, dest)
    self.add(dest, commit=False)
    self.commit('added irradiation geometry file {}'.format(name))
    self.push()
    self.information_dialog('Irradiation Geometry "{}" added'.format(name))
def add_irradiation_geometry_file(self, path):
    try:
        holder = IrradiationGeometry(path)
        if (not holder.holes):
            raise BaseException
    except BaseException:
        self.warning_dialog('Invalid Irradiation Geometry file. Failed to import')
        return
    self.smart_pull()
    root = os.path.join(paths.meta_root, 'irradiation_holders')
    if (not os.path.isdir(root)):
        os.mkdir(root)
    name = os.path.basename(path)
    dest = os.path.join(root, name)
    shutil.copyfile(path, dest)
    self.add(dest, commit=False)
    self.commit('added irradiation geometry file {}'.format(name))
    self.push()
    self.information_dialog('Irradiation Geometry "{}" added'.format(name))