Skip to content

Commit

Permalink
forward and backward mixup 🤦‍♀️
Browse files Browse the repository at this point in the history
  • Loading branch information
Butsko Christina committed Jan 13, 2025
1 parent 925ff21 commit de55b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/worldcereal/utils/refdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@ def process_public_extractions_df(
# calculate the shifts and assign new valid date
sample_dates["true_valid_date_month"] = public_df_raw["valid_date"].dt.month
sample_dates["proposed_valid_date_month"] = processing_period_middle_month
sample_dates["valid_month_shift_forward"] = sample_dates.apply(
sample_dates["valid_month_shift_backward"] = sample_dates.apply(
lambda xx: month_diff(
xx["proposed_valid_date_month"], xx["true_valid_date_month"]
),
axis=1,
)
sample_dates["valid_month_shift_backward"] = sample_dates.apply(
sample_dates["valid_month_shift_forward"] = sample_dates.apply(
lambda xx: month_diff(
xx["true_valid_date_month"], xx["proposed_valid_date_month"]
),
Expand Down

0 comments on commit de55b03

Please sign in to comment.