{"action":"created","issue":{"url":"https://api.github.com/repos/pysal/pysal/issues/859","repository_url":"https://api.github.com/repos/pysal/pysal","labels_url":"https://api.github.com/repos/pysal/pysal/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/pysal/pysal/issues/859/comments","events_url":"https://api.github.com/repos/pysal/pysal/issues/859/events","html_url":"https://github.com/pysal/pysal/issues/859","id":169182187,"number":859,"title":"Wrong there is one disconnected observation (no neighbors)","user":{"login":"denadai2","id":190799,"avatar_url":"https://avatars.githubusercontent.com/u/190799?v=3","gravatar_id":"","url":"https://api.github.com/users/denadai2","html_url":"https://github.com/denadai2","followers_url":"https://api.github.com/users/denadai2/followers","following_url":"https://api.github.com/users/denadai2/following{/other_user}","gists_url":"https://api.github.com/users/denadai2/gists{/gist_id}","starred_url":"https://api.github.com/users/denadai2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denadai2/subscriptions","organizations_url":"https://api.github.com/users/denadai2/orgs","repos_url":"https://api.github.com/users/denadai2/repos","events_url":"https://api.github.com/users/denadai2/events{/privacy}","received_events_url":"https://api.github.com/users/denadai2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sjsrey","id":118042,"avatar_url":"https://avatars.githubusercontent.com/u/118042?v=3","gravatar_id":"","url":"https://api.github.com/users/sjsrey","html_url":"https://github.com/sjsrey","followers_url":"https://api.github.com/users/sjsrey/followers","following_url":"https://api.github.com/users/sjsrey/following{/other_user}","gists_url":"https://api.github.com/users/sjsrey/gists{/gist_id}","starred_url":"https://api.github.com/users/sjsrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjsrey/subscriptions","organizations_url":"https://api.github.com/users/sjsrey/orgs","repos_url":"https://api.github.com/users/sjsrey/repos","events_url":"https://api.github.com/users/sjsrey/events{/privacy}","received_events_url":"https://api.github.com/users/sjsrey/received_events","type":"User","site_admin":false},"assignees":[{"login":"sjsrey","id":118042,"avatar_url":"https://avatars.githubusercontent.com/u/118042?v=3","gravatar_id":"","url":"https://api.github.com/users/sjsrey","html_url":"https://github.com/sjsrey","followers_url":"https://api.github.com/users/sjsrey/followers","following_url":"https://api.github.com/users/sjsrey/following{/other_user}","gists_url":"https://api.github.com/users/sjsrey/gists{/gist_id}","starred_url":"https://api.github.com/users/sjsrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjsrey/subscriptions","organizations_url":"https://api.github.com/users/sjsrey/orgs","repos_url":"https://api.github.com/users/sjsrey/repos","events_url":"https://api.github.com/users/sjsrey/events{/privacy}","received_events_url":"https://api.github.com/users/sjsrey/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-08-03T17:02:10Z","updated_at":"2016-08-31T23:30:50Z","closed_at":null,"body":"Hello,\r\nI have this message \"there is one disconnected observation (no neighbors) Island id:  [44]\" with this code:\r\n\r\n    w = pysal.queen_from_shapefile(\"upz.shp\", \"NUMERO\")\r\n    w.transform = 'b'\r\n\r\nAs you can see \r\n\r\n    w.neighbors[44]\r\n\r\ngives me \r\n```\r\n[113, 45, 46, 47]\r\n```\r\nSo even the code says the warning is wrong.\r\n\r\n    w.cardinalities.items()\r\n\r\n```\r\ndict_items([(1.0, 3), (2.0, 4), (3.0, 2), (9.0, 4), (10.0, 5), (11.0, 3), (12.0, 6), (13.0, 6), (14.0, 5), (15.0, 5), (16.0, 5), (17.0, 6), (18.0, 6), (19.0, 7), (20.0, 7), (21.0, 7), (22.0, 4), (23.0, 6), (24.0, 6), (25.0, 6), (26.0, 9), (27.0, 4), (28.0, 7), (29.0, 7), (30.0, 6), (31.0, 6), (32.0, 3), (33.0, 3), (34.0, 3), (35.0, 3), (37.0, 3), (38.0, 3), (42.0, 5), (44.0, 4), (45.0, 6), (46.0, 8), (47.0, 6), (48.0, 5), (49.0, 5), (50.0, 4), (51.0, 4), (52.0, 3), (56.0, 4), (57.0, 7), (58.0, 5), (59.0, 4), (60.0, 7), (61.0, 4), (62.0, 6), (63.0, 6), (64.0, 3), (65.0, 6), (66.0, 5), (67.0, 5), (68.0, 2), (69.0, 4), (70.0, 4), (71.0, 4), (72.0, 5), (73.0, 5), (74.0, 3), (75.0, 6), (76.0, 3), (77.0, 4), (78.0, 4), (79.0, 4), (80.0, 6), (81.0, 7), (82.0, 5), (83.0, 5), (84.0, 5), (85.0, 6), (86.0, 3), (87.0, 3), (88.0, 3), (89.0, 0), (90.0, 3), (97.0, 8), (98.0, 7), (99.0, 5), (100.0, 6), (101.0, 5), (102.0, 3), (103.0, 6), (104.0, 9), (105.0, 5), (106.0, 4), (107.0, 4), (109.0, 5), (110.0, 8), (112.0, 8), (113.0, 3), (114.0, 4), (115.0, 6), (116.0, 7), (117.0, 5)])\r\n```\r\n\r\nAnd the shapefile I have attached.\r\n[upz.zip](https://github.com/pysal/pysal/files/399973/upz.zip)\r\n\r\nAs you can see \r\n\r\n- Platform information:\r\n```\r\nposix.uname_result(sysname='Linux', release='3.13.0-32-generic', version='#57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014', machine='x86_64')\r\n```\r\n- Python version: \r\n```\r\n3.4.0 (default, Jun 19 2015, 14:20:21) \r\n[GCC 4.8.2]\r\n```\r\n- SciPy version:\r\n```\r\n0.17.0\r\n```\r\n- NumPy version:\r\n```\r\n1.10.4\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pysal/pysal/issues/comments/243933637","html_url":"https://github.com/pysal/pysal/issues/859#issuecomment-243933637","issue_url":"https://api.github.com/repos/pysal/pysal/issues/859","id":243933637,"user":{"login":"sjsrey","id":118042,"avatar_url":"https://avatars.githubusercontent.com/u/118042?v=3","gravatar_id":"","url":"https://api.github.com/users/sjsrey","html_url":"https://github.com/sjsrey","followers_url":"https://api.github.com/users/sjsrey/followers","following_url":"https://api.github.com/users/sjsrey/following{/other_user}","gists_url":"https://api.github.com/users/sjsrey/gists{/gist_id}","starred_url":"https://api.github.com/users/sjsrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjsrey/subscriptions","organizations_url":"https://api.github.com/users/sjsrey/orgs","repos_url":"https://api.github.com/users/sjsrey/repos","events_url":"https://api.github.com/users/sjsrey/events{/privacy}","received_events_url":"https://api.github.com/users/sjsrey/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T23:30:50Z","updated_at":"2016-08-31T23:30:50Z","body":"The correct behavior should be:\r\n```\r\nIn [3]: w = pysal.queen_from_shapefile('upz.shp', idVariable=\"NUMERO\")\r\nWARNING: there is one disconnected observation (no neighbors)\r\n('Island id: ', [89])\r\n\r\nIn [4]: w.neighbors[89]\r\nOut[4]: []\r\n\r\nIn [5]: w = pysal.queen_from_shapefile('upz.shp')\r\nWARNING: there is one disconnected observation (no neighbors)\r\n('Island id: ', [44])\r\n\r\nIn [6]: w.neighbors[44]\r\nOut[6]: []\r\n\r\nIn [7]: w.neighbors[89]\r\nOut[7]: [105, 42, 107, 86, 87, 88, 74]\r\n```\r\n\r\nI have a fix in for this in my branch [b859](https://github.com/sjsrey/pysal/tree/b859) \r\n"}}
{"actor":{"display_login":"sjsrey"}}