{"action":"created","issue":{"url":"https://api.github.com/repos/santoshphilip/eppy/issues/41","labels_url":"https://api.github.com/repos/santoshphilip/eppy/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/santoshphilip/eppy/issues/41/comments","events_url":"https://api.github.com/repos/santoshphilip/eppy/issues/41/events","html_url":"https://github.com/santoshphilip/eppy/issues/41","id":54576848,"number":41,"title":"function to create a new idf file. Like idf1.new(filename) or idf1.new()","user":{"login":"santoshphilip","id":2014885,"avatar_url":"https://avatars.githubusercontent.com/u/2014885?v=3","gravatar_id":"","url":"https://api.github.com/users/santoshphilip","html_url":"https://github.com/santoshphilip","followers_url":"https://api.github.com/users/santoshphilip/followers","following_url":"https://api.github.com/users/santoshphilip/following{/other_user}","gists_url":"https://api.github.com/users/santoshphilip/gists{/gist_id}","starred_url":"https://api.github.com/users/santoshphilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santoshphilip/subscriptions","organizations_url":"https://api.github.com/users/santoshphilip/orgs","repos_url":"https://api.github.com/users/santoshphilip/repos","events_url":"https://api.github.com/users/santoshphilip/events{/privacy}","received_events_url":"https://api.github.com/users/santoshphilip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"santoshphilip","id":2014885,"avatar_url":"https://avatars.githubusercontent.com/u/2014885?v=3","gravatar_id":"","url":"https://api.github.com/users/santoshphilip","html_url":"https://github.com/santoshphilip","followers_url":"https://api.github.com/users/santoshphilip/followers","following_url":"https://api.github.com/users/santoshphilip/following{/other_user}","gists_url":"https://api.github.com/users/santoshphilip/gists{/gist_id}","starred_url":"https://api.github.com/users/santoshphilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santoshphilip/subscriptions","organizations_url":"https://api.github.com/users/santoshphilip/orgs","repos_url":"https://api.github.com/users/santoshphilip/repos","events_url":"https://api.github.com/users/santoshphilip/events{/privacy}","received_events_url":"https://api.github.com/users/santoshphilip/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-01-16T13:47:44Z","updated_at":"2015-01-18T18:01:47Z","closed_at":null,"body":"Right now this takes about 5 lines to do.\r\n\r\nidftxt = \"\" # empty string\r\nfrom StringIO import StringIO\r\nfhandle = StringIO(idftxt) # we can make a file handle of a string\r\nnew_idf = IDF(fhandle) # initialize the IDF object with the file handle\r\n\r\nnew_idf is only in memory now.\r\nwill be written to disk only with a new_df.saveas(name)"},"comment":{"url":"https://api.github.com/repos/santoshphilip/eppy/issues/comments/70418246","html_url":"https://github.com/santoshphilip/eppy/issues/41#issuecomment-70418246","issue_url":"https://api.github.com/repos/santoshphilip/eppy/issues/41","id":70418246,"user":{"login":"santoshphilip","id":2014885,"avatar_url":"https://avatars.githubusercontent.com/u/2014885?v=3","gravatar_id":"","url":"https://api.github.com/users/santoshphilip","html_url":"https://github.com/santoshphilip","followers_url":"https://api.github.com/users/santoshphilip/followers","following_url":"https://api.github.com/users/santoshphilip/following{/other_user}","gists_url":"https://api.github.com/users/santoshphilip/gists{/gist_id}","starred_url":"https://api.github.com/users/santoshphilip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santoshphilip/subscriptions","organizations_url":"https://api.github.com/users/santoshphilip/orgs","repos_url":"https://api.github.com/users/santoshphilip/repos","events_url":"https://api.github.com/users/santoshphilip/events{/privacy}","received_events_url":"https://api.github.com/users/santoshphilip/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T18:01:47Z","updated_at":"2015-01-18T18:01:47Z","body":"code review shows the following functions\r\n\r\n```\r\nclass IDF3:\r\n    def initread\r\n    def initnew\r\n    def initreadtxt\r\n```\r\n\r\nThese functions use the latest **idd** packaged with eppy. The is no need to do the call `IDF.setiddname ()`. I wrote it to quickly set up unit testing. \r\n\r\nIt is apparent that `initnew ()` has the same functionality we are considering for `new()`. It also has the ease of use, that it avoids the extra step of setting the `idd` at the start. \r\n\r\nIt would be good to have a `getiddversion()` function as a quick setup to see what version of idd is installed with peppy"}}