{"action":"closed","issue":{"url":"https://api.github.com/repos/MDSplus/mdsplus/issues/113","labels_url":"https://api.github.com/repos/MDSplus/mdsplus/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/MDSplus/mdsplus/issues/113/comments","events_url":"https://api.github.com/repos/MDSplus/mdsplus/issues/113/events","html_url":"https://github.com/MDSplus/mdsplus/issues/113","id":107784385,"number":113,"title":"inconsistent datatype for dim_of when reading segmented data as block","user":{"login":"zack-vii","id":6230702,"avatar_url":"https://avatars.githubusercontent.com/u/6230702?v=3","gravatar_id":"","url":"https://api.github.com/users/zack-vii","html_url":"https://github.com/zack-vii","followers_url":"https://api.github.com/users/zack-vii/followers","following_url":"https://api.github.com/users/zack-vii/following{/other_user}","gists_url":"https://api.github.com/users/zack-vii/gists{/gist_id}","starred_url":"https://api.github.com/users/zack-vii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zack-vii/subscriptions","organizations_url":"https://api.github.com/users/zack-vii/orgs","repos_url":"https://api.github.com/users/zack-vii/repos","events_url":"https://api.github.com/users/zack-vii/events{/privacy}","received_events_url":"https://api.github.com/users/zack-vii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-22T19:32:33Z","updated_at":"2015-10-20T12:38:03Z","closed_at":"2015-10-20T12:38:03Z","body":"If the dimension (dim_of) of a segment is not a floating point value array it will be type casted to Float64(D), However, not necessarily with Float64 accuracy.\r\ne.g.: if dim is written as Uint32 the value 'V' will be returned as Float64(Float32(V)).\r\n\r\nI assume this has been done to support different data types throughout the segments. However it is unlikely that the datatype changes thus it would be much better to conserve the shared datatype.\r\n\r\nWe save our times as ns since 1970 in Uint64. The typecasting can result in an error of days.\r\nIt is hidden most likely somewhere beyond TreeGetRecord.\r\n"}}