{"action":"created","issue":{"url":"https://api.github.com/repos/simphony/simphony-common/issues/72","labels_url":"https://api.github.com/repos/simphony/simphony-common/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/simphony/simphony-common/issues/72/comments","events_url":"https://api.github.com/repos/simphony/simphony-common/issues/72/events","html_url":"https://github.com/simphony/simphony-common/issues/72","id":59268418,"number":72,"title":"Provide methods to query the numbers of items in the cuds container","user":{"login":"itziakos","id":403930,"avatar_url":"https://avatars.githubusercontent.com/u/403930?v=3","gravatar_id":"","url":"https://api.github.com/users/itziakos","html_url":"https://github.com/itziakos","followers_url":"https://api.github.com/users/itziakos/followers","following_url":"https://api.github.com/users/itziakos/following{/other_user}","gists_url":"https://api.github.com/users/itziakos/gists{/gist_id}","starred_url":"https://api.github.com/users/itziakos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itziakos/subscriptions","organizations_url":"https://api.github.com/users/itziakos/orgs","repos_url":"https://api.github.com/users/itziakos/repos","events_url":"https://api.github.com/users/itziakos/events{/privacy}","received_events_url":"https://api.github.com/users/itziakos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simphony/simphony-common/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-27T17:36:12Z","updated_at":"2015-03-02T10:19:48Z","closed_at":null,"body":"For example:\r\n\r\n```python\r\n\r\nmesh = Mesh()\r\n\r\n# return the number of points\r\nmesh.number_of_points()  \r\n\r\n# return the number of edges\r\nmesh.number_of_edges()  \r\n```"},"comment":{"url":"https://api.github.com/repos/simphony/simphony-common/issues/comments/76687679","html_url":"https://github.com/simphony/simphony-common/issues/72#issuecomment-76687679","issue_url":"https://api.github.com/repos/simphony/simphony-common/issues/72","id":76687679,"user":{"login":"itziakos","id":403930,"avatar_url":"https://avatars.githubusercontent.com/u/403930?v=3","gravatar_id":"","url":"https://api.github.com/users/itziakos","html_url":"https://github.com/itziakos","followers_url":"https://api.github.com/users/itziakos/followers","following_url":"https://api.github.com/users/itziakos/following{/other_user}","gists_url":"https://api.github.com/users/itziakos/gists{/gist_id}","starred_url":"https://api.github.com/users/itziakos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itziakos/subscriptions","organizations_url":"https://api.github.com/users/itziakos/orgs","repos_url":"https://api.github.com/users/itziakos/repos","events_url":"https://api.github.com/users/itziakos/events{/privacy}","received_events_url":"https://api.github.com/users/itziakos/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T10:19:47Z","updated_at":"2015-03-02T10:19:47Z","body":"> this is a very useful point, so far user has to iterate to get the size of a container. Though why not CUDS all the way, as in: \r\nnumber_of_objects = some_container[\"CUBA.SIZE\"]\r\n\r\n> Its not about the interface, but rather about the future interoperability requirements, the interface could be as suggested above, but internally it may be a CUBA based.\r\n\r\nI am not sure why this will add anything to interoperability. The size of length of container is a property of the container and thus there is not ambiguity. It is also not cleat what ``CUBA based`` means in this context. \r\n\r\n\r\n\r\n"}}