{"action":"created","issue":{"url":"https://api.github.com/repos/NeurodataWithoutBorders/pynwb/issues/547","repository_url":"https://api.github.com/repos/NeurodataWithoutBorders/pynwb","labels_url":"https://api.github.com/repos/NeurodataWithoutBorders/pynwb/issues/547/labels{/name}","comments_url":"https://api.github.com/repos/NeurodataWithoutBorders/pynwb/issues/547/comments","events_url":"https://api.github.com/repos/NeurodataWithoutBorders/pynwb/issues/547/events","html_url":"https://github.com/NeurodataWithoutBorders/pynwb/issues/547","id":338534297,"node_id":"MDU6SXNzdWUzMzg1MzQyOTc=","number":547,"title":"Accessing /general/stimulus","user":{"login":"ageorgou","id":1186102,"node_id":"MDQ6VXNlcjExODYxMDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1186102?v=4","gravatar_id":"","url":"https://api.github.com/users/ageorgou","html_url":"https://github.com/ageorgou","followers_url":"https://api.github.com/users/ageorgou/followers","following_url":"https://api.github.com/users/ageorgou/following{/other_user}","gists_url":"https://api.github.com/users/ageorgou/gists{/gist_id}","starred_url":"https://api.github.com/users/ageorgou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ageorgou/subscriptions","organizations_url":"https://api.github.com/users/ageorgou/orgs","repos_url":"https://api.github.com/users/ageorgou/repos","events_url":"https://api.github.com/users/ageorgou/events{/privacy}","received_events_url":"https://api.github.com/users/ageorgou/received_events","type":"User","site_admin":false},"labels":[{"id":661411410,"node_id":"MDU6TGFiZWw2NjE0MTE0MTA=","url":"https://api.github.com/repos/NeurodataWithoutBorders/pynwb/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-05T11:25:16Z","updated_at":"2018-07-05T17:15:31Z","closed_at":null,"author_association":"NONE","body":"According to the [NWB schema](https://nwb-schema.readthedocs.io/en/latest/format.html#groups-general), there is a `stimulus` dataset in the `/general` group which optionally allows general descriptions of stimuli. However, I cannot see how to access this through the API. Setting it directly through the `stimulus` attribute of an `NWBFile`  (the same way as other datasets under `/general`, e.g. `experimenter`) does not work:\r\n\r\n```python\r\n>>> nwbf = NWBFile(\"source\", \"description\", \"id\",   '2018-06-01T00:00:00')\r\n>>> nwbf.experimenter = \"Me\"  # works as expected\r\n>>> nwbf.experimenter\r\n'Me'\r\n>>> nwbf.stimulus = \"Stimulus description\"\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-150-d9786b889810> in <module>()\r\n----> 1 nwbf.stimulus = \"Stimulus description\"\r\n\r\n~/anaconda/envs/pynwb/lib/python3.5/site-packages/pynwb/form/utils.py in func_call(*args, **kwargs)\r\n    344                 if parse_err:\r\n    345                     msg = ', '.join(parse_err)\r\n--> 346                     raise_from(TypeError(msg), None)\r\n    347                 return func(self, **parsed['args'])\r\n    348         else:\r\n\r\n~/anaconda/envs/pynwb/lib/python3.5/site-packages/six.py in raise_from(value, from_value)\r\n\r\nTypeError: incorrect type for 'val' (got 'str', expected 'list, tuple or dict')\r\n```\r\n\r\nFrom this and [the pyNWB docs](http://pynwb.readthedocs.io/en/latest/pynwb.file.html#pynwb.file.NWBFile.stimulus), it seems like `NWBFile.stimulus` corresponds to the `/stimulus` group, which makes sense. Is there a way of accessing `/general/stimulus` instead? Or is this an issue (known or unknown) with the schema?\r\n\r\nI am using the latest version from PyPI:\r\n```bash\r\n$ pip freeze | grep pynwb\r\npynwb==0.3.0\r\n```\r\n\r\nApologies if I'm missing something!"},"comment":{"url":"https://api.github.com/repos/NeurodataWithoutBorders/pynwb/issues/comments/402792678","html_url":"https://github.com/NeurodataWithoutBorders/pynwb/issues/547#issuecomment-402792678","issue_url":"https://api.github.com/repos/NeurodataWithoutBorders/pynwb/issues/547","id":402792678,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjc5MjY3OA==","user":{"login":"oruebel","id":10999845,"node_id":"MDQ6VXNlcjEwOTk5ODQ1","avatar_url":"https://avatars0.githubusercontent.com/u/10999845?v=4","gravatar_id":"","url":"https://api.github.com/users/oruebel","html_url":"https://github.com/oruebel","followers_url":"https://api.github.com/users/oruebel/followers","following_url":"https://api.github.com/users/oruebel/following{/other_user}","gists_url":"https://api.github.com/users/oruebel/gists{/gist_id}","starred_url":"https://api.github.com/users/oruebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oruebel/subscriptions","organizations_url":"https://api.github.com/users/oruebel/orgs","repos_url":"https://api.github.com/users/oruebel/repos","events_url":"https://api.github.com/users/oruebel/events{/privacy}","received_events_url":"https://api.github.com/users/oruebel/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T17:15:31Z","updated_at":"2018-07-05T17:15:31Z","author_association":"CONTRIBUTOR","body":"It looks like also ``/general/data_collection`` is missing as well. I should have a PR ready to fix those items hopefully within the next 30min."}}
{"actor":{"display_login":"oruebel"}}