Skip to content

Commit

Permalink
removed unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Jul 10, 2024
1 parent 09ac69b commit 3851295
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions caimira/apps/calculator/form_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 3851295

Please sign in to comment.