Loading SubKit/build/Model.py +2 −3 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
SubKit/build/Model.py +2 −3 Original line number Diff line number Diff line Loading @@ -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) Loading