{"action":"created","issue":{"url":"https://api.github.com/repos/dbuscombe-usgs/PyHum/issues/58","repository_url":"https://api.github.com/repos/dbuscombe-usgs/PyHum","labels_url":"https://api.github.com/repos/dbuscombe-usgs/PyHum/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/dbuscombe-usgs/PyHum/issues/58/comments","events_url":"https://api.github.com/repos/dbuscombe-usgs/PyHum/issues/58/events","html_url":"https://github.com/dbuscombe-usgs/PyHum/issues/58","id":302435462,"number":58,"title":"map_texture error","user":{"login":"jasonfischer","id":9321864,"avatar_url":"https://avatars3.githubusercontent.com/u/9321864?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonfischer","html_url":"https://github.com/jasonfischer","followers_url":"https://api.github.com/users/jasonfischer/followers","following_url":"https://api.github.com/users/jasonfischer/following{/other_user}","gists_url":"https://api.github.com/users/jasonfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonfischer/subscriptions","organizations_url":"https://api.github.com/users/jasonfischer/orgs","repos_url":"https://api.github.com/users/jasonfischer/repos","events_url":"https://api.github.com/users/jasonfischer/events{/privacy}","received_events_url":"https://api.github.com/users/jasonfischer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-05T19:45:33Z","updated_at":"2018-03-05T20:09:35Z","closed_at":null,"author_association":"NONE","body":"Whenever I attempt to run the map_texture module I receive an error message that one of the .dat files produced by PyHum was not interpreted as a pickle. At first I thought it might pertain to my data, but I receive the same error message using a copy of the test data included with PyHum. Any guidance on what is causing the error?\r\nI’ve attached a text file of my script and have included a screen shot of the error message. I am running PyHum-1.4.6 in Windows 10 on a 64-bit machine.\r\n![image](https://user-images.githubusercontent.com/9321864/36995921-719df608-2083-11e8-86f9-5521d6a683e6.png)\r\n\r\n[pyHumPAC2014.txt](https://github.com/dbuscombe-usgs/PyHum/files/1782349/pyHumPAC2014.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dbuscombe-usgs/PyHum/issues/comments/370547823","html_url":"https://github.com/dbuscombe-usgs/PyHum/issues/58#issuecomment-370547823","issue_url":"https://api.github.com/repos/dbuscombe-usgs/PyHum/issues/58","id":370547823,"user":{"login":"dbuscombe-usgs","id":3596509,"avatar_url":"https://avatars0.githubusercontent.com/u/3596509?v=4","gravatar_id":"","url":"https://api.github.com/users/dbuscombe-usgs","html_url":"https://github.com/dbuscombe-usgs","followers_url":"https://api.github.com/users/dbuscombe-usgs/followers","following_url":"https://api.github.com/users/dbuscombe-usgs/following{/other_user}","gists_url":"https://api.github.com/users/dbuscombe-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/dbuscombe-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbuscombe-usgs/subscriptions","organizations_url":"https://api.github.com/users/dbuscombe-usgs/orgs","repos_url":"https://api.github.com/users/dbuscombe-usgs/repos","events_url":"https://api.github.com/users/dbuscombe-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/dbuscombe-usgs/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T20:09:35Z","updated_at":"2018-03-05T20:09:35Z","author_association":"OWNER","body":"try replacing line 254\r\n\r\n```\r\nwith open(os.path.normpath(os.path.join(sonpath,base+'_data_class.dat')), 'r') as ff:\r\n```\r\n\r\nwith\r\n\r\n```\r\nwith open(os.path.normpath(os.path.join(sonpath,base+'_data_class.dat')), 'rb') as ff:\r\n```\r\n\r\nIf that doesn't work, try replacing lines 254 and 255\r\n\r\n```\r\n       with open(os.path.normpath(os.path.join(sonpath,base+'_data_class.dat')), 'r') as ff:\r\n          class_fp = np.load(ff) \r\n```\r\n\r\nwith\r\n\r\n```\r\n       shape = shape_port.copy()\r\n       shape[1] = shape_port[1] + shape_star[1]\r\n       class_fp = io.get_mmap_data(sonpath, base, '_data_class.dat', 'float32', tuple(shape))\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"dbuscombe-usgs"}}