{"action":"created","comment":{"url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/comments/61490835","id":61490835,"diff_hunk":"@@ -0,0 +1,69 @@\n+# coding=utf-8\n+from _commandbase import RadianceCommand\n+from ..datatype import RadiancePath\n+\n+import os\n+\n+\n+class Epw2wea(RadianceCommand):\n+    \"\"\"epw2wea transforms an EnergyPlus weather data (.epw) file into\n+    the DAYSIM weather file format, for use with the RADIANCE gendaymtx program.\n+\n+    Attributes:\n+        epwFile: Filepath of the epw file that is to be converted into wea\n+            format.\n+\n+    Usage:\n+    from honeybee.radiance.command.epw2wea import Epw2wea.\n+\n+    #create an epw2wea command.\n+    epwWea = Epw2wea(epwFileName='c:/ladybug/test.epw')\n+    \"\"\"\n+\n+    _epwFile = RadiancePath('_epwFile',descriptiveName='Epw weather data file',\n+                           relativePath=None,checkExists=False)\n+    outputWeaFile = RadiancePath('outputWeaFile',descriptiveName='Output wea file',\n+                                 relativePath=None,checkExists=False)\n+\n+    def __init__(self,epwFile=None,outputWeaFile=None):\n+\n+        RadianceCommand.__init__(self)\n+\n+        self.epwFile = epwFile\n+        \"\"\"The path of the epw file that is to be converted to a wea file.\"\"\"\n+\n+        self.outputWeaFile = outputWeaFile\n+        \"\"\"The path of the output wea file. Note that this path will be created\n+         if not specified by the user.\"\"\"\n+\n+    @property\n+    def epwFile(self):\n+        return self._epwFile\n+\n+    @epwFile.setter\n+    def epwFile(self,value):\n+        \"\"\"The path of the epw file that is to be converted to a wea file.\"\"\"\n+        if value:\n+            self._epwFile = value\n+            if not self.outputWeaFile._value:\n+                self.outputWeaFile = os.path.splitext(value)[0]+'.wea'\n+        else:\n+            self._epwFile = None\n+\n+\n+    def toRadString(self, relativePath=False):\n+        \"\"\"Return full radiance command as string\"\"\"\n+\n+        radString = \"%s %s %s\"%('\"%s\"'%os.path.join(self.radbinPath,'epw2wea'),\n+                                self.epwFile.toRadString(),\n+                                self.outputWeaFile.toRadString())\n+\n+        # self.checkInputFiles(radString)\n+        return radString\n+\n+    @property\n+    def inputFiles(self):\n+        \"\"\"Return input files specified by user.\"\"\"\n+        return (self.epwFile._value,)","path":"honeybee/radiance/command/epw2wea.py","position":67,"original_position":67,"commit_id":"1901057d2030812cab994d0a9fd9e69e734f12b1","original_commit_id":"1901057d2030812cab994d0a9fd9e69e734f12b1","user":{"login":"mostaphaRoudsari","id":2915573,"avatar_url":"https://avatars.githubusercontent.com/u/2915573?v=3","gravatar_id":"","url":"https://api.github.com/users/mostaphaRoudsari","html_url":"https://github.com/mostaphaRoudsari","followers_url":"https://api.github.com/users/mostaphaRoudsari/followers","following_url":"https://api.github.com/users/mostaphaRoudsari/following{/other_user}","gists_url":"https://api.github.com/users/mostaphaRoudsari/gists{/gist_id}","starred_url":"https://api.github.com/users/mostaphaRoudsari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mostaphaRoudsari/subscriptions","organizations_url":"https://api.github.com/users/mostaphaRoudsari/orgs","repos_url":"https://api.github.com/users/mostaphaRoudsari/repos","events_url":"https://api.github.com/users/mostaphaRoudsari/events{/privacy}","received_events_url":"https://api.github.com/users/mostaphaRoudsari/received_events","type":"User","site_admin":false},"body":"```self.epwFile._value``` will probably work but I would say ```self.epwFile.normpath``` will be cleaner and easier to read.","created_at":"2016-04-28T19:46:10Z","updated_at":"2016-04-28T19:46:10Z","html_url":"https://github.com/ladybug-analysis-tools/honeybee/pull/61#discussion_r61490835","pull_request_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/comments/61490835"},"html":{"href":"https://github.com/ladybug-analysis-tools/honeybee/pull/61#discussion_r61490835"},"pull_request":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/61","id":68126624,"html_url":"https://github.com/ladybug-analysis-tools/honeybee/pull/61","diff_url":"https://github.com/ladybug-analysis-tools/honeybee/pull/61.diff","patch_url":"https://github.com/ladybug-analysis-tools/honeybee/pull/61.patch","issue_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/issues/61","number":61,"state":"closed","locked":false,"title":"Updates to commandbase, epw2wea.","user":{"login":"sariths","id":10361848,"avatar_url":"https://avatars.githubusercontent.com/u/10361848?v=3","gravatar_id":"","url":"https://api.github.com/users/sariths","html_url":"https://github.com/sariths","followers_url":"https://api.github.com/users/sariths/followers","following_url":"https://api.github.com/users/sariths/following{/other_user}","gists_url":"https://api.github.com/users/sariths/gists{/gist_id}","starred_url":"https://api.github.com/users/sariths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sariths/subscriptions","organizations_url":"https://api.github.com/users/sariths/orgs","repos_url":"https://api.github.com/users/sariths/repos","events_url":"https://api.github.com/users/sariths/events{/privacy}","received_events_url":"https://api.github.com/users/sariths/received_events","type":"User","site_admin":false},"body":"Updated commandbase to check for perl files (and potentially other extensions). \r\nCreated epw2wea","created_at":"2016-04-27T21:18:13Z","updated_at":"2016-04-28T19:46:10Z","closed_at":"2016-04-27T21:18:26Z","merged_at":"2016-04-27T21:18:26Z","merge_commit_sha":"e512f638591f9f40e6fcc49d149ace6276ab05d8","assignee":{"login":"mostaphaRoudsari","id":2915573,"avatar_url":"https://avatars.githubusercontent.com/u/2915573?v=3","gravatar_id":"","url":"https://api.github.com/users/mostaphaRoudsari","html_url":"https://github.com/mostaphaRoudsari","followers_url":"https://api.github.com/users/mostaphaRoudsari/followers","following_url":"https://api.github.com/users/mostaphaRoudsari/following{/other_user}","gists_url":"https://api.github.com/users/mostaphaRoudsari/gists{/gist_id}","starred_url":"https://api.github.com/users/mostaphaRoudsari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mostaphaRoudsari/subscriptions","organizations_url":"https://api.github.com/users/mostaphaRoudsari/orgs","repos_url":"https://api.github.com/users/mostaphaRoudsari/repos","events_url":"https://api.github.com/users/mostaphaRoudsari/events{/privacy}","received_events_url":"https://api.github.com/users/mostaphaRoudsari/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/61/commits","review_comments_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/61/comments","review_comment_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/issues/61/comments","statuses_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/statuses/1901057d2030812cab994d0a9fd9e69e734f12b1","head":{"label":"sariths:master","ref":"master","sha":"1901057d2030812cab994d0a9fd9e69e734f12b1","user":{"login":"sariths","id":10361848,"avatar_url":"https://avatars.githubusercontent.com/u/10361848?v=3","gravatar_id":"","url":"https://api.github.com/users/sariths","html_url":"https://github.com/sariths","followers_url":"https://api.github.com/users/sariths/followers","following_url":"https://api.github.com/users/sariths/following{/other_user}","gists_url":"https://api.github.com/users/sariths/gists{/gist_id}","starred_url":"https://api.github.com/users/sariths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sariths/subscriptions","organizations_url":"https://api.github.com/users/sariths/orgs","repos_url":"https://api.github.com/users/sariths/repos","events_url":"https://api.github.com/users/sariths/events{/privacy}","received_events_url":"https://api.github.com/users/sariths/received_events","type":"User","site_admin":false},"repo":{"id":52194460,"name":"honeybee","full_name":"sariths/honeybee","owner":{"login":"sariths","id":10361848,"avatar_url":"https://avatars.githubusercontent.com/u/10361848?v=3","gravatar_id":"","url":"https://api.github.com/users/sariths","html_url":"https://github.com/sariths","followers_url":"https://api.github.com/users/sariths/followers","following_url":"https://api.github.com/users/sariths/following{/other_user}","gists_url":"https://api.github.com/users/sariths/gists{/gist_id}","starred_url":"https://api.github.com/users/sariths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sariths/subscriptions","organizations_url":"https://api.github.com/users/sariths/orgs","repos_url":"https://api.github.com/users/sariths/repos","events_url":"https://api.github.com/users/sariths/events{/privacy}","received_events_url":"https://api.github.com/users/sariths/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sariths/honeybee","description":"Core functionalities of Honeybee with no geometry library dependencies","fork":true,"url":"https://api.github.com/repos/sariths/honeybee","forks_url":"https://api.github.com/repos/sariths/honeybee/forks","keys_url":"https://api.github.com/repos/sariths/honeybee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sariths/honeybee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sariths/honeybee/teams","hooks_url":"https://api.github.com/repos/sariths/honeybee/hooks","issue_events_url":"https://api.github.com/repos/sariths/honeybee/issues/events{/number}","events_url":"https://api.github.com/repos/sariths/honeybee/events","assignees_url":"https://api.github.com/repos/sariths/honeybee/assignees{/user}","branches_url":"https://api.github.com/repos/sariths/honeybee/branches{/branch}","tags_url":"https://api.github.com/repos/sariths/honeybee/tags","blobs_url":"https://api.github.com/repos/sariths/honeybee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sariths/honeybee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sariths/honeybee/git/refs{/sha}","trees_url":"https://api.github.com/repos/sariths/honeybee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sariths/honeybee/statuses/{sha}","languages_url":"https://api.github.com/repos/sariths/honeybee/languages","stargazers_url":"https://api.github.com/repos/sariths/honeybee/stargazers","contributors_url":"https://api.github.com/repos/sariths/honeybee/contributors","subscribers_url":"https://api.github.com/repos/sariths/honeybee/subscribers","subscription_url":"https://api.github.com/repos/sariths/honeybee/subscription","commits_url":"https://api.github.com/repos/sariths/honeybee/commits{/sha}","git_commits_url":"https://api.github.com/repos/sariths/honeybee/git/commits{/sha}","comments_url":"https://api.github.com/repos/sariths/honeybee/comments{/number}","issue_comment_url":"https://api.github.com/repos/sariths/honeybee/issues/comments{/number}","contents_url":"https://api.github.com/repos/sariths/honeybee/contents/{+path}","compare_url":"https://api.github.com/repos/sariths/honeybee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sariths/honeybee/merges","archive_url":"https://api.github.com/repos/sariths/honeybee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sariths/honeybee/downloads","issues_url":"https://api.github.com/repos/sariths/honeybee/issues{/number}","pulls_url":"https://api.github.com/repos/sariths/honeybee/pulls{/number}","milestones_url":"https://api.github.com/repos/sariths/honeybee/milestones{/number}","notifications_url":"https://api.github.com/repos/sariths/honeybee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sariths/honeybee/labels{/name}","releases_url":"https://api.github.com/repos/sariths/honeybee/releases{/id}","deployments_url":"https://api.github.com/repos/sariths/honeybee/deployments","created_at":"2016-02-21T06:44:46Z","updated_at":"2016-03-31T22:15:27Z","pushed_at":"2016-04-27T21:15:33Z","git_url":"git://github.com/sariths/honeybee.git","ssh_url":"git@github.com:sariths/honeybee.git","clone_url":"https://github.com/sariths/honeybee.git","svn_url":"https://github.com/sariths/honeybee","homepage":null,"size":935,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ladybug-analysis-tools:master","ref":"master","sha":"0af3471fcf0217ab7776beac723a606644699a01","user":{"login":"ladybug-analysis-tools","id":14942270,"avatar_url":"https://avatars.githubusercontent.com/u/14942270?v=3","gravatar_id":"","url":"https://api.github.com/users/ladybug-analysis-tools","html_url":"https://github.com/ladybug-analysis-tools","followers_url":"https://api.github.com/users/ladybug-analysis-tools/followers","following_url":"https://api.github.com/users/ladybug-analysis-tools/following{/other_user}","gists_url":"https://api.github.com/users/ladybug-analysis-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/ladybug-analysis-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ladybug-analysis-tools/subscriptions","organizations_url":"https://api.github.com/users/ladybug-analysis-tools/orgs","repos_url":"https://api.github.com/users/ladybug-analysis-tools/repos","events_url":"https://api.github.com/users/ladybug-analysis-tools/events{/privacy}","received_events_url":"https://api.github.com/users/ladybug-analysis-tools/received_events","type":"Organization","site_admin":false},"repo":{"id":48559615,"name":"honeybee","full_name":"ladybug-analysis-tools/honeybee","owner":{"login":"ladybug-analysis-tools","id":14942270,"avatar_url":"https://avatars.githubusercontent.com/u/14942270?v=3","gravatar_id":"","url":"https://api.github.com/users/ladybug-analysis-tools","html_url":"https://github.com/ladybug-analysis-tools","followers_url":"https://api.github.com/users/ladybug-analysis-tools/followers","following_url":"https://api.github.com/users/ladybug-analysis-tools/following{/other_user}","gists_url":"https://api.github.com/users/ladybug-analysis-tools/gists{/gist_id}","starred_url":"https://api.github.com/users/ladybug-analysis-tools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ladybug-analysis-tools/subscriptions","organizations_url":"https://api.github.com/users/ladybug-analysis-tools/orgs","repos_url":"https://api.github.com/users/ladybug-analysis-tools/repos","events_url":"https://api.github.com/users/ladybug-analysis-tools/events{/privacy}","received_events_url":"https://api.github.com/users/ladybug-analysis-tools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ladybug-analysis-tools/honeybee","description":"Core functionalities of Honeybee with no geometry library dependencies","fork":false,"url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee","forks_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/forks","keys_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/teams","hooks_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/hooks","issue_events_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/issues/events{/number}","events_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/events","assignees_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/assignees{/user}","branches_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/branches{/branch}","tags_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/tags","blobs_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/git/refs{/sha}","trees_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/statuses/{sha}","languages_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/languages","stargazers_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/stargazers","contributors_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/contributors","subscribers_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/subscribers","subscription_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/subscription","commits_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/commits{/sha}","git_commits_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/git/commits{/sha}","comments_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/comments{/number}","issue_comment_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/issues/comments{/number}","contents_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/contents/{+path}","compare_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/merges","archive_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/downloads","issues_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/issues{/number}","pulls_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls{/number}","milestones_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/milestones{/number}","notifications_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/labels{/name}","releases_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/releases{/id}","deployments_url":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/deployments","created_at":"2015-12-24T23:43:38Z","updated_at":"2016-03-31T15:13:01Z","pushed_at":"2016-04-27T21:18:26Z","git_url":"git://github.com/ladybug-analysis-tools/honeybee.git","ssh_url":"git@github.com:ladybug-analysis-tools/honeybee.git","clone_url":"https://github.com/ladybug-analysis-tools/honeybee.git","svn_url":"https://github.com/ladybug-analysis-tools/honeybee","homepage":null,"size":937,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/61"},"html":{"href":"https://github.com/ladybug-analysis-tools/honeybee/pull/61"},"issue":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/issues/61"},"comments":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/ladybug-analysis-tools/honeybee/statuses/1901057d2030812cab994d0a9fd9e69e734f12b1"}}}}