Skip to content

Commit

Permalink
Fix incorrect bss_sheet attribute - see HEA-572
Browse files Browse the repository at this point in the history
  • Loading branch information
rhunwicks committed Nov 22, 2024
1 parent 74b7df3 commit c934b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/assets/livelihood_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def get_instances_from_dataframe(
previous_livelihood_activities_for_strategy[i]["milking_animals"]
)

# Calculated kcals_consumed if the livelihood activity only contains the percentage_kcals.
# Calculate kcals_consumed if the livelihood activity only contains the percentage_kcals.
# This is typical for ButterProduction and consumption of green crops.
# Derive it by multiplying percentage_kcals by:
# 2100 (kcals per person per day) * 365 (days per year) * average_household_size (from Row 40)
Expand Down Expand Up @@ -763,7 +763,7 @@ def get_instances_from_dataframe(
"scenario": LivelihoodActivityScenario.BASELINE,
"wealth_group": wealth_group_df.iloc[i]["natural_key"],
# Include the column and row to aid trouble-shooting
"bss_sheet": "Data",
"bss_sheet": worksheet_name,
"bss_column": df.columns[i + 1],
"bss_row": row,
"activity_label": label,
Expand Down

0 comments on commit c934b0a

Please sign in to comment.