-
-
Save ljwolf/4110c820f96ace352429 to your computer and use it in GitHub Desktop.
Nosetests-3-(2015-23-03)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EE...........EE......................................EEE...E..F.....FEEEFEEE. | |
====================================================================== | |
ERROR: Test method | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_gamma.py", line 19, in test_Gamma | |
g = Gamma(self.y, self.w) | |
File "/home/ljw/dev/pysal/pysal/esda/gamma.py", line 156, in __init__ | |
self.g = self.__calc(self.y, self.op) | |
File "/home/ljw/dev/pysal/pysal/esda/gamma.py", line 171, in __calc | |
zl = pysal.lag_spatial(self.w, z) | |
File "/home/ljw/dev/pysal/pysal/weights/spatial_lag.py", line 85, in lag_spatial | |
return w.sparse * y | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 174, in sparse | |
self._sparse = self._build_sparse() | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 187, in _build_sparse | |
for i, neigh_list in six.iteritems(self.neighbor_offsets): | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in neighbor_offsets | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in <listcomp> | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
KeyError: 16.0 | |
====================================================================== | |
ERROR: Test method | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_gamma.py", line 19, in test_Gamma | |
g = Gamma(self.y, self.w) | |
File "/home/ljw/dev/pysal/pysal/esda/gamma.py", line 156, in __init__ | |
self.g = self.__calc(self.y, self.op) | |
File "/home/ljw/dev/pysal/pysal/esda/gamma.py", line 171, in __calc | |
zl = pysal.lag_spatial(self.w, z) | |
File "/home/ljw/dev/pysal/pysal/weights/spatial_lag.py", line 85, in lag_spatial | |
return w.sparse * y | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 174, in sparse | |
self._sparse = self._build_sparse() | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 187, in _build_sparse | |
for i, neigh_list in six.iteritems(self.neighbor_offsets): | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in neighbor_offsets | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in <listcomp> [208/1826] | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
KeyError: 16.0 | |
====================================================================== | |
ERROR: Test method | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_join_counts.py", line 19, in test_Join_Counts | |
jc = Join_Counts(self.y, self.w) | |
File "/home/ljw/dev/pysal/pysal/esda/join_counts.py", line 114, in __init__ | |
self.J = w.s0 / 2. | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 232, in s0 | |
self._s0 = self.sparse.sum() | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 174, in sparse | |
self._sparse = self._build_sparse() | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 187, in _build_sparse | |
for i, neigh_list in six.iteritems(self.neighbor_offsets): | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in neighbor_offsets | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in <listcomp> | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
KeyError: 16.0 | |
====================================================================== | |
ERROR: Test method | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_join_counts.py", line 19, in test_Join_Counts | |
jc = Join_Counts(self.y, self.w) | |
File "/home/ljw/dev/pysal/pysal/esda/join_counts.py", line 114, in __init__ | |
self.J = w.s0 / 2. | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 232, in s0 | |
self._s0 = self.sparse.sum() | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 174, in sparse | |
self._sparse = self._build_sparse() | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 187, in _build_sparse | |
for i, neigh_list in six.iteritems(self.neighbor_offsets): | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in neighbor_offsets | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in <listcomp> | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
KeyError: 16.0 [164/1826] | |
====================================================================== | |
ERROR: test_crude_age_standardization (pysal.esda.tests.test_smoothing.TestAgeStd) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 44, in test_crude_age_standardization | |
crude = sm.crude_age_standardization(self.e, self.b, self.n).round(8) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 210, in crude_age_standardization | |
b_by_n = sum_by_n(b, 1.0, n) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_direct_age_standardization (pysal.esda.tests.test_smoothing.TestAgeStd) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 50, in test_direct_age_standardization | |
self.e, self.b, self.s_b, self.n)).round(8) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 274, in direct_age_standardization | |
age_weight = (1.0 / b) * (s * 1.0 / sum_by_n(s, 1.0, n).repeat(len(s) / n)) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_indirect_age_standardization (pysal.esda.tests.test_smoothing.TestAgeStd) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 57, in test_indirect_age_standardization | |
self.e, self.b, self.s_e, self.s_b, self.n)).round(8) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 360, in indirect_age_standardization | |
smr = standardized_mortality_ratio(e, b, s_e, s_b, n) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 434, in standardized_mortality_ratio | |
e_by_n = sum_by_n(e, 1.0, n) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_Age_Adjusted_Smoother (pysal.esda.tests.test_smoothing.TestKernel_AgeAdj_SM) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 187, in test_Age_Adjusted_Smoother | |
ar = sm.Age_Adjusted_Smoother(self.e1, self.b1, self.kw, self.s) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 918, in __init__ | |
for i in range(h): | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_choynowski (pysal.esda.tests.test_smoothing.TestUtils) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 231, in test_choynowski | |
np.testing.assert_array_almost_equal(exp_choy, sm.choynowski(e, b, n)) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 493, in choynowski | |
e_by_n = sum_by_n(e, 1.0, n) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_standardized_mortality_ratio (pysal.esda.tests.test_smoothing.TestUtils) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 224, in test_standardized_mortality_ratio | |
sm.standardized_mortality_ratio(e, b, s_e, s_b, n)) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 434, in standardized_mortality_ratio | |
e_by_n = sum_by_n(e, 1.0, n) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_sum_by_n (pysal.esda.tests.test_smoothing.TestUtils) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 214, in test_sum_by_n | |
np.testing.assert_array_almost_equal(exp_sum, sm.sum_by_n(d, w, n)) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_choynowski (pysal.esda.tests.test_smoothing.TestUtils) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 231, in test_choynowski | |
np.testing.assert_array_almost_equal(exp_choy, sm.choynowski(e, b, n)) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 493, in choynowski | |
e_by_n = sum_by_n(e, 1.0, n) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_standardized_mortality_ratio (pysal.esda.tests.test_smoothing.TestUtils) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 224, in test_standardized_mortality_ratio | |
sm.standardized_mortality_ratio(e, b, s_e, s_b, n)) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 434, in standardized_mortality_ratio | |
e_by_n = sum_by_n(e, 1.0, n) | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_sum_by_n (pysal.esda.tests.test_smoothing.TestUtils) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 214, in test_sum_by_n | |
np.testing.assert_array_almost_equal(exp_sum, sm.sum_by_n(d, w, n)) [35/1826] | |
File "/home/ljw/dev/pysal/pysal/esda/smoothing.py", line 159, in sum_by_n | |
return np.array([sum(d[i: i + h]) for i in range(0, t, h)]) | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
FAIL: test_Spatial_Filtering (pysal.esda.tests.test_smoothing.TestKernel_AgeAdj_SM) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 205, in test_Spatial_Filtering | |
self.assertEqual(list(sf.r.round(8)), exp) | |
AssertionError: Lists differ: [0.11[17 chars]1, 0.085106379999999995, 0.076923080000000005] != [0.11[17 chars]1, 0.2, 0.08510638, 0.07692308, 0.05789474, 0.[28 chars]7647] | |
First differing element 2: | |
0.08510638 | |
0.2 | |
Second list contains 5 additional elements. | |
First extra element 4: | |
0.07692308 | |
- [0.11111111, 0.11111111, 0.085106379999999995, 0.076923080000000005] | |
+ [0.11111111, | |
+ 0.11111111, | |
+ 0.2, | |
+ 0.08510638, | |
+ 0.07692308, | |
+ 0.05789474, | |
+ 0.05217391, | |
+ 0.06666667, | |
+ 0.04117647] | |
====================================================================== | |
FAIL: test_assuncao_rate (pysal.esda.tests.test_smoothing.TestUtils) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 239, in test_assuncao_rate | |
exp_assuncao, sm.assuncao_rate(e, b)[:4]) | |
File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line 811, in assert_array_almost_equal | |
header=('Arrays are not almost equal to %d decimals' % decimal)) | |
File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line 644, in assert_array_compare | |
raise AssertionError(msg) | |
AssertionError: | |
Arrays are not almost equal to 6 decimals | |
(mismatch 100.0%) | |
x: array([ 1.04319254, -0.04117865, -0.56539054, -1.73762547]) | |
y: array([ 1.03843594, -0.04099089, -0.56250375, -1.73061861]) | |
====================================================================== | |
FAIL: test_assuncao_rate (pysal.esda.tests.test_smoothing.TestUtils) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/esda/tests/test_smoothing.py", line 239, in test_assuncao_rate | |
exp_assuncao, sm.assuncao_rate(e, b)[:4]) | |
File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line 811, in assert_array_almost_equal | |
header=('Arrays are not almost equal to %d decimals' % decimal)) | |
File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line 644, in assert_array_compare | |
raise AssertionError(msg) | |
AssertionError: | |
Arrays are not almost equal to 6 decimals | |
(mismatch 100.0%) | |
x: array([ 1.04319254, -0.04117865, -0.56539054, -1.73762547]) | |
y: array([ 1.03843594, -0.04099089, -0.56250375, -1.73061861]) | |
---------------------------------------------------------------------- | |
Ran 77 tests in 11.693s | |
FAILED (errors=14, failures=3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEEEEEE | |
====================================================================== | |
ERROR: test_Maxp (pysal.region.tests.test_maxp.Test_Maxp) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_maxp.py", line 21, in test_Maxp | |
w, z, floor, floor_variable=p, initial=100) | |
File "/home/ljw/dev/pysal/pysal/region/maxp.py", line 124, in __init__ | |
self.initial_solution() | |
File "/home/ljw/dev/pysal/pysal/region/maxp.py", line 220, in initial_solution | |
region = a2r[neighbor] | |
KeyError: 108.0 | |
====================================================================== | |
ERROR: test_Maxp_LISA (pysal.region.tests.test_maxp.Test_Maxp) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_maxp.py", line 49, in test_Maxp_LISA | |
mpl = pysal.region.Maxp_LISA(w, z, p, floor=3, floor_variable=p) | |
File "/home/ljw/dev/pysal/pysal/region/maxp.py", line 585, in __init__ | |
lis = pysal.Moran_Local(y, w) | |
File "/home/ljw/dev/pysal/pysal/esda/moran.py", line 608, in __init__ | |
self.Is = self.calc(self.w, self.z) | |
File "/home/ljw/dev/pysal/pysal/esda/moran.py", line 631, in calc | |
zl = slag(w, z) | |
File "/home/ljw/dev/pysal/pysal/weights/spatial_lag.py", line 85, in lag_spatial | |
return w.sparse * y | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 174, in sparse | |
self._sparse = self._build_sparse() | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 187, in _build_sparse | |
for i, neigh_list in six.iteritems(self.neighbor_offsets): | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in neighbor_offsets | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 682, in <listcomp> | |
self.__neighbors_0[j] = [id2i[neigh] for neigh in neigh_list] | |
KeyError: 100.0 [27/1956] | |
====================================================================== | |
ERROR: test_cinference (pysal.region.tests.test_maxp.Test_Maxp) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_maxp.py", line 41, in test_cinference | |
w, z, floor, floor_variable=p, initial=100) | |
File "/home/ljw/dev/pysal/pysal/region/maxp.py", line 124, in __init__ | |
self.initial_solution() | |
File "/home/ljw/dev/pysal/pysal/region/maxp.py", line 220, in initial_solution | |
region = a2r[neighbor] | |
KeyError: 28.0 | |
====================================================================== | |
ERROR: test_inference (pysal.region.tests.test_maxp.Test_Maxp) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_maxp.py", line 31, in test_inference | |
w, z, floor, floor_variable=p, initial=100) | |
File "/home/ljw/dev/pysal/pysal/region/maxp.py", line 124, in __init__ | |
self.initial_solution() | |
File "/home/ljw/dev/pysal/pysal/region/maxp.py", line 220, in initial_solution | |
region = a2r[neighbor] | |
KeyError: 28.0 | |
====================================================================== | |
ERROR: test_Random_Region (pysal.region.tests.test_randomregion.Test_Random_Regions) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_randomregion.py", line 111, in test_Random_Region | |
cardinality=self.cards, contiguity=self.w) | |
File "/home/ljw/dev/pysal/pysal/region/randomregion.py", line 320, in __init__ | |
maxiter, compact, max_swaps) | |
File "/home/ljw/dev/pysal/pysal/region/randomregion.py", line 468, in build_contig_regions | |
swap_index = area2region[join] | |
KeyError: 103.0 | |
====================================================================== | |
ERROR: test_Random_Regions (pysal.region.tests.test_randomregion.Test_Random_Regions) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_randomregion.py", line 31, in test_Random_Regions | |
cardinality=self.cards, contiguity=self.w, permutations=2) | |
File "/home/ljw/dev/pysal/pysal/region/randomregion.py", line 155, in __init__ | |
contiguity, maxiter, compact, max_swaps)) | |
File "/home/ljw/dev/pysal/pysal/region/randomregion.py", line 320, in __init__ | |
maxiter, compact, max_swaps) | |
File "/home/ljw/dev/pysal/pysal/region/randomregion.py", line 468, in build_contig_regions | |
swap_index = area2region[join] | |
KeyError: 103.0 | |
====================================================================== | |
FAIL: test_check_contiguity (pysal.region.tests.test_components.Test_Components) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_components.py", line 14, in test_che$ | |
====================================================================== | |
ERROR: test_Random_Regions (pysal.region.tests.test_randomregion.Test_Random_Regions) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_randomregion.py", line 31, in test_Random_Regions | |
cardinality=self.cards, contiguity=self.w, permutations=2) | |
File "/home/ljw/dev/pysal/pysal/region/randomregion.py", line 155, in __init__ | |
contiguity, maxiter, compact, max_swaps)) | |
File "/home/ljw/dev/pysal/pysal/region/randomregion.py", line 320, in __init__ | |
maxiter, compact, max_swaps) | |
File "/home/ljw/dev/pysal/pysal/region/randomregion.py", line 468, in build_contig_regions | |
swap_index = area2region[join] | |
KeyError: 103.0 | |
====================================================================== | |
FAIL: test_check_contiguity (pysal.region.tests.test_components.Test_Components) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/region/tests/test_components.py", line 14, in test_che$k_contiguity | |
self.assertEqual(result, True) | |
AssertionError: False != True | |
---------------------------------------------------------------------- | |
Ran 7 tests in 0.077s | |
FAILED (errors=6, failures=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EEFE...FFFFFFEEEEEEEEE.........EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE | |
====================================================================== | |
ERROR: test_buildContiguity (pysal.weights.tests.test_Contiguity.TestContiguity) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Contiguity.py", line 14, in test_buildContiguity | |
w = pysal.buildContiguity(pysal.open(self.polyShp, 'r')) | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: see issue #126 | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Distance.py", line 118, in test_DistanceBand | |
pysal.examples.get_path("lattice10x10.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: see issue #126 | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Distance.py", line 129, in test_DistanceBand_ints | |
pysal.examples.get_path("lattice10x10.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_ContiguityWeights_binning (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_QUEEN (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_ROOK (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_nested_polygons (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_true_rook (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_true_rook2 (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_true_rook3 (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_true_rook4 (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_w_type (pysal.weights.tests.test__contW_binning.TestContiguityWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test__contW_binning.py", line 14, in setUp | |
self.binningW = ContiguityWeights_binning(shpObj, QUEEN) | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_lag_spatial (pysal.weights.tests.test_spatial_lag.Testlag_spatial) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_spatial_lag.py", line 26, in test_lag_spatial | |
w = pysal.lat2W(3, 3) | |
File "/home/ljw/dev/pysal/pysal/weights/util.py", line 205, in lat2W | |
return pysal.weights.W(w, weights, ids=ids, id_order=ids[:]) | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 150, in __init__ | |
if self.islands and not self.silent_island_warning: | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 450, in islands | |
c in list(self.cardinalities.items()) if c == 0] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 378, in cardinalities | |
c[i] = len(self.neighbors[i]) | |
KeyError: 8 | |
====================================================================== | |
ERROR: test_adaptive_kernelW (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_adaptive_kernelW_from_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_build_lattice_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_kernelW (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_kernelW_from_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_knnW_from_array (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_knnW_from_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_min_threshold_dist_from_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_queen_from_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_rook_from_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_threshold_binaryW_from_array (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_threshold_binaryW_from_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_threshold_continuousW_from_array (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_threshold_continuousW_from_shapefile (pysal.weights.tests.test_user.Testuser) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_user.py", line 12, in setUp | |
pysal.examples.get_path("columbus.shp")) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 65, in queen_from_shapefile | |
w = buildContiguity(shp, criterion='queen') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_WSP2W (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_block_weights (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_comb (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_full (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_full2W (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_get_ids (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_get_points_array_from_shapefile (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_higher_order (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_insert_diagonal (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_lat2SW (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_lat2W (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_min_threshold_distance (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_order (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_remap_ids (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_shimbel (pysal.weights.tests.test_util.Testutil) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_util.py", line 18, in setUp | |
pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_W (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test___getitem__ (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test___init__ (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test___iter__ (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_asymmetries (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_asymmetry (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_cardinalities (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_diagW2 (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_diagWtW (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_diagWtW_WW (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_full (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_get_transform (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_higher_order (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_histogram (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_id2i (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_id_order_set (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_islands (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_max_neighbors (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_mean_neighbors (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_min_neighbors (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_n (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_neighbor_offsets (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_nonzero (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_order (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_pct_nonzero (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_s0 (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_s1 (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_s2 (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_s2array (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_sd (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_set_transform (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_shimbel (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_sparse (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_trcW2 (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_trcWtW (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_trcWtW_WW (pysal.weights.tests.test_weights.TestW) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 14, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_WSP (pysal.weights.tests.test_weights.TestWSP) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 433, in setUp | |
w3x3 = pysal.lat2W(3, 3) | |
File "/home/ljw/dev/pysal/pysal/weights/util.py", line 205, in lat2W | |
return pysal.weights.W(w, weights, ids=ids, id_order=ids[:]) | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 150, in __init__ | |
if self.islands and not self.silent_island_warning: | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 450, in islands | |
c in list(self.cardinalities.items()) if c == 0] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 378, in cardinalities | |
c[i] = len(self.neighbors[i]) | |
KeyError: 8 | |
====================================================================== | |
ERROR: test_diagWtW_WW (pysal.weights.tests.test_weights.TestWSP) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 433, in setUp | |
w3x3 = pysal.lat2W(3, 3) | |
File "/home/ljw/dev/pysal/pysal/weights/util.py", line 205, in lat2W | |
return pysal.weights.W(w, weights, ids=ids, id_order=ids[:]) | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 150, in __init__ | |
if self.islands and not self.silent_island_warning: | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 450, in islands | |
c in list(self.cardinalities.items()) if c == 0] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 378, in cardinalities | |
c[i] = len(self.neighbors[i]) | |
KeyError: 8 | |
====================================================================== | |
ERROR: test_s0 (pysal.weights.tests.test_weights.TestWSP) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 433, in setUp | |
w3x3 = pysal.lat2W(3, 3) | |
File "/home/ljw/dev/pysal/pysal/weights/util.py", line 205, in lat2W | |
return pysal.weights.W(w, weights, ids=ids, id_order=ids[:]) | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 150, in __init__ | |
if self.islands and not self.silent_island_warning: | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 450, in islands | |
c in list(self.cardinalities.items()) if c == 0] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 378, in cardinalities | |
c[i] = len(self.neighbors[i]) | |
KeyError: 8 | |
====================================================================== | |
ERROR: test_trcWtW_WW (pysal.weights.tests.test_weights.TestWSP) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 433, in setUp | |
w3x3 = pysal.lat2W(3, 3) | |
File "/home/ljw/dev/pysal/pysal/weights/util.py", line 205, in lat2W | |
return pysal.weights.W(w, weights, ids=ids, id_order=ids[:]) | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 150, in __init__ | |
if self.islands and not self.silent_island_warning: | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 450, in islands | |
c in list(self.cardinalities.items()) if c == 0] | |
File "/home/ljw/dev/pysal/pysal/weights/weights.py", line 378, in cardinalities | |
c[i] = len(self.neighbors[i]) | |
KeyError: 8 | |
====================================================================== | |
ERROR: test_W (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test___getitem__ (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test___init__ (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test___iter__ (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_asymmetries (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_asymmetry (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_cardinalities (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_diagW2 (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_diagWtW (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_diagWtW_WW (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_full (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_get_transform (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_higher_order (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_histogram (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_id2i (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_id_order_set (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_islands (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_max_neighbors (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_mean_neighbors (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_min_neighbors (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_n (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_nonzero (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_order (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_pct_nonzero (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_s0 (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_s1 (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_s2 (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_s2array (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_sd (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_set_transform (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_shimbel (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_sparse (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_trcW2 (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_trcWtW (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
ERROR: test_trcWtW_WW (pysal.weights.tests.test_weights.Test_WSP_Back_To_W) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_weights.py", line 228, in setUp | |
self.w = rook_from_shapefile(pysal.examples.get_path('10740.shp')) | |
File "/home/ljw/dev/pysal/pysal/weights/user.py", line 121, in rook_from_shapefile | |
w = buildContiguity(shp, criterion='rook') | |
File "/home/ljw/dev/pysal/pysal/weights/Contiguity.py", line 87, in buildContiguity | |
neighbor_data = ContiguityWeights(geoObj, wt_type).w | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 53, in __init__ | |
self.do_weights() | |
File "/home/ljw/dev/pysal/pysal/weights/_contW_binning.py", line 79, in do_weights | |
columns = [set() for i in range(bucketmin)] | |
TypeError: 'float' object cannot be interpreted as an integer | |
====================================================================== | |
FAIL: test_DistanceBand_arc (pysal.weights.tests.test_Distance.TestDistanceWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Distance.py", line 146, in test_DistanceBand_arc | |
self.assertTrue((w.sparse.todense() == full).all()) | |
AssertionError: False is not true | |
====================================================================== | |
FAIL: test_threshold (pysal.weights.tests.test_Distance.TestDistanceWeights) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Distance.py", line 113, in test_threshold | |
1.7250729841938093]) | |
nose.proxy.AssertionError: Lists differ: [1.7250729841938093, 1.6702346893743334] != [1.6702346893743334, 1.7250729841938093] | |
First differing element 0: | |
1.72507298419 | |
1.6702346893743334 | |
- [1.7250729841938093, 1.6702346893743334] | |
+ [1.6702346893743334, 1.7250729841938093] | |
-------------------- >> begin captured stdout << --------------------- | |
WARNING: there is one disconnected observation (no neighbors) | |
Island id: [2] | |
WARNING: there is one disconnected observation (no neighbors) | |
Island id: [2] | |
--------------------- >> end captured stdout << ---------------------- | |
====================================================================== | |
FAIL: Unit test | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Wsets.py", line 38, in test_w_difference | |
self.assertEqual(w1.neighbors[15], [10, 11, 14]) | |
nose.proxy.AssertionError: Lists differ: [9, 10, 13] != [10, 11, 14] | |
First differing element 0: | |
9 | |
10 | |
- [9, 10, 13] | |
+ [10, 11, 14] | |
-------------------- >> begin captured stdout << --------------------- | |
WARNING: there are 4 disconnected observations | |
Island ids: [12.0, 14.0, 16.0, 18.0] | |
--------------------- >> end captured stdout << ---------------------- | |
====================================================================== | |
FAIL: Unit test | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Wsets.py", line 28, in test_w_intersection | |
self.assertEqual(w1.neighbors[15], [11, 14]) | |
AssertionError: Lists differ: [13] != [11, 14] | |
First differing element 0: | |
13 | |
11 | |
Second list contains 1 additional elements. | |
First extra element 1: | |
14 | |
- [13] | |
+ [11, 14] | |
====================================================================== | |
FAIL: Unit test | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Wsets.py", line 59, in test_w_subset | |
self.assertEqual(w1.neighbors[15], [11, 14, 19]) | |
AssertionError: Lists differ: [13, 22.0] != [11, 14, 19] | |
First differing element 0: | |
13 | |
11 | |
Second list contains 1 additional elements. | |
First extra element 2: | |
19 | |
- [13, 22.0] | |
+ [11, 14, 19] | |
====================================================================== | |
FAIL: Unit test | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Wsets.py", line 49, in test_w_symmetric_difference | |
self.assertEqual(w1.neighbors[15], [10, 11, 14]) | |
AssertionError: Lists differ: [9, 10, 13] != [10, 11, 14] | |
First differing element 0: | |
9 | |
10 | |
- [9, 10, 13] | |
+ [10, 11, 14] | |
====================================================================== | |
FAIL: Unit test | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/ljw/dev/pysal/pysal/weights/tests/test_Wsets.py", line 18, in test_w_union | |
self.assertEqual(w1.neighbors[15], [11, 14]) | |
AssertionError: Lists differ: [13] != [11, 14] | |
First differing element 0: | |
13 | |
11 | |
Second list contains 1 additional elements. | |
First extra element 1: | |
14 | |
- [13] | |
+ [11, 14] | |
---------------------------------------------------------------------- | |
Ran 136 tests in 2.118s | |
FAILED (errors=117, failures=7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment