Hi,
I have a python code for connection to seedlink. You can see as below:
from obspy.clients.seedlink.easyseedlink import *
def handle_data(trace):
print(trace)
print()
client = create_client('[10.15.0.238:18000](http://10.15.0.238:18000)', handle_data)
client.get_info('ID')
sta = ['AKHS', 'ADCV', 'AKUM', 'BLIS', 'DIYA']
for i in range(len(sta)):
client.select_stream('TU', sta[i], 'HH?')
client.run()
When I run this code return only one station information. It goes into an infinite loop in the handle_data function and returns the information of the same station backwards. I want it to return information for all stations in the array named sta.
" pydev debugger: process 9440 is connecting
TU.AKHS…HHZ | 2020-02-18T12:21:39.740000Z - 2020-02-18T12:21:43.750000Z | 100.0 Hz, 402 samples
TU.AKHS…HHN | 2020-02-18T12:21:36.760000Z - 2020-02-18T12:21:42.320000Z | 100.0 Hz, 557 samples
TU.AKHS…HHN | 2020-02-18T12:21:42.330000Z - 2020-02-18T12:21:47.930000Z | 100.0 Hz, 561 samples
TU.AKHS…HHE | 2020-02-18T12:21:41.430000Z - 2020-02-18T12:21:45.430000Z | 100.0 Hz, 401 samples
Process finished with exit code -1"
Can you help me for this issue.
thank you very much.