We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77bdc90 commit 81f830bCopy full SHA for 81f830b
torch_sim/state.py
@@ -501,6 +501,11 @@ class DeformGradMixin:
501
502
_system_attributes: ClassVar[set[str]] = {"reference_cell"}
503
504
+ if TYPE_CHECKING:
505
+ # define this under a TYPE_CHECKING block to avoid it being included in the
506
+ # dataclass __init__ during runtime
507
+ row_vector_cell: torch.Tensor
508
+
509
@property
510
def reference_row_vector_cell(self) -> torch.Tensor:
511
"""Get the original unit cell in terms of row vectors."""
0 commit comments