def get_tech_type(tech_name, technology_list):
    """Get technology type of technology

    Parameters
    ----------
    tech_name : string
        Technology name

    technology_list : dict
        All technology lists are defined in assumptions

    Returns
    ------
    tech_type : string
        Technology type
    
    Note
    -----
    -  Either a technology is a hybrid technology, a heat pump,
       a constant heating technology or a regular technolgy
    """
    if tech_name in technology_list['tech_heating_hybrid']:
        tech_type = 'hybrid_tech'
    elif tech_name in technology_list['tech_heating_temp_dep']:
        tech_type = 'heat_pump'
    elif tech_name in technology_list['tech_heating_const']:
        tech_type = 'boiler_heating_tech'
    elif tech_name in technology_list['primary_heating_electricity']:
        tech_type = 'storage_heating_electricity'
    elif tech_name in technology_list['secondary_heating_electricity']:
        tech_type = 'secondary_heating_electricity'
    elif tech_name == 'dummy_tech':
        tech_type = 'dummy_tech'
    else:
        tech_type = 'regular_tech'

    return tech_type