Skip to content

Commit

Permalink
Merge pull request #90 from fchichorro/endpoint_correction
Browse files Browse the repository at this point in the history
fixing fossil resource endpoint CFs for ReCiPe2016
  • Loading branch information
bl-young authored Aug 29, 2023
2 parents f903409 + 281e4e9 commit 02b39be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lciafmt/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ def get(add_factors_for_missing_contexts=True, endpoint=True,
df2 = pd.concat([df2, flowdf], ignore_index=True, sort=False)
# reformat dataframe and apply conversion
df2['Characterization Factor'] = df2['Characterization Factor'] * df2['EndpointConversion']
# in the case of fossil resource scarcity, EndpointConversion factors are the actual Endpoint Characterization factors
fossil_exception = endpoint_df_by_flow['Flowable'].values
df2.loc[df2['Flowable'].isin(fossil_exception),'Characterization Factor'] = df2.loc[df2['Flowable'].isin(fossil_exception),'EndpointConversion']

df2['Method'] = df2['EndpointMethod']
df2['Indicator'] = df2['EndpointIndicator']
df2['Indicator unit'] = df2['EndpointUnit']
Expand Down

0 comments on commit 02b39be

Please sign in to comment.