{"action":"created","issue":{"url":"https://api.github.com/repos/greole/owls/issues/9","labels_url":"https://api.github.com/repos/greole/owls/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/greole/owls/issues/9/comments","events_url":"https://api.github.com/repos/greole/owls/issues/9/events","html_url":"https://github.com/greole/owls/issues/9","id":110611047,"number":9,"title":"Errors in the provided notebook example Owls Demo.ipynb","user":{"login":"fbob","id":8211124,"avatar_url":"https://avatars.githubusercontent.com/u/8211124?v=3","gravatar_id":"","url":"https://api.github.com/users/fbob","html_url":"https://github.com/fbob","followers_url":"https://api.github.com/users/fbob/followers","following_url":"https://api.github.com/users/fbob/following{/other_user}","gists_url":"https://api.github.com/users/fbob/gists{/gist_id}","starred_url":"https://api.github.com/users/fbob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbob/subscriptions","organizations_url":"https://api.github.com/users/fbob/orgs","repos_url":"https://api.github.com/users/fbob/repos","events_url":"https://api.github.com/users/fbob/events{/privacy}","received_events_url":"https://api.github.com/users/fbob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-09T08:20:50Z","updated_at":"2015-10-09T13:05:00Z","closed_at":null,"body":"I've got numerous errors in the provided notebook example `Owls Demo.ipynb` but don't know if it's due to my installation or something else:  owls-0.7 with python2.7 Anaconda distribution.\r\n\r\nHere are some of the errors I got:\r\n\r\n```python\r\nsets = Cases([s1,s1])\r\nNameError: name 'Cases' is not defined\r\n```\r\n```python\r\ns1.properties.origins['T','1000','y0.1']\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n<ipython-input-5-53cddc61b46d> in <module>()\r\n----> 1 s1.properties.origins['T','1000','y0.1']\r\n\r\nAttributeError: Origins instance has no attribute '__getitem__'\r\n```\r\n\r\n```python\r\n#FIXME import initial conditions\r\nc1 = read_eul(files=['mut','U','k', 'alphat','omega','T'],\r\n              folder='./buoyantCavity/', \r\n              name='baz',plot_properties=props, skiplines=25)\r\nimporting baz: \r\n\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-6-2e72f1d88b23> in <module>()\r\n      2 c1 = read_eul(files=['mut','U','k', 'alphat','omega','T'],\r\n      3               folder='./buoyantCavity/',\r\n----> 4               name='baz',plot_properties=props, skiplines=25)\r\n\r\n/home/beaubert/.local/lib/python2.7/site-packages/Owls-0.0.0-py2.7.egg/Owls/FoamFrame.pyc in read_eul(folder, files, skiplines, name, decomposed, preHooks, **kwargs)\r\n     60                      search_pattern=search, name=name,\r\n     61                      skiplines=skiplines, show_func=\"scatter\",\r\n---> 62                      preHooks=preHooks, **kwargs)\r\n     63 \r\n     64 \r\n\r\n/home/beaubert/.local/lib/python2.7/site-packages/Owls-0.0.0-py2.7.egg/Owls/FoamFrame.pyc in __init__(self, *args, **kwargs)\r\n    224                        maxlines=lines,\r\n    225                        skiptimes=times,\r\n--> 226                        exclude=exclude,\r\n    227                   )\r\n    228            try:\r\n\r\n/home/beaubert/.local/lib/python2.7/site-packages/Owls-0.0.0-py2.7.egg/Owls/io.pyc in import_foam_folder(path, search, files, skiplines, maxlines, skiptimes, exclude)\r\n    304     if not path.endswith('/'):\r\n    305         path = path + '/'\r\n--> 306     fileList = find_datafiles(path, search=search, files=files, exclude=exclude)\r\n    307     if not fileList:\r\n    308         print(\"no files found\")\r\n\r\n/home/beaubert/.local/lib/python2.7/site-packages/Owls-0.0.0-py2.7.egg/Owls/io.pyc in find_datafiles(path, files, search, exclude)\r\n     77             list of found files\r\n     78     \"\"\"\r\n---> 79     data_folders = find_datafolders(search, path, exclude)\r\n     80     return OrderedDict(\r\n     81         [(time, _get_datafiles_from_dir(time, files))\r\n\r\n/home/beaubert/.local/lib/python2.7/site-packages/Owls-0.0.0-py2.7.egg/Owls/io.pyc in find_datafolders(regex, path, exclude)\r\n     91     folders = []\r\n     92     for fold,dirs,_ in os.walk(search_folder):\r\n---> 93         dirs[:] = [d for d in dirs for ex in exclude if not re.match(ex,d)]\r\n     94         if re.match(complete_regex,fold):\r\n     95             folders.append(fold)\r\n\r\nTypeError: 'NoneType' object is not iterable\r\n```"},"comment":{"url":"https://api.github.com/repos/greole/owls/issues/comments/146865840","html_url":"https://github.com/greole/owls/issues/9#issuecomment-146865840","issue_url":"https://api.github.com/repos/greole/owls/issues/9","id":146865840,"user":{"login":"greole","id":4960441,"avatar_url":"https://avatars.githubusercontent.com/u/4960441?v=3","gravatar_id":"","url":"https://api.github.com/users/greole","html_url":"https://github.com/greole","followers_url":"https://api.github.com/users/greole/followers","following_url":"https://api.github.com/users/greole/following{/other_user}","gists_url":"https://api.github.com/users/greole/gists{/gist_id}","starred_url":"https://api.github.com/users/greole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greole/subscriptions","organizations_url":"https://api.github.com/users/greole/orgs","repos_url":"https://api.github.com/users/greole/repos","events_url":"https://api.github.com/users/greole/events{/privacy}","received_events_url":"https://api.github.com/users/greole/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T13:05:00Z","updated_at":"2015-10-09T13:05:00Z","body":"ok most of the examples should work now."}}