{"action":"created","issue":{"url":"https://api.github.com/repos/mdtraj/mdtraj/issues/914","labels_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/914/labels{/name}","comments_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/914/comments","events_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/914/events","html_url":"https://github.com/mdtraj/mdtraj/issues/914","id":101507451,"number":914,"title":"[FR] Optional argument to md.load() which specifies the distance unit","user":{"login":"ctk3b","id":3527431,"avatar_url":"https://avatars.githubusercontent.com/u/3527431?v=3","gravatar_id":"","url":"https://api.github.com/users/ctk3b","html_url":"https://github.com/ctk3b","followers_url":"https://api.github.com/users/ctk3b/followers","following_url":"https://api.github.com/users/ctk3b/following{/other_user}","gists_url":"https://api.github.com/users/ctk3b/gists{/gist_id}","starred_url":"https://api.github.com/users/ctk3b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctk3b/subscriptions","organizations_url":"https://api.github.com/users/ctk3b/orgs","repos_url":"https://api.github.com/users/ctk3b/repos","events_url":"https://api.github.com/users/ctk3b/events{/privacy}","received_events_url":"https://api.github.com/users/ctk3b/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-17T20:51:47Z","updated_at":"2015-08-17T21:26:59Z","closed_at":null,"body":"For example, if I want to load a `.dcd` file that I know was written in nanometers (against convention), it would be nice to be able to write something like `md.load('traj.dcd', top='top.pdb', distance_unit='nanometers')`. The [`.lammpstrj` format](https://github.com/mdtraj/mdtraj/blob/master/mdtraj/formats/lammpstrj.py#L101) already has something like this in anticipation of supporting multiple [LAMMPS unit sets](http://lammps.sandia.gov/doc/units.html). This should also enable reading trajectories written in reduced units by providing a `simtk.Quantity`.\r\n\r\nDo you foresee any obvious problems with adding an optional argument which modifies the file objects' `distance_unit` attribute? "},"comment":{"url":"https://api.github.com/repos/mdtraj/mdtraj/issues/comments/131967391","html_url":"https://github.com/mdtraj/mdtraj/issues/914#issuecomment-131967391","issue_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/914","id":131967391,"user":{"login":"hainm","id":4451957,"avatar_url":"https://avatars.githubusercontent.com/u/4451957?v=3","gravatar_id":"","url":"https://api.github.com/users/hainm","html_url":"https://github.com/hainm","followers_url":"https://api.github.com/users/hainm/followers","following_url":"https://api.github.com/users/hainm/following{/other_user}","gists_url":"https://api.github.com/users/hainm/gists{/gist_id}","starred_url":"https://api.github.com/users/hainm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hainm/subscriptions","organizations_url":"https://api.github.com/users/hainm/orgs","repos_url":"https://api.github.com/users/hainm/repos","events_url":"https://api.github.com/users/hainm/events{/privacy}","received_events_url":"https://api.github.com/users/hainm/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T21:26:59Z","updated_at":"2015-08-17T21:26:59Z","body":"just curious, what's your motivation to use 'nm'? does openmm use 'nm'?"}}