{"action":"created","issue":{"url":"https://api.github.com/repos/Blosc/bcolz/issues/191","labels_url":"https://api.github.com/repos/Blosc/bcolz/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/Blosc/bcolz/issues/191/comments","events_url":"https://api.github.com/repos/Blosc/bcolz/issues/191/events","html_url":"https://github.com/Blosc/bcolz/pull/191","id":73644613,"number":191,"title":"Creating ctable with rootdir kwarg causes ValueError: You cannot pass a `columns` param in 'a'ppend mode","user":{"login":"twiecki","id":674200,"avatar_url":"https://avatars.githubusercontent.com/u/674200?v=3","gravatar_id":"","url":"https://api.github.com/users/twiecki","html_url":"https://github.com/twiecki","followers_url":"https://api.github.com/users/twiecki/followers","following_url":"https://api.github.com/users/twiecki/following{/other_user}","gists_url":"https://api.github.com/users/twiecki/gists{/gist_id}","starred_url":"https://api.github.com/users/twiecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twiecki/subscriptions","organizations_url":"https://api.github.com/users/twiecki/orgs","repos_url":"https://api.github.com/users/twiecki/repos","events_url":"https://api.github.com/users/twiecki/events{/privacy}","received_events_url":"https://api.github.com/users/twiecki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-06T14:46:31Z","updated_at":"2015-05-27T09:11:49Z","closed_at":"2015-05-27T09:11:49Z","pull_request":{"url":"https://api.github.com/repos/Blosc/bcolz/pulls/191","html_url":"https://github.com/Blosc/bcolz/pull/191","diff_url":"https://github.com/Blosc/bcolz/pull/191.diff","patch_url":"https://github.com/Blosc/bcolz/pull/191.patch"},"body":"```python\r\nprint bcolz.__version__\r\nN = 100*100\r\nct = bcolz.fromiter(((i,i*i) for i in xrange(N)), dtype=\"i4,f8\", count=N, rootdir='test')\r\nnew_col = np.linspace(0, 1, 100*100)\r\nct.addcol(new_col)\r\n```\r\n\r\n```\r\n0.8.1\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-29-6c6f9912fdbb> in <module>()\r\n      1 print bcolz.__version__\r\n      2 N = 100*100\r\n----> 3 ct = bcolz.fromiter(((i,i*i) for i in xrange(N)), dtype=\"i4,f8\", count=N, rootdir='test')\r\n      4 new_col = np.linspace(0, 1, 100*100)\r\n      5 ct.addcol(new_col)\r\n\r\n/opt/miniconda/lib/python2.7/site-packages/bcolz/toplevel.pyc in fromiter(iterable, dtype, count, **kwargs)\r\n    193         obj = bcolz.ctable(np.array([], dtype=dtype),\r\n    194                            expectedlen=expectedlen,\r\n--> 195                            **kwargs)\r\n    196         chunklen = sum(obj.cols[name].chunklen\r\n    197                        for name in obj.names) // len(obj.names)\r\n\r\n/opt/miniconda/lib/python2.7/site-packages/bcolz/ctable.pyc in __init__(self, columns, names, **kwargs)\r\n    191             if columns is not None and self.mode == 'a':\r\n    192                 raise ValueError(\r\n--> 193                     \"You cannot pass a `columns` param in 'a'ppend mode\")\r\n    194         else:\r\n    195             self.mode = kwargs.setdefault('mode', 'w')\r\n\r\nValueError: You cannot pass a `columns` param in 'a'ppend mode\r\n```"},"comment":{"url":"https://api.github.com/repos/Blosc/bcolz/issues/comments/105833377","html_url":"https://github.com/Blosc/bcolz/pull/191#issuecomment-105833377","issue_url":"https://api.github.com/repos/Blosc/bcolz/issues/191","id":105833377,"user":{"login":"twiecki","id":674200,"avatar_url":"https://avatars.githubusercontent.com/u/674200?v=3","gravatar_id":"","url":"https://api.github.com/users/twiecki","html_url":"https://github.com/twiecki","followers_url":"https://api.github.com/users/twiecki/followers","following_url":"https://api.github.com/users/twiecki/following{/other_user}","gists_url":"https://api.github.com/users/twiecki/gists{/gist_id}","starred_url":"https://api.github.com/users/twiecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twiecki/subscriptions","organizations_url":"https://api.github.com/users/twiecki/orgs","repos_url":"https://api.github.com/users/twiecki/repos","events_url":"https://api.github.com/users/twiecki/events{/privacy}","received_events_url":"https://api.github.com/users/twiecki/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T09:11:49Z","updated_at":"2015-05-27T09:11:49Z","body":"Yep, that sounds good to me. Thanks!"}}