TST: Fix AttributeError: '_RegionProperties' object has no attribute 'weighted_moments_central'

This commit is contained in:
cgohlke
2013-10-14 23:49:53 -07:00
parent 4b02e31dfb
commit f5337e3616
+2 -2
View File
@@ -269,9 +269,9 @@ def test_solidity():
assert_almost_equal(solidity, 0.580645161290323)
def test_weighted_moments_central():
def test_weighted_central_moments():
wmu = regionprops(SAMPLE, intensity_image=INTENSITY_SAMPLE
)[0].weighted_moments_central
)[0].weighted_central_moments
ref = np.array(
[[ 7.4000000000e+01, -2.1316282073e-13, 4.7837837838e+02,
-7.5943608473e+02],