Ejemplo n.º 1
0
    def __init__(self):
        """Initializer"""
        Filter.__init__(self)

        self.threshold = 50.0
        self.target_trace = ""
        self.keep_below = True
Ejemplo n.º 2
0
    def load(self, desc):
        """Take the object and set the sink's internal state.

        Returns a reference to the current object."""
        Filter.load(self, desc)
        self.threshold = desc["threshold"]
        return self
Ejemplo n.º 3
0
    def __init__(self):
        """Initializer"""
        Filter.__init__(self)

        self.target_trace = ""
        self.include_sets = ""
        self.exclude_sets = ""
Ejemplo n.º 4
0
    def load(self, desc):
        """Take the object and set the sink's internal state.

        Returns a reference to the current object."""
        Filter.load(self, desc)
        self.threshold = desc["threshold"]
        self.target_trace = desc["trace"]
        self.keep_below = desc["keep_below"] == "y"
        return self
Ejemplo n.º 5
0
    def load(self, desc):
        """Take the object and set the sink's internal state.

        Returns a reference to the current object."""
        Filter.load(self, desc)
        self.target_trace = desc["trace"]
        self.include_sets = desc["include_sets"]
        self.exclude_sets = desc["exclude_sets"]

        return self
Ejemplo n.º 6
0
    def save(self):
        """Return an object representing the filter's internal state.

        The object will be later encoded into JSON."""
        desc = Filter.save(self)
        desc["threshold"] = self.threshold
        return desc
Ejemplo n.º 7
0
    def save(self):
        """Return an object representing the filter's internal state.

        The object will be later encoded into JSON."""
        desc = Filter.save(self)
        desc["threshold"] = self.threshold
        desc["trace"] = self.target_trace
        desc["keep_below"] = "y" if self.keep_below else "n"
        return desc
Ejemplo n.º 8
0
    def save(self):
        """Return an object representing the filter's internal state.

        The object will be later encoded into JSON."""
        desc = Filter.save(self)
        desc["trace"] = self.target_trace
        desc["include_sets"] = self.include_sets
        desc["exclude_sets"] = self.exclude_sets

        return desc
Ejemplo n.º 9
0
    def __init__(self):
        """Initializer"""
        Filter.__init__(self)

        self.threshold = 1.0