src/ei_mcoe/ei_mcoe.py
def cnct_rgn_tech_to_pm_value(nerc, tech):
    """Connect NERC region and tech type to PM2.5 value.

    This function is for specific use in calc_pm_value(). It finds the right
    PM2.5 value based on GREET designation by NERC region and technology type.
    Important to note that these values are still in g/kwh.

    Args:
        nerc (pd.Series): The column 'nerc_region' in the pm_df.
        tech (pd.Series): The column 'pm_id' created in the pm_df.

    Returns:
        float: the PM2.5 value associated with a given NERC region and
            technology type.
    """
    if nerc not in nerc_regions:
        pm_value = pd.NA
    elif tech not in pm_tech_dict.keys():
        pm_value = pd.NA
    elif 'Not_Specified' in tech:
        pm_value = pm_tech_dict[tech]
    else:
        idx = nerc_regions.index(nerc)
        pm_value = pm_tech_dict[tech][idx]
    return pm_value
Connect NERC region and tech type to PM2.5 value.

    This function is for specific use in calc_pm_value(). It finds the right
    PM2.5 value based on GREET designation by NERC region and technology type.
    Important to note that these values are still in g/kwh.

    Args:
        nerc (pd.Series): The column 'nerc_region' in the pm_df.
        tech (pd.Series): The column 'pm_id' created in the pm_df.

    Returns:
        float: the PM2.5 value associated with a given NERC region and
            technology type.
    
Connect NERC region and tech type to PM2.5 value.
This function is for specific use in calc_pm_value(). It finds the right
PM2.5 value based on GREET designation by NERC region and technology type.
Important to note that these values are still in g/kwh.
Connect NERC region and tech type to PM2 . 5 value . This function is for specific use in calc_pm_value () . It finds the right PM2 . 5 value based on GREET designation by NERC region and technology type . Important to note that these values are still in g / kwh .
def cnct_rgn_tech_to_pm_value(nerc, tech):
    if nerc not in nerc_regions:
        pm_value = pd.NA
    elif tech not in pm_tech_dict.keys():
        pm_value = pd.NA
    elif 'Not_Specified' in tech:
        pm_value = pm_tech_dict[tech]
    else:
        idx = nerc_regions.index(nerc)
        pm_value = pm_tech_dict[tech][idx]
    return pm_value
def cnct_rgn_tech_to_pm_value ( nerc , tech ) : if nerc not in nerc_regions : pm_value = pd . NA elif tech not in pm_tech_dict . keys ( ) : pm_value = pd . NA elif 'Not_Specified' in tech : pm_value = pm_tech_dict [ tech ] else : idx = nerc_regions . index ( nerc ) pm_value = pm_tech_dict [ tech ] [ idx ] return pm_value
Connect NERC region and tech type to PM2.5 value.
Connect NERC region and tech type to PM2 . 5 value .
"""Connect NERC region and tech type to PM2.5 value.

    This function is for specific use in calc_pm_value(). It finds the right
    PM2.5 value based on GREET designation by NERC region and technology type.
    Important to note that these values are still in g/kwh.

    Args:
        nerc (pd.Series): The column 'nerc_region' in the pm_df.
        tech (pd.Series): The column 'pm_id' created in the pm_df.

    Returns:
        float: the PM2.5 value associated with a given NERC region and
            technology type.
    """
the PM2.5 value associated with a given NERC region and
technology type.
the PM2 . 5 value associated with a given NERC region and technology type .
float
nerc
The column 'nerc_region' in the pm_df.
The column ' nerc_region ' in the pm_df .
tech
The column 'pm_id' created in the pm_df.
The column ' pm_id ' created in the pm_df .