{"action":"created","issue":{"url":"https://api.github.com/repos/Unidata/netcdf4-python/issues/458","labels_url":"https://api.github.com/repos/Unidata/netcdf4-python/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/Unidata/netcdf4-python/issues/458/comments","events_url":"https://api.github.com/repos/Unidata/netcdf4-python/issues/458/events","html_url":"https://github.com/Unidata/netcdf4-python/issues/458","id":107094579,"number":458,"title":"It should be possible to use Ellipsis (...) to index scalar variables with vlen dtype","user":{"login":"shoyer","id":1217238,"avatar_url":"https://avatars.githubusercontent.com/u/1217238?v=3","gravatar_id":"","url":"https://api.github.com/users/shoyer","html_url":"https://github.com/shoyer","followers_url":"https://api.github.com/users/shoyer/followers","following_url":"https://api.github.com/users/shoyer/following{/other_user}","gists_url":"https://api.github.com/users/shoyer/gists{/gist_id}","starred_url":"https://api.github.com/users/shoyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoyer/subscriptions","organizations_url":"https://api.github.com/users/shoyer/orgs","repos_url":"https://api.github.com/users/shoyer/repos","events_url":"https://api.github.com/users/shoyer/events{/privacy}","received_events_url":"https://api.github.com/users/shoyer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T23:09:56Z","updated_at":"2015-10-14T23:44:05Z","closed_at":"2015-10-14T23:44:05Z","body":"If I try to use Ellipsis to write a scalar variable's data, I get an error:\r\n```\r\nIn [6]: v = nc.variables['foo']\r\n\r\nIn [7]: v[...] = u'foo'\r\n---------------------------------------------------------------------------\r\nIndexError                                Traceback (most recent call last)\r\n<ipython-input-7-945a3fc83722> in <module>()\r\n----> 1 v[...] = u'foo'\r\n\r\nnetCDF4.pyx in netCDF4.Variable.__setitem__ (netCDF4.c:45949)()\r\n\r\nnetCDF4.pyx in netCDF4.Variable._assign_vlen (netCDF4.c:45445)()\r\n\r\nIndexError: single element VLEN slices must be specified by integers only\r\n```\r\n\r\nThis (`...`) is generally the preferred syntax for copying to a variable because it works with both scalars and multi-dimensional arrays (unlike `:`), so it would be nice if it worked for vlen dtypes."},"comment":{"url":"https://api.github.com/repos/Unidata/netcdf4-python/issues/comments/148234307","html_url":"https://github.com/Unidata/netcdf4-python/issues/458#issuecomment-148234307","issue_url":"https://api.github.com/repos/Unidata/netcdf4-python/issues/458","id":148234307,"user":{"login":"jswhit","id":579593,"avatar_url":"https://avatars.githubusercontent.com/u/579593?v=3","gravatar_id":"","url":"https://api.github.com/users/jswhit","html_url":"https://github.com/jswhit","followers_url":"https://api.github.com/users/jswhit/followers","following_url":"https://api.github.com/users/jswhit/following{/other_user}","gists_url":"https://api.github.com/users/jswhit/gists{/gist_id}","starred_url":"https://api.github.com/users/jswhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jswhit/subscriptions","organizations_url":"https://api.github.com/users/jswhit/orgs","repos_url":"https://api.github.com/users/jswhit/repos","events_url":"https://api.github.com/users/jswhit/events{/privacy}","received_events_url":"https://api.github.com/users/jswhit/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T23:44:05Z","updated_at":"2015-10-14T23:44:05Z","body":"pull request #471 merged, closing now..."}}