Skip to content

Commit

Permalink
Fix time-zero logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Oct 21, 2024
1 parent eecde47 commit 8eb75f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sc2ts/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,8 @@ def _preprocess_nodes(self, show_progress):
self.nodes_metadata = {}
self.nodes_sample_group = collections.defaultdict(list)
samples = ts.samples()
last_sample = ts.node(samples[-1])

self.nodes_date[last_sample.id] = last_sample.metadata["date"]
self.time_zero_as_date = self.nodes_date[last_sample.id]
self.time_zero_as_date = np.array([self.date], dtype="datetime64[D]")[0]
self.earliest_pango_lineage = {}
self.pango_lineage_samples = collections.defaultdict(list)

Expand Down

0 comments on commit 8eb75f8

Please sign in to comment.