Commit 6bf9a6ed authored by Wysocki, Aaron's avatar Wysocki, Aaron
Browse files

Reenabling error message; tests still pass

parent 318f1ff8
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1807,9 +1807,8 @@ class Model:
        if len(powers) > 0:
            avePow = np.average(powers, weights=mult)
            if customPower and not np.isclose(avePow, 1.0, atol=1e-3):
                pass
#                raise RuntimeError(
#                    "A user-specified power distribution was supplied but it does not normalize to unity: " + str(avePow))
                raise RuntimeError(
                    "A user-specified power distribution was supplied but it does not normalize to unity: " + str(avePow))
            elif not customPower and not np.isclose(avePow, 1.0):
                warnings.warn("All rod powers 1.0 or 0.0, which normalizes to " + str(
                    avePow) + ".  Assuming uniform power and renormalizing for CTF.", Warning)