{"action":"created","issue":{"url":"https://api.github.com/repos/AllenInstitute/AllenSDK/issues/10","labels_url":"https://api.github.com/repos/AllenInstitute/AllenSDK/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/AllenInstitute/AllenSDK/issues/10/comments","events_url":"https://api.github.com/repos/AllenInstitute/AllenSDK/issues/10/events","html_url":"https://github.com/AllenInstitute/AllenSDK/issues/10","id":114921534,"number":10,"title":"Access to parameters for stimulus waveform","user":{"login":"rgerkin","id":549787,"avatar_url":"https://avatars.githubusercontent.com/u/549787?v=3","gravatar_id":"","url":"https://api.github.com/users/rgerkin","html_url":"https://github.com/rgerkin","followers_url":"https://api.github.com/users/rgerkin/followers","following_url":"https://api.github.com/users/rgerkin/following{/other_user}","gists_url":"https://api.github.com/users/rgerkin/gists{/gist_id}","starred_url":"https://api.github.com/users/rgerkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgerkin/subscriptions","organizations_url":"https://api.github.com/users/rgerkin/orgs","repos_url":"https://api.github.com/users/rgerkin/repos","events_url":"https://api.github.com/users/rgerkin/events{/privacy}","received_events_url":"https://api.github.com/users/rgerkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-03T22:07:29Z","updated_at":"2015-11-03T22:56:08Z","closed_at":null,"body":"Is there any way to get the parameters for a stimulus waveform other than to try to figure them out from the value of sweep_data['stimulus']?  In other words, what I currently do is:  \r\n\r\n```\r\nfrom allensdk.core.nwb_data_set import NwbDataSet\r\ndata_set = NwbDataSet(raw_ephys_file_name)\r\nsweep_data = data_set.get_sweep(sweep_number)\r\nstimulus = sweep_data['stimulus']\r\n```\r\n\r\nBecause sweeps have multiple pulses, and of different sizes, I have to do some work to extract pulse parameters (start times, durations, amplitudes), for example to reproduce in a simulation.  It would be helpful to have access to these parameters directly, e.g. `data_set.get_sweep_parameters()`, returning a dictionary of parameters.  Are these stored anywhere that is accessible by the API?  "},"comment":{"url":"https://api.github.com/repos/AllenInstitute/AllenSDK/issues/comments/153515097","html_url":"https://github.com/AllenInstitute/AllenSDK/issues/10#issuecomment-153515097","issue_url":"https://api.github.com/repos/AllenInstitute/AllenSDK/issues/10","id":153515097,"user":{"login":"rgerkin","id":549787,"avatar_url":"https://avatars.githubusercontent.com/u/549787?v=3","gravatar_id":"","url":"https://api.github.com/users/rgerkin","html_url":"https://github.com/rgerkin","followers_url":"https://api.github.com/users/rgerkin/followers","following_url":"https://api.github.com/users/rgerkin/following{/other_user}","gists_url":"https://api.github.com/users/rgerkin/gists{/gist_id}","starred_url":"https://api.github.com/users/rgerkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgerkin/subscriptions","organizations_url":"https://api.github.com/users/rgerkin/orgs","repos_url":"https://api.github.com/users/rgerkin/repos","events_url":"https://api.github.com/users/rgerkin/events{/privacy}","received_events_url":"https://api.github.com/users/rgerkin/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T22:56:08Z","updated_at":"2015-11-03T22:56:08Z","body":"@dyf I just noticed that the list returned by `get_ephys_sweeps` is in what appears to be a random order.  I can find the desired sweep_number by iterating through that list and picking out the one that matches, so this isn't a big deal.  But is there any particular reason it is returned in random order?  Is it just returning them in the order it finds them in the CellTypes database?  "}}