Maintenance will be performed on,,, and on the morning of Tuesday 11th August 2020, starting at approximately 9am PDT. It is expected to take around 20 minutes and there will be a short period of downtime (less than five minutes) towards the end of the maintenance window. Please direct any comments, questions, or concerns to

Commit 66b4a092 authored by Patrick Godwin's avatar Patrick Godwin fix Gst errors when importing module

parent 73717893
Pipeline #67556 passed with stages
in 23 minutes and 53 seconds
......@@ -26,17 +26,18 @@ __all__ = ("padtemplate", "figure", "render", "BaseMatplotlibTransform")
import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject
from gi.repository import Gst
gi.require_version('GstBase', '1.0')
from gi.repository import GObject, Gst, GstBase
from gstlal.pipeutil import *
from gstlal import pipeio
"""Pad template suitable for producing video frames using Matplotlib.
The Agg backend supports rgba, argb, and bgra."""
padtemplate = Gst.PadTemplate(
padtemplate =
Gst.PadDirection.SRC, Gst.PadPresence.ALWAYS,
......@@ -93,7 +94,7 @@ def render(fig, buf, (width, height), fmt):
buf.datasize = datasize
class BaseMatplotlibTransform(Gst.BaseTransform):
class BaseMatplotlibTransform(GstBase.BaseTransform):
"""Base class for transform elements that use Matplotlib to render video."""
__gsttemplates__ = padtemplate
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment