add_stream

DbChannel.add_stream(serial, model, producer, name, start_time, end_time, ignore_orm=False)[source]

Add a stream to the channel.

Parameters
  • serial (str) – The serial number of the recorder containing the stream.

  • model (str) – The model of the recorder containing the stream.

  • producer (str) – The producer of the recorder containing the stream.

  • name (str) – The name of the stream.

  • start_time (obspy.UTCDateTime) – The time from which on the stream has been operating at the channel.

  • end_time (obspy.UTCDateTime) – The time up to which the stream has been operating at the channel. “None” if the channel is still running.

  • ignore_orm (boolean) – Control if the component assignment is added to the orm or not. This is usefull when creating an instance from a orm mapper using the from_sqlalchemy_orm class method.

Returns

The added recorder stream.

Return type

DbRecorderStream