{"action":"closed","issue":{"url":"https://api.github.com/repos/PyTables/PyTables/issues/436","labels_url":"https://api.github.com/repos/PyTables/PyTables/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/PyTables/PyTables/issues/436/comments","events_url":"https://api.github.com/repos/PyTables/PyTables/issues/436/events","html_url":"https://github.com/PyTables/PyTables/issues/436","id":69008941,"number":436,"title":"create_carray does not work with the object","user":{"login":"rs123","id":3646104,"avatar_url":"https://avatars.githubusercontent.com/u/3646104?v=3","gravatar_id":"","url":"https://api.github.com/users/rs123","html_url":"https://github.com/rs123","followers_url":"https://api.github.com/users/rs123/followers","following_url":"https://api.github.com/users/rs123/following{/other_user}","gists_url":"https://api.github.com/users/rs123/gists{/gist_id}","starred_url":"https://api.github.com/users/rs123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rs123/subscriptions","organizations_url":"https://api.github.com/users/rs123/orgs","repos_url":"https://api.github.com/users/rs123/repos","events_url":"https://api.github.com/users/rs123/events{/privacy}","received_events_url":"https://api.github.com/users/rs123/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T21:01:33Z","updated_at":"2015-05-06T07:01:33Z","closed_at":"2015-05-06T07:01:33Z","body":"Tried to create carray using:\r\n\r\n``` \r\n            trees_array = self.nd_trees_file.create_carray(self.nd_tree_lists_grp, \r\n                                    nodes_nm_desc['Lists']['Array'][0] % layer, \r\n                                    trees_v,\r\n                                    atom=UInt32Atom(), shape= trees_v.shape,\r\n                                    title=nodes_nm_desc['Lists']['Array'][0] % layer,\r\n                                    filters=Filters(complevel=5, complib='zlib')\r\n                                    )\r\n```\r\nwhere trees_v is the array. Tried different combinations with and without values for atom and shape (the documentation indicates that if the object is present I can skip these values). None worked. Eventually had to settle for:\r\n```\r\n            trees_array = self.nd_trees_file.create_carray(self.nd_tree_lists_grp, \r\n                                    nodes_nm_desc['Lists']['Array'][0] % layer, \r\n                                    atom=UInt32Atom(), shape= trees_v.shape,\r\n                                    title=nodes_nm_desc['Lists']['Array'][0] % layer,\r\n                                    filters=Filters(complevel=5, complib='zlib')\r\n                                    )\r\n            trees_array[:] = trees_v\r\n```\r\nkind of ugly but works."}}