Unable to load ifo from .m file
When trying to load an pygwinc ifo object using the new infrastructure, I get the following error:
In [20]: from gwinc import Struct
In [21]: ifo = Struct.from_file('aSiModel.m')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-21-3738d1b64202> in <module>
----> 1 ifo = Struct.from_file('aSiModel.m')
/anaconda3/envs/gPython/lib/python3.7/site-packages/pygwinc-0.1-py3.7.egg/gwinc/struct.py in from_file(cls, path)
352
353 if ext == '.m':
--> 354 from ..gwinc_matlab import Matlab
355 matlab = Matlab()
356 matlab.addpath(os.path.dirname(path))
ValueError: attempted relative import beyond top-level package
Previously, I was able to do this by running ifo = gwinc.load_ifo('aSiModel.m')
. Is this user error on my part?