Skip to content

Commit 4799b62

Browse files
authored
Update io.py
1 parent 72d1f32 commit 4799b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nff/md/tully/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def concat_and_conv(results_list,
450450
for key in keys:
451451
val = torch.cat([i[key] for i in results_list])
452452

453-
if 'energy_grad' in key or 'force_nacv' in key:
453+
if ('energy' in key and '_grad' in key) or 'force_nacv' in key:
454454
val *= conv['energy'] * conv['_grad']
455455
val = val.reshape(*grad_shape)
456456
elif 'energy' in key or key in diabat_keys:

0 commit comments

Comments
 (0)