some yaml load / path problem
Any idea what to do with this?
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-2-b3b4887b0a68> in <module>()
1 freq = np.logspace(1, 3, 1000)
----> 2 ifo = gwinc.load_ifo('aLIGO')
3 ifo = gwinc.precompIFO(ifo)
4 noises = gwinc.noise_calc(ifo, freq)
5 gwinc.plot_noise(ifo, noises)
~/anaconda3/envs/AI3/lib/python3.6/site-packages/pygwinc-0.1-py3.6.egg/gwinc/ifo/__init__.py in load_ifo(name_or_path)
46
47 else:
---> 48 return Struct.from_file(path)
~/anaconda3/envs/AI3/lib/python3.6/site-packages/pygwinc-0.1-py3.6.egg/gwinc/struct.py in from_file(cls, path)
287 (root, ext) = os.path.splitext(path)
288
--> 289 with open(path, 'r') as f:
290 if ext in ['.yaml', '.yml']:
291 d = yaml.load(f, Loader=yaml_loader)
NotADirectoryError: [Errno 20] Not a directory: '/Users/rana/anaconda3/envs/AI3/lib/python3.6/site-packages/pygwinc-0.1-py3.6.egg/gwinc/ifo/aLIGO.yaml'
Edited by Rana Adhikari