Skip to content

Commit

Permalink
Update io.py
Browse files Browse the repository at this point in the history
  • Loading branch information
simonaxelrod authored May 19, 2024
1 parent 72d1f32 commit 4799b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nff/md/tully/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def concat_and_conv(results_list,
for key in keys:
val = torch.cat([i[key] for i in results_list])

if 'energy_grad' in key or 'force_nacv' in key:
if ('energy' in key and '_grad' in key) or 'force_nacv' in key:
val *= conv['energy'] * conv['_grad']
val = val.reshape(*grad_shape)
elif 'energy' in key or key in diabat_keys:
Expand Down

0 comments on commit 4799b62

Please sign in to comment.