From 3851295e287bc7713c800d36676445a9fbc839bc Mon Sep 17 00:00:00 2001 From: lrdossan Date: Wed, 10 Jul 2024 16:00:04 +0200 Subject: [PATCH] removed unused method --- caimira/apps/calculator/form_data.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/caimira/apps/calculator/form_data.py b/caimira/apps/calculator/form_data.py index 73974dc0..dd122664 100644 --- a/caimira/apps/calculator/form_data.py +++ b/caimira/apps/calculator/form_data.py @@ -347,12 +347,6 @@ def infected_present_interval(self) -> models.Interval: breaks=breaks, ) - def population_present_interval(self) -> models.Interval: - state_change_times = set(self.infected_present_interval().transition_times()) - state_change_times.update(self.exposed_present_interval().transition_times()) - all_state_changes = sorted(state_change_times) - return models.SpecificInterval(tuple(zip(all_state_changes[:-1], all_state_changes[1:]))) - def exposed_present_interval(self) -> models.Interval: if self.specific_breaks != {}: # It means the breaks are specific and not predefined breaks = self.generate_specific_break_times(breaks_dict=self.specific_breaks, target='exposed')