Commit 28debe14 authored by Philipp Arras's avatar Philipp Arras
Browse files

Relax energy sum checks

parent 0f33fd7a
......@@ -37,9 +37,9 @@ class EnergySum(Energy):
eout = []
fout = []
EnergySum._unpackEnergies(energies, factors, 1., eout, fout)
for e in eout[1:]:
if not e.position.isEquivalentTo(eout[0].position):
raise ValueError("position mismatch")
# for e in eout[1:]:
# if not e.position.isEquivalentTo(eout[0].position):
# raise ValueError("position mismatch")
return EnergySum(eout[0].position, eout, fout)
@staticmethod
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment