def get_chronology(self, name, allow_null=False, **kw):
    chron = None
    try:
        chron = irradiation_chronology(name, allow_null=allow_null)
        if self.application:
            chron.use_irradiation_endtime = self.application.get_boolean_preference('pychron.arar.constants.use_irradiation_endtime', False)
    except MetaObjectException:
        if (name != 'NoIrradiation'):
            self.warning('Could not locate the irradiation chronology "{}"'.format(name))
    return chron
def get_chronology(self, name, allow_null=False, **kw):
    chron = None
    try:
        chron = irradiation_chronology(name, allow_null=allow_null)
        if self.application:
            chron.use_irradiation_endtime = self.application.get_boolean_preference('pychron.arar.constants.use_irradiation_endtime', False)
    except MetaObjectException:
        if (name != 'NoIrradiation'):
            self.warning('Could not locate the irradiation chronology "{}"'.format(name))
    return chron