Convenience Function fails
>> python3
Python 3.7.1 (default, Oct 21 2018, 05:48:29)
[Clang 9.1.0 (clang-902.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gwinc
>>> import numpy as np
>>> freq = np.logspace(1, 3, 1000)
>>> ifo = gwinc.load_ifo('aLIGO')
>>> ifo = gwinc.precompIFO(freq, ifo)
>>> noises = gwinc.noise_calc(freq, ifo)
>>> score, data, ifo = gwinc.gwinc(freq, ifo, plot=True)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/irish/GWINC/pygwinc/gwinc/gwinc.py", line 158, in gwinc
(2 * ifo.Materials.MassThickness) * ifo.Optics.ITM.SubstrateAbsorption])
AttributeError: 'Struct' object has no attribute 'SubstrateAbsorption'
>>> myplot=gwinc.plot_noise(ifo, noises)
>>> myplot.show()
>>>
Edited by Brian O'Reilly