Skip to content

Commit

Permalink
Merge pull request #382 from jeromekelleher/fix-time-zero
Browse files Browse the repository at this point in the history
Fix time-zero logic
  • Loading branch information
jeromekelleher authored Oct 21, 2024
2 parents 0cae4a1 + 8eb75f8 commit ee59171
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 ee59171

Please sign in to comment.