def get_settings(data):
    """ Load needed settings from an issue report

    Arguments:
    data -- the parsed issue report dictionary

    Output:
    Dictionary of settings
    """
    settings = {}
    model = data.get('insulin_model')
    if not model:
        raise RuntimeError('No insulin model information found')
    if model.lower() == 'humalognovologchild':
        settings['model'] = [data.get('insulin_action_duration') / 60, 65]
    elif model.lower() == 'humalognovologadult':
        settings['model'] = [data.get('insulin_action_duration') / 60, 75]
    elif model.lower() == 'fiasp':
        settings['model'] = [data.get('insulin_action_duration') / 60, 55]
    else:
        settings['model'] = [data.get('insulin_action_duration') / 60 / 60]
    momentum_interval = data.get('glucose_store').get('momentumDataInterval')
    if momentum_interval is not None:
        settings['momentum_data_interval'] = float(momentum_interval) / 60
    else:
        settings['momentum_data_interval'] = 15
    suspend_threshold = data.get('suspend_threshold')
    if suspend_threshold is not None:
        settings['suspend_threshold'] = float(suspend_threshold)
    else:
        settings['suspend_threshold'] = None
    settings['dynamic_carb_absorption_enabled'] = True
    settings['retrospective_correction_integration_interval'] = 30
    settings['recency_interval'] = 15
    settings['retrospective_correction_grouping_interval'] = 30
    settings['rate_rounder'] = 0.05
    settings['insulin_delay'] = 10
    settings['carb_delay'] = 10
    settings['default_absorption_times'] = [float(data.get(
        'carb_default_absorption_times_fast')) / 60, float(data.get(
        'carb_default_absorption_times_medium')) / 60, float(data.get(
        'carb_default_absorption_times_slow')) / 60]
    settings['max_basal_rate'] = data.get('maximum_basal_rate')
    settings['max_bolus'] = data.get('maximum_bolus')
    settings['retrospective_correction_enabled'] = data.get(
        'retrospective_correction_enabled') and data.get(
        'retrospective_correction_enabled').lower() == 'true'
    return settings
