Skip to content

Another PartTree question #78

Answered by mjhoptics
dibyendumajumdar asked this question in Q&A
Discussion options

You must be logged in to vote

I assume they're compared in the same way as keys are compared in python. It seems to work that way, at least.

Each node in the part_tree has the additional attributes name, id, and tag. The id may be an object or a tuple, just like a key for a dict. Most times I just have an object instance as a node id. Gaps are a special case in that they are used one way in element-land but the same gap can appear multiple times in double pass systems. This is a case where element model information can help to enforce correctness in multipass sequential models. So the gap in a sequential model is a combination of the gap and the z_dir for that segment. In the element model, the gap is only present onc…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@dibyendumajumdar
Comment options

@dibyendumajumdar
Comment options

@mjhoptics
Comment options

Answer selected by dibyendumajumdar
Comment options

You must be logged in to vote
2 replies
@mjhoptics
Comment options

@dibyendumajumdar
Comment options

Comment options

You must be logged in to vote
1 reply
@mjhoptics
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
2 participants