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.
Here are some of the errors I got:
sets = Cases([s1,s1])
NameError: name 'Cases' is not defined
s1.properties.origins['T','1000','y0.1']
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-53cddc61b46d> in <module>()
----> 1 s1.properties.origins['T','1000','y0.1']
AttributeError: Origins instance has no attribute '__getitem__'
#FIXME import initial conditions
c1 = read_eul(files=['mut','U','k', 'alphat','omega','T'],
folder='./buoyantCavity/',
name='baz',plot_properties=props, skiplines=25)
importing baz:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-2e72f1d88b23> in <module>()
2 c1 = read_eul(files=['mut','U','k', 'alphat','omega','T'],
3 folder='./buoyantCavity/',
----> 4 name='baz',plot_properties=props, skiplines=25)
/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)
60 search_pattern=search, name=name,
61 skiplines=skiplines, show_func="scatter",
---> 62 preHooks=preHooks, **kwargs)
63
64
/home/beaubert/.local/lib/python2.7/site-packages/Owls-0.0.0-py2.7.egg/Owls/FoamFrame.pyc in __init__(self, *args, **kwargs)
224 maxlines=lines,
225 skiptimes=times,
--> 226 exclude=exclude,
227 )
228 try:
/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)
304 if not path.endswith('/'):
305 path = path + '/'
--> 306 fileList = find_datafiles(path, search=search, files=files, exclude=exclude)
307 if not fileList:
308 print("no files found")
/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)
77 list of found files
78 """
---> 79 data_folders = find_datafolders(search, path, exclude)
80 return OrderedDict(
81 [(time, _get_datafiles_from_dir(time, files))
/home/beaubert/.local/lib/python2.7/site-packages/Owls-0.0.0-py2.7.egg/Owls/io.pyc in find_datafolders(regex, path, exclude)
91 folders = []
92 for fold,dirs,_ in os.walk(search_folder):
---> 93 dirs[:] = [d for d in dirs for ex in exclude if not re.match(ex,d)]
94 if re.match(complete_regex,fold):
95 folders.append(fold)
TypeError: 'NoneType' object is not iterable
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.Here are some of the errors I got: