Skip to content

Conversation

@epernod
Copy link
Contributor

@epernod epernod commented Jan 29, 2026

Add method to test if mechanicalObject is in a mapped Node and confront this value with the option "check mapped mechanicalOjbect" from legacy regression

@hugtalbot
Copy link
Contributor

There's a conflict here @epernod

return JSONEncoder.default(self, obj)


def is_mapped(node):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the record, your test is based on an implicit rule that a mapped state is in the same Node than the mapping. But that's not mandatory...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And I guess there is no way from the MechanicalObject to know if it is mapped?
This means we should process all MechancalMapping first?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, anyway, this is mostly to match the old regression behavior. For me we should test all mechanicalObject, mapped or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants