# Assistance Needed: Installing/Importing readligo Module in VS Code

**URL:** <https://ask.igwn.org/t/assistance-needed-installing-importing-readligo-module-in-vs-code/801>\
**Category:** Data Analysis\
**Created:** [July 17, 2023, 10:22am UTC](https://ask.igwn.org/t/assistance-needed-installing-importing-readligo-module-in-vs-code/801 "2023-07-17T10:22:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CKS](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@CKS](https://ask.igwn.org/u/CKS)\
**Post date:** [July 17, 2023, 10:22am UTC](https://ask.igwn.org/t/assistance-needed-installing-importing-readligo-module-in-vs-code/801/1 "2023-07-17T10:22:30Z")

</div>

Hello Everyone , I am trying to use readligo to read the data but in python it showing me that readligo isn’t a defined module. So could anyone please help me to install/ import this on Vscode. I have attached a screenshot of the error message for your reference.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/gwosc/original/1X/3c108e37a8a278c5f6fda54482211274c795a5f0.png)

---

<div class="post-metadata">

**Author:** ![IPhysReserch](https://yyz1.discourse-cdn.com/flex031/user_avatar/ask.igwn.org/iphysreserch/32/119_2.png) [@IPhysReserch](https://ask.igwn.org/u/IPhysReserch)\
**Post date:** [July 17, 2023, 11:48am UTC](https://ask.igwn.org/t/assistance-needed-installing-importing-readligo-module-in-vs-code/801/2 "2023-07-17T11:48:00Z")

</div>

To my knowledge, you can download the ‘[readligo.py](https://losc.ligo.org/s/sample_code/readligo.py)’ script from this link address, and by placing this script in the same directory as your `ipynb`, you can achieve import calls.  
Best! 😊

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz1.discourse-cdn.com/flex031/user_avatar/ask.igwn.org/jonah/32/10_2.png) [@jonah](https://ask.igwn.org/u/jonah)\
**Post date:** [July 19, 2023, 4:43pm UTC](https://ask.igwn.org/t/assistance-needed-installing-importing-readligo-module-in-vs-code/801/3 "2023-07-19T16:43:27Z")

</div>

Yes, that’s right. `readligo` is only available from the GWOSC website. You are welcome to use it, but lately, we’ve been encouraging the use of `gwpy` for most use cases. As in [this tutorial](https://github.com/losc-tutorial/quickview/blob/master/index.ipynb).

For your case, it should be something like:

```auto
from gwpy.timeseries import TimeSeries
fn = "H-H1_LOSC_4_V1-1126076416.hdf5"
strain = TimeSeries.read(fn,format='hdf5.gwosc')

```

---

<div class="post-metadata">

**Author:** ![martinberoiz](https://yyz1.discourse-cdn.com/flex031/user_avatar/ask.igwn.org/martinberoiz/32/11_2.png) [@martinberoiz](https://ask.igwn.org/u/martinberoiz)\
**Post date:** [November 1, 2023, 6:18pm UTC](https://ask.igwn.org/t/assistance-needed-installing-importing-readligo-module-in-vs-code/801/4 "2023-11-01T18:18:04Z")

</div>

Just for future reference, you can now pip-install readligo:

```auto
pip install readligo

```

but bear in mind that this script will not be maintained.
