{"action":"opened","issue":{"url":"https://api.github.com/repos/NeuralEnsemble/MotionClouds/issues/3","repository_url":"https://api.github.com/repos/NeuralEnsemble/MotionClouds","labels_url":"https://api.github.com/repos/NeuralEnsemble/MotionClouds/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/NeuralEnsemble/MotionClouds/issues/3/comments","events_url":"https://api.github.com/repos/NeuralEnsemble/MotionClouds/issues/3/events","html_url":"https://github.com/NeuralEnsemble/MotionClouds/issues/3","id":165050104,"number":3,"title":"Problems with creating videos","user":{"login":"ChrisWiesbrock","id":20418174,"avatar_url":"https://avatars.githubusercontent.com/u/20418174?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisWiesbrock","html_url":"https://github.com/ChrisWiesbrock","followers_url":"https://api.github.com/users/ChrisWiesbrock/followers","following_url":"https://api.github.com/users/ChrisWiesbrock/following{/other_user}","gists_url":"https://api.github.com/users/ChrisWiesbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisWiesbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisWiesbrock/subscriptions","organizations_url":"https://api.github.com/users/ChrisWiesbrock/orgs","repos_url":"https://api.github.com/users/ChrisWiesbrock/repos","events_url":"https://api.github.com/users/ChrisWiesbrock/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisWiesbrock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T10:55:24Z","updated_at":"2016-07-12T10:55:24Z","closed_at":null,"body":"Hey,\r\n\r\nI copied parts of the example \"Testing grating\" into a new file.  This is my script:\r\n\r\n`import numpy as np\r\nnp.set_printoptions(precision=3, suppress=True)\r\nimport pylab\r\nimport matplotlib.pyplot as plt\r\n\r\nfrom MotionClouds import MotionClouds as mc\r\nimport os\r\nfx, fy, ft = mc.get_grids(mc.N_X, mc.N_Y, mc.N_frame)\r\nprint(mc.envelope_orientation.__doc__)\r\n\r\nname = 'grating'\r\n#initialize\r\nfx, fy, ft = mc.get_grids(mc.N_X, mc.N_Y, mc.N_frame)\r\ncolor = mc.envelope_color(fx, fy, ft)\r\n\r\nz = color * mc.envelope_gabor(fx, fy, ft)\r\nmc.figures(z, name)\r\nmc.in_show_video(name)`\r\n\r\nIt runs fine until the last line. I get following error message:\r\n\r\n`runfile('C:/Users/Chris/Documents/Python Scripts/untitled13.py', wdir='C:/Users/Chris/Documents/Python Scripts')\r\n\r\n    Orientation envelope:\r\n    selects one central orientation theta, B_theta the spread\r\n    We use a von-Mises distribution on the orientation.\r\n\r\n    Run 'test_orientation.py' to see the effect of changing theta and B_theta.\r\n    \r\nSaving sequence results/grating.mp4\r\ngrating\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-3-e12b3e7cf319>\", line 1, in <module>\r\n    runfile('C:/Users/Chris/Documents/Python Scripts/untitled13.py', wdir='C:/Users/Chris/Documents/Python Scripts')\r\n\r\n  File \"C:\\Python27\\lib\\site-packages\\spyderlib\\widgets\\externalshell\\sitecustomize.py\", line 685, in runfile\r\n    execfile(filename, namespace)\r\n\r\n  File \"C:\\Python27\\lib\\site-packages\\spyderlib\\widgets\\externalshell\\sitecustomize.py\", line 71, in execfile\r\n    exec(compile(scripttext, filename, 'exec'), glob, loc)\r\n\r\n  File \"C:/Users/Chris/Documents/Python Scripts/untitled13.py\", line 24, in <module>\r\n    mc.in_show_video(name)\r\n\r\n  File \"C:\\Python27\\lib\\site-packages\\MotionClouds\\MotionClouds.py\", line 644, in in_show_video\r\n    video = open(os.path.join(figpath, name + vext), \"rb\").read()\r\n\r\nIOError: [Errno 2] No such file or directory: 'results/grating.mp4'`\r\n\r\nThe figures of the cubes are saved correctly into the figures folder, but somehow my system fails to create/save the videofile. It is also not working correctly when I try to save the frames into a zip-file. I use Spyder with Python(x.y) 2.7.10.0, which should include all needed packages. I run it on Windows 8.1 (64 bit). I tried the same script on a mashine with Ubuntu 16.04 but I had the same error message. \r\n\r\nWith best regards and many thanks in advance!\r\nChristopher Wiesbrock"}}
{"actor":{"display_login":"ChrisWiesbrock"}}