Closed cmbiwer closed 9 months ago
There is also a typo in this tutorial. There's an extra indentation in:
net_HL = Network('HL', ifo_list)
And now I am stuck at:
Traceback (most recent call last):
File "/Users/cmbiwer/src/pygwb/test.py", line 55, in <module>
H1 = Interferometer.get_empty_interferometer("H1") #LIGO Hanford detector
AttributeError: type object 'Interferometer' has no attribute 'get_empty_interferometer'
Looking at the link to that the tutorial gives: https://lscsoft.docs.ligo.org/bilby/api/bilby.gw.detector.html
It doesn't look like this function exists?
It seems I need maybe something like:
import bilby.gw.detector
And maybe:
from pygwb.detector import Interferometer
And there's still more after that.
It seems this page needs a little bit more to help the user without debugging too much.
Dear @cmbiwer, thank you for going through the tutorial. Indeed, this tutorial could have used a bit more polishing. This has been addressed in the most recent merge request. The above comments have been addressed in the new version of the tutorial.
This page is missing the import statements to make the code useful to the user: https://pygwb.docs.ligo.org/pygwb/simulator.html#injecting-a-power-spectrum-in-random-ligo-noise
I am finding myself, stumbling through finding all the missing import statements to do it. It would be much more helpful if these were provided. Especially since
gwpy.frequencyseries
cannot be imported asfrom gwpy import frequencyseries
.