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 72d1f32 commit 4799b62Copy full SHA for 4799b62
nff/md/tully/io.py
@@ -450,7 +450,7 @@ def concat_and_conv(results_list,
450
for key in keys:
451
val = torch.cat([i[key] for i in results_list])
452
453
- if 'energy_grad' in key or 'force_nacv' in key:
+ if ('energy' in key and '_grad' in key) or 'force_nacv' in key:
454
val *= conv['energy'] * conv['_grad']
455
val = val.reshape(*grad_shape)
456
elif 'energy' in key or key in diabat_keys:
0 commit comments