diff --git a/psycop/projects/t2d/feature_generation/specify_features.py b/psycop/projects/t2d/feature_generation/specify_features.py index 93f0d28e7..8b9fed6b1 100644 --- a/psycop/projects/t2d/feature_generation/specify_features.py +++ b/psycop/projects/t2d/feature_generation/specify_features.py @@ -163,7 +163,7 @@ def _get_outcome_specs(self) -> list[OutcomeSpec]: feature_base_name="first_diabetes_lab_result", timeseries_df=get_first_diabetes_lab_result_above_threshold(), lookahead_days=365, - aggregation_fn=max, + aggregation_fn=maximum, fallback=0, incident=True, prefix=self.project_info.prefix.outcome, @@ -334,7 +334,7 @@ def _get_temporal_predictor_specs(self) -> list[PredictorSpec]: feature_base_name="hba1c", timeseries_df=hba1c(), lookbehind_days=9999, - aggregation_fn=max, + aggregation_fn=maximum, fallback=np.nan, prefix=self.project_info.prefix.predictor, ),