Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudioZeni committed May 10, 2021
1 parent e5e759b commit 3b231d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raffy/linear_potential.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def add_square_g(self, g, dg, X, compute_forces):

def adjust_g(self, g, dg, X, compute_forces=True, train_pca=False):
dg_reshape = []
if len(g.shape) == 3:
if len(g[0].shape) == 2:
g = np.array([x.sum(axis=0) for x in g])
for i in np.arange(len(g)):
if compute_forces and dg[i].shape == 4:
Expand Down

0 comments on commit 3b231d5

Please sign in to comment.