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:
parent
609f9c5892
commit
44b9220369
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue