{"action":"created","issue":{"url":"https://api.github.com/repos/MDAnalysis/GridDataFormats/issues/3","labels_url":"https://api.github.com/repos/MDAnalysis/GridDataFormats/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/MDAnalysis/GridDataFormats/issues/3/comments","events_url":"https://api.github.com/repos/MDAnalysis/GridDataFormats/issues/3/events","html_url":"https://github.com/MDAnalysis/GridDataFormats/issues/3","id":79638970,"number":3,"title":"Reads in real number as an integer and a float","user":{"login":"GarrettLimon1","id":12566432,"avatar_url":"https://avatars.githubusercontent.com/u/12566432?v=3","gravatar_id":"","url":"https://api.github.com/users/GarrettLimon1","html_url":"https://github.com/GarrettLimon1","followers_url":"https://api.github.com/users/GarrettLimon1/followers","following_url":"https://api.github.com/users/GarrettLimon1/following{/other_user}","gists_url":"https://api.github.com/users/GarrettLimon1/gists{/gist_id}","starred_url":"https://api.github.com/users/GarrettLimon1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GarrettLimon1/subscriptions","organizations_url":"https://api.github.com/users/GarrettLimon1/orgs","repos_url":"https://api.github.com/users/GarrettLimon1/repos","events_url":"https://api.github.com/users/GarrettLimon1/events{/privacy}","received_events_url":"https://api.github.com/users/GarrettLimon1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MDAnalysis/GridDataFormats/labels/wrong%20results","name":"wrong results","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"orbeckst","id":237980,"avatar_url":"https://avatars.githubusercontent.com/u/237980?v=3","gravatar_id":"","url":"https://api.github.com/users/orbeckst","html_url":"https://github.com/orbeckst","followers_url":"https://api.github.com/users/orbeckst/followers","following_url":"https://api.github.com/users/orbeckst/following{/other_user}","gists_url":"https://api.github.com/users/orbeckst/gists{/gist_id}","starred_url":"https://api.github.com/users/orbeckst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbeckst/subscriptions","organizations_url":"https://api.github.com/users/orbeckst/orgs","repos_url":"https://api.github.com/users/orbeckst/repos","events_url":"https://api.github.com/users/orbeckst/events{/privacy}","received_events_url":"https://api.github.com/users/orbeckst/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-05-22T22:41:56Z","updated_at":"2015-06-30T07:09:25Z","closed_at":null,"body":"Using gridDataFormats I wrote out a grid in a .dx file and also read it back into my program. Upon loading in the file, one number on my grid, -9e-0.5, was being read in as an integer -9 and a string 'e-05'. My advisor and I made a quick fix for now, but we wanted you to be aware of the issue. It is in [line 426 of OpenDX.py](https://github.com/MDAnalysis/GridDataFormats/blob/master/gridData/OpenDX.py#L426). I would attach a copy of the file that raised the issue, but its format is not supported on here.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MDAnalysis/GridDataFormats/issues/comments/117028448","html_url":"https://github.com/MDAnalysis/GridDataFormats/issues/3#issuecomment-117028448","issue_url":"https://api.github.com/repos/MDAnalysis/GridDataFormats/issues/3","id":117028448,"user":{"login":"orbeckst","id":237980,"avatar_url":"https://avatars.githubusercontent.com/u/237980?v=3","gravatar_id":"","url":"https://api.github.com/users/orbeckst","html_url":"https://github.com/orbeckst","followers_url":"https://api.github.com/users/orbeckst/followers","following_url":"https://api.github.com/users/orbeckst/following{/other_user}","gists_url":"https://api.github.com/users/orbeckst/gists{/gist_id}","starred_url":"https://api.github.com/users/orbeckst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbeckst/subscriptions","organizations_url":"https://api.github.com/users/orbeckst/orgs","repos_url":"https://api.github.com/users/orbeckst/repos","events_url":"https://api.github.com/users/orbeckst/events{/privacy}","received_events_url":"https://api.github.com/users/orbeckst/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T07:09:24Z","updated_at":"2015-06-30T07:09:24Z","body":"If gridData wrote it then file it as a new bug because then the problem really is that gridData is writing in a bad format (i.e. breaking numbers across lines).\n\nIf you can provide example code that reproduces the problem then that would be extremely helpful.\n\nThanks,\nOliver\n\nOn 29 Jun, 2015, at 23:21, GarrettLimon1 wrote:\n\n> Well like I said before, Python generated my grid and the numbers in it. I just used a simple 3D hat function to do so. Then I wrote the grid out into the dx file using gridData, which was done no problem. The problem was then reading it back in using gridData. I don't know why -9e-05 wouldn't be legal in a DX file, but if you mean the placement of it being at the end of the line, that was done by gridData when it output the file. As for that occurrence being common, I'm not sure because of my limited experience with .dx files, but I would think not. I will bring it up tomorrow to my advisor and see what he thinks about it.\n\n--\nOliver Beckstein * orbeckst@gmx.net\nskype: orbeckst  * orbeckst@gmail.com\n\n"}}