in src/mozanalysis/experiment.py [0:0]
def _validate_last_date_data_required(self, attribute, value):
max_analysis_window_end = max(aw.end for aw in self.analysis_windows)
observation_period_end = add_days(
self.last_enrollment_date, max_analysis_window_end
)
assert self.last_date_data_required == observation_period_end, (
f"last date data required of {self.last_date_data_required} ",
f"did not match computed end of observation {observation_period_end}",
)