Skip to content

Differences Between WF and Hudson's Model Outputs #2372

Answered by petrelharp
Rhinezly asked this question in Q&A
Discussion options

You must be logged in to vote

Perhaps the problem is here:

         sample_ids = [n.id for n in ts.nodes() if n.time == t]

In 'hudson', the only nodes whose times are exactly equal to the sampling times will indeed be the sample nodes, but in dtwf (since it's in discrete time), there will be other nodes whose time is exactly equal to those times. Could you swap out this line for

        sample_ids = ts.samples(time=t)

and see if that changes things?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Rhinezly
Comment options

@petrelharp
Comment options

Answer selected by Rhinezly
@Rhinezly
Comment options

@jeromekelleher
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants