Skip to content

🐛[BUG]: structural_mechanics error checking world_edges count in add_world_edges #1123

@lnrSmglln

Description

@lnrSmglln

Version

1.2.0

On which installation method(s) does this occur?

Pip

Describe the issue

in examples/structural_mechanics/deforming_plate/helpers.py line 67 falling to error when no world space finded, because we have 1d zero torch tensor, and second dim was checking in if construction:

if world_edges.shape[1] == 0:
# No new world edges to add
return (
graph,
graph.edge_attr,
torch.zeros((0, graph.edge_attr.shape[1]), device=device),
)

replacement world_edges.shape[1] == 0 with world_edges.size()[0] == 0 helps.

Minimum reproducible example

Relevant log output

Environment details

Metadata

Metadata

Labels

? - Needs TriageNeed team to review and classifybugSomething isn't workingexternalIssues/PR filed by people outside the team

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions