sbonaime / seedlink_plotter

Seedlink_plotter A python script to plot real time seismic data from a seedlink server
GNU Lesser General Public License v3.0
36 stars 18 forks source link

Problem when plotting multiple channels of the same station #9

Closed sbonaime closed 10 years ago

sbonaime commented 10 years ago

There is a bug when I try to plot at least two channels of the same station like

-s "G_FDF:00BHZ,G_FDF:00BHN"

The error is

Traceback (most recent call last):
  File "seedlink_plotter/seedlink_plotter.py", line 446, in <module>
    main()
  File "seedlink_plotter/seedlink_plotter.py", line 426, in main
    ids = cl.getTraceIDs()
  File "seedlink_plotter/seedlink_plotter.py", line 272, in getTraceIDs
    ids.append(".".join((net, sta, loc, cha)))
TypeError: sequence item 2: expected string, list found
megies commented 10 years ago

The seedlink string has to be specified differently, see http://docs.obspy.org/master/packages/autogen/obspy.seedlink.client.seedlinkconnection.SeedLinkConnection.parseStreamlist.html#obspy.seedlink.client.seedlinkconnection.SeedLinkConnection.parseStreamlist.

sbonaime commented 10 years ago

Thank you for including this in the README