Skip to content

Instantly share code, notes, and snippets.

@ljwolf
Created July 25, 2015 01:10
Show Gist options
  • Save ljwolf/06e7093f6993cf6aa1b8 to your computer and use it in GitHub Desktop.
Save ljwolf/06e7093f6993cf6aa1b8 to your computer and use it in GitHub Desktop.
Weights nose errors
......WARNING: there is one disconnected observation (no neighbors)
Island id: [2]
WARNING: there is one disconnected observation (no neighbors)
Island id: [2]
F
======================================================================
FAIL: test_threshold (__main__.TestDistanceWeights)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pysal/weights/tests/test_Distance.py", line 99, in test_threshold
1.7250729841938093])
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]
----------------------------------------------------------------------
Ran 7 tests in 0.907s
FAILED (failures=1)
..........WARNING: there is one disconnected observation (no neighbors)
Island id: [2]
..WARNING: there is one disconnected observation (no neighbors)
Island id: [2]
WARNING: there is one disconnected observation (no neighbors)
Island id: [2]
.F
======================================================================
FAIL: test_threshold_continuousW_from_shapefile (__main__.Testuser)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pysal/weights/tests/test_user.py", line 83, in test_threshold_continuousW_from_shapefile
w.weights[1], [1.6702346893743334, 1.7250729841938093])
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]
----------------------------------------------------------------------
Ran 14 tests in 0.445s
FAILED (failures=1)
======================================================================
FAIL: test_higher_order (__main__.TestW)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pysal/weights/tests/test_weights.py", line 99, in test_higher_order
self.assertEqual(w2.neighbors, neighbors)
AssertionError: {0: [[40 chars] [7, 5, 1], 4: [8, 0, 2, 6], 5: [1, 3, 7], 6: [33 chars], 4]} != {0: [[40 chars] [7, 1, 5], 4: [8, 0, 2, 6], 5: [1, 3, 7], 6: [33 chars], 4]}
{0: [4, 6, 2],
1: [3, 5, 7],
2: [8, 0, 4],
- 3: [7, 5, 1],
? ---
+ 3: [7, 1, 5],
? +++
4: [8, 0, 2, 6],
5: [1, 3, 7],
6: [4, 0, 8],
7: [3, 1, 5],
8: [6, 2, 4]}
======================================================================
FAIL: test_higher_order (__main__.Test_WSP_Back_To_W)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pysal/weights/tests/test_weights.py", line 316, in test_higher_order
self.assertEqual(w2.neighbors, neighbors)
AssertionError: {0: [[40 chars] [7, 5, 1], 4: [8, 0, 2, 6], 5: [1, 3, 7], 6: [33 chars], 4]} != {0: [[40 chars] [7, 1, 5], 4: [8, 0, 2, 6], 5: [1, 3, 7], 6: [33 chars], 4]}
{0: [4, 6, 2],
1: [3, 5, 7],
2: [8, 0, 4],
- 3: [7, 5, 1],
? ---
+ 3: [7, 1, 5],
? +++
4: [8, 0, 2, 6],
5: [1, 3, 7],
6: [4, 0, 8],
7: [3, 1, 5],
8: [6, 2, 4]}
----------------------------------------------------------------------
Ran 75 tests in 15.659s
FAILED (failures=2)
.F..F
======================================================================
FAIL: test_w_intersection (__main__.TestWsets)
Unit test
----------------------------------------------------------------------
Traceback (most recent call last):
File "pysal/weights/tests/test_Wsets.py", line 27, in test_w_intersection
self.assertEqual(w3.neighbors[15], [19, 11, 14])
AssertionError: Lists differ: [11, 19, 14] != [19, 11, 14]
First differing element 0:
11
19
- [11, 19, 14]
+ [19, 11, 14]
======================================================================
FAIL: test_w_union (__main__.TestWsets)
Unit test
----------------------------------------------------------------------
Traceback (most recent call last):
File "pysal/weights/tests/test_Wsets.py", line 17, in test_w_union
self.assertEqual(w3.neighbors[15], [19, 11, 14])
AssertionError: Lists differ: [11, 19, 14] != [19, 11, 14]
First differing element 0:
11
19
- [11, 19, 14]
+ [19, 11, 14]
----------------------------------------------------------------------
Ran 5 tests in 0.003s
FAILED (failures=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment