Ejemplo n.º 1
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.º 2
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.º 3
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