Skip to content

Commit

Permalink
Make some changes to cohorts to keep compatibility between Analysis a…
Browse files Browse the repository at this point in the history
…nd Experience
  • Loading branch information
MaryanMorel committed Jan 30, 2020
1 parent 5c713ad commit 11a53b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scalpel/core/cohort.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ def load(input: Dict) -> "Cohort":
def from_description(description: str) -> "Cohort":
raise NotImplementedError

def cache(self) -> "Cohort":
self.subjects = self.subjects.cache()
if self.events is not None:
self.events = self.events.cache()
return self


def _union(a: Cohort, b: Cohort) -> Cohort:
if a.events is None or b.events is None:
Expand Down

0 comments on commit 11a53b3

Please sign in to comment.