{"action":"created","issue":{"url":"https://api.github.com/repos/nilmtk/nilmtk/issues/343","labels_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/343/comments","events_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/343/events","html_url":"https://github.com/nilmtk/nilmtk/issues/343","id":55778587,"number":343,"title":"downsample","user":{"login":"MingjunZhong","id":10740778,"avatar_url":"https://avatars.githubusercontent.com/u/10740778?v=3","gravatar_id":"","url":"https://api.github.com/users/MingjunZhong","html_url":"https://github.com/MingjunZhong","followers_url":"https://api.github.com/users/MingjunZhong/followers","following_url":"https://api.github.com/users/MingjunZhong/following{/other_user}","gists_url":"https://api.github.com/users/MingjunZhong/gists{/gist_id}","starred_url":"https://api.github.com/users/MingjunZhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MingjunZhong/subscriptions","organizations_url":"https://api.github.com/users/MingjunZhong/orgs","repos_url":"https://api.github.com/users/MingjunZhong/repos","events_url":"https://api.github.com/users/MingjunZhong/events{/privacy}","received_events_url":"https://api.github.com/users/MingjunZhong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-28T16:25:58Z","updated_at":"2015-01-29T20:05:05Z","closed_at":"2015-01-29T19:28:21Z","body":"There's import error when I am using  `import nilmtk.preprocessing.electricity.building as prepb', see this:\r\n\r\n\r\nrunfile('/home/mzhong/2015-ideal/nilmtk-afhmmsac/demo_nilmtk.py', wdir='/home/mzhong/2015-ideal/nilmtk-afhmmsac')\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-1-19d33dc62593>\", line 1, in <module>\r\n    runfile('/home/mzhong/2015-ideal/nilmtk-afhmmsac/demo_nilmtk.py', wdir='/home/mzhong/2015-ideal/nilmtk-afhmmsac')\r\n\r\n  File \"/home/mzhong/anaconda/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py\", line 580, in runfile\r\n    execfile(filename, namespace)\r\n\r\n  File \"/home/mzhong/2015-ideal/nilmtk-afhmmsac/demo_nilmtk.py\", line 9, in <module>\r\n    import nilmtk.preprocessing.electricity.building as prepb\r\n\r\nImportError: No module named electricity.building\r\n\r\n\r\n=========================================================================\r\nfrom nilmtk import DataSet, TimeFrame\r\nfrom nilmtk.disaggregate import CombinatorialOptimisation\r\nfrom nilmtk.disaggregate import FHMM\r\nfrom nilmtk import HDFDataStore\r\nfrom nilmtk.metrics import f1_score\r\nimport nilmtk.preprocessing.electricity.building as prepb\r\n\r\ntarget_file = '/home/mzhong/2015-ideal/energy-data/REDD/redd.h5'\r\nredd = DataSet(target_file)\r\n\r\nbuilding = redd.buildings[1]\r\nbuilding = prepb.downsample(building, rule='1T')"},"comment":{"url":"https://api.github.com/repos/nilmtk/nilmtk/issues/comments/72094306","html_url":"https://github.com/nilmtk/nilmtk/issues/343#issuecomment-72094306","issue_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/343","id":72094306,"user":{"login":"JackKelly","id":460756,"avatar_url":"https://avatars.githubusercontent.com/u/460756?v=3","gravatar_id":"","url":"https://api.github.com/users/JackKelly","html_url":"https://github.com/JackKelly","followers_url":"https://api.github.com/users/JackKelly/followers","following_url":"https://api.github.com/users/JackKelly/following{/other_user}","gists_url":"https://api.github.com/users/JackKelly/gists{/gist_id}","starred_url":"https://api.github.com/users/JackKelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackKelly/subscriptions","organizations_url":"https://api.github.com/users/JackKelly/orgs","repos_url":"https://api.github.com/users/JackKelly/repos","events_url":"https://api.github.com/users/JackKelly/events{/privacy}","received_events_url":"https://api.github.com/users/JackKelly/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T20:05:05Z","updated_at":"2015-01-29T20:05:05Z","body":"No need to apologise!  I'm sorry our docs are rather out of date.  We plan to update the docs very soon."}}