Attribute Error in readligo.py

In readligo.py:
line 125 shortnameArray =dqInfo['DQShortnames'].value

I am getting error: ‘Dataset’ object has no attribute ‘value’
Could anyone resolve this query? Thanks!
**
AttributeError Traceback (most recent call last)
Cell In[6], line 6
1 #----------------------------------------------------------------
2 # Load LIGO data from a single file
3 #----------------------------------------------------------------
4 # First from H1
5 fn_H1 = ‘H-H1_LOSC_4_V1-1126259446-32.hdf5’
----> 6 strain_H1, time_H1, chan_dict_H1 = rl.loaddata(fn_H1, ‘H1’)
7 # and then from L1
8 fn_L1 = ‘L-L1_LOSC_4_V1-1126259446-32.hdf5’

File ~/Documents/LALSuite/readligo.py:165, in loaddata(filename, ifo, tvec, readstrain)
163 strain, gpsStart, ts, qmask, shortnameList, injmask, injnameList = read_frame(filename, ifo, readstrain)
164 else:
→ 165 strain, gpsStart, ts, qmask, shortnameList, injmask, injnameList = read_hdf5(filename, readstrain)
167 #-- Create the time vector
168 gpsEnd = gpsStart + len(qmask)

File ~/Documents/LALSuite/readligo.py:125, in read_hdf5(filename, readstrain)
123 dqInfo = dataFile[‘quality’][‘simple’]
124 qmask = dqInfo[‘DQmask’][…]
→ 125 shortnameArray = dqInfo[‘DQShortnames’].value
126 shortnameList = list(shortnameArray)
128 # – Read the INJ information

AttributeError: ‘Dataset’ object has no attribute ‘value’

Because the dataset.value attribute was deprecated (ref: stackoverflow), you can use dataset[()] instead of dataset.value.

# shortnameArray = dqInfo[‘DQShortnames’].value
shortnameArray = dqInfo[‘DQShortnames’][()]

OP: Notice that readligo is no longer maintained, if you want to read and write GW data files or doing any analysis, I recommend you learn using GWpy, that is actively maintained and patched.

This link may help with what you’re trying to do:

https://gwpy.github.io/docs/stable/timeseries/#reading-writing-time-series-data