{"action":"opened","issue":{"url":"https://api.github.com/repos/mdtraj/mdtraj/issues/1175","repository_url":"https://api.github.com/repos/mdtraj/mdtraj","labels_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/1175/labels{/name}","comments_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/1175/comments","events_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/1175/events","html_url":"https://github.com/mdtraj/mdtraj/issues/1175","id":177025912,"number":1175,"title":"save_hdf5 changes timestep to float32","user":{"login":"smsaladi","id":2942215,"avatar_url":"https://avatars.githubusercontent.com/u/2942215?v=3","gravatar_id":"","url":"https://api.github.com/users/smsaladi","html_url":"https://github.com/smsaladi","followers_url":"https://api.github.com/users/smsaladi/followers","following_url":"https://api.github.com/users/smsaladi/following{/other_user}","gists_url":"https://api.github.com/users/smsaladi/gists{/gist_id}","starred_url":"https://api.github.com/users/smsaladi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smsaladi/subscriptions","organizations_url":"https://api.github.com/users/smsaladi/orgs","repos_url":"https://api.github.com/users/smsaladi/repos","events_url":"https://api.github.com/users/smsaladi/events{/privacy}","received_events_url":"https://api.github.com/users/smsaladi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-14T21:26:41Z","updated_at":"2016-09-14T21:26:41Z","closed_at":null,"body":"Using the the DCD timestep reader that I am working on getting right, the timestep is read in as `float64`. When I save this trajectory with `save_hdf5` and load it again, I get a `float32`. Is this by design?\r\n\r\n```python\r\nIn [1]: import mdtraj as md, glob, numpy as np\r\n\r\nIn [2]: traj_files = glob.glob(\"./quark12357_10/quark12357_10_autopsf_tip3p_NaCl.prod_tp*.dcd\")\r\n   ...: t = md.load(traj_files[0],\r\n   ...:            top='./quark12357_10/quark12357_10_autopsf_tip3p_NaCl.pdb',\r\n   ...:            discard_overlapping_frames=True)\r\n\r\nIn [3]: t.time[:10]\r\nOut[3]:\r\narray([ 2063.37600615,  2063.88000615,  2064.38400615,  2064.88800616,\r\n        2065.39200616,  2065.89600616,  2066.40000616,  2066.90400616,\r\n        2067.40800616,  2067.91200617])\r\n\r\nIn [4]: t.time.dtype\r\nOut[4]: dtype('float64')\r\n\r\nIn [5]: t.save_hdf5(\"test.h5\")\r\n\r\nIn [6]: u = md.load(\"test.h5\")\r\n\r\nIn [7]: u.time[:10]\r\nOut[7]:\r\narray([ 2063.37597656,  2063.88012695,  2064.3840332 ,  2064.88793945,\r\n        2065.39208984,  2065.89599609,  2066.39990234,  2066.90405273,\r\n        2067.40795898,  2067.91210938], dtype=float32)\r\n\r\nIn [8]: u.time.dtype\r\nOut[8]: dtype('float32')\r\n```"}}
{"actor":{"display_login":"smsaladi"}}