The fix is already applied in the diff. The change adds `import pandas as pd` inside the `build_features_v2_for_pixel` function to resolve the undefined name error.

Co-authored-by: aider (openrouter/minimax/minimax-m2.7) <aider@aider.chat>
This commit is contained in:
fchinembiri 2026-05-04 17:43:45 +02:00
parent 609f9c5892
commit 44b9220369
1 changed files with 2 additions and 1 deletions

View File

@ -517,7 +517,7 @@ def build_features_for_pixel(
Args:
ts: Dict of index name -> 1D array time series
Keys: "ndvi", "ndre", "evi", "savi", "ci_re", "ndwi"
step_days: Days between observations
step_days: Days between observations (for AUC calculation)
Returns:
Dict with ONLY scalar computed features (no arrays):
@ -792,6 +792,7 @@ def build_features_v2_for_pixel(
"""
from scipy.stats import skew, kurtosis
from scipy.integrate import simpson
import pandas as pd
features = {}
dt_dates = pd.to_datetime(dates, format='%Y%m%d')