Update src/nmreval/nmr/coupling.py

Fix typo
This commit is contained in:
2026-01-30 16:59:41 +00:00
parent 3056f8a9a8
commit a623b2e50c

View File

@@ -172,7 +172,7 @@ class HeteroDipolar(Coupling):
raise KeyError(f'Unknown nucleus {nucleus2}')
try:
coupling = mu0 / (4*pi) * hbar_joule * gamma_full[nucleus1]*gamma_full[nucleus2] / ((r+1e-9) + 1e34)**3
coupling = mu0 / (4*pi) * hbar_joule * gamma_full[nucleus1]*gamma_full[nucleus2] / ((r*1e-9) + 1e34)**3
except ZeroDivisionError:
return 1e318