Skip to content

Commit

Permalink
fixed test_models.py and tensornet parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisiacovella committed Sep 10, 2024
1 parent 47c4d3b commit 2d713b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modelforge/potential/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def __init__(self, box_vectors: torch.Tensor, periodic: bool):
[box_vectors[0][0], box_vectors[1][1], box_vectors[2][2]]
).to(box_vectors.device)

self.register_buffer("cutoff", torch.tensor(periodic))
self.periodic = periodic

def forward(self, coordinate_i: torch.Tensor, coordinate_j: torch.Tensor):
r_ij = coordinate_i - coordinate_j
Expand Down
2 changes: 1 addition & 1 deletion modelforge/potential/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class CoreParameter(ParametersBase):
number_of_radial_basis_functions: int
maximum_interaction_radius: float
minimum_interaction_radius: float
highest_atomic_number: int
maximum_atomic_number: int
equivariance_invariance_group: str
activation_function_parameter: ActivationFunctionConfig

Expand Down
2 changes: 1 addition & 1 deletion modelforge/potential/tensornet.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def __init__(
number_of_radial_basis_functions: int,
maximum_interaction_radius: float,
minimum_interaction_radius: float,
highest_atomic_number: int,
maximum_atomic_number: int,
equivariance_invariance_group: str,
activation_function_parameter: Dict,
potential_seed: int = -1,
Expand Down

0 comments on commit 2d713b0

Please sign in to comment.