{"action":"created","comment":{"url":"https://api.github.com/repos/simphony/simphony-common/pulls/comments/26033012","id":26033012,"diff_hunk":"@@ -0,0 +1,157 @@\n+from simphony.cuds.lattice import ABCLattice\n+from simphony.cuds.lattice import LatticeNode\n+from simphony.io.indexed_data_container_table import IndexedDataContainerTable\n+from simphony.io.data_container_description import NoUIDRecord\n+from simphony.core.data_container import DataContainer\n+\n+import numpy as np\n+\n+\n+class FileLattice(ABCLattice):\n+    \"\"\"\n+    FileLattice object to use in file lattices.\n+\n+    Attributes\n+    ----------\n+    file : PyTables file\n+        reference to PyTables file where the lattice is or will be located\n+    name : str\n+        name of the lattice\n+    type : string\n+        Bravais lattice type (should agree with the _base_vect below).\n+    base_vect : D x float\n+        defines a Bravais lattice (an alternative for primitive vectors).\n+    size : D x size\n+        number of lattice nodes (in the direction of each axis).\n+    origin : D x float\n+        origin of lattice\n+    record : tables.IsDescription\n+        A class that describes column types for PyTables table.\n+\n+    Returns:\n+    ----------\n+    FileLattice\n+        The lattice newly added to the file or existing in the file.\n+\n+    \"\"\"\n+    def __init__(self, file, name, type, base_vect, size, origin,","path":"simphony/io/file_lattice.py","position":37,"original_position":37,"commit_id":"c43b2fd38af658b7c2d339386acfe62e7cb67602","original_commit_id":"c43b2fd38af658b7c2d339386acfe62e7cb67602","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},"body":"type, base_vect, size and origin should be optional since they are recovered from the hdf5 File if the lattice already exists.","created_at":"2015-03-09T13:00:36Z","updated_at":"2015-03-09T13:00:36Z","html_url":"https://github.com/simphony/simphony-common/pull/74#discussion_r26033012","pull_request_url":"https://api.github.com/repos/simphony/simphony-common/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/simphony/simphony-common/pulls/comments/26033012"},"html":{"href":"https://github.com/simphony/simphony-common/pull/74#discussion_r26033012"},"pull_request":{"href":"https://api.github.com/repos/simphony/simphony-common/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/simphony/simphony-common/pulls/74","id":30387306,"html_url":"https://github.com/simphony/simphony-common/pull/74","diff_url":"https://github.com/simphony/simphony-common/pull/74.diff","patch_url":"https://github.com/simphony/simphony-common/pull/74.patch","issue_url":"https://api.github.com/repos/simphony/simphony-common/issues/74","number":74,"state":"open","locked":false,"title":"PR: file_lattice_clean","user":{"login":"tuopuu","id":8424971,"avatar_url":"https://avatars.githubusercontent.com/u/8424971?v=3","gravatar_id":"","url":"https://api.github.com/users/tuopuu","html_url":"https://github.com/tuopuu","followers_url":"https://api.github.com/users/tuopuu/followers","following_url":"https://api.github.com/users/tuopuu/following{/other_user}","gists_url":"https://api.github.com/users/tuopuu/gists{/gist_id}","starred_url":"https://api.github.com/users/tuopuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuopuu/subscriptions","organizations_url":"https://api.github.com/users/tuopuu/orgs","repos_url":"https://api.github.com/users/tuopuu/repos","events_url":"https://api.github.com/users/tuopuu/events{/privacy}","received_events_url":"https://api.github.com/users/tuopuu/received_events","type":"User","site_admin":false},"body":"Picked the commits from file_lattice2 into a new clean branch. This pull request adds basic functionality for H5CUDS-based lattices.\r\n- H5CUDS now has add/get/delete/iter_lattices methods\r\n- FileLattice implements ABCLattice in a H5CUDS-file\r\n- unittests for new methods are included\r\n","created_at":"2015-03-03T16:14:47Z","updated_at":"2015-03-09T13:00:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b862297b11a942421d7a9cbd47167f4e2b2b82db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simphony/simphony-common/pulls/74/commits","review_comments_url":"https://api.github.com/repos/simphony/simphony-common/pulls/74/comments","review_comment_url":"https://api.github.com/repos/simphony/simphony-common/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simphony/simphony-common/issues/74/comments","statuses_url":"https://api.github.com/repos/simphony/simphony-common/statuses/c43b2fd38af658b7c2d339386acfe62e7cb67602","head":{"label":"simphony:file_lattice_clean","ref":"file_lattice_clean","sha":"c43b2fd38af658b7c2d339386acfe62e7cb67602","user":{"login":"simphony","id":8048249,"avatar_url":"https://avatars.githubusercontent.com/u/8048249?v=3","gravatar_id":"","url":"https://api.github.com/users/simphony","html_url":"https://github.com/simphony","followers_url":"https://api.github.com/users/simphony/followers","following_url":"https://api.github.com/users/simphony/following{/other_user}","gists_url":"https://api.github.com/users/simphony/gists{/gist_id}","starred_url":"https://api.github.com/users/simphony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simphony/subscriptions","organizations_url":"https://api.github.com/users/simphony/orgs","repos_url":"https://api.github.com/users/simphony/repos","events_url":"https://api.github.com/users/simphony/events{/privacy}","received_events_url":"https://api.github.com/users/simphony/received_events","type":"Organization","site_admin":false},"repo":{"id":22651892,"name":"simphony-common","full_name":"simphony/simphony-common","owner":{"login":"simphony","id":8048249,"avatar_url":"https://avatars.githubusercontent.com/u/8048249?v=3","gravatar_id":"","url":"https://api.github.com/users/simphony","html_url":"https://github.com/simphony","followers_url":"https://api.github.com/users/simphony/followers","following_url":"https://api.github.com/users/simphony/following{/other_user}","gists_url":"https://api.github.com/users/simphony/gists{/gist_id}","starred_url":"https://api.github.com/users/simphony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simphony/subscriptions","organizations_url":"https://api.github.com/users/simphony/orgs","repos_url":"https://api.github.com/users/simphony/repos","events_url":"https://api.github.com/users/simphony/events{/privacy}","received_events_url":"https://api.github.com/users/simphony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simphony/simphony-common","description":"The native implementation of the Simphony cuds objects","fork":false,"url":"https://api.github.com/repos/simphony/simphony-common","forks_url":"https://api.github.com/repos/simphony/simphony-common/forks","keys_url":"https://api.github.com/repos/simphony/simphony-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simphony/simphony-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simphony/simphony-common/teams","hooks_url":"https://api.github.com/repos/simphony/simphony-common/hooks","issue_events_url":"https://api.github.com/repos/simphony/simphony-common/issues/events{/number}","events_url":"https://api.github.com/repos/simphony/simphony-common/events","assignees_url":"https://api.github.com/repos/simphony/simphony-common/assignees{/user}","branches_url":"https://api.github.com/repos/simphony/simphony-common/branches{/branch}","tags_url":"https://api.github.com/repos/simphony/simphony-common/tags","blobs_url":"https://api.github.com/repos/simphony/simphony-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simphony/simphony-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simphony/simphony-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/simphony/simphony-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simphony/simphony-common/statuses/{sha}","languages_url":"https://api.github.com/repos/simphony/simphony-common/languages","stargazers_url":"https://api.github.com/repos/simphony/simphony-common/stargazers","contributors_url":"https://api.github.com/repos/simphony/simphony-common/contributors","subscribers_url":"https://api.github.com/repos/simphony/simphony-common/subscribers","subscription_url":"https://api.github.com/repos/simphony/simphony-common/subscription","commits_url":"https://api.github.com/repos/simphony/simphony-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/simphony/simphony-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/simphony/simphony-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/simphony/simphony-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/simphony/simphony-common/contents/{+path}","compare_url":"https://api.github.com/repos/simphony/simphony-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simphony/simphony-common/merges","archive_url":"https://api.github.com/repos/simphony/simphony-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simphony/simphony-common/downloads","issues_url":"https://api.github.com/repos/simphony/simphony-common/issues{/number}","pulls_url":"https://api.github.com/repos/simphony/simphony-common/pulls{/number}","milestones_url":"https://api.github.com/repos/simphony/simphony-common/milestones{/number}","notifications_url":"https://api.github.com/repos/simphony/simphony-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simphony/simphony-common/labels{/name}","releases_url":"https://api.github.com/repos/simphony/simphony-common/releases{/id}","created_at":"2014-08-05T17:05:12Z","updated_at":"2015-02-27T09:25:30Z","pushed_at":"2015-03-09T09:37:23Z","git_url":"git://github.com/simphony/simphony-common.git","ssh_url":"git@github.com:simphony/simphony-common.git","clone_url":"https://github.com/simphony/simphony-common.git","svn_url":"https://github.com/simphony/simphony-common","homepage":null,"size":2208,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":23,"forks":3,"open_issues":23,"watchers":5,"default_branch":"master"}},"base":{"label":"simphony:master","ref":"master","sha":"4ad04227e7bbbeaf61f9b458eced5701b3584072","user":{"login":"simphony","id":8048249,"avatar_url":"https://avatars.githubusercontent.com/u/8048249?v=3","gravatar_id":"","url":"https://api.github.com/users/simphony","html_url":"https://github.com/simphony","followers_url":"https://api.github.com/users/simphony/followers","following_url":"https://api.github.com/users/simphony/following{/other_user}","gists_url":"https://api.github.com/users/simphony/gists{/gist_id}","starred_url":"https://api.github.com/users/simphony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simphony/subscriptions","organizations_url":"https://api.github.com/users/simphony/orgs","repos_url":"https://api.github.com/users/simphony/repos","events_url":"https://api.github.com/users/simphony/events{/privacy}","received_events_url":"https://api.github.com/users/simphony/received_events","type":"Organization","site_admin":false},"repo":{"id":22651892,"name":"simphony-common","full_name":"simphony/simphony-common","owner":{"login":"simphony","id":8048249,"avatar_url":"https://avatars.githubusercontent.com/u/8048249?v=3","gravatar_id":"","url":"https://api.github.com/users/simphony","html_url":"https://github.com/simphony","followers_url":"https://api.github.com/users/simphony/followers","following_url":"https://api.github.com/users/simphony/following{/other_user}","gists_url":"https://api.github.com/users/simphony/gists{/gist_id}","starred_url":"https://api.github.com/users/simphony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simphony/subscriptions","organizations_url":"https://api.github.com/users/simphony/orgs","repos_url":"https://api.github.com/users/simphony/repos","events_url":"https://api.github.com/users/simphony/events{/privacy}","received_events_url":"https://api.github.com/users/simphony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simphony/simphony-common","description":"The native implementation of the Simphony cuds objects","fork":false,"url":"https://api.github.com/repos/simphony/simphony-common","forks_url":"https://api.github.com/repos/simphony/simphony-common/forks","keys_url":"https://api.github.com/repos/simphony/simphony-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simphony/simphony-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simphony/simphony-common/teams","hooks_url":"https://api.github.com/repos/simphony/simphony-common/hooks","issue_events_url":"https://api.github.com/repos/simphony/simphony-common/issues/events{/number}","events_url":"https://api.github.com/repos/simphony/simphony-common/events","assignees_url":"https://api.github.com/repos/simphony/simphony-common/assignees{/user}","branches_url":"https://api.github.com/repos/simphony/simphony-common/branches{/branch}","tags_url":"https://api.github.com/repos/simphony/simphony-common/tags","blobs_url":"https://api.github.com/repos/simphony/simphony-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simphony/simphony-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simphony/simphony-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/simphony/simphony-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simphony/simphony-common/statuses/{sha}","languages_url":"https://api.github.com/repos/simphony/simphony-common/languages","stargazers_url":"https://api.github.com/repos/simphony/simphony-common/stargazers","contributors_url":"https://api.github.com/repos/simphony/simphony-common/contributors","subscribers_url":"https://api.github.com/repos/simphony/simphony-common/subscribers","subscription_url":"https://api.github.com/repos/simphony/simphony-common/subscription","commits_url":"https://api.github.com/repos/simphony/simphony-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/simphony/simphony-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/simphony/simphony-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/simphony/simphony-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/simphony/simphony-common/contents/{+path}","compare_url":"https://api.github.com/repos/simphony/simphony-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simphony/simphony-common/merges","archive_url":"https://api.github.com/repos/simphony/simphony-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simphony/simphony-common/downloads","issues_url":"https://api.github.com/repos/simphony/simphony-common/issues{/number}","pulls_url":"https://api.github.com/repos/simphony/simphony-common/pulls{/number}","milestones_url":"https://api.github.com/repos/simphony/simphony-common/milestones{/number}","notifications_url":"https://api.github.com/repos/simphony/simphony-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simphony/simphony-common/labels{/name}","releases_url":"https://api.github.com/repos/simphony/simphony-common/releases{/id}","created_at":"2014-08-05T17:05:12Z","updated_at":"2015-02-27T09:25:30Z","pushed_at":"2015-03-09T09:37:23Z","git_url":"git://github.com/simphony/simphony-common.git","ssh_url":"git@github.com:simphony/simphony-common.git","clone_url":"https://github.com/simphony/simphony-common.git","svn_url":"https://github.com/simphony/simphony-common","homepage":null,"size":2208,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":23,"forks":3,"open_issues":23,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simphony/simphony-common/pulls/74"},"html":{"href":"https://github.com/simphony/simphony-common/pull/74"},"issue":{"href":"https://api.github.com/repos/simphony/simphony-common/issues/74"},"comments":{"href":"https://api.github.com/repos/simphony/simphony-common/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/simphony/simphony-common/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/simphony/simphony-common/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simphony/simphony-common/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/simphony/simphony-common/statuses/c43b2fd38af658b7c2d339386acfe62e7cb67602"}}}}